close: use gl_REPLACE_FCLOSE only if defined
[gnulib.git] / ChangeLog
1 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2
3         close: use gl_REPLACE_FCLOSE only if defined
4         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5         is defined.  The close module doesn't depend on the fclose module
6         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9
10 2011-07-24  Jim Meyering  <meyering@redhat.com>
11
12         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13         * tests/test-select.h (test_function): Declare as "static".
14
15 2011-07-24  Bruno Haible  <bruno@clisp.org>
16
17         doc: Mention the effects of AC_SYS_LARGEFILE.
18         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
19         on this function.
20         * doc/posix-functions/aio_error.texi: Likewise.
21         * doc/posix-functions/aio_fsync.texi: Likewise.
22         * doc/posix-functions/aio_read.texi: Likewise.
23         * doc/posix-functions/aio_return.texi: Likewise.
24         * doc/posix-functions/aio_suspend.texi: Likewise.
25         * doc/posix-functions/aio_write.texi: Likewise.
26         * doc/posix-functions/fgetpos.texi: Likewise.
27         * doc/posix-functions/fopen.texi: Likewise.
28         * doc/posix-functions/freopen.texi: Likewise.
29         * doc/posix-functions/fsetpos.texi: Likewise.
30         * doc/posix-functions/fstatvfs.texi: Likewise.
31         * doc/posix-functions/ftruncate.texi: Likewise.
32         * doc/posix-functions/ftw.texi: Likewise.
33         * doc/posix-functions/getrlimit.texi: Likewise.
34         * doc/posix-functions/glob.texi: Likewise.
35         * doc/posix-functions/lio_listio.texi: Likewise.
36         * doc/posix-functions/lockf.texi: Likewise.
37         * doc/posix-functions/mkstemp.texi: Likewise.
38         * doc/posix-functions/mmap.texi: Likewise.
39         * doc/posix-functions/nftw.texi: Likewise.
40         * doc/posix-functions/openat.texi: Likewise.
41         * doc/posix-functions/opendir.texi: Likewise.
42         * doc/posix-functions/posix_fadvise.texi: Likewise.
43         * doc/posix-functions/posix_fallocate.texi: Likewise.
44         * doc/posix-functions/pread.texi: Likewise.
45         * doc/posix-functions/pwrite.texi: Likewise.
46         * doc/posix-functions/readdir.texi: Likewise.
47         * doc/posix-functions/readdir_r.texi: Likewise.
48         * doc/posix-functions/rewinddir.texi: Likewise.
49         * doc/posix-functions/scandir.texi: Likewise.
50         * doc/posix-functions/seekdir.texi: Likewise.
51         * doc/posix-functions/setrlimit.texi: Likewise.
52         * doc/posix-functions/statvfs.texi: Likewise.
53         * doc/posix-functions/telldir.texi: Likewise.
54         * doc/posix-functions/tmpfile.texi: Likewise.
55         * doc/posix-functions/truncate.texi: Likewise.
56         * doc/glibc-functions/fallocate.texi: Likewise.
57         * doc/glibc-functions/fstatfs.texi: Likewise.
58         * doc/glibc-functions/fts_children.texi: Likewise.
59         * doc/glibc-functions/fts_read.texi: Likewise.
60         * doc/glibc-functions/getdirentries.texi: Likewise.
61         * doc/glibc-functions/mkostemp.texi: Likewise.
62         * doc/glibc-functions/mkostemps.texi: Likewise.
63         * doc/glibc-functions/mkstemps.texi: Likewise.
64         * doc/glibc-functions/preadv.texi: Likewise.
65         * doc/glibc-functions/pwritev.texi: Likewise.
66         * doc/glibc-functions/sendfile.texi: Likewise.
67         * doc/glibc-functions/statfs.texi: Likewise.
68
69 2011-07-24  Bruno Haible  <bruno@clisp.org>
70
71         doc: Fix typo.
72         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
73
74 2011-07-24  Bruno Haible  <bruno@clisp.org>
75
76         doc: Mention fsusage.
77         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
78
79 2011-07-24  Bruno Haible  <bruno@clisp.org>
80
81         doc: Mention new glibc headers and functions.
82         * doc/glibc-headers/gshadow.texi: New file.
83         * doc/glibc-functions/endsgent.texi: New file.
84         * doc/glibc-functions/fgetsgent.texi: New file.
85         * doc/glibc-functions/fgetsgent_r.texi: New file.
86         * doc/glibc-functions/getsgent.texi: New file.
87         * doc/glibc-functions/getsgent_r.texi: New file.
88         * doc/glibc-functions/getsgnam.texi: New file.
89         * doc/glibc-functions/getsgnam_r.texi: New file.
90         * doc/glibc-functions/putsgent.texi: New file.
91         * doc/glibc-functions/setsgent.texi: New file.
92         * doc/glibc-functions/sgetsgent.texi: New file.
93         * doc/glibc-functions/sgetsgent_r.texi: New file.
94         * doc/glibc-functions/malloc_info.texi: New file.
95         * doc/glibc-functions/preadv.texi: New file.
96         * doc/glibc-functions/pwritev.texi: New file.
97         * doc/glibc-functions/register_printf_modifier.texi: New file.
98         * doc/glibc-functions/register_printf_specifier.texi: New file.
99         * doc/glibc-functions/register_printf_type.texi: New file.
100         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
101         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
102         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
103         * doc/glibc-functions/pthread_getname_np.texi: New file.
104         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
105         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
106         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
107         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
108         * doc/glibc-functions/pthread_setname_np.texi: New file.
109         * doc/glibc-functions/pthread_sigqueue.texi: New file.
110         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
111         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
112         * doc/glibc-functions/qsort_r.texi: New file.
113         * doc/glibc-functions/quick_exit.texi: New file.
114         * doc/glibc-functions/syncfs.texi: New file.
115         * doc/gnulib.texi: Include them.
116         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
117         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
118         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
119         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
120         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
121         * doc/glibc-functions/execvpe.texi: Likewise.
122
123 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
124
125         ftell: don't include <unistd.h>
126         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
127         guaranteed to define off_t, and the ftell module depends on the
128         stdio module.
129
130         ftell: do not assume wraparound signed arithmetic
131         * lib/ftell.c: Include <limits.h>.
132         (ftell): Don't assume wraparound signed arithmetic.
133
134 2011-07-24  Bruno Haible  <bruno@clisp.org>
135
136         close: No longer depend on module 'fclose'.
137         * modules/close (Depends-on): Remove fclose.
138         * NEWS: Mention the change.
139         Suggested by Sam Steingold <sds@gnu.org>.
140
141 2011-07-24  Bruno Haible  <bruno@clisp.org>
142
143         fsusage: Enable large volume support on AIX >= 5.2.
144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
145         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
146         instead of STAT_STATVFS.
147         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
148
149         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
151         f_blocks field only on MacOS X.
152
153         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
154         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
155         * modules/fsusage (Depends-on): Add largefile.
156
157 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
158
159         * README: Modernize discussion of signed integers.
160         Assuming overflow wraparound is no longer safe.
161         Mention ones' complement and signed magnitude.
162
163 2011-07-22  Bruno Haible  <bruno@clisp.org>
164
165         select tests, pselect tests: Refactor.
166         * tests/test-select.h: New file, extracted from tests/test-select.c.
167         (select_fn): New type.
168         (test, do_select, do_select_nowait, do_select_wait, test_tty,
169         test_connect_first, test_accept_first, test_pair, test_socket_pair,
170         test_pipe): Add my_select argument.
171         (test_function): Renamed from main. Add my_select argument.
172         * tests/test-select.c: Move most code to tests/test-select.h. Include
173         test-select.h.
174         * modules/select-tests (Files): Add tests/test-select.h.
175         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
176         (my_select, main): New functions.
177         * modules/pselect-tests (Files): Add tests/test-select.h,
178         tests/macros.h, tests/signature.h.
179         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
180         (configure.ac): Check for <sys/wait.h>.
181
182 2011-07-22  Bruno Haible  <bruno@clisp.org>
183
184         sys_select tests: Check the signature of FD_*.
185         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
186         signature tests from here...
187         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
188         here.
189         * modules/sys_select-tests (Files): Add tests/signature.h.
190
191 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
192
193         largefile: new module, replacing large-inode
194         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
195         * MODULES.html.sh: Add largefile, remove large-inode.
196         * modules/largefile, m4/largefile.m4: New files.
197         * modules/large-inode, m4/large-inode.m4: Remove.
198
199         fsusage: port to MacOS X 10.7 with 4 TiB file systems
200         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
201         implementations that use only 32 bits to count blocks.
202         On typical hosts with 1024-byte blocks, this fails with file
203         systems as small as 4 TiB.  Problem reported by Herb Wartens
204         <http://debbugs.gnu.org/9140> and this should also fix a similar
205         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
206
207         large-inode: New module
208         * MODULES.html.sh: Add it.
209         * modules/large-inode, m4/large-inode.m4: New files.
210
211         extensions: Enable extensions on MacOS X 10.5 and later.
212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
213
214 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
215
216         file-has-acl: use acl_extended_file_nofollow if available
217         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
218         (acl_extended_file): New macro.
219         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
220         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
221
222 2011-07-21  Bruno Haible  <bruno@clisp.org>
223
224         Declare system functions in a way that works with C++.
225         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
226         declare fdopendir as extern "C".
227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
228         declare frexpl as extern "C".
229         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
230         declare gai_strerror as extern "C".
231         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
232         programs, declare gai_strerror as extern "C".
233         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
234         declare getlogin_r as extern "C".
235         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
236         as extern "C".
237         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
238         declare ldexpl as extern "C".
239         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
240         as extern "C".
241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
242         program, declare getmntinfo as extern "C".
243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
244         stpncpy as extern "C".
245         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
246         program, declare __xpg_strerror_r as extern "C".
247         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
248         strndup as extern "C".
249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
250         declare memset and bzero as extern "C".
251         Reported by Sam Steingold <sds@gnu.org>.
252
253 2011-07-12  Jim Meyering  <meyering@redhat.com>
254
255         maint.mk: prohibit inclusion of "verify.h" without use
256         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
257
258 2011-07-19  Pádraig Brady  <P@draigBrady.com>
259
260         timer-time: A new module to check for timer_settime()
261         * m4/timer_time.m4: Check for the posix function.
262         * modules/timer-time: Add the new module.
263         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
264         Mention it.
265
266 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
267             Bruno Haible  <bruno@clisp.org>
268
269         pthread_sigmask: assume POSIX threads if --avoid=threadlib
270         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
271         not defined, assume POSIX threads and look for pthread_sigmask in
272         $LIBS, without changing $CPPFLAGS.
273
274 2011-07-19  Bruno Haible  <bruno@clisp.org>
275
276         strstr: Update cross-compilation guess.
277         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
278         CPUs, guess no, in view of glibc
279         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
280         Suggested by Eric Blake. Reported by Reuben Thomas.
281
282 2011-07-19  Pádraig Brady  <P@draigBrady.com>
283
284         getopt-gnu: suppress core dumps from detection code
285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
286         to suppress core dumps that may well occur on glibc systems.
287         * modules/getopt-gnu: Depend on nocrash.
288
289 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
290
291         pthread_sigmask: ensure usleep is declared
292         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
293         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
294
295 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
296
297         doc: Document NonStop portability issues.
298         * doc/posix-functions/sigaction.texi (sigaction):
299         * doc/posix-headers/signal.texi (signal.h):
300         Document NonStop.  See Joachim Schmitz in
301         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
302
303 2011-07-15  Bruno Haible  <bruno@clisp.org>
304
305         ffsl, ffsll: Avoid unportable behaviour.
306         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
307
308 2011-07-15  Bruno Haible  <bruno@clisp.org>
309
310         ffs: More tests.
311         * tests/test-ffs.c (NBITS): New macro.
312         (main): Add more tests.
313         * tests/test-ffsl.c (NBITS): New macro.
314         (main): Add more tests.
315         * tests/test-ffsll.c (NBITS): New macro.
316         (main): Add more tests.
317
318 2011-07-15  Eric Blake  <eblake@redhat.com>
319
320         ffsl, ffsll: new modules
321         * modules/ffsl: New file.
322         * modules/ffsll: Likewise.
323         * m4/ffsl.m4: Likewise.
324         * m4/ffsll.m4: Likewise.
325         * lib/ffsl.c: Likewise.
326         * lib/ffsl.h: Likewise.
327         * lib/ffsll.c: Likewise.
328         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
329         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
330         * modules/string (Makefile.am): Substitute witnesses.
331         * lib/strings.in.h (ffsl, ffsll): Declare.
332         * modules/ffsl-tests: New test file.
333         * modules/ffsll-tests: Likewise.
334         * tests/test-ffsl.c: Likewise.
335         * tests/test-ffsll.c: Likewise.
336         * MODULES.html.sh (Integer arithmetic functions): Mention it.
337         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
338         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
339
340         ffs: fix m4 prerequisite
341         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
342
343         ffs: avoid undefined behavior
344         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
345         * tests/test-ffs.c (naive, main): Avoid signed shifts.
346         Reported by Bruno Haible.
347
348 2011-07-12  Bruno Haible  <bruno@clisp.org>
349
350         pthread_sigmask: Rely on module 'threadlib'.
351         * modules/pthread_sigmask (Depends-on): Add threadlib.
352         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
353         is defined.
354
355 2011-07-12  Bruno Haible  <bruno@clisp.org>
356
357         regex: Depend on module 'strcase'.
358         * modules/regex (Depends-on): Add strcase, for strcasecmp().
359
360 2011-07-12  Jim Meyering  <meyering@redhat.com>
361
362         warn-on-use: fix typo in file name
363         * modules/snippet/warn-on-use (Files): Correct file name:
364         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
365
366 2011-07-12  Bruno Haible  <bruno@clisp.org>
367
368         strings: Document module.
369         * doc/posix-headers/strings.texi: Mention module 'strings'.
370
371 2011-07-12  Bruno Haible  <bruno@clisp.org>
372
373         Rename module '_Noreturn' to 'snippet/_Noreturn'.
374         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
375         (Files, Makefile.am): Update.
376         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
377         * modules/stdlib (Depends-on): Update.
378
379 2011-07-12  Bruno Haible  <bruno@clisp.org>
380
381         * NEWS: Mention the changes.
382
383         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
384         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
385         (Files, Makefile.am): Update.
386         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
387         * modules/arpa_inet (Depends-on): Update.
388         * modules/ctype (Depends-on): Update.
389         * modules/dirent (Depends-on): Update.
390         * modules/fcntl-h (Depends-on): Update.
391         * modules/glob (Depends-on): Update.
392         * modules/iconv-h (Depends-on): Update.
393         * modules/inttypes-incomplete (Depends-on): Update.
394         * modules/langinfo (Depends-on): Update.
395         * modules/locale (Depends-on): Update.
396         * modules/math (Depends-on): Update.
397         * modules/netdb (Depends-on): Update.
398         * modules/poll-h (Depends-on): Update.
399         * modules/pty (Depends-on): Update.
400         * modules/search (Depends-on): Update.
401         * modules/signal (Depends-on): Update.
402         * modules/spawn (Depends-on): Update.
403         * modules/stdio (Depends-on): Update.
404         * modules/stdlib (Depends-on): Update.
405         * modules/string (Depends-on): Update.
406         * modules/strings (Depends-on): Update.
407         * modules/sys_file (Depends-on): Update.
408         * modules/sys_ioctl (Depends-on): Update.
409         * modules/sys_select (Depends-on): Update.
410         * modules/sys_socket (Depends-on): Update.
411         * modules/sys_stat (Depends-on): Update.
412         * modules/sys_time (Depends-on): Update.
413         * modules/sys_times (Depends-on): Update.
414         * modules/sys_utsname (Depends-on): Update.
415         * modules/sys_wait (Depends-on): Update.
416         * modules/termios (Depends-on): Update.
417         * modules/time (Depends-on): Update.
418         * modules/unistd (Depends-on): Update.
419         * modules/wchar (Depends-on): Update.
420         * modules/wctype-h (Depends-on): Update.
421         * MODULES.html.sh (Support for building libraries and executables):
422         Update.
423
424         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
425         * modules/snippet/unused-parameter: Renamed from
426         modules/unused-parameter.
427         (Files, Makefile.am): Update.
428         * build-aux/snippet/unused-parameter.h: Renamed from
429         build-aux/unused-parameter.h.
430         * modules/selinux-h (Depends-on): Update.
431         * modules/unistr/base (Depends-on): Update.
432         * MODULES.html.sh (Core language properties): Update.
433
434         Rename module 'link-warning' to 'snippet/link-warning'.
435         * modules/snippet/link-warning: Renamed from modules/link-warning.
436         (Files, Makefile.am): Update.
437         * build-aux/snippet/link-warning.h: Renamed from
438         build-aux/link-warning.h.
439         * MODULES.html.sh (Support for building libraries and executables):
440         Update.
441
442         Rename module 'c++defs' to 'snippet/c++defs'.
443         * modules/snippet/c++defs: Renamed from modules/c++defs.
444         (Files, Makefile.am): Update.
445         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
446         * modules/arpa_inet (Depends-on): Update.
447         * modules/ctype (Depends-on): Update.
448         * modules/dirent (Depends-on): Update.
449         * modules/fcntl-h (Depends-on): Update.
450         * modules/glob (Depends-on): Update.
451         * modules/iconv-h (Depends-on): Update.
452         * modules/langinfo (Depends-on): Update.
453         * modules/locale (Depends-on): Update.
454         * modules/math (Depends-on): Update.
455         * modules/netdb (Depends-on): Update.
456         * modules/poll-h (Depends-on): Update.
457         * modules/pty (Depends-on): Update.
458         * modules/search (Depends-on): Update.
459         * modules/signal (Depends-on): Update.
460         * modules/spawn (Depends-on): Update.
461         * modules/stdio (Depends-on): Update.
462         * modules/stdlib (Depends-on): Update.
463         * modules/string (Depends-on): Update.
464         * modules/strings (Depends-on): Update.
465         * modules/sys_ioctl (Depends-on): Update.
466         * modules/sys_select (Depends-on): Update.
467         * modules/sys_socket (Depends-on): Update.
468         * modules/sys_stat (Depends-on): Update.
469         * modules/sys_time (Depends-on): Update.
470         * modules/sys_wait (Depends-on): Update.
471         * modules/termios (Depends-on): Update.
472         * modules/time (Depends-on): Update.
473         * modules/unistd (Depends-on): Update.
474         * modules/wchar (Depends-on): Update.
475         * modules/wctype-h (Depends-on): Update.
476
477         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
478         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
479         (Files, Makefile.am): Update.
480         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
481         * modules/argv-iter (Depends-on): Update.
482         * modules/arpa_inet (Depends-on): Update.
483         * modules/dirent (Depends-on): Update.
484         * modules/fcntl-h (Depends-on): Update.
485         * modules/fnmatch (Depends-on): Update.
486         * modules/getopt-posix (Depends-on): Update.
487         * modules/glob (Depends-on): Update.
488         * modules/iconv-h (Depends-on): Update.
489         * modules/inttypes-incomplete (Depends-on): Update.
490         * modules/locale (Depends-on): Update.
491         * modules/math (Depends-on): Update.
492         * modules/netdb (Depends-on): Update.
493         * modules/search (Depends-on): Update.
494         * modules/signal (Depends-on): Update.
495         * modules/spawn (Depends-on): Update.
496         * modules/stdio (Depends-on): Update.
497         * modules/stdlib (Depends-on): Update.
498         * modules/string (Depends-on): Update.
499         * modules/strings (Depends-on): Update.
500         * modules/sys_socket (Depends-on): Update.
501         * modules/sys_stat (Depends-on): Update.
502         * modules/sys_time (Depends-on): Update.
503         * modules/sys_times (Depends-on): Update.
504         * modules/sys_utsname (Depends-on): Update.
505         * modules/time (Depends-on): Update.
506         * modules/unistd (Depends-on): Update.
507         * modules/wchar (Depends-on): Update.
508         * MODULES.html.sh (Support for building libraries and executables):
509         Update.
510
511 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
512
513         Improvements on _Noreturn and related modules.
514
515         modules/_Exit-tests: test _Noreturn too
516         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
517         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
518         (main): Use them.
519
520         stdnoreturn, stdnoreturn-tests: remove modules
521         They're not needed here and a bit premature for use elsewhere.  See
522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
523         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
524         * tests/test-stdnoreturn.c: Remove files.
525         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
526         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
527         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
528         and using noreturn.
529         * modules/openat, modules/sigpipe-die, modules/xalloc:
530         * modules/xmemdup0, modules/xstrtol:
531         Remove dependency on stdnoreturn.
532
533         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
534         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
535         Reparenthesize to avoid GCC warning.
536         Support Microsoft's syntax.
537         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
538
539         _Noreturn-tests: remove module
540         * modules/_Noreturn-tests: Remove.
541         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
542         * tests/test-_Noreturn.c: Remove.
543         * tests/test-stdnoreturn.c: Merge from the old
544         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
545
546 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
547
548         _Noreturn, stdnoreturn, and related modules.
549
550         * top/maint.mk: Adjust to new noreturn support.
551         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
552         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
553
554         xalloc: use stdnoreturn.h
555         * lib/xalloc.h: Include <stdnoreturn.h>.
556         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
557         * modules/xalloc (Depends-on): Add stdnoreturn.
558
559         xstrtol: use stdnoreturn.h
560         * lib/xstrtol.h: Include <stdnoreturn.h>.
561         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
562         * modules/xstrtol (Depends-on): Add stdnoreturn.
563
564         xmemdup0: use stdnoreturn.h
565         * lib/xmemdup0.h: Include <stdnoreturn.h>.
566         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
567         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
568
569         sigpipe-die: use stdnoreturn.h
570         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
571         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
572         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
573
574         openat: use stdnoreturn.h
575         * lib/openat.h: Include <stdnoreturn.h>.
576         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
577         * modules/openat (Depends-on): Add stdnoreturn.
578
579         * lib/openat-die.c (openat_save_fail): Modernize comment.
580
581         * lib/xalloc-die.c (xalloc_die): Modernize comment.
582
583         * lib/glthread/thread.h: Modernize comment.
584
585         obstack: use _Noreturn
586         * lib/obstack.c (__attribute__): Remove macro.
587         (print_and_abort): Use _Noreturn.
588
589         c-stack: use _Noreturn
590         * lib/c-stack.c (die, overflow_handler, segv_handler):
591         Use _Noreturn rather than __attribute__((noreturn)).
592
593         argmatch-tests, exclude_tests: use _Noreturn
594         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
595         Remove.
596         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
597
598         stdlib: use _Noreturn
599         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
600         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
601         * modules/stdlib (Depends-on): Add _Noreturn.
602         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
603
604         stdnoreturn-tests: new module
605         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
606
607         stdnoreturn: new module
608         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
609         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
610
611         _Noreturn-tests: new module
612         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
613
614         _Noreturn: new module
615         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
616         New section, mentioning it.
617         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
618
619         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
620
621 2011-07-11  Eric Blake  <eblake@redhat.com>
622
623         ffs: new module
624         * modules/ffs: New file.
625         * m4/ffs.m4: Likewise.
626         * lib/ffs.c: Likewise.
627         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
628         * modules/strings (Makefile.am): Substitute witness.
629         (Depends-on): Add c++defs.
630         * lib/strings.in.h (ffs): Declare.
631         * modules/ffs-tests: New test file.
632         * tests/test-ffs.c: Test new module.
633         * MODULES.html.sh (Integer arithmetic functions): Mention it.
634         * doc/posix-functions/ffs.texi (ffs): Likewise.
635
636         regex: avoid compiler warning
637         * lib/regex.c (includes): Include <strings.h>, for use of
638         strcasecmp in regcomp.c.
639         Reported by Joachim Schmitz.
640
641 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
642
643         stdint: respect system's intmax_t if INTMAX_MAX
644         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
645         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
646         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
647         long but int64_t is long long, and where we will clash with the
648         system intmax_t if we override it.  See
649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
650         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
651         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
652         similarly for UINTMAX_C.
653
654 2011-07-08  Bruno Haible  <bruno@clisp.org>
655
656         pthread_sigmask tests: Avoid a compiler warning.
657         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
658         non-zero.
659
660         sigprocmask tests: A better way to avoid a compiler warning.
661         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
662         (main): Complain if system() returns non-zero.
663         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
664
665 2011-07-08  Bruno Haible  <bruno@clisp.org>
666
667         pthread_sigmask: Work around IRIX bug.
668         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
669         bug.
670         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
671         there may be unblocked pending signals.
672         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
673
674 2011-07-08  Bruno Haible  <bruno@clisp.org>
675
676         pthread_sigmask: Work around Cygwin bug.
677         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
678         bug.
679         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
680         the system's pthread_sigmask function.
681         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
682
683 2011-07-08  Bruno Haible  <bruno@clisp.org>
684
685         pthread_sigmask: Work around bug in single-threaded implementation.
686         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
687         FreeBSD, HP-UX, Solaris bug.
688         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
689         * lib/pthread_sigmask.c: Include <stddef.h>.
690         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
691         the system's pthread_sigmask function.
692         * modules/pthread_sigmask (configure.ac): Invoke
693         gl_PREREQ_PTHREAD_SIGMASK.
694         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
695         HP-UX, Solaris.
696
697 2011-07-08  Eric Blake  <eblake@redhat.com>
698
699         test-sigprocmask: avoid compiler warning
700         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
701         * tests/test-sigprocmask.c (main): Use it to silence warning.
702         Reported by Jim Meyering.
703
704         test-snprintf: avoid compiler warning
705         * tests/test-snprintf.c (main): Avoid shadowed declaration.
706         * tests/test-vsnprintf.c (main): Likewise.
707         Reported by Jim Meyering.
708
709 2011-07-08  Bruno Haible  <bruno@clisp.org>
710
711         Tests for module 'pthread_sigmask'.
712         * modules/pthread_sigmask-tests: New file.
713         * tests/test-pthread_sigmask1.c: New file, based on
714         tests/test-sigprocmask.c.
715         * tests/test-pthread_sigmask2.c: New file.
716
717 2011-07-08  Jim Meyering  <meyering@redhat.com>
718
719         test-getopt.h: avoid warning about an unused variable
720         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
721
722 2011-07-07  Jim Meyering  <meyering@redhat.com>
723
724         maint: reduce list of files exempt from sc_prohibit_leading_TABs
725         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
726         now that it no longer contains leading TABs.
727         Remove unused "url=FIXME" statement.
728
729 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
730
731         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
732         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
733         When gl_THREADLIB is not in use, assume that the POSIX sematics
734         are desired.  This is better for Emacs, which uses POSIX semantics
735         on GNUish and/or POSIXish platforms, and does not use threads at
736         all otherwise.
737
738         pthread_sigmask: fix typo when testing for libraries
739         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
740         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
741
742 2011-07-08  Eric Blake  <eblake@redhat.com>
743
744         fts: introduce FTS_NOATIME
745         * lib/fts_.h (FTS_NOATIME): New bit flag.
746         (FTS_OPTIONMASK): Adjust.
747         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
748         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
749
750 2011-07-08  Bruno Haible  <bruno@clisp.org>
751
752         Tests for module 'thread'.
753         * modules/thread-tests: New file.
754         * tests/test-thread_self.c: New file.
755         * tests/test-thread_create.cc: New file.
756
757 2011-07-08  Bruno Haible  <bruno@clisp.org>
758
759         thread: Avoid gcc warnings when using gl_thread_self().
760         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
761         'void *'.
762         (gl_thread_self_pointer): Update.
763
764 2011-07-07  Bruno Haible  <bruno@clisp.org>
765
766         signal-c++-tests: Check declaration of pthread_sigmask.
767         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
768         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
769         $(LIB_PTHREAD_SIGMASK).
770
771 2011-07-07  Bruno Haible  <bruno@clisp.org>
772
773         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
774         * lib/signal.in.h (pthread_sigmask): Override if
775         REPLACE_PTHREAD_SIGMASK is 1.
776         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
777         REPLACE_PTHREAD_SIGMASK.
778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
779         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
780         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
781         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
782         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
783
784 2011-07-07  Bruno Haible  <bruno@clisp.org>
785
786         pthread_sigmask: Ensure declaration in <signal.h>.
787         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
788         include <pthread.h>.
789         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
790         problem.
791
792 2011-07-07  Bruno Haible  <bruno@clisp.org>
793
794         pthread_sigmask: Document the module.
795         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
796
797 2011-07-07  Bruno Haible  <bruno@clisp.org>
798
799         pthread_sigmask: Follow gnulib conventions.
800         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
801         gl_PTHREAD_SIGMASK.
802         * modules/pthread_sigmask (configure.ac): Update.
803
804 2011-07-07  Bruno Haible  <bruno@clisp.org>
805
806         pthread_sigmask: Make declaration C++ safe.
807         * lib/signal.in.h: In two special conditions, just do an #include_next.
808         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
809         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
810         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
811         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
812         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
813         not REPLACE_PTHREAD_MASK.
814         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
815         not REPLACE_PTHREAD_MASK.
816         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
817
818 2011-07-07  Bruno Haible  <bruno@clisp.org>
819
820         pthread_sigmask: Fix return value.
821         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
822         * lib/pthread_sigmask.c: New file.
823         * modules/pthread_sigmask (Files): Add it.
824         (configure.ac): Invoke AC_LIBOBJ.
825
826 2011-07-07  Eric Blake  <eblake@redhat.com>
827
828         getopt: more portable argv creation
829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
830         const, use char arrays rather than strings.
831         Suggested by Paul Eggert.
832
833 2011-07-07  Bruno Haible  <bruno@clisp.org>
834
835         Tests for module 'sigprocmask'.
836         * modules/sigprocmask-tests: New file.
837         * tests/test-sigprocmask.c: New file.
838
839 2011-07-07  Bruno Haible  <bruno@clisp.org>
840
841         float tests: Tweak.
842         * tests/test-float.c (main): Tweak skip message.
843
844 2011-07-07  Eric Blake  <eblake@redhat.com>
845
846         getopt: avoid compiler warning during configure
847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
848         assigning string literals to non-const pointer.
849
850         getopt-gnu: avoid crash in glibc getopt
851         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
852         * tests/test-getopt.h (test_getopt): Enhance test.
853         * tests/test-getopt_long.h (test_getopt_long): Likewise.
854         * doc/posix-functions/getopt.texi (getopt): Document it.
855         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
856         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
857         Likewise.
858
859 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
860
861         getopt: handle W; without long options in getopt [BZ #12922]
862         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
863         but no long options are defined, just return 'W'.
864
865 2011-07-07  Bruno Haible  <bruno@clisp.org>
866
867         Avoid literal tabs.
868         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
869         variable containing a tab instead of a literal tab.
870         Reported by Jim Meyering.
871
872 2011-07-07  Bruno Haible  <bruno@clisp.org>
873
874         Comments.
875         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
876
877 2011-07-06  Bruno Haible  <bruno@clisp.org>
878
879         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
880         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
881         <winsock2.h>.
882         (rpl_fd_isset, FD_ISSET): New definitions, copied from
883         lib/sys_socket.in.h.
884         (close, gethostname): Hide declarations from <winsock2.h>.
885         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
886         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
887         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
888         (select): Don't override if gnulib's <sys/select.h> was already
889         included.
890         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
891         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
892         setsockopt, shutdown, select): Tweak indentation.
893
894 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
895
896         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
897         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
898         in an application that does not use the sys_select module.
899
900 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
901
902         poll: do not return 0 on timeout=-1
903         * lib/poll.c: Loop with yield if no events occured
904
905 2011-07-06  Eric Blake  <eblake@redhat.com>
906
907         pthread_sigmask: always replace when not using pthread
908         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
909         replacement when using some threading other than pthread.  Fix
910         logic bug.
911
912 2011-07-06  Bruno Haible  <bruno@clisp.org>
913
914         Comments.
915         * m4/printf.m4: Update comments about mingw.
916
917 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
918
919         sys_select: define sigset_t more portably
920         * lib/sys_select.in.h: Always include <sys/types.h>, since
921         we now need sigset_t and mingw defines it there.
922         Include <signal.h> before split inclusion guard, to avoid
923         mishaps on Solaris, whose <signal.h> eventually includes us.
924         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
925         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
926         which come from ...
927         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
928         gl_CHECK_TYPE_SIGSET_T.
929         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
930         does the real work.
931         * modules/sys_select (Depends-on): Add 'signal'.
932
933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
934         Suggested by Bruno Haible.
935
936         pselect: Use pthread_sigmask, not sigprocmask.
937         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
938         multithreaded apps better than sigprocmask does.
939         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
940         sigprocmask directly.
941
942 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
943
944         * lib/pselect.c (pselect): Use plain name, without "rpl_".
945         Don't #undef,  since we don't need any underlying pselect.
946         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
947         (Depends-on): Add select.
948         (Link): Add $(LIBSOCKET).
949         These changes suggested by Bruno Haible.
950
951         pselect: document better
952         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
953         * doc/posix-functions/pselect.texi (pselect): Document new module.
954
955         pthread_sigmask: new module
956         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
957         * doc/posix-functions/pthread_sigmask.texi: Document new module.
958         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
959         This is done only as a macro; I don't know how well that'll
960         work for C++.  Move <sys/types.h> include before the include_next,
961         to avoid mishap on Solaris.
962         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
963         * modules/signal (Makefile.am): Substitute the check's results.
964         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
965
966         test-pselect: new module
967         * modules/pselect-tests, tests/test-pselect.c: New files.
968         * tests/test-select.c, tests/test-sys_select-c++.cc:
969         If TEST_PSELECT is defined, test pselect instead of testing select.
970
971         * tests/test-sys_select.c (sigset_t): Test for it, too.
972         Suggested by Bruno Haible.
973
974 2011-07-05  Eric Blake  <eblake@redhat.com>
975
976         snprintf: guarantee %1$d, for libintl
977         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
978         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
979         * doc/posix-functions/snprintf.texi (snprintf): Update.
980         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
981         * tests/test-snprintf.c (main): Enhance test.
982         * tests/test-vsnprintf.c (main): Likewise.
983
984 2011-07-05  Jim Meyering  <meyering@redhat.com>
985
986         maint: exempt stdio-read.c and stdio-write.c from the cppi check
987         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
988         per Bruno's request, to accommodate this idiom (no space after "#")
989         even when the function is inside an #if block:
990         char *
991         gets (char *s)
992         #undef gets
993         {
994           ...
995         }
996
997 2011-07-04  Jim Meyering  <meyering@redhat.com>
998
999         maint: indent with spaces, not TABs, and add a rule to check this
1000         * tests/test-userspec.c: Indent with spaces, not TABs.
1001         * tests/test-argp.c: Likewise.
1002         * tests/test-c-stack2.sh: Likewise.
1003         * tests/test-parse-duration.sh: Likewise
1004         * m4/strtod.m4: Likewise.
1005         * m4/alloca.m4: Likewise.
1006         * m4/pselect.m4: Likewise.
1007         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1008
1009 2011-07-03  Jim Meyering  <meyering@redhat.com>
1010
1011         maint.mk: correct omissions in prohibit_argmatch_without_use check
1012         This rule would mistakenly report that argmatch.h is included without
1013         use even when both the argmatch and invalid_arg macro were used.
1014         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1015         of argmatch and invalid_arg.
1016
1017 2011-07-03  Bruno Haible  <bruno@clisp.org>
1018
1019         Comments about EINTR.
1020         * lib/safe-read.h: Explain the purpose of this module.
1021         * lib/safe-write.h: Likewise.
1022         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1023         module.
1024         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1025         module.
1026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1027
1028 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1029
1030         xnanosleep: Rewrite to use new dtotimespec module.
1031         It has the conversion code that used to be in xnanosleep.
1032         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1033         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1034         (TIME_T_MAX): Remove.
1035         (xnanosleep): Rewrite in terms of dtotimespec.
1036         * modules/xnanosleep (Depends-on): Add dtotimespec.
1037         Remove intprops, stdbool.
1038
1039         timespec-add, timespec-sub: new modules
1040         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1041         * lib/timespec-add.c, lib/timespec-sub.c:
1042         * modules/timespec-add, modules/timespec-sub: New files.
1043
1044         dtotimespec: new module
1045         * lib/timespec.h (dtotimespec): New decl.
1046         * lib/dtotimespec.c, modules/dtotimespec: New files.
1047
1048         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1049
1050         pselect: new module
1051         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1052         (pselect): New decls.
1053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1054         since the standard pselect decl uses 'restrict'.
1055         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1056         HAVE_PSELECT, REPLACE_PSELECT.
1057         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1058         HAVE_PSELECT, REPLACE_PSELECT.
1059         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1060
1061         sys_select: don't depend on sys_socket
1062         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1064         This fix works on GNU and GNU-like platforms, but has not been tested
1065         on native Windows.
1066         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1068         gl_HEADER_SYS_SOCKET.
1069         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1070         gl_PREREQ_SYS_H_WINSOCK2.
1071
1072 2011-06-29  Eric Blake  <eblake@redhat.com>
1073
1074         pipe2: fix C89 compile problem
1075         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1076         Reported by Bruno Haible.
1077
1078         pipe, pipe2: don't corrupt fd on error
1079         * lib/pipe.c (pipe): Leave fd unchanged on error.
1080         * lib/pipe2.c (pipe2): Likewise.
1081         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1082         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1083
1084 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1085
1086         mmap-anon: do not use regular expressions inadvertently
1087         * m4/mmap-anon.m4: Remove trailing period from strings sought
1088         in the output.
1089
1090 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1091
1092         nanosleep: fix integer overflow problem
1093         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1094         arithmetic wraps around on overflow.
1095
1096         nanosleep: simplify carrying
1097         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1098         first call to the underyling nanosleep, not for the last one.
1099         This doesn't fix any bugs, but it simplifies the computation of
1100         the remaining delay.  Found while auditing integer overflow issues.
1101
1102         dup2: remove test for existence of fcntl
1103         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1104         "#if HAVE_FCNTL", in the configure-time test program.
1105         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1106         and therefore speeds up "configure" a bit.  Found while
1107         adding the dup2 module to Emacs.
1108
1109 2011-06-24  Eric Blake  <eblake@redhat.com>
1110
1111         maint.mk: enhance useless header checks
1112         * top/maint.mk (_sc_header_without_use): Check both include
1113         styles.
1114         (sc_prohibit_assert_without_use)
1115         (sc_prohibit_close_stream_without_use)
1116         (sc_prohibit_getopt_without_use)
1117         (sc_prohibit_quotearg_without_use)
1118         (sc_prohibit_quote_without_use)
1119         (sc_prohibit_long_options_without_use)
1120         (sc_prohibit_inttostr_without_use)
1121         (sc_prohibit_ignore_value_without_use)
1122         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1123         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1124         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1125         (sc_prohibit_hash_pjw_without_use)
1126         (sc_prohibit_safe_read_without_use)
1127         (sc_prohibit_argmatch_without_use)
1128         (sc_prohibit_canonicalize_without_use)
1129         (sc_prohibit_root_dev_ino_without_use)
1130         (sc_prohibit_openat_without_use)
1131         (sc_prohibit_c_ctype_without_use)
1132         (sc_prohibit_signal_without_use)
1133         (sc_prohibit_stdio--_without_use)
1134         (sc_prohibit_stdio-safer_without_use)
1135         (sc_prohibit_strings_without_use)
1136         (sc_prohibit_intprops_without_use)
1137         (sc_prohibit_stddef_without_use)
1138         (sc_prohibit_xfreopen_without_use): Update clients.
1139
1140 2011-06-24  Jim Meyering  <meyering@redhat.com>
1141
1142         syntax-check: keep one maint.mk rule in sync with its header
1143         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1144         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1145         I prefer to avoid temporary files here, so use <(...), but that
1146         is not supported by /bin/sh, so...
1147         (SHELL): Define to /bin/bash.
1148
1149 2011-06-24  Eric Blake  <eblake@redhat.com>
1150
1151         maint.mk: update sc_prohibit_intprops_without_use
1152         * top/maint.mk (_intprops_names): Match recent changes.
1153
1154 2011-06-24  Bruno Haible  <bruno@clisp.org>
1155
1156         strerror-override: No-op tweak.
1157         * lib/strerror-override.h (strerror_override): Reorder conditions,
1158         for consistency with lib/strerror-override.c.
1159
1160 2011-06-23  Eric Blake  <eblake@redhat.com>
1161
1162         maint.mk: test further PATH_MAX issues
1163         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1164         (sc_prohibit_path_max_allocation): ...and also test alloca.
1165         Suggested by Jim Meyering.
1166
1167 2011-06-22  Eric Blake  <eblake@redhat.com>
1168
1169         maint.mk: add syntax-check to avoid char[PATH_MAX]
1170         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1171
1172         stat: be robust to PATH_MAX definition
1173         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1174         * modules/stat (Depends-on): Add verify.
1175
1176         link: work around IRIX bug
1177         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1178         * lib/link.c (rpl_link): Work around it.
1179         * tests/test-link.h (test_link): Enhance test.
1180         * doc/posix-functions/link.texi (link): Document the bug.
1181
1182         getopt: silence clang warning
1183         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1184         dereference.
1185         Reported by Gustavo Martin Domato.
1186
1187 2011-06-22  Jim Meyering  <meyering@redhat.com>
1188
1189         bootstrap: do not insert a blank line into each .gitignore file
1190         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1191
1192 2011-06-21  Eric Blake  <eblake@redhat.com>
1193
1194         perror: test for output mismatch
1195         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1196         perror on IRIX.
1197
1198         strerror_r: fix OpenBSD behavior on out-of-range
1199         * lib/strerror_r.c (strerror_r): Always use maximal string.
1200         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1201
1202         strerror_r: fix OpenBSD behavior on 0
1203         * lib/strerror-override.c (strerror_override): Also override 0
1204         when needed.
1205         * lib/strerror-override.h (strerror_override): Likewise.
1206         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1207         earlier.
1208         * lib/strerror_r.c (strerror_r): Likewise.
1209         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1210         behavior...
1211         (gl_FUNC_STRERROR_0): ...into new macro.
1212         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1213         is overridden.
1214         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1215         * modules/strerror-override (Files): Add strerror.m4.
1216         (configure.ac): Also provide override for 0 when needed.
1217         * doc/posix-functions/strerror.texi (strerror): Document this.
1218         * doc/posix-functions/perror.texi (perror): Likewise.
1219
1220         perror: adjust array size
1221         * modules/perror (Depends-on): Add strerror-override.
1222         * lib/perror.c (perror): Use it to avoid magic number.
1223
1224         strerror-override: reduce size
1225         * lib/strerror-override.c (strerror_override): Use fewer lines.
1226
1227 2011-06-20  Bruno Haible  <bruno@clisp.org>
1228
1229         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1230         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1231
1232 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         alloca: port to compilers that can optimize like GCC 4.6.0
1235         * lib/alloca.c (find_stack_direction): New signature, taken from
1236         Autoconf git.  This works with GCC 4.6.0.  This code should never
1237         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1238         be used with other compilers that optimize as well as GCC 4.6.0 does.
1239         (alloca): Adjust to new signature.
1240         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1241         New macro, which patches Autoconf in a similar way.
1242
1243         c-stack: stop worrying about stack direction
1244         * lib/c-stack.c (find_stack_direction): Remove.
1245         (segv_handler): Don't worry about stack direction growth, as it's
1246         too much of a pain to configure this correctly, given how compilers
1247         are optimizing-away our stack-growth detection code.  Instead, assume
1248         that any access to just before or just after the stack is OK.
1249         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1250         Don't require AC_FUNC_ALLOCA; no longer needed.
1251
1252 2011-06-20  Eric Blake  <eblake@redhat.com>
1253
1254         test-stat: don't allocate PATH_MAX bytes
1255         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1256         PATH_MAX-sized buffer.
1257         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1258         * modules/stat-tests (Depends-on): Likewise.
1259         * tests/test-fstatat.c (includes): Drop pathmax.h.
1260         * tests/test-stat.c (includes): Likewise.
1261         Reported by Bruno Haible.
1262
1263 2011-06-20  Bruno Haible  <bruno@clisp.org>
1264
1265         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1266         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1267         * lib/float.c: New file.
1268         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1269         REPLACE_FLOAT_LDBL.
1270         * modules/float (Files): Add lib/float.c.
1271         (configure.ac): Invoke AC_LIBOBJ.
1272         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1273
1274 2011-06-20  Bruno Haible  <bruno@clisp.org>
1275
1276         Tests for module 'float'.
1277         * modules/float-tests: New file.
1278         * tests/test-float.c: New file.
1279
1280 2011-06-19  Bruno Haible  <bruno@clisp.org>
1281
1282         isinf: Coding style.
1283         * lib/isinf.c: Use GNU coding style.
1284
1285 2011-06-19  Bruno Haible  <bruno@clisp.org>
1286
1287         linkat test: Avoid test failure on AIX 7.1.
1288         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1289         * tests/test-link.h (test_link): Likewise.
1290
1291 2011-06-19  Bruno Haible  <bruno@clisp.org>
1292
1293         pread test: Avoid test failure on OpenBSD 4.9.
1294         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1295
1296 2011-06-19  Bruno Haible  <bruno@clisp.org>
1297
1298         sprintf-posix: Fix test failure on AIX 7.1.
1299         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1300         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1301         on AIX.
1302         * doc/posix-functions/fprintf.texi: Likewise.
1303         * doc/posix-functions/printf.texi: Likewise.
1304         * doc/posix-functions/snprintf.texi: Likewise.
1305         * doc/posix-functions/sprintf.texi: Likewise.
1306         * doc/posix-functions/vdprintf.texi: Likewise.
1307         * doc/posix-functions/vfprintf.texi: Likewise.
1308         * doc/posix-functions/vprintf.texi: Likewise.
1309         * doc/posix-functions/vsnprintf.texi: Likewise.
1310         * doc/posix-functions/vsprintf.texi: Likewise.
1311
1312 2011-06-19  Bruno Haible  <bruno@clisp.org>
1313
1314         roundl-ieee: Fix test failure on AIX 7.1.
1315         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1316         * doc/posix-functions/roundl.texi: Mention problem with negative
1317         arguments.
1318
1319 2011-06-19  Bruno Haible  <bruno@clisp.org>
1320
1321         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1322         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1323         * doc/posix-functions/round.texi: Mention problem with negative
1324         arguments.
1325         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1326
1327 2011-06-19  Bruno Haible  <bruno@clisp.org>
1328
1329         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1330         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1331         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1332         * doc/posix-functions/roundf.texi: Mention problem with negative
1333         arguments.
1334         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1335
1336 2011-06-19  Bruno Haible  <bruno@clisp.org>
1337
1338         ceilf-ieee: Work around bug on MacOS X 10.5.
1339         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1340
1341         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1342         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1343         IEEE compliant, avoid compiler optimizations.
1344         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1345         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1346         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1347         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1348         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1349         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1350         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1351         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1352         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1354
1355 2011-06-19  Bruno Haible  <bruno@clisp.org>
1356
1357         ceilf-ieee: Work around bug on AIX 7.1.
1358         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1359         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1360
1361 2011-06-19  Bruno Haible  <bruno@clisp.org>
1362
1363         ceil-ieee: Work around bug on AIX 7.1.
1364         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1365         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1366
1367 2011-06-18  Bruno Haible  <bruno@clisp.org>
1368
1369         fsync test: Avoid test failure on MacOS X and AIX.
1370         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1371         EINVAL.
1372
1373 2011-06-18  Bruno Haible  <bruno@clisp.org>
1374
1375         openat, fdopendir tests: Fix link errors.
1376         * modules/openat-tests (Depends-on): Add progname.
1377         * modules/fdopendir-tests (Depends-on): Likewise.
1378         * tests/test-fchownat.c: Include progname.h.
1379         (main): Call set_program_name.
1380         * tests/test-fstatat.c: Include progname.h.
1381         (main): Call set_program_name.
1382         * tests/test-mkdirat.c: Include progname.h.
1383         (main): Call set_program_name.
1384         * tests/test-openat.c: Include progname.h.
1385         (main): Call set_program_name.
1386         * tests/test-unlinkat.c: Include progname.h.
1387         (main): Call set_program_name.
1388         * tests/test-fdopendir.c: Include progname.h.
1389         (main): Call set_program_name.
1390
1391 2011-06-18  Bruno Haible  <bruno@clisp.org>
1392
1393         Doc update.
1394         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1395         HP-UX.
1396         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1397
1398 2011-06-18  Bruno Haible  <bruno@clisp.org>
1399
1400         getcwd tests: Avoid compilation error on HP-UX 11.31.
1401         * modules/getcwd-tests (Depends-on): Add pathmax.
1402         * tests/test-getcwd.c: Include pathmax.h.
1403
1404 2011-06-18  Bruno Haible  <bruno@clisp.org>
1405
1406         isfinite, isinf: Fix link error on AIX 6 and 7.
1407         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1408         needed, also test the macro with a 'float' argument.
1409         * m4/isinf.m4 (gl_ISINF): Likewise.
1410
1411 2011-06-18  Bruno Haible  <bruno@clisp.org>
1412
1413         getloadavg: Don't clobber LIBS. Regression from previous commit.
1414         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1415         AC_CHECK_LIB from here...
1416         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1417         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1418         gl_func_getloadavg_done.
1419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1420
1421 2011-06-18  Bruno Haible  <bruno@clisp.org>
1422
1423         clean-temp: Improve documentation.
1424         * lib/clean-temp.h: Explain better how to use this module.
1425         Reported by John Darrington <john@darrington.wattle.id.au>.
1426
1427 2011-06-17  Bruno Haible  <bruno@clisp.org>
1428
1429         pread, pwrite: Avoid cc warning on AIX.
1430         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1431         (pwrite): Likewise.
1432
1433 2011-06-17  Bruno Haible  <bruno@clisp.org>
1434
1435         spawn-pipe tests: Fix link error.
1436         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1438
1439 2011-06-17  Bruno Haible  <bruno@clisp.org>
1440
1441         Tests: Remove unnecessary dependency.
1442         * modules/canonicalize-tests (Depends-on): Remove progname.
1443         * modules/chown-tests (Depends-on): Likewise.
1444         * modules/dirname-tests (Depends-on): Likewise.
1445         * modules/fdopendir-tests (Depends-on): Likewise.
1446         * modules/fdutimensat-tests (Depends-on): Likewise.
1447         * modules/hash-tests (Depends-on): Likewise.
1448         * modules/lchown-tests (Depends-on): Likewise.
1449         * modules/linkat-tests (Depends-on): Likewise.
1450         * modules/renameat-tests (Depends-on): Likewise.
1451         * modules/spawn-pipe-tests (Depends-on): Likewise.
1452         * modules/utimensat-tests (Depends-on): Likewise.
1453
1454 2011-06-17  Bruno Haible  <bruno@clisp.org>
1455
1456         spawn-pipe tests: Fix link error.
1457         * tests/test-spawn-pipe-child.c: Undefine fflush.
1458
1459 2011-06-17  Bruno Haible  <bruno@clisp.org>
1460
1461         Fix tests link errors.
1462         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1463         * modules/chown-tests (Makefile.am): Don't link test-chown with
1464         LIBINTL.
1465         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1466         LIBINTL.
1467         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1468         LIBINTL.
1469         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1470         LIBINTL.
1471
1472 2011-06-16  Bruno Haible  <bruno@clisp.org>
1473
1474         crypto/gc-sha1: Fix recent regression.
1475         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1476         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1477
1478         crypto/gc-md5: Fix recent regression.
1479         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1480
1481         crypto/gc-md4: Fix recent regression.
1482         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1483         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1484
1485         crypto/gc-arctwo: Fix recent regression.
1486         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1487         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1488
1489         crypto/gc-rijndael: Fix recent regression.
1490         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1491         (configure.ac): Invoke AC_LIBOBJ here.
1492         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1494
1495         crypto/gc-hmac-sha1: Fix recent regression.
1496         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1497         (configure.ac): Invoke AC_LIBOBJ here.
1498         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1500
1501         crypto/gc-hmac-md5: Fix recent regression.
1502         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1503         (configure.ac): Invoke AC_LIBOBJ here.
1504         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1506
1507         crypto/gc-des: Fix recent regression.
1508         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1509         (configure.ac): Invoke AC_LIBOBJ here.
1510         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1512
1513         crypto/gc-arcfour: Fix recent regression.
1514         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1515         (configure.ac): Invoke AC_LIBOBJ here.
1516         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1518
1519 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1520
1521         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1522         After the 2011-05-21 change, this macro requires
1523         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1524         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1525
1526 2011-06-16  Bruno Haible  <bruno@clisp.org>
1527
1528         fprintftime: Move AC_LIBOBJ invocations to module description.
1529         * m4/fprintftime.m4: Remove file.
1530         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1531         (configure.ac): Remove gl_FPRINTFTIME call.
1532         (Makefile.am): Augment lib_SOURCES.
1533         Reported by Jim Meyering.
1534
1535 2011-06-16  Bruno Haible  <bruno@clisp.org>
1536
1537         tmpfile-safer: Finish 2011-05-23 commit.
1538         * m4/stdio-safer.m4: Really remove file.
1539         Reported by Jim Meyering.
1540
1541 2011-06-16  Bruno Haible  <bruno@clisp.org>
1542
1543         syntax-check: Fix typo.
1544         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1545         printf-posix.m4.
1546         Reported by Jim Meyering.
1547
1548 2011-06-13  Jim Meyering  <meyering@redhat.com>
1549
1550         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1551         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1552
1553 2011-05-23  Bruno Haible  <bruno@clisp.org>
1554
1555         yesno: Move AC_LIBOBJ invocations to module description.
1556         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1557         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1558
1559 2011-05-23  Bruno Haible  <bruno@clisp.org>
1560
1561         xstrtol: Move AC_LIBOBJ invocations to module description.
1562         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1563         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1564
1565 2011-05-23  Bruno Haible  <bruno@clisp.org>
1566
1567         xstrtold: Move AC_LIBOBJ invocations to module description.
1568         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1569         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1570
1571 2011-05-23  Bruno Haible  <bruno@clisp.org>
1572
1573         xstrtod: Move AC_LIBOBJ invocations to module description.
1574         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1575         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1576
1577 2011-05-23  Bruno Haible  <bruno@clisp.org>
1578
1579         xnanosleep: Move AC_LIBOBJ invocations to module description.
1580         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1581         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1582
1583 2011-05-23  Bruno Haible  <bruno@clisp.org>
1584
1585         xgetcwd: Move AC_LIBOBJ invocations to module description.
1586         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1587         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1588
1589 2011-05-23  Bruno Haible  <bruno@clisp.org>
1590
1591         xalloc: Move AC_LIBOBJ invocations to module description.
1592         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1593         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1594
1595 2011-05-23  Bruno Haible  <bruno@clisp.org>
1596
1597         write-any-file: Move AC_LIBOBJ invocations to module description.
1598         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1599         invocation.
1600         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1601
1602 2011-05-23  Bruno Haible  <bruno@clisp.org>
1603
1604         utimens: Move AC_LIBOBJ invocations to module description.
1605         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1606         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1607
1608 2011-05-23  Bruno Haible  <bruno@clisp.org>
1609
1610         utimecmp: Move AC_LIBOBJ invocations to module description.
1611         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1612         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1613
1614 2011-05-23  Bruno Haible  <bruno@clisp.org>
1615
1616         userspec: Move AC_LIBOBJ invocations to module description.
1617         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1618         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1619
1620 2011-05-23  Bruno Haible  <bruno@clisp.org>
1621
1622         unlinkdir: Move AC_LIBOBJ invocations to module description.
1623         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1624         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1625
1626 2011-05-23  Bruno Haible  <bruno@clisp.org>
1627
1628         unistd-safer: Move AC_LIBOBJ invocations to module description.
1629         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1630         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1631
1632 2011-05-23  Bruno Haible  <bruno@clisp.org>
1633
1634         tempname: Move AC_LIBOBJ invocations to module description.
1635         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1636         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1637
1638 2011-05-23  Bruno Haible  <bruno@clisp.org>
1639
1640         strftime: Move AC_LIBOBJ invocations to module description.
1641         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1642         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1643
1644 2011-05-23  Bruno Haible  <bruno@clisp.org>
1645
1646         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1647         * m4/stdlib-safer.m4: Remove file.
1648         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1649         (configure.ac): Remove gl_STDLIB_SAFER call.
1650         (Makefile.am): Augment lib_SOURCES.
1651
1652 2011-05-23  Bruno Haible  <bruno@clisp.org>
1653
1654         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1655         * m4/stdio-safer.m4: Remove file.
1656         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1657         (configure.ac): Remove gl_TMPFILE_SAFER call.
1658         (Makefile.am): Augment lib_SOURCES.
1659
1660 2011-05-23  Bruno Haible  <bruno@clisp.org>
1661
1662         popen-safer: Move AC_LIBOBJ invocations to module description.
1663         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1664         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1665         (configure.ac): Remove gl_POPEN_SAFER call.
1666         (Makefile.am): Augment lib_SOURCES.
1667
1668 2011-05-23  Bruno Haible  <bruno@clisp.org>
1669
1670         freopen-safer: Move AC_LIBOBJ invocations to module description.
1671         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1672         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1673         (configure.ac): Remove gl_FREOPEN_SAFER call.
1674         (Makefile.am): Augment lib_SOURCES.
1675
1676 2011-05-23  Bruno Haible  <bruno@clisp.org>
1677
1678         fopen-safer: Move AC_LIBOBJ invocations to module description.
1679         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1680         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1681         (configure.ac): Remove gl_FOPEN_SAFER call.
1682         (Makefile.am): Augment lib_SOURCES.
1683
1684 2011-05-23  Bruno Haible  <bruno@clisp.org>
1685
1686         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1687         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1688         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1689
1690 2011-05-23  Bruno Haible  <bruno@clisp.org>
1691
1692         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1693         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1694         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1695
1696 2011-05-23  Bruno Haible  <bruno@clisp.org>
1697
1698         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1699         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1700         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1701
1702 2011-05-23  Bruno Haible  <bruno@clisp.org>
1703
1704         settime: Move AC_LIBOBJ invocations to module description.
1705         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1706         * modules/settime (Makefile.am): Augment lib_SOURCES.
1707
1708 2011-05-23  Bruno Haible  <bruno@clisp.org>
1709
1710         savedir: Move AC_LIBOBJ invocations to module description.
1711         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1712         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1713
1714 2011-05-23  Bruno Haible  <bruno@clisp.org>
1715
1716         save-cwd: Move AC_LIBOBJ invocations to module description.
1717         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1718         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1719
1720 2011-05-23  Bruno Haible  <bruno@clisp.org>
1721
1722         same: Move AC_LIBOBJ invocations to module description.
1723         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1724         * modules/same (Makefile.am): Augment lib_SOURCES.
1725
1726 2011-05-23  Bruno Haible  <bruno@clisp.org>
1727
1728         safe-write: Move AC_LIBOBJ invocations to module description.
1729         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1730         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1731         instead of gl_SAFE_WRITE.
1732         (Makefile.am): Augment lib_SOURCES.
1733
1734 2011-05-23  Bruno Haible  <bruno@clisp.org>
1735
1736         safe-read: Move AC_LIBOBJ invocations to module description.
1737         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1738         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1739         of gl_SAFE_READ.
1740         (Makefile.am): Augment lib_SOURCES.
1741
1742 2011-05-23  Bruno Haible  <bruno@clisp.org>
1743
1744         safe-alloc: Move AC_LIBOBJ invocations to module description.
1745         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1746         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1747
1748 2011-05-23  Bruno Haible  <bruno@clisp.org>
1749
1750         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1751         * m4/rijndael.m4: Remove file.
1752         * modules/crypto/rijndael (Files): Remove it.
1753         (configure.ac): Remove gl_RIJNDAEL call.
1754         (Makefile.am): Augment lib_SOURCES.
1755
1756 2011-05-23  Bruno Haible  <bruno@clisp.org>
1757
1758         readtokens: Move AC_LIBOBJ invocations to module description.
1759         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1760         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1761
1762 2011-05-23  Bruno Haible  <bruno@clisp.org>
1763
1764         read-file: Move AC_LIBOBJ invocations to module description.
1765         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1766         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1767         of gl_FUNC_READ_FILE.
1768         (Makefile.am): Augment lib_SOURCES.
1769
1770 2011-05-23  Bruno Haible  <bruno@clisp.org>
1771
1772         quotearg: Move AC_LIBOBJ invocations to module description.
1773         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1774         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1775
1776 2011-05-23  Bruno Haible  <bruno@clisp.org>
1777
1778         quote: Move AC_LIBOBJ invocations to module description.
1779         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1780         * modules/quote (Makefile.am): Augment lib_SOURCES.
1781
1782 2011-05-23  Bruno Haible  <bruno@clisp.org>
1783
1784         posixver: Move AC_LIBOBJ invocations to module description.
1785         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1786         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1787
1788 2011-05-23  Bruno Haible  <bruno@clisp.org>
1789
1790         posixtm: Move AC_LIBOBJ invocations to module description.
1791         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1792         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1793
1794 2011-05-23  Bruno Haible  <bruno@clisp.org>
1795
1796         physmem: Move AC_LIBOBJ invocations to module description.
1797         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1798         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1799
1800 2011-05-23  Bruno Haible  <bruno@clisp.org>
1801
1802         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1803         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1804         invocation.
1805         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1806
1807 2011-05-23  Bruno Haible  <bruno@clisp.org>
1808
1809         mpsort: Move AC_LIBOBJ invocations to module description.
1810         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1811         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1812
1813 2011-05-23  Bruno Haible  <bruno@clisp.org>
1814
1815         modechange: Move AC_LIBOBJ invocations to module description.
1816         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1817         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1818
1819 2011-05-23  Bruno Haible  <bruno@clisp.org>
1820
1821         mkdir-p: Move AC_LIBOBJ invocations to module description.
1822         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1823         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1824
1825 2011-05-23  Bruno Haible  <bruno@clisp.org>
1826
1827         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1828         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1829         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1830
1831 2011-05-23  Bruno Haible  <bruno@clisp.org>
1832
1833         mgetgroups: Move AC_LIBOBJ invocations to module description.
1834         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1835         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1836
1837 2011-05-23  Bruno Haible  <bruno@clisp.org>
1838
1839         memxor: Move AC_LIBOBJ invocations to module description.
1840         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1841         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1842
1843 2011-05-23  Bruno Haible  <bruno@clisp.org>
1844
1845         memcoll: Move AC_LIBOBJ invocations to module description.
1846         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1847         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1848
1849 2011-05-23  Bruno Haible  <bruno@clisp.org>
1850
1851         memcasecmp: Move AC_LIBOBJ invocations to module description.
1852         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1853         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1854
1855 2011-05-23  Bruno Haible  <bruno@clisp.org>
1856
1857         crypto/md5: Move AC_LIBOBJ invocations to module description.
1858         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1859         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1860
1861 2011-05-23  Bruno Haible  <bruno@clisp.org>
1862
1863         crypto/md4: Move AC_LIBOBJ invocations to module description.
1864         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1865         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1866
1867 2011-05-23  Bruno Haible  <bruno@clisp.org>
1868
1869         crypto/md2: Move AC_LIBOBJ invocations to module description.
1870         * m4/md2.m4: Remove file.
1871         * modules/crypto/md2 (Files): Remove it.
1872         (configure.ac): Remove gl_MD2 call.
1873         (Makefile.am): Augment lib_SOURCES.
1874
1875 2011-05-23  Bruno Haible  <bruno@clisp.org>
1876
1877         long-options: Move AC_LIBOBJ invocations to module description.
1878         * m4/long-options.m4: Remove file.
1879         * modules/long-options (Files): Remove it.
1880         (configure.ac): Remove gl_LONG_OPTIONS call.
1881         (Makefile.am): Augment lib_SOURCES.
1882
1883 2011-05-23  Bruno Haible  <bruno@clisp.org>
1884
1885         i-ring: Move AC_LIBOBJ invocations to module description.
1886         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1887         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1888
1889 2011-05-23  Bruno Haible  <bruno@clisp.org>
1890
1891         idcache: Move AC_LIBOBJ invocations to module description.
1892         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1893         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1894
1895 2011-05-23  Bruno Haible  <bruno@clisp.org>
1896
1897         human: Move AC_LIBOBJ invocations to module description.
1898         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1899         * modules/human (Makefile.am): Augment lib_SOURCES.
1900
1901 2011-05-23  Bruno Haible  <bruno@clisp.org>
1902
1903         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1904         * m4/hmac-sha1.m4: Remove file.
1905         * modules/crypto/hmac-sha1 (Files): Remove it.
1906         (configure.ac): Remove gl_HMAC_SHA1 call.
1907         (Makefile.am): Augment lib_SOURCES.
1908
1909 2011-05-23  Bruno Haible  <bruno@clisp.org>
1910
1911         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1912         * m4/hmac-md5.m4: Remove file.
1913         * modules/crypto/hmac-md5 (Files): Remove it.
1914         (configure.ac): Remove gl_HMAC_MD5 call.
1915         (Makefile.am): Augment lib_SOURCES.
1916
1917 2011-05-23  Bruno Haible  <bruno@clisp.org>
1918
1919         hash: Move AC_LIBOBJ invocations to module description.
1920         * m4/hash.m4: Remove file.
1921         * modules/hash (Files): Remove it.
1922         (configure.ac): Remove gl_HASH call.
1923         (Makefile.am): Augment lib_SOURCES.
1924
1925 2011-05-23  Bruno Haible  <bruno@clisp.org>
1926
1927         hard-locale: Move AC_LIBOBJ invocations to module description.
1928         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1929         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1930
1931 2011-05-23  Bruno Haible  <bruno@clisp.org>
1932
1933         getugroups: Move AC_LIBOBJ invocations to module description.
1934         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1935         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1936
1937 2011-05-23  Bruno Haible  <bruno@clisp.org>
1938
1939         gettime: Move AC_LIBOBJ invocations to module description.
1940         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1941         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1942
1943 2011-05-23  Bruno Haible  <bruno@clisp.org>
1944
1945         getndelim2: Move AC_LIBOBJ invocations to module description.
1946         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1947         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1948
1949 2011-05-23  Bruno Haible  <bruno@clisp.org>
1950
1951         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1952         * m4/gc-pbkdf2-sha1.m4: Remove file.
1953         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1954         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1955         (Makefile.am): Augment lib_SOURCES.
1956
1957 2011-05-23  Bruno Haible  <bruno@clisp.org>
1958
1959         fts: Move AC_LIBOBJ invocations to module description.
1960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1961         * modules/fts (configure.ac): ... to here.
1962
1963 2011-05-23  Bruno Haible  <bruno@clisp.org>
1964
1965         file-type: Move AC_LIBOBJ invocations to module description.
1966         * m4/file-type.m4: Remove file.
1967         * modules/file-type (Files): Remove it.
1968         (configure.ac): Remove gl_FILE_TYPE call.
1969         (Makefile.am): Augment lib_SOURCES.
1970
1971 2011-05-23  Bruno Haible  <bruno@clisp.org>
1972
1973         filenamecat*: Respect rules for use of AC_LIBOBJ.
1974         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1975         Remove AC_LIBOBJ invocation.
1976         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1977         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1978
1979 2011-05-23  Bruno Haible  <bruno@clisp.org>
1980
1981         filemode: Move AC_LIBOBJ invocations to module description.
1982         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1983         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1984
1985 2011-05-23  Bruno Haible  <bruno@clisp.org>
1986
1987         openat-safer: Move AC_LIBOBJ invocations to module description.
1988         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1989         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1990
1991 2011-05-23  Bruno Haible  <bruno@clisp.org>
1992
1993         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1994         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1995         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1996
1997 2011-05-23  Bruno Haible  <bruno@clisp.org>
1998
1999         exclude: Move AC_LIBOBJ invocations to module description.
2000         * m4/exclude.m4: Remove file.
2001         * modules/exclude (Files): Remove it.
2002         (configure.ac): Remove gl_EXCLUDE call.
2003         (Makefile.am): Augment lib_SOURCES.
2004
2005 2011-05-23  Bruno Haible  <bruno@clisp.org>
2006
2007         dirname*: Respect rules for use of AC_LIBOBJ.
2008         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2009         invocations.
2010         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2011         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2012
2013 2011-05-23  Bruno Haible  <bruno@clisp.org>
2014
2015         dirent-safer: Move AC_LIBOBJ invocations to module description.
2016         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2017         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2018
2019 2011-05-23  Bruno Haible  <bruno@clisp.org>
2020
2021         crypto/des: Move AC_LIBOBJ invocations to module description.
2022         * m4/des.m4: Remove file.
2023         * modules/crypto/des (Files): Remove it.
2024         (configure.ac): Remove gl_DES call.
2025         (Makefile.am): Augment lib_SOURCES.
2026
2027 2011-05-23  Bruno Haible  <bruno@clisp.org>
2028
2029         cycle-check: Move AC_LIBOBJ invocations to module description.
2030         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2031         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2032
2033 2011-05-23  Bruno Haible  <bruno@clisp.org>
2034
2035         c-strtold: Move AC_LIBOBJ invocations to module description.
2036         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2037         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2038
2039 2011-05-23  Bruno Haible  <bruno@clisp.org>
2040
2041         c-strtod: Move AC_LIBOBJ invocations to module description.
2042         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2043         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2044
2045 2011-05-23  Bruno Haible  <bruno@clisp.org>
2046
2047         crc: Move AC_LIBOBJ invocations to module description.
2048         * m4/crc.m4: Remove file.
2049         * modules/crc (Files): Remove it.
2050         (configure.ac): Remove gl_CRC call.
2051         (Makefile.am): Augment lib_SOURCES.
2052
2053 2011-05-23  Bruno Haible  <bruno@clisp.org>
2054
2055         close-stream: Move AC_LIBOBJ invocations to module description.
2056         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2057         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2058
2059 2011-05-23  Bruno Haible  <bruno@clisp.org>
2060
2061         closeout: Move AC_LIBOBJ invocations to module description.
2062         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2063         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2064
2065 2011-05-23  Bruno Haible  <bruno@clisp.org>
2066
2067         closein: Move AC_LIBOBJ invocations to module description.
2068         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2069         * modules/closein (Makefile.am): Augment lib_SOURCES.
2070
2071 2011-05-23  Bruno Haible  <bruno@clisp.org>
2072
2073         cloexec: Move AC_LIBOBJ invocations to module description.
2074         * m4/cloexec.m4: Remove file.
2075         * modules/cloexec (Files): Remove it.
2076         (configure.ac): Remove gl_CLOEXEC call.
2077         (Makefile.am): Augment lib_SOURCES.
2078
2079 2011-05-23  Bruno Haible  <bruno@clisp.org>
2080
2081         check-version: Move AC_LIBOBJ invocations to module description.
2082         * m4/check-version.m4: Remove file.
2083         * modules/check-version (Files): Remove it.
2084         (configure.ac): Remove gl_CHECK_VERSION call.
2085         (Makefile.am): Augment lib_SOURCES.
2086
2087 2011-05-23  Bruno Haible  <bruno@clisp.org>
2088
2089         chdir-safer: Move AC_LIBOBJ invocations to module description.
2090         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2091         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2092
2093 2011-05-23  Bruno Haible  <bruno@clisp.org>
2094
2095         canonicalize: Move AC_LIBOBJ invocations to module description.
2096         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2097         AC_LIBOBJ invocation.
2098         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2099
2100 2011-05-23  Bruno Haible  <bruno@clisp.org>
2101
2102         canon-host: Move AC_LIBOBJ invocations to module description.
2103         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2104         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2105         instead of gl_CANON_HOST.
2106         (Makefile.am): Augment lib_SOURCES.
2107
2108 2011-05-23  Bruno Haible  <bruno@clisp.org>
2109
2110         backupfile: Move AC_LIBOBJ invocations to module description.
2111         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2112         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2113
2114 2011-05-23  Bruno Haible  <bruno@clisp.org>
2115
2116         argmatch: Move AC_LIBOBJ invocations to module description.
2117         * m4/argmatch.m4: Remove file.
2118         * modules/argmatch (Files): Remove it.
2119         (configure.ac): Remove gl_ARGMATCH call.
2120         (Makefile.am): Augment lib_SOURCES.
2121
2122 2011-05-23  Bruno Haible  <bruno@clisp.org>
2123
2124         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2125         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2126         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2127
2128 2011-05-23  Bruno Haible  <bruno@clisp.org>
2129
2130         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2131         * m4/arcfour.m4: Remove file.
2132         * modules/crypto/arcfour (Files): Remove it.
2133         (configure.ac): Remove gl_ARCFOUR call.
2134         (Makefile.am): Augment lib_SOURCES.
2135
2136 2011-05-22  Bruno Haible  <bruno@clisp.org>
2137
2138         write: Move AC_LIBOBJ invocations to module description.
2139         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2140         * modules/write (configure.ac): ... to here.
2141
2142 2011-05-22  Bruno Haible  <bruno@clisp.org>
2143
2144         wmemset: Move AC_LIBOBJ invocations to module description.
2145         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2146         here...
2147         * modules/wmemset (configure.ac): ... to here.
2148
2149 2011-05-22  Bruno Haible  <bruno@clisp.org>
2150
2151         wmemmove: Move AC_LIBOBJ invocations to module description.
2152         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2153         here...
2154         * modules/wmemmove (configure.ac): ... to here.
2155
2156 2011-05-22  Bruno Haible  <bruno@clisp.org>
2157
2158         wmemcpy: Move AC_LIBOBJ invocations to module description.
2159         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2160         here...
2161         * modules/wmemcpy (configure.ac): ... to here.
2162
2163 2011-05-22  Bruno Haible  <bruno@clisp.org>
2164
2165         wmemcmp: Move AC_LIBOBJ invocations to module description.
2166         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2167         here...
2168         * modules/wmemcmp (configure.ac): ... to here.
2169
2170 2011-05-22  Bruno Haible  <bruno@clisp.org>
2171
2172         wmemchr: Move AC_LIBOBJ invocations to module description.
2173         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2174         here...
2175         * modules/wmemchr (configure.ac): ... to here.
2176
2177 2011-05-22  Bruno Haible  <bruno@clisp.org>
2178
2179         wcswidth: Move AC_LIBOBJ invocations to module description.
2180         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2181         here...
2182         * modules/wcswidth (configure.ac): ... to here.
2183
2184 2011-05-22  Bruno Haible  <bruno@clisp.org>
2185
2186         wcwidth: Respect rules for use of AC_LIBOBJ.
2187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2188         invocation from here...
2189         * modules/wcwidth (configure.ac): ... to here.
2190         (Depends-on): Update conditions.
2191
2192 2011-05-22  Bruno Haible  <bruno@clisp.org>
2193
2194         wctype: Move AC_LIBOBJ invocations to module description.
2195         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2196         invocation from here...
2197         * modules/wctype (configure.ac): ... to here.
2198         (Depends-on): Update conditions.
2199
2200 2011-05-22  Bruno Haible  <bruno@clisp.org>
2201
2202         wctrans: Move AC_LIBOBJ invocations to module description.
2203         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2204         invocation from here...
2205         * modules/wctrans (configure.ac): ... to here.
2206
2207 2011-05-22  Bruno Haible  <bruno@clisp.org>
2208
2209         wctomb: Move AC_LIBOBJ invocations to module description.
2210         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2211         invocations from here...
2212         * modules/wctomb (configure.ac): ... to here.
2213
2214 2011-05-22  Bruno Haible  <bruno@clisp.org>
2215
2216         wctob: Move AC_LIBOBJ invocations to module description.
2217         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2218         gl_PREREQ_WCTOB invocations from here...
2219         * modules/wctob (configure.ac): ... to here.
2220         (Depends-on): Update conditions.
2221
2222 2011-05-22  Bruno Haible  <bruno@clisp.org>
2223
2224         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2225         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2226         here...
2227         * modules/wcsxfrm (configure.ac): ... to here.
2228
2229 2011-05-22  Bruno Haible  <bruno@clisp.org>
2230
2231         wcstok: Move AC_LIBOBJ invocations to module description.
2232         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2233         * modules/wcstok (configure.ac): ... to here.
2234
2235 2011-05-22  Bruno Haible  <bruno@clisp.org>
2236
2237         wcsstr: Move AC_LIBOBJ invocations to module description.
2238         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2239         * modules/wcsstr (configure.ac): ... to here.
2240
2241 2011-05-22  Bruno Haible  <bruno@clisp.org>
2242
2243         wcsspn: Move AC_LIBOBJ invocations to module description.
2244         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2245         * modules/wcsspn (configure.ac): ... to here.
2246
2247 2011-05-22  Bruno Haible  <bruno@clisp.org>
2248
2249         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2250         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2251         gl_PREREQ_WCSRTOMBS invocations from here...
2252         * modules/wcsrtombs (configure.ac): ... to here.
2253
2254 2011-05-22  Bruno Haible  <bruno@clisp.org>
2255
2256         wcsrchr: Move AC_LIBOBJ invocations to module description.
2257         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2258         here...
2259         * modules/wcsrchr (configure.ac): ... to here.
2260
2261 2011-05-22  Bruno Haible  <bruno@clisp.org>
2262
2263         wcspbrk: Move AC_LIBOBJ invocations to module description.
2264         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2265         here...
2266         * modules/wcspbrk (configure.ac): ... to here.
2267
2268 2011-05-22  Bruno Haible  <bruno@clisp.org>
2269
2270         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2271         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2272         gl_PREREQ_WCSNRTOMBS invocations from here...
2273         * modules/wcsnrtombs (configure.ac): ... to here.
2274
2275 2011-05-22  Bruno Haible  <bruno@clisp.org>
2276
2277         wcsnlen: Move AC_LIBOBJ invocations to module description.
2278         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2279         here...
2280         * modules/wcsnlen (configure.ac): ... to here.
2281
2282 2011-05-22  Bruno Haible  <bruno@clisp.org>
2283
2284         wcsncpy: Move AC_LIBOBJ invocations to module description.
2285         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2286         here...
2287         * modules/wcsncpy (configure.ac): ... to here.
2288
2289 2011-05-22  Bruno Haible  <bruno@clisp.org>
2290
2291         wcsncmp: Move AC_LIBOBJ invocations to module description.
2292         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2293         here...
2294         * modules/wcsncmp (configure.ac): ... to here.
2295
2296 2011-05-22  Bruno Haible  <bruno@clisp.org>
2297
2298         wcsncat: Move AC_LIBOBJ invocations to module description.
2299         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2300         here...
2301         * modules/wcsncat (configure.ac): ... to here.
2302
2303 2011-05-22  Bruno Haible  <bruno@clisp.org>
2304
2305         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2306         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2307         from here...
2308         * modules/wcsncasecmp (configure.ac): ... to here.
2309
2310 2011-05-22  Bruno Haible  <bruno@clisp.org>
2311
2312         wcslen: Move AC_LIBOBJ invocations to module description.
2313         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2314         * modules/wcslen (configure.ac): ... to here.
2315
2316 2011-05-22  Bruno Haible  <bruno@clisp.org>
2317
2318         wcsdup: Move AC_LIBOBJ invocations to module description.
2319         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2320         * modules/wcsdup (configure.ac): ... to here.
2321
2322 2011-05-22  Bruno Haible  <bruno@clisp.org>
2323
2324         wcscspn: Move AC_LIBOBJ invocations to module description.
2325         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2326         here...
2327         * modules/wcscspn (configure.ac): ... to here.
2328
2329 2011-05-22  Bruno Haible  <bruno@clisp.org>
2330
2331         wcscpy: Move AC_LIBOBJ invocations to module description.
2332         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2333         * modules/wcscpy (configure.ac): ... to here.
2334
2335 2011-05-22  Bruno Haible  <bruno@clisp.org>
2336
2337         wcscoll: Move AC_LIBOBJ invocations to module description.
2338         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2339         here...
2340         * modules/wcscoll (configure.ac): ... to here.
2341
2342 2011-05-22  Bruno Haible  <bruno@clisp.org>
2343
2344         wcscmp: Move AC_LIBOBJ invocations to module description.
2345         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2346         * modules/wcscmp (configure.ac): ... to here.
2347
2348 2011-05-22  Bruno Haible  <bruno@clisp.org>
2349
2350         wcschr: Move AC_LIBOBJ invocations to module description.
2351         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2352         * modules/wcschr (configure.ac): ... to here.
2353
2354 2011-05-22  Bruno Haible  <bruno@clisp.org>
2355
2356         wcscat: Move AC_LIBOBJ invocations to module description.
2357         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2358         * modules/wcscat (configure.ac): ... to here.
2359
2360 2011-05-22  Bruno Haible  <bruno@clisp.org>
2361
2362         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2363         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2364         here...
2365         * modules/wcscasecmp (configure.ac): ... to here.
2366
2367 2011-05-22  Bruno Haible  <bruno@clisp.org>
2368
2369         wcrtomb: Move AC_LIBOBJ invocations to module description.
2370         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2371         invocations from here...
2372         * modules/wcrtomb (configure.ac): ... to here.
2373
2374 2011-05-22  Bruno Haible  <bruno@clisp.org>
2375
2376         wcpncpy: Move AC_LIBOBJ invocations to module description.
2377         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2378         here...
2379         * modules/wcpncpy (configure.ac): ... to here.
2380
2381 2011-05-22  Bruno Haible  <bruno@clisp.org>
2382
2383         wcpcpy: Move AC_LIBOBJ invocations to module description.
2384         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2385         * modules/wcpcpy (configure.ac): ... to here.
2386
2387 2011-05-22  Bruno Haible  <bruno@clisp.org>
2388
2389         waitpid: Move AC_LIBOBJ invocations to module description.
2390         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2391         invocation from here...
2392         * modules/waitpid (configure.ac): ... to here.
2393
2394 2011-05-22  Bruno Haible  <bruno@clisp.org>
2395
2396         utimensat: Move AC_LIBOBJ invocations to module description.
2397         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2398         here...
2399         * modules/utimensat (configure.ac): ... to here.
2400
2401 2011-05-22  Bruno Haible  <bruno@clisp.org>
2402
2403         usleep: Move AC_LIBOBJ invocations to module description.
2404         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2405         here...
2406         * modules/usleep (configure.ac): ... to here.
2407
2408 2011-05-22  Bruno Haible  <bruno@clisp.org>
2409
2410         unlockpt: Move AC_LIBOBJ invocations to module description.
2411         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2412         gl_PREREQ_UNLOCKPT invocations from here...
2413         * modules/unlockpt (configure.ac): ... to here.
2414
2415 2011-05-22  Bruno Haible  <bruno@clisp.org>
2416
2417         unlink: Respect rules for use of AC_LIBOBJ.
2418         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2419         * modules/unlink (configure.ac): ... to here.
2420
2421 2011-05-22  Bruno Haible  <bruno@clisp.org>
2422
2423         uname: Move AC_LIBOBJ invocations to module description.
2424         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2426         here...
2427         * modules/uname (configure.ac): ... to here.
2428
2429 2011-05-22  Bruno Haible  <bruno@clisp.org>
2430
2431         ttyname_r: Move AC_LIBOBJ invocations to module description.
2432         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2433         gl_PREREQ_TTYNAME_R invocations from here...
2434         * modules/ttyname_r (configure.ac): ... to here.
2435
2436 2011-05-22  Bruno Haible  <bruno@clisp.org>
2437
2438         tsearch: Move AC_LIBOBJ invocations to module description.
2439         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2440         invocations from here...
2441         * modules/tsearch (configure.ac): ... to here.
2442
2443 2011-05-22  Bruno Haible  <bruno@clisp.org>
2444
2445         towctrans: Move AC_LIBOBJ invocations to module description.
2446         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2447         AC_LIBOBJ invocation from here...
2448         * modules/towctrans (configure.ac): ... to here.
2449
2450 2011-05-22  Bruno Haible  <bruno@clisp.org>
2451
2452         tmpfile: Move AC_LIBOBJ invocations to module description.
2453         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2454         invocations from here...
2455         * modules/tmpfile (configure.ac): ... to here.
2456
2457 2011-05-22  Bruno Haible  <bruno@clisp.org>
2458
2459         times: Move AC_LIBOBJ invocations to module description.
2460         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2461         * modules/times (configure.ac): ... to here.
2462
2463 2011-05-22  Bruno Haible  <bruno@clisp.org>
2464
2465         time_r: Move AC_LIBOBJ invocations to module description.
2466         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2467         invocations from here...
2468         * modules/time_r (configure.ac): ... to here.
2469
2470 2011-05-22  Bruno Haible  <bruno@clisp.org>
2471
2472         timegm: Move AC_LIBOBJ invocations to module description.
2473         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2474         invocations from here...
2475         * modules/timegm (configure.ac): ... to here.
2476
2477 2011-05-22  Bruno Haible  <bruno@clisp.org>
2478
2479         tcgetsid: Move AC_LIBOBJ invocations to module description.
2480         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2481         and gl_PREREQ_TCGETSID invocations from here...
2482         * modules/tcgetsid (configure.ac): ... to here.
2483         (Depends-on): Update conditions.
2484
2485 2011-05-22  Bruno Haible  <bruno@clisp.org>
2486
2487         symlinkat: Move AC_LIBOBJ invocations to module description.
2488         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2489         here...
2490         * modules/symlinkat (configure.ac): ... to here.
2491
2492 2011-05-22  Bruno Haible  <bruno@clisp.org>
2493
2494         symlink: Move AC_LIBOBJ invocations to module description.
2495         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2496         here...
2497         * modules/symlink (configure.ac): ... to here.
2498
2499 2011-05-22  Bruno Haible  <bruno@clisp.org>
2500
2501         strverscmp: Move AC_LIBOBJ invocations to module description.
2502         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2503         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2504         from here...
2505         * modules/strverscmp (configure.ac): ... to here.
2506
2507 2011-05-22  Bruno Haible  <bruno@clisp.org>
2508
2509         strtok_r: Move AC_LIBOBJ invocations to module description.
2510         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2511         and gl_PREREQ_STRTOK_R invocations from here...
2512         * modules/strtok_r (configure.ac): ... to here.
2513         (Depends-on): Update conditions.
2514
2515 2011-05-22  Bruno Haible  <bruno@clisp.org>
2516
2517         strtoumax: Move AC_LIBOBJ invocations to module description.
2518         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2519         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2520         from here...
2521         * modules/strtoumax (configure.ac): ... to here.
2522
2523 2011-05-22  Bruno Haible  <bruno@clisp.org>
2524
2525         strtoimax: Move AC_LIBOBJ invocations to module description.
2526         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2528         from here...
2529         * modules/strtoimax (configure.ac): ... to here.
2530
2531 2011-05-22  Bruno Haible  <bruno@clisp.org>
2532
2533         strtoull: Move AC_LIBOBJ invocations to module description.
2534         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2535         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2536         from here...
2537         * modules/strtoull (configure.ac): ... to here.
2538
2539 2011-05-22  Bruno Haible  <bruno@clisp.org>
2540
2541         strtoll: Move AC_LIBOBJ invocations to module description.
2542         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2544         here...
2545         * modules/strtoll (configure.ac): ... to here.
2546
2547 2011-05-22  Bruno Haible  <bruno@clisp.org>
2548
2549         strtoul: Move AC_LIBOBJ invocations to module description.
2550         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2551         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2552         * modules/strtoul (configure.ac): ... to here.
2553
2554 2011-05-22  Bruno Haible  <bruno@clisp.org>
2555
2556         strtol: Move AC_LIBOBJ invocations to module description.
2557         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2558         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2559         * modules/strtol (configure.ac): ... to here.
2560
2561 2011-05-22  Bruno Haible  <bruno@clisp.org>
2562
2563         strtod: Move AC_LIBOBJ invocations to module description.
2564         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2565         invocations from here...
2566         * modules/strtod (configure.ac): ... to here.
2567
2568 2011-05-22  Bruno Haible  <bruno@clisp.org>
2569
2570         strstr*: Move AC_LIBOBJ invocations to module description.
2571         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2572         invocations from here...
2573         * modules/strstr-simple (configure.ac): ... to here.
2574         * modules/strstr (configure.ac): ... and here.
2575
2576 2011-05-22  Bruno Haible  <bruno@clisp.org>
2577
2578         strsignal: Move AC_LIBOBJ invocations to module description.
2579         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2580         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2581         * modules/strsignal (configure.ac): ... to here.
2582         (Depends-on): Update conditions.
2583
2584 2011-05-22  Bruno Haible  <bruno@clisp.org>
2585
2586         strsep: Move AC_LIBOBJ invocations to module description.
2587         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2589         here...
2590         * modules/strsep (configure.ac): ... to here.
2591
2592 2011-05-22  Bruno Haible  <bruno@clisp.org>
2593
2594         strptime: Move AC_LIBOBJ invocations to module description.
2595         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2596         gl_PREREQ_STRPTIME invocations from here...
2597         * modules/strptime (configure.ac): ... to here.
2598
2599 2011-05-22  Bruno Haible  <bruno@clisp.org>
2600
2601         strpbrk: Move AC_LIBOBJ invocations to module description.
2602         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2604         here...
2605         * modules/strpbrk (configure.ac): ... to here.
2606
2607 2011-05-22  Bruno Haible  <bruno@clisp.org>
2608
2609         strnlen: Move AC_LIBOBJ invocations to module description.
2610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2611         invocations from here...
2612         * modules/strnlen (configure.ac): ... to here.
2613
2614 2011-05-22  Bruno Haible  <bruno@clisp.org>
2615
2616         strndup: Move AC_LIBOBJ invocations to module description.
2617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2618         invocations from here...
2619         * modules/strndup (configure.ac): ... to here.
2620         (Depends-on): Update conditions.
2621
2622 2011-05-22  Bruno Haible  <bruno@clisp.org>
2623
2624         strncat: Move AC_LIBOBJ invocations to module description.
2625         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2626         invocations from here...
2627         * modules/strncat (configure.ac): ... to here.
2628
2629 2011-05-22  Bruno Haible  <bruno@clisp.org>
2630
2631         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2632         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2633         invocations from here...
2634         * modules/strdup (configure.ac): ... to here.
2635         * modules/strdup-posix (configure.ac): ... and here.
2636
2637 2011-05-22  Bruno Haible  <bruno@clisp.org>
2638
2639         strcspn: Move AC_LIBOBJ invocations to module description.
2640         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2642         here...
2643         * modules/strcspn (configure.ac): ... to here.
2644
2645 2011-05-22  Bruno Haible  <bruno@clisp.org>
2646
2647         strchrnul: Move AC_LIBOBJ invocations to module description.
2648         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2649         gl_PREREQ_STRCHRNUL invocations from here...
2650         * modules/strchrnul (configure.ac): ... to here.
2651
2652 2011-05-22  Bruno Haible  <bruno@clisp.org>
2653
2654         strcasestr*: Move AC_LIBOBJ invocations to module description.
2655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2656         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2657         * modules/strcasestr-simple (configure.ac): ... to here.
2658         * modules/strcasestr (configure.ac): ... and here.
2659
2660 2011-05-22  Bruno Haible  <bruno@clisp.org>
2661
2662         strcase: Move AC_LIBOBJ invocations to module description.
2663         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2664         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2665         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2666         gl_PREREQ_STRNCASECMP invocations from here...
2667         * modules/strcase (configure.ac): ... to here.
2668
2669 2011-05-22  Bruno Haible  <bruno@clisp.org>
2670
2671         stpncpy: Move AC_LIBOBJ invocations to module description.
2672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2673         here...
2674         * modules/stpncpy (configure.ac): ... to here.
2675
2676 2011-05-22  Bruno Haible  <bruno@clisp.org>
2677
2678         stpcpy: Move AC_LIBOBJ invocations to module description.
2679         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2680         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2681         here...
2682         * modules/stpcpy (configure.ac): ... to here.
2683
2684 2011-05-21  Bruno Haible  <bruno@clisp.org>
2685
2686         stat: Move AC_LIBOBJ invocations to module description.
2687         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2688         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2689         here...
2690         * modules/stat (configure.ac): ... to here.
2691
2692 2011-05-21  Bruno Haible  <bruno@clisp.org>
2693
2694         sleep: Move AC_LIBOBJ invocations to module description.
2695         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2696         * modules/sleep (configure.ac): ... to here.
2697
2698 2011-05-21  Bruno Haible  <bruno@clisp.org>
2699
2700         signbit: Move AC_LIBOBJ invocations to module description.
2701         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2702         * modules/signbit (configure.ac): ... to here.
2703
2704 2011-05-21  Bruno Haible  <bruno@clisp.org>
2705
2706         sigprocmask: Move AC_LIBOBJ invocations to module description.
2707         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2708         gl_PREREQ_SIGPROMASK invocations from here...
2709         * modules/sigprocmask (configure.ac): ... to here.
2710
2711 2011-05-21  Bruno Haible  <bruno@clisp.org>
2712
2713         sigaction: Move AC_LIBOBJ invocations to module description.
2714         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2715         gl_PREREQ_SIGACTION invocations from here...
2716         * modules/sigaction (configure.ac): ... to here.
2717
2718 2011-05-21  Bruno Haible  <bruno@clisp.org>
2719
2720         sig2str: Move AC_LIBOBJ invocations to module description.
2721         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2723         here...
2724         * modules/sig2str (configure.ac): ... to here.
2725
2726 2011-05-21  Bruno Haible  <bruno@clisp.org>
2727
2728         setlocale: Move AC_LIBOBJ invocations to module description.
2729         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2730         gl_PREREQ_SETLOCALE invocations from here...
2731         * modules/setlocale (configure.ac): ... to here.
2732
2733 2011-05-21  Bruno Haible  <bruno@clisp.org>
2734
2735         unsetenv: Move AC_LIBOBJ invocations to module description.
2736         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2737         and gl_PREREQ_UNSETENV invocations from here...
2738         * modules/unsetenv (configure.ac): ... to here.
2739         (Depends-on): Update.
2740
2741 2011-05-21  Bruno Haible  <bruno@clisp.org>
2742
2743         setenv: Move AC_LIBOBJ invocations to module description.
2744         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2745         here...
2746         * modules/setenv (configure.ac): ... to here.
2747
2748 2011-05-21  Bruno Haible  <bruno@clisp.org>
2749
2750         selinux-h: Move AC_LIBOBJ invocations to module description.
2751         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2752         AC_LIBOBJ invocation from here...
2753         * modules/selinux-h (configure.ac): ... to here.
2754
2755 2011-05-21  Bruno Haible  <bruno@clisp.org>
2756
2757         select: Respect rules for use of AC_LIBOBJ.
2758         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2759         here...
2760         * modules/select (configure.ac): ... to here.
2761
2762 2011-05-21  Bruno Haible  <bruno@clisp.org>
2763
2764         scandir: Move AC_LIBOBJ invocations to module description.
2765         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2766         invocations from here...
2767         * modules/scandir (configure.ac): ... to here.
2768
2769 2011-05-21  Bruno Haible  <bruno@clisp.org>
2770
2771         rpmatch: Move AC_LIBOBJ invocations to module description.
2772         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2773         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2774         here...
2775         * modules/rpmatch (configure.ac): ... to here.
2776
2777 2011-05-21  Bruno Haible  <bruno@clisp.org>
2778
2779         rmdir: Respect rules for use of AC_LIBOBJ.
2780         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2781         * modules/rmdir (configure.ac): ... to here.
2782
2783 2011-05-21  Bruno Haible  <bruno@clisp.org>
2784
2785         renameat: Move AC_LIBOBJ invocations to module description.
2786         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2787         here...
2788         * modules/renameat (configure.ac): ... to here.
2789
2790 2011-05-21  Bruno Haible  <bruno@clisp.org>
2791
2792         rename: Respect rules for use of AC_LIBOBJ.
2793         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2794         here...
2795         * modules/rename (configure.ac): ... to here.
2796
2797 2011-05-21  Bruno Haible  <bruno@clisp.org>
2798
2799         remove: Move AC_LIBOBJ invocations to module description.
2800         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2801         here...
2802         * modules/remove (configure.ac): ... to here.
2803
2804 2011-05-21  Bruno Haible  <bruno@clisp.org>
2805
2806         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2807         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2808         macro.
2809         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2810         * modules/relocatable-lib (configure.ac): ... to here.
2811         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2812         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2813
2814 2011-05-21  Bruno Haible  <bruno@clisp.org>
2815
2816         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2817         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2818         here...
2819         * modules/relocatable-prog (configure.ac): ... to here.
2820
2821 2011-05-21  Bruno Haible  <bruno@clisp.org>
2822
2823         regex: Move AC_LIBOBJ invocations to module description.
2824         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2825         invocations from here...
2826         * modules/regex (configure.ac): ... to here.
2827
2828 2011-05-21  Bruno Haible  <bruno@clisp.org>
2829
2830         realloc-*: Move AC_LIBOBJ invocations to module description.
2831         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2832         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2833         AC_LIBOBJ invocations from here...
2834         * modules/realloc-gnu (configure.ac): ... to here.
2835         * modules/realloc-posix (configure.ac): ... and here.
2836
2837 2011-05-21  Bruno Haible  <bruno@clisp.org>
2838
2839         readutmp: Move AC_LIBOBJ invocations to module description.
2840         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2841         * modules/readutmp (configure.ac): ... to here.
2842
2843 2011-05-21  Bruno Haible  <bruno@clisp.org>
2844
2845         readlinkat: Move AC_LIBOBJ invocations to module description.
2846         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2847         here...
2848         * modules/readlinkat (configure.ac): ... to here.
2849
2850 2011-05-21  Bruno Haible  <bruno@clisp.org>
2851
2852         readlink: Move AC_LIBOBJ invocations to module description.
2853         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2854         gl_PREREQ_READLINK invocations from here...
2855         * modules/readlink (configure.ac): ... to here.
2856
2857 2011-05-21  Bruno Haible  <bruno@clisp.org>
2858
2859         readline: Move AC_LIBOBJ invocations to module description.
2860         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2861         gl_PREREQ_READLINE invocations from here...
2862         * modules/readline (configure.ac): ... to here.
2863
2864 2011-05-21  Bruno Haible  <bruno@clisp.org>
2865
2866         read: Move AC_LIBOBJ invocations to module description.
2867         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2868         * modules/read (configure.ac): ... to here.
2869
2870 2011-05-21  Bruno Haible  <bruno@clisp.org>
2871
2872         rawmemchr: Move AC_LIBOBJ invocations to module description.
2873         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2875         from here...
2876         * modules/rawmemchr (configure.ac): ... to here.
2877
2878 2011-05-21  Bruno Haible  <bruno@clisp.org>
2879
2880         random_r: Move AC_LIBOBJ invocations to module description.
2881         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2882         gl_PREREQ_RANDOM_R invocations from here...
2883         * modules/random_r (configure.ac): ... to here.
2884
2885 2011-05-21  Bruno Haible  <bruno@clisp.org>
2886
2887         pwrite: Move AC_LIBOBJ invocations to module description.
2888         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2889         * modules/pwrite (configure.ac): ... to here.
2890
2891 2011-05-21  Bruno Haible  <bruno@clisp.org>
2892
2893         putenv: Move AC_LIBOBJ invocations to module description.
2894         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2895         * modules/putenv (configure.ac): ... to here.
2896
2897 2011-05-21  Bruno Haible  <bruno@clisp.org>
2898
2899         login_tty: Move AC_LIBOBJ invocations to module description.
2900         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2901         * modules/login_tty (configure.ac): ... to here.
2902
2903 2011-05-21  Bruno Haible  <bruno@clisp.org>
2904
2905         openpty: Move AC_LIBOBJ invocations to module description.
2906         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2907         * modules/openpty (configure.ac): ... to here.
2908
2909 2011-05-21  Bruno Haible  <bruno@clisp.org>
2910
2911         forkpty: Move AC_LIBOBJ invocations to module description.
2912         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2913         * modules/forkpty (configure.ac): ... to here.
2914
2915 2011-05-21  Bruno Haible  <bruno@clisp.org>
2916
2917         ptsname: Move AC_LIBOBJ invocations to module description.
2918         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2919         invocations from here...
2920         * modules/ptsname (configure.ac): ... to here.
2921
2922 2011-05-21  Bruno Haible  <bruno@clisp.org>
2923
2924         pread: Move AC_LIBOBJ invocations to module description.
2925         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2926         * modules/pread (configure.ac): ... to here.
2927
2928 2011-05-21  Bruno Haible  <bruno@clisp.org>
2929
2930         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2931         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2932         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2933         * modules/posix_spawn (configure.ac): ... to here.
2934         * modules/posix_spawnp (configure.ac): ... and here.
2935
2936 2011-05-21  Bruno Haible  <bruno@clisp.org>
2937
2938         popen: Move AC_LIBOBJ invocations to module description.
2939         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2940         invocations from here...
2941         * modules/popen (configure.ac): ... to here.
2942
2943 2011-05-21  Bruno Haible  <bruno@clisp.org>
2944
2945         poll: Move AC_LIBOBJ invocations to module description.
2946         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2947         invocations from here...
2948         * modules/poll (configure.ac): ... to here.
2949
2950 2011-05-21  Bruno Haible  <bruno@clisp.org>
2951
2952         pipe-posix: Move AC_LIBOBJ invocations to module description.
2953         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2954         * modules/pipe-posix (configure.ac): ... to here.
2955
2956 2011-05-21  Bruno Haible  <bruno@clisp.org>
2957
2958         openat: Respect rules for use of AC_LIBOBJ.
2959         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2960         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2961         * modules/openat (configure.ac): ... to here.
2962
2963 2011-05-21  Bruno Haible  <bruno@clisp.org>
2964
2965         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2966         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2967         invocation from here...
2968         * modules/obstack-printf (configure.ac): ... to here.
2969         * modules/obstack-printf-posix (configure.ac): ... and here.
2970
2971 2011-05-21  Bruno Haible  <bruno@clisp.org>
2972
2973         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2974         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2975         from here...
2976         * modules/nl_langinfo (configure.ac): ... to here.
2977
2978 2011-05-21  Bruno Haible  <bruno@clisp.org>
2979
2980         nanosleep: Move AC_LIBOBJ invocations to module description.
2981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2982         gl_PREREQ_NANOSLEEP invocations from here...
2983         * modules/nanosleep (configure.ac): ... to here.
2984
2985 2011-05-21  Bruno Haible  <bruno@clisp.org>
2986
2987         mountlist: Move AC_LIBOBJ invocations to module description.
2988         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2989         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2990         * modules/mountlist (configure.ac): ... to here.
2991
2992 2011-05-21  Bruno Haible  <bruno@clisp.org>
2993
2994         mktime: Respect rules for use of AC_LIBOBJ.
2995         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2996         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2997         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2998         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2999         * modules/mktime (configure.ac): ... to here.
3000         * modules/mktime-internal (configure.ac): ... and here.
3001         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3002
3003 2011-05-21  Bruno Haible  <bruno@clisp.org>
3004
3005         mkstemps: Move AC_LIBOBJ invocations to module description.
3006         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3007         here...
3008         * modules/mkstemps (configure.ac): ... to here.
3009
3010 2011-05-21  Bruno Haible  <bruno@clisp.org>
3011
3012         mkstemp: Move AC_LIBOBJ invocations to module description.
3013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3014         gl_PREREQ_MKSTEMP invocations from here...
3015         * modules/mkstemp (configure.ac): ... to here.
3016
3017 2011-05-21  Bruno Haible  <bruno@clisp.org>
3018
3019         mkostemps: Move AC_LIBOBJ invocations to module description.
3020         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3021         here...
3022         * modules/mkostemps (configure.ac): ... to here.
3023
3024 2011-05-21  Bruno Haible  <bruno@clisp.org>
3025
3026         mkostemp: Move AC_LIBOBJ invocations to module description.
3027         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3028         gl_PREREQ_MKOSTEMP invocations from here...
3029         * modules/mkostemp (configure.ac): ... to here.
3030
3031 2011-05-21  Bruno Haible  <bruno@clisp.org>
3032
3033         mknod: Move AC_LIBOBJ invocations to module description.
3034         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3035         * modules/mknod (configure.ac): ... to here.
3036
3037 2011-05-21  Bruno Haible  <bruno@clisp.org>
3038
3039         mkfifoat: Move AC_LIBOBJ invocations to module description.
3040         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3041         here...
3042         * modules/mkfifoat (configure.ac): ... to here.
3043
3044 2011-05-21  Bruno Haible  <bruno@clisp.org>
3045
3046         mkfifo: Respect rules for use of AC_LIBOBJ.
3047         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3048         here...
3049         * modules/mkfifo (configure.ac): ... to here.
3050
3051 2011-05-21  Bruno Haible  <bruno@clisp.org>
3052
3053         mkdtemp: Move AC_LIBOBJ invocations to module description.
3054         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3055         invocations from here...
3056         * modules/mkdtemp (configure.ac): ... to here.
3057
3058 2011-05-21  Bruno Haible  <bruno@clisp.org>
3059
3060         mkdir: Move AC_LIBOBJ invocations to module description.
3061         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3062         * modules/mkdir (configure.ac): ... to here.
3063
3064 2011-05-21  Bruno Haible  <bruno@clisp.org>
3065
3066         memset: Move AC_LIBOBJ invocations to module description.
3067         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3069         here...
3070         * modules/memset (configure.ac): ... to here.
3071
3072 2011-05-21  Bruno Haible  <bruno@clisp.org>
3073
3074         memrchr: Move AC_LIBOBJ invocations to module description.
3075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3076         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3077         here...
3078         * modules/memrchr (configure.ac): ... to here.
3079
3080 2011-05-21  Bruno Haible  <bruno@clisp.org>
3081
3082         mempcpy: Move AC_LIBOBJ invocations to module description.
3083         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3085         here...
3086         * modules/mempcpy (configure.ac): ... to here.
3087
3088 2011-05-21  Bruno Haible  <bruno@clisp.org>
3089
3090         memmove: Move AC_LIBOBJ invocations to module description.
3091         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3092         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3093         here...
3094         * modules/memmove (configure.ac): ... to here.
3095
3096 2011-05-21  Bruno Haible  <bruno@clisp.org>
3097
3098         memmem*: Move AC_LIBOBJ invocations to module description.
3099         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3100         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3101         here...
3102         (gl_FUNC_MEMMEM): ... and here...
3103         * modules/memmem-simple (configure.ac): ... to here.
3104         * modules/memmem (configure.ac): ... and here.
3105
3106 2011-05-21  Bruno Haible  <bruno@clisp.org>
3107
3108         memcpy: Move AC_LIBOBJ invocations to module description.
3109         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3110         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3111         here...
3112         * modules/memcpy (configure.ac): ... to here.
3113
3114 2011-05-21  Bruno Haible  <bruno@clisp.org>
3115
3116         memcmp: Simplify autoconf macro.
3117         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3118         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3119         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3120
3121 2011-05-21  Bruno Haible  <bruno@clisp.org>
3122
3123         memcmp: Move AC_LIBOBJ invocations to module description.
3124         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3125         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3126         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3127         * modules/memcmp (configure.ac): ... to here.
3128         (Depends-on): Update conditions.
3129
3130 2011-05-21  Bruno Haible  <bruno@clisp.org>
3131
3132         memchr: Respect rules for use of AC_LIBOBJ.
3133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3134         invocations from here...
3135         * modules/memchr (configure.ac): ... to here.
3136
3137 2011-05-21  Bruno Haible  <bruno@clisp.org>
3138
3139         mbtowc: Move AC_LIBOBJ invocations to module description.
3140         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3141         invocations from here...
3142         * modules/mbtowc (configure.ac): ... to here.
3143
3144 2011-05-21  Bruno Haible  <bruno@clisp.org>
3145
3146         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3147         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3148         gl_PREREQ_MBSRTOWCS invocations from here...
3149         * modules/mbsrtowcs (configure.ac): ... to here.
3150
3151 2011-05-21  Bruno Haible  <bruno@clisp.org>
3152
3153         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3154         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3155         gl_PREREQ_MBSNRTOWCS invocations from here...
3156         * modules/mbsnrtowcs (configure.ac): ... to here.
3157
3158 2011-05-21  Bruno Haible  <bruno@clisp.org>
3159
3160         mbsinit: Move AC_LIBOBJ invocations to module description.
3161         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3162         invocations from here...
3163         * modules/mbsinit (configure.ac): ... to here.
3164
3165 2011-05-21  Bruno Haible  <bruno@clisp.org>
3166
3167         mbrlen: Move AC_LIBOBJ invocations to module description.
3168         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3169         invocations from here...
3170         * modules/mbrlen (configure.ac): ... to here.
3171
3172 2011-05-21  Bruno Haible  <bruno@clisp.org>
3173
3174         mbrtowc: Respect rules for use of AC_LIBOBJ.
3175         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3176         invocations from here...
3177         * modules/mbrtowc (configure.ac): ... to here.
3178
3179 2011-05-21  Bruno Haible  <bruno@clisp.org>
3180
3181         malloc-*: Move AC_LIBOBJ invocations to module description.
3182         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3183         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3184         AC_LIBOBJ invocations from here...
3185         * modules/malloc-gnu (configure.ac): ... to here.
3186         * modules/malloc-posix (configure.ac): ... and here.
3187
3188 2011-05-21  Bruno Haible  <bruno@clisp.org>
3189
3190         lstat, openat: Respect rules for use of AC_LIBOBJ.
3191         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3192         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3193         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3194         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3195         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3196         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3197         here.
3198         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3199
3200 2011-05-21  Bruno Haible  <bruno@clisp.org>
3201
3202         lseek: Move AC_LIBOBJ invocations to module description.
3203         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3204         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3205         * modules/lseek (configure.ac): ... to here.
3206
3207 2011-05-21  Bruno Haible  <bruno@clisp.org>
3208
3209         linkat: Move AC_LIBOBJ invocations to module description.
3210         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3211         here...
3212         * modules/linkat (configure.ac): ... to here.
3213
3214 2011-05-21  Bruno Haible  <bruno@clisp.org>
3215
3216         link: Respect rules for use of AC_LIBOBJ.
3217         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3218         * modules/link (configure.ac): ... to here.
3219
3220 2011-05-21  Bruno Haible  <bruno@clisp.org>
3221
3222         lchown: Move AC_LIBOBJ invocations to module description.
3223         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3224         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3225         * modules/lchown (configure.ac): ... to here.
3226
3227 2011-05-21  Bruno Haible  <bruno@clisp.org>
3228
3229         iswctype: Move AC_LIBOBJ invocations to module description.
3230         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3231         here...
3232         * modules/iswctype (configure.ac): ... to here.
3233
3234 2011-05-21  Bruno Haible  <bruno@clisp.org>
3235
3236         iswblank: Move AC_LIBOBJ invocations to module description.
3237         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3238         here...
3239         * modules/iswblank (configure.ac): ... to here.
3240
3241 2011-05-21  Bruno Haible  <bruno@clisp.org>
3242
3243         atanl: Move AC_LIBOBJ invocations to module description.
3244         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3245         * modules/atanl (configure.ac): ... to here.
3246
3247 2011-05-21  Bruno Haible  <bruno@clisp.org>
3248
3249         acosl: Move AC_LIBOBJ invocations to module description.
3250         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3251         * modules/acosl (configure.ac): ... to here.
3252
3253 2011-05-21  Bruno Haible  <bruno@clisp.org>
3254
3255         asinl: Respect rules for use of AC_LIBOBJ.
3256         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3257         * modules/asinl (configure.ac): ... to here.
3258
3259 2011-05-21  Bruno Haible  <bruno@clisp.org>
3260
3261         tanl: Move AC_LIBOBJ invocations to module description.
3262         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3263         * modules/tanl (configure.ac): ... to here.
3264
3265 2011-05-21  Bruno Haible  <bruno@clisp.org>
3266
3267         cosl: Move AC_LIBOBJ invocations to module description.
3268         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3269         * modules/cosl (configure.ac): ... to here.
3270
3271 2011-05-21  Bruno Haible  <bruno@clisp.org>
3272
3273         sinl: Move AC_LIBOBJ invocations to module description.
3274         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3275         * modules/sinl (configure.ac): ... to here.
3276
3277 2011-05-21  Bruno Haible  <bruno@clisp.org>
3278
3279         logl: Move AC_LIBOBJ invocations to module description.
3280         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3281         * modules/logl (configure.ac): ... to here.
3282
3283 2011-05-21  Bruno Haible  <bruno@clisp.org>
3284
3285         expl: Move AC_LIBOBJ invocations to module description.
3286         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3287         * modules/expl (configure.ac): ... to here.
3288
3289 2011-05-21  Bruno Haible  <bruno@clisp.org>
3290
3291         roundl: Move AC_LIBOBJ invocations to module description.
3292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3293         * modules/roundl (configure.ac): ... to here.
3294
3295 2011-05-21  Bruno Haible  <bruno@clisp.org>
3296
3297         round: Move AC_LIBOBJ invocations to module description.
3298         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3299         * modules/round (configure.ac): ... to here.
3300
3301 2011-05-21  Bruno Haible  <bruno@clisp.org>
3302
3303         roundf: Move AC_LIBOBJ invocations to module description.
3304         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3305         * modules/roundf (configure.ac): ... to here.
3306
3307 2011-05-21  Bruno Haible  <bruno@clisp.org>
3308
3309         truncl: Move AC_LIBOBJ invocations to module description.
3310         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3311         * modules/truncl (configure.ac): ... to here.
3312
3313 2011-05-21  Bruno Haible  <bruno@clisp.org>
3314
3315         trunc: Move AC_LIBOBJ invocations to module description.
3316         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3317         * modules/trunc (configure.ac): ... to here.
3318
3319 2011-05-21  Bruno Haible  <bruno@clisp.org>
3320
3321         truncf: Move AC_LIBOBJ invocations to module description.
3322         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3323         * modules/truncf (configure.ac): ... to here.
3324
3325 2011-05-21  Bruno Haible  <bruno@clisp.org>
3326
3327         ceill: Move AC_LIBOBJ invocations to module description.
3328         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3329         * modules/ceill (configure.ac): ... to here.
3330
3331 2011-05-21  Bruno Haible  <bruno@clisp.org>
3332
3333         ceil: Move AC_LIBOBJ invocations to module description.
3334         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3335         * modules/ceil (configure.ac): ... to here.
3336
3337 2011-05-21  Bruno Haible  <bruno@clisp.org>
3338
3339         ceilf: Move AC_LIBOBJ invocations to module description.
3340         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3341         * modules/ceilf (configure.ac): ... to here.
3342
3343 2011-05-21  Bruno Haible  <bruno@clisp.org>
3344
3345         floorl: Respect rules for use of AC_LIBOBJ.
3346         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3347         * modules/floorl (configure.ac): ... to here.
3348
3349 2011-05-21  Bruno Haible  <bruno@clisp.org>
3350
3351         floor: Respect rules for use of AC_LIBOBJ.
3352         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3353         * modules/floor (configure.ac): ... to here.
3354
3355 2011-05-21  Bruno Haible  <bruno@clisp.org>
3356
3357         floorf: Move AC_LIBOBJ invocations to module description.
3358         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3359         * modules/floorf (configure.ac): ... to here.
3360
3361 2011-05-20  Bruno Haible  <bruno@clisp.org>
3362
3363         sqrtl: Respect rules for use of AC_LIBOBJ.
3364         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3365         * modules/sqrtl (configure.ac): ... to here.
3366
3367 2011-05-20  Bruno Haible  <bruno@clisp.org>
3368
3369         ldexpl: Respect rules for use of AC_LIBOBJ.
3370         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3371         * modules/ldexpl (configure.ac): ... to here.
3372
3373 2011-05-20  Bruno Haible  <bruno@clisp.org>
3374
3375         frexpl*: Respect rules for use of AC_LIBOBJ.
3376         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3377         invocation from here...
3378         * modules/frexpl (configure.ac): ... to here.
3379         * modules/frexpl-nolibm (configure.ac): ... and here.
3380
3381 2011-05-20  Bruno Haible  <bruno@clisp.org>
3382
3383         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3384         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3385         invocation from here...
3386         * modules/frexp (configure.ac): ... to here.
3387         * modules/frexp-nolibm (configure.ac): ... and here.
3388
3389 2011-05-20  Bruno Haible  <bruno@clisp.org>
3390
3391         isnan: Respect rules for use of AC_LIBOBJ.
3392         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3393         invocations here.
3394         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3395         REPLACE_ISNAN.
3396         * modules/isnand (configure.ac): Likewise.
3397         * modules/isnanl (configure.ac): Likewise.
3398
3399 2011-05-20  Bruno Haible  <bruno@clisp.org>
3400
3401         isnanl*: Respect rules for use of AC_LIBOBJ.
3402         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3403         invocation from here...
3404         * modules/isnanl (configure.ac): ... to here.
3405         * modules/isnanl-nolibm (configure.ac): ... and here.
3406
3407 2011-05-20  Bruno Haible  <bruno@clisp.org>
3408
3409         isnand*: Move AC_LIBOBJ invocations to module description.
3410         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3411         invocation from here...
3412         * modules/isnand (configure.ac): ... to here.
3413         * modules/isnand-nolibm (configure.ac): ... and here.
3414
3415 2011-05-20  Bruno Haible  <bruno@clisp.org>
3416
3417         isnanf*: Move AC_LIBOBJ invocations to module description.
3418         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3419         invocation from here...
3420         * modules/isnanf (configure.ac): ... to here.
3421         * modules/isnanf-nolibm (configure.ac): ... and here.
3422
3423 2011-05-20  Bruno Haible  <bruno@clisp.org>
3424
3425         isnan*: Separate the AC_LIBOBJ invocations.
3426         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3427         AC_LIBOBJ invocation.
3428         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3429         here.
3430         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3431         AC_LIBOBJ invocation.
3432         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3433         here.
3434         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3435         AC_LIBOBJ invocation.
3436         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3437         here.
3438         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3439
3440 2011-05-08  Bruno Haible  <bruno@clisp.org>
3441
3442         isinf: Move AC_LIBOBJ invocations to module description.
3443         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3444         * modules/isinf (configure.ac): ... to here.
3445
3446 2011-05-08  Bruno Haible  <bruno@clisp.org>
3447
3448         isfinite: Move AC_LIBOBJ invocations to module description.
3449         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3450         * modules/isfinite (configure.ac): ... to here.
3451
3452 2011-05-08  Bruno Haible  <bruno@clisp.org>
3453
3454         isblank: Move AC_LIBOBJ invocations to module description.
3455         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3456         here...
3457         * modules/isblank (configure.ac): ... to here.
3458
3459 2011-05-08  Bruno Haible  <bruno@clisp.org>
3460
3461         isapipe: Move AC_LIBOBJ invocations to module description.
3462         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3463         gl_PREREQ_ISAPIPE invocations from here...
3464         * modules/isapipe (configure.ac): ... to here.
3465         (Depends-on): Update condition.
3466
3467 2011-05-08  Bruno Haible  <bruno@clisp.org>
3468
3469         ioctl: Move AC_LIBOBJ invocations to module description.
3470         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3471         invocations from here...
3472         * modules/ioctl (configure.ac): ... to here.
3473         (Depends-on): Update condition.
3474
3475 2011-05-08  Bruno Haible  <bruno@clisp.org>
3476
3477         imaxdiv: Move AC_LIBOBJ invocations to module description.
3478         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3479         invocations from here...
3480         * modules/imaxdiv (configure.ac): ... to here.
3481
3482 2011-05-08  Bruno Haible  <bruno@clisp.org>
3483
3484         imaxabs: Move AC_LIBOBJ invocations to module description.
3485         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3486         invocations from here...
3487         * modules/imaxabs (configure.ac): ... to here.
3488
3489 2011-05-08  Bruno Haible  <bruno@clisp.org>
3490
3491         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3493         AC_LIBOBJ invocations from here...
3494         * modules/getaddrinfo (configure.ac): ... to here.
3495         (Depends-on): Add conditions.
3496
3497 2011-05-08  Bruno Haible  <bruno@clisp.org>
3498
3499         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3500         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3501         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3502         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3503         (gl_PREREQ_INET_PTON): ... from here.
3504         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3505         gl_PREREQ_INET_PTON here.
3506         (Depends-on): Update condition.
3507
3508 2011-05-08  Bruno Haible  <bruno@clisp.org>
3509
3510         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3511         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3512         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3513         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3514         (gl_PREREQ_INET_NTOP): ... from here.
3515         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3516         gl_PREREQ_INET_NTOP here.
3517         (Depends-on): Update condition.
3518
3519 2011-05-08  Bruno Haible  <bruno@clisp.org>
3520
3521         iconv_open: Move AC_LIBOBJ invocations to module description.
3522         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3523         AC_LIBOBJ invocations from here...
3524         * modules/iconv_open (configure.ac): ... to here.
3525
3526 2011-05-08  Bruno Haible  <bruno@clisp.org>
3527
3528         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3529         If module 'iconv_open' is among the main modules and module
3530         'iconv_open-utf' is among the tests dependencies, then
3531         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3532         return the special iconv_t values. Therefore iconv() and iconv_close()
3533         must support these special iconv_t values, already in lib, not only in
3534         tests.
3535         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3537         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3538         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3539         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3540         (Depends-on): Add the dependencies of iconv_open-utf.
3541         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3542         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3543         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3544
3545 2011-05-08  Bruno Haible  <bruno@clisp.org>
3546
3547         group-member: Move AC_LIBOBJ invocations to module description.
3548         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3549         gl_PREREQ_GROUP_MEMBER invocations from here...
3550         * modules/group-member (configure.ac): ... to here.
3551
3552 2011-05-08  Bruno Haible  <bruno@clisp.org>
3553
3554         grantpt: Move AC_LIBOBJ invocations to module description.
3555         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3556         invocations from here...
3557         * modules/grantpt (configure.ac): ... to here.
3558
3559 2011-05-08  Bruno Haible  <bruno@clisp.org>
3560
3561         glob: Move AC_LIBOBJ invocations to module description.
3562         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3563         from here...
3564         * modules/glob (configure.ac): ... to here.
3565
3566 2011-05-08  Bruno Haible  <bruno@clisp.org>
3567
3568         getusershell: Move AC_LIBOBJ invocations to module description.
3569         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3570         Move AC_LIBOBJ invocation from here...
3571         * modules/getusershell (configure.ac): ... to here.
3572         (Depends-on): Update condition.
3573
3574 2011-05-08  Bruno Haible  <bruno@clisp.org>
3575
3576         gettimeofday: Move AC_LIBOBJ invocations to module description.
3577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3578         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3579         gl_PREREQ_GETTIMEOFDAY invocations from here...
3580         * modules/gettimeofday (configure.ac): ... to here.
3581
3582 2011-05-08  Bruno Haible  <bruno@clisp.org>
3583
3584         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3585         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3586         just gl_FUNC_TZSET.
3587         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3588         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3590         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3591
3592 2011-05-08  Bruno Haible  <bruno@clisp.org>
3593
3594         getsubopt: Move AC_LIBOBJ invocations to module description.
3595         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3596         gl_PREREQ_GETSUBOPT invocations from here...
3597         * modules/getsubopt (configure.ac): ... to here.
3598
3599 2011-05-08  Bruno Haible  <bruno@clisp.org>
3600
3601         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3602         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3603         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3604         * modules/getpass-gnu (configure.ac): ... to here.
3605
3606 2011-05-08  Bruno Haible  <bruno@clisp.org>
3607
3608         getpass: Move AC_LIBOBJ invocations to module description.
3609         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3610         gl_PREREQ_GETPASS invocations from here...
3611         * modules/getpass (configure.ac): ... to here.
3612
3613 2011-05-08  Bruno Haible  <bruno@clisp.org>
3614
3615         getpagesize: Move AC_LIBOBJ invocations to module description.
3616         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3617         from here...
3618         * modules/getpagesize (configure.ac): ... to here.
3619
3620 2011-05-08  Bruno Haible  <bruno@clisp.org>
3621
3622         getopt: Move AC_LIBOBJ invocations to module description.
3623         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3624         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3625         invocations from here...
3626         * modules/getopt-gnu (configure.ac): ... to here.
3627         * modules/getopt-posix (configure.ac): ... and here.
3628         (Depends-on): Update condition.
3629
3630 2011-05-08  Bruno Haible  <bruno@clisp.org>
3631
3632         getopt, argp: Respect rules for use of AC_LIBOBJ.
3633         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3634         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3635         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3636         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3637
3638 2011-05-08  Bruno Haible  <bruno@clisp.org>
3639
3640         getlogin_r: Move AC_LIBOBJ invocations to module description.
3641         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3642         gl_PREREQ_GETLOGIN_R invocations from here...
3643         * modules/getlogin_r (configure.ac): ... to here.
3644
3645 2011-05-08  Bruno Haible  <bruno@clisp.org>
3646
3647         getlogin: Move AC_LIBOBJ invocations to module description.
3648         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3649         here...
3650         * modules/getlogin (configure.ac): ... to here.
3651
3652 2011-05-08  Bruno Haible  <bruno@clisp.org>
3653
3654         getloadavg: Move AC_LIBOBJ invocations to module description.
3655         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3656         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3657         * modules/getloadavg (configure.ac): ... to here.
3658
3659 2011-05-08  Bruno Haible  <bruno@clisp.org>
3660
3661         gethrxtime: Move AC_LIBOBJ invocations to module description.
3662         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3663         LIB_GETHRXTIME from here...
3664         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3665         invocations from here...
3666         * modules/gethrxtime (configure.ac): ... to here.
3667
3668 2011-05-08  Bruno Haible  <bruno@clisp.org>
3669
3670         gethostname: Move AC_LIBOBJ invocations to module description.
3671         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3672         gl_PREREQ_GETHOSTNAME invocations from here...
3673         * modules/gethostname (configure.ac): ... to here.
3674
3675 2011-05-08  Bruno Haible  <bruno@clisp.org>
3676
3677         getgroups: Move AC_LIBOBJ invocations to module description.
3678         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3679         here...
3680         * modules/getgroups (configure.ac): ... to here.
3681
3682 2011-05-08  Bruno Haible  <bruno@clisp.org>
3683
3684         getdtablesize: Move AC_LIBOBJ invocations to module description.
3685         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3686         invocation from here...
3687         * modules/getdtablesize (configure.ac): ... to here.
3688
3689 2011-05-08  Bruno Haible  <bruno@clisp.org>
3690
3691         getdomainname: Move AC_LIBOBJ invocations to module description.
3692         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3693         gl_PREREQ_GETDOMAINNAME invocations from here...
3694         * modules/getdomainname (configure.ac): ... to here.
3695
3696 2011-05-08  Bruno Haible  <bruno@clisp.org>
3697
3698         getline: Move AC_LIBOBJ invocations to module description.
3699         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3700         invocations from here...
3701         * modules/getline (configure.ac): ... to here.
3702
3703 2011-05-08  Bruno Haible  <bruno@clisp.org>
3704
3705         getline: Simplify.
3706         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3707         It's already handled through the module dependency.
3708
3709 2011-05-08  Bruno Haible  <bruno@clisp.org>
3710
3711         getdelim: Move AC_LIBOBJ invocations to module description.
3712         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3713         and gl_PREREQ_GETDELIM invocations from here...
3714         * modules/getdelim (configure.ac): ... to here.
3715         (Depends-on): Fix condition.
3716
3717 2011-05-08  Bruno Haible  <bruno@clisp.org>
3718
3719         getcwd: Move AC_LIBOBJ invocations to module description.
3720         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3721         invocations from here...
3722         * modules/getcwd (configure.ac): ... to here.
3723
3724 2011-05-08  Bruno Haible  <bruno@clisp.org>
3725
3726         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3727         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3728         here...
3729         * modules/getcwd-lgpl (configure.ac): ... to here.
3730
3731 2011-05-07  Bruno Haible  <bruno@clisp.org>
3732
3733         crypto/gc: Move AC_LIBOBJ invocations to module description.
3734         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3735         * modules/crypto/gc (configure.ac): ... to here.
3736
3737 2011-05-07  Bruno Haible  <bruno@clisp.org>
3738
3739         fwriting: Move AC_LIBOBJ invocations to module description.
3740         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3741         here...
3742         * modules/fwriting (configure.ac): ... to here.
3743
3744 2011-05-07  Bruno Haible  <bruno@clisp.org>
3745
3746         fwritable: Move AC_LIBOBJ invocations to module description.
3747         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3748         here...
3749         * modules/fwritable (configure.ac): ... to here.
3750
3751 2011-05-07  Bruno Haible  <bruno@clisp.org>
3752
3753         futimens: Move AC_LIBOBJ invocations to module description.
3754         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3755         here...
3756         * modules/futimens (configure.ac): ... to here.
3757
3758 2011-05-07  Bruno Haible  <bruno@clisp.org>
3759
3760         ftruncate: Move AC_LIBOBJ invocations to module description.
3761         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3762         gl_PREREQ_FTRUNCATE invocations from here...
3763         * modules/ftruncate (configure.ac): ... to here.
3764
3765 2011-05-07  Bruno Haible  <bruno@clisp.org>
3766
3767         fsync: Move AC_LIBOBJ invocations to module description.
3768         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3769         invocations from here...
3770         * modules/fsync (configure.ac): ... to here.
3771
3772 2011-05-07  Bruno Haible  <bruno@clisp.org>
3773
3774         fsusage: Move AC_LIBOBJ invocations to module description.
3775         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3776         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3777         * modules/fsusage (configure.ac): ... to here.
3778
3779 2011-05-07  Bruno Haible  <bruno@clisp.org>
3780
3781         freopen: Move AC_LIBOBJ invocations to module description.
3782         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3783         invocations from here...
3784         * modules/freopen (configure.ac): ... to here.
3785
3786 2011-05-07  Bruno Haible  <bruno@clisp.org>
3787
3788         free: Move AC_LIBOBJ invocations to module description.
3789         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3790         invocations from here...
3791         * modules/free (configure.ac): ... to here.
3792
3793 2011-05-07  Bruno Haible  <bruno@clisp.org>
3794
3795         freadable: Move AC_LIBOBJ invocations to module description.
3796         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3797         here...
3798         * modules/freadable (configure.ac): ... to here.
3799
3800 2011-05-07  Bruno Haible  <bruno@clisp.org>
3801
3802         fpurge: Move AC_LIBOBJ invocations to module description.
3803         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3804         invocations from here...
3805         * modules/fpurge (configure.ac): ... to here.
3806
3807 2011-05-07  Bruno Haible  <bruno@clisp.org>
3808
3809         fpending: Move AC_LIBOBJ invocations to module description.
3810         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3811         gl_FUNC_FPENDING.
3812         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3813         invocations from here...
3814         * modules/fpending (configure.ac): ... to here.
3815
3816 2011-05-07  Bruno Haible  <bruno@clisp.org>
3817
3818         fopen: Move AC_LIBOBJ invocations to module description.
3819         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3820         invocations from here...
3821         * modules/fopen (configure.ac): ... to here.
3822
3823 2011-05-07  Bruno Haible  <bruno@clisp.org>
3824
3825         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3826         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3827         gl_FUNC_FNMATCH_POSIX.
3828         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3829         invocations from here...
3830         * modules/fnmatch (configure.ac): ... to here.
3831         * modules/fnmatch-gnu (configure.ac): ... and here.
3832
3833 2011-05-07  Bruno Haible  <bruno@clisp.org>
3834
3835         flock: Move AC_LIBOBJ invocations to module description.
3836         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3837         invocations from here...
3838         * modules/flock (configure.ac): ... to here.
3839
3840 2011-05-07  Bruno Haible  <bruno@clisp.org>
3841
3842         fileblocks: Move AC_LIBOBJ invocations to module description.
3843         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3844         gl_PREREQ_FILEBLOCKS invocations from here...
3845         * modules/fileblocks (configure.ac): ... to here.
3846
3847 2011-05-06  Bruno Haible  <bruno@clisp.org>
3848
3849         fflush: Move AC_LIBOBJ invocations to module description.
3850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3851         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3852         invocations from here...
3853         * modules/fflush (configure.ac): ... to here.
3854
3855 2011-05-06  Bruno Haible  <bruno@clisp.org>
3856
3857         fdopendir: Move AC_LIBOBJ invocations to module description.
3858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3859         here...
3860         * modules/fdopendir (configure.ac): ... to here.
3861         (Depends-on): Improve conditions.
3862
3863 2011-05-06  Bruno Haible  <bruno@clisp.org>
3864
3865         _Exit: Move AC_LIBOBJ invocations to module description.
3866         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3867         invocations from here...
3868         * modules/_Exit (configure.ac): ... to here.
3869
3870 2011-05-21  Bruno Haible  <bruno@clisp.org>
3871
3872         euidaccess: Respect rules for use of AC_LIBOBJ.
3873         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3875         from here...
3876         * modules/euidaccess (configure.ac): ... to here.
3877
3878 2011-05-06  Bruno Haible  <bruno@clisp.org>
3879
3880         error: Move AC_LIBOBJ invocations to module description.
3881         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3882         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3883         invocations from here...
3884         * modules/error (configure.ac): ... to here.
3885
3886 2011-05-06  Bruno Haible  <bruno@clisp.org>
3887
3888         duplocale: Move AC_LIBOBJ invocations to module description.
3889         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3890         gl_PREREQ_DUPLOCALE invocations from here...
3891         * modules/duplocale (configure.ac): ... to here.
3892
3893 2011-05-05  Bruno Haible  <bruno@clisp.org>
3894
3895         dirfd: Move AC_LIBOBJ invocations to module description.
3896         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3897         gl_FUNC_DIRFD.
3898         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3899         here...
3900         * modules/dirfd (configure.ac): ... to here.
3901         (Depends-on): Fix condition.
3902
3903 2011-05-05  Bruno Haible  <bruno@clisp.org>
3904
3905         chown: Respect rules for use of AC_LIBOBJ.
3906         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3907         * modules/chown (configure.ac): ... to here.
3908
3909 2011-05-05  Bruno Haible  <bruno@clisp.org>
3910
3911         chdir-long: Move AC_LIBOBJ invocations to module description.
3912         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3913         gl_PREREQ_CHDIR_LONG invocations from here...
3914         * modules/chdir-long (configure.ac): ... to here.
3915
3916 2011-05-05  Bruno Haible  <bruno@clisp.org>
3917
3918         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3919         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3920         from here...
3921         * modules/canonicalize-lgpl (configure.ac): ... to here.
3922
3923 2011-05-05  Bruno Haible  <bruno@clisp.org>
3924
3925         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3926         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3927         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3928         REPLACE_CALLOC.
3929         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3930         * modules/calloc-gnu (configure.ac): Likewise.
3931
3932 2011-05-05  Bruno Haible  <bruno@clisp.org>
3933
3934         btowc: Move AC_LIBOBJ invocations to module description.
3935         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3936         invocations from here...
3937         * modules/btowc (configure.ac): ... to here.
3938
3939 2011-05-21  Bruno Haible  <bruno@clisp.org>
3940
3941         atexit: Move AC_LIBOBJ invocations to module description.
3942         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3944         here...
3945         * modules/atexit (configure.ac): ... to here.
3946
3947 2011-05-05  Bruno Haible  <bruno@clisp.org>
3948
3949         atoll: Move AC_LIBOBJ invocations to module description.
3950         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3951         invocations from here...
3952         * modules/atoll (configure.ac): ... to here.
3953
3954 2011-05-05  Bruno Haible  <bruno@clisp.org>
3955
3956         argz: Move AC_LIBOBJ invocations to module description.
3957         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3958         * modules/argz (configure.ac): ... to here.
3959
3960 2011-05-05  Bruno Haible  <bruno@clisp.org>
3961
3962         alphasort: Move AC_LIBOBJ invocations to module description.
3963         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3964         gl_PREREQ_ALPHASORT invocations from here...
3965         * modules/alphasort (configure.ac): ... to here.
3966
3967 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3968
3969         verify: new macro verify_expr; verify_true deprecated
3970         * NEWS: Mention this.
3971         * doc/verify.texi (Compile-time Assertions): Document this.
3972         * lib/verify.h (verify_true): Deprecate.
3973         (verify_expr): New macro.
3974         * tests/test-verify.c (function): Test verify_expr.
3975
3976 2011-06-14  Jim Meyering  <meyering@redhat.com>
3977
3978         init.sh: give more portable redirection-related advice in a comment
3979         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3980         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3981         for lots of discussion.  Stefano Lattarini suggested the solution
3982         of putting "9>&2" after the command.  Reported by Bruno Haible.
3983
3984 2011-06-13  Bruno Haible  <bruno@clisp.org>
3985
3986         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3987         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3988         'none'.
3989
3990 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3991
3992         ftoastr: use strtof only if HAVE_STRTOF
3993         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3995         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3996         * modules/ftoastr (configure.ac): Check for strtof.
3997
3998 2011-06-13  Bruno Haible  <bruno@clisp.org>
3999
4000         gnulib-tool: Addendum to 2011-06-08 commit.
4001         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4002         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4003
4004 2011-06-13  Bruno Haible  <bruno@clisp.org>
4005
4006         fseeko: Provide a non-inline replacement of fseek().
4007         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4008         * modules/fseeko (Depends-on): Add fseek.
4009         * modules/fseek (License): Change to LGPLv2+.
4010
4011 2011-06-13  Bruno Haible  <bruno@clisp.org>
4012
4013         ftello: Provide a non-inline replacement of ftell().
4014         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4015         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4016         not have ftello() (such as on mingw).
4017         * modules/ftello (Depends-on): Add ftell.
4018         * modules/ftell (License): Change to LGPLv2+.
4019
4020 2011-05-07  Bruno Haible  <bruno@clisp.org>
4021
4022         ftell: Move AC_LIBOBJ invocations to module description.
4023         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4024         * modules/ftell (configure.ac): ... to here.
4025
4026 2011-05-07  Bruno Haible  <bruno@clisp.org>
4027
4028         ftello: Respect rules for use of AC_LIBOBJ.
4029         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4030         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4031         here...
4032         * modules/ftello (configure.ac): ... to here.
4033
4034 2011-05-07  Bruno Haible  <bruno@clisp.org>
4035
4036         fseeko: Simplify.
4037         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4038         (gl_FUNC_FSEEKO): Inline it here.
4039
4040 2011-05-07  Bruno Haible  <bruno@clisp.org>
4041
4042         fseek: Move AC_LIBOBJ invocations to module description.
4043         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4044         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4045         * modules/fseek (configure.ac): ... to here.
4046
4047 2011-05-07  Bruno Haible  <bruno@clisp.org>
4048
4049         fseek: Respect rules for use of AC_LIBOBJ.
4050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4051         here...
4052         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4053
4054 2011-05-07  Bruno Haible  <bruno@clisp.org>
4055
4056         fseeko: Respect rules for use of AC_LIBOBJ.
4057         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4058         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4059         here...
4060         * modules/fseeko (configure.ac): ... to here.
4061
4062 2011-06-13  Bruno Haible  <bruno@clisp.org>
4063
4064         gnulib-tool: Allow comments in the 'Depends-on' section.
4065         * doc/gnulib.texi (Module description): Mention comment syntax in the
4066         Depends-on section.
4067         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4068
4069 2011-06-13  Bruno Haible  <bruno@clisp.org>
4070
4071         file-set.h: guard __attibute__ use, now that it's not always defined
4072         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4073         versions that support it.  This fixes a coreutils build failure with
4074         the vendor cc on HP-UX 11.31.
4075
4076 2011-06-12  Bruno Haible  <bruno@clisp.org>
4077
4078         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4079         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4080         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4081         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4082         (acl, aclsort): New declarations.
4083         (aclv_nontrivial): New declaration.
4084         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4085         (file_has_acl): Read also the second kind of HP-UX ACLs.
4086         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4087         kind of HP-UX ACLs if the first kind fails.
4088         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4089         second kind of HP-UX ACLs.
4090         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4091         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4092         agree.
4093         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4094         hpuxjfs.
4095         Handle hpuxjfs.
4096         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4097         hpuxjfs.
4098         Handle hpuxjfs.
4099         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4100         (func_test_same_acls): Use both lsacl and getacl.
4101         Handle hpuxjfs.
4102         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4103         (func_test_same_acls): Use both lsacl and getacl.
4104         Handle hpuxjfs.
4105
4106 2011-06-12  Bruno Haible  <bruno@clisp.org>
4107
4108         acl: Complete the 2010-08-10 fix.
4109         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4110         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4111         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4112         explicitly.
4113         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4114         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4115
4116 2011-06-12  Bruno Haible  <bruno@clisp.org>
4117
4118         spawn-pipe tests: Comments.
4119         * tests/test-spawn-pipe-child.c (main): Update comment.
4120         Reported by James Youngman <jay@gnu.org>.
4121
4122 2011-06-11  James Youngman  <jay@gnu.org>
4123
4124         New module 'stat-size'.
4125         * modules/stat-size: New module.  Provides macros for accessing
4126         file size information in instances of struct stat.  Depends on the
4127         fileblocks module because it calls st_blocks.
4128         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4129         * doc/gnulib.texi: Include stat-size.texi.
4130         * doc/stat-size.texi: Documentation for this module.
4131         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4132         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4133         AC_STRUCT_ST_BLOCKS.
4134
4135 2011-06-09  Bruno Haible  <bruno@clisp.org>
4136
4137         thread: Support pthreads-win32.
4138         * lib/glthread/thread.h (gl_thread_self): Define differently on
4139         pthreads-win32.
4140         (gl_null_thread): New declaration.
4141         (gl_thread_self_pointer): New macro.
4142         * lib/glthread/thread.c (gl_null_thread): New constant.
4143         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4144         gl_thread_self.
4145         * tests/test-tls.c: Likewise.
4146         Suggested by Paul Eggert. Reported by Eric Blake.
4147
4148 2011-06-09  Bruno Haible  <bruno@clisp.org>
4149
4150         thread: Fix confusion between NULL and 0.
4151         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4152         Reported by Paul Eggert.
4153
4154 2011-06-09  Bruno Haible  <bruno@clisp.org>
4155
4156         spawn-pipe tests: Avoid test failure on HP-UX 11.
4157         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4158         is closed.
4159
4160 2011-06-09  Bruno Haible  <bruno@clisp.org>
4161
4162         acl tests: Fix compilation error on HP-UX 11.
4163         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4164
4165 2011-06-09  Bruno Haible  <bruno@clisp.org>
4166
4167         rmdir: Avoid test failure on HP-UX 10.20.
4168         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4169         EEXIST.
4170
4171 2011-06-08  Eric Blake  <eblake@redhat.com>
4172
4173         perror: fix test on mingw
4174         * modules/perror-tests (Depends-on): Add dup2.
4175
4176         strerror_r-posix: fix on MacOS
4177         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4178         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4179         logic bug.
4180         * lib/strerror_r.c (strerror_r): Fix the bug.
4181         * lib/strerror.c (strerror): Likewise.
4182         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4183         problem.
4184         * doc/posix-functions/strerror.texi (strerror): Likewise.
4185         * doc/posix-functions/perror.texi (perror): Likewise.
4186         * tests/test-strerror.c (main): Enhance test.
4187         * tests/test-strerror_r.c (main): Likewise.
4188
4189 2011-06-08  Bruno Haible  <bruno@clisp.org>
4190
4191         gnulib-tool: Better isolation between different gnulib-tool invocations.
4192         * gnulib-tool: New option --witness-c-macro.
4193         (witness_c_macro): New variable.
4194         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4195         AM_CPPFLAGS define it as a C macro.
4196         (func_emit_tests_Makefile_am): Likewise.
4197         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4198         read it from there.
4199         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4200         m4_define, not AC_DEFUN.
4201         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4202         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4203         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4204         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4205         s|...|...|, to substitute the values of the GNULIB_* module indicator
4206         variables.
4207         * modules/dirent (Makefile.am): Likewise.
4208         * modules/fcntl-h (Makefile.am): Likewise.
4209         * modules/iconv-h (Makefile.am): Likewise.
4210         * modules/langinfo (Makefile.am): Likewise.
4211         * modules/locale (Makefile.am): Likewise.
4212         * modules/math (Makefile.am): Likewise.
4213         * modules/netdb (Makefile.am): Likewise.
4214         * modules/poll-h (Makefile.am): Likewise.
4215         * modules/pty (Makefile.am): Likewise.
4216         * modules/search (Makefile.am): Likewise.
4217         * modules/signal (Makefile.am): Likewise.
4218         * modules/spawn (Makefile.am): Likewise.
4219         * modules/stdio (Makefile.am): Likewise.
4220         * modules/stdlib (Makefile.am): Likewise.
4221         * modules/string (Makefile.am): Likewise.
4222         * modules/sys_ioctl (Makefile.am): Likewise.
4223         * modules/sys_select (Makefile.am): Likewise.
4224         * modules/sys_socket (Makefile.am): Likewise.
4225         * modules/sys_stat (Makefile.am): Likewise.
4226         * modules/sys_times (Makefile.am): Likewise.
4227         * modules/sys_utsname (Makefile.am): Likewise.
4228         * modules/sys_wait (Makefile.am): Likewise.
4229         * modules/termios (Makefile.am): Likewise.
4230         * modules/time (Makefile.am): Likewise.
4231         * modules/unistd (Makefile.am): Likewise.
4232         * modules/wchar (Makefile.am): Likewise.
4233
4234 2011-06-08  Eric Blake  <eblake@redhat.com>
4235
4236         strerror: simplify replacement
4237         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4238         * modules/strerror (configure.ac): No prereqs needed here...
4239         * modules/strerror-override (configure.ac): ...but this needs it.
4240         (Files): Add file for needed prereq macro.
4241
4242 2011-06-08  Bruno Haible  <bruno@clisp.org>
4243
4244         strerror_r-posix: Tweaks.
4245         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4246         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4248         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4249         (gl_FUNC_STRERROR_R): ... to here.
4250         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4251
4252 2011-06-07  Eric Blake  <eblake@redhat.com>
4253
4254         perror: document fixed bugs
4255         * doc/posix-functions/perror.texi (perror): Document recent
4256         patches.
4257
4258 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         stat-time: get_stat_birthtime failure is better-defined
4261         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4262         return a timestamp whose tv_sec and tv_nsec values are both -1.
4263         Previously, the spec said only that the tv_nsec value was negative.
4264         This upward-compatible change simplifies GNU tar a bit.
4265
4266 2011-06-07  Eric Blake  <eblake@redhat.com>
4267
4268         strerror_r-posix: work around cygwin 1.7.9
4269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4270         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4271         bug without replacing strerror_r.
4272         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4273         strerror_r is buggy, but without requiring strerror_r compilation.
4274         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4275
4276         test-perror: relax test to ignore cygwin bug
4277         * tests/test-perror2.c (main): Relax test on requiring detection
4278         of stream errors, and use unbuffered stream.
4279         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4280         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4281         * doc/posix-functions/fputc.texi (fputc): Likewise.
4282         * doc/posix-functions/fputs.texi (fputs): Likewise.
4283         * doc/posix-functions/fputws.texi (fputws): Likewise.
4284         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4285         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4286         * doc/posix-functions/getopt.texi (getopt): Likewise.
4287         * doc/posix-functions/perror.texi (perror): Likewise.
4288         * doc/posix-functions/printf.texi (printf): Likewise.
4289         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4290         * doc/posix-functions/psignal.texi (psignal): Likewise.
4291         * doc/posix-functions/putc.texi (putc): Likewise.
4292         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4293         Likewise.
4294         * doc/posix-functions/putchar.texi (putchar): Likewise.
4295         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4296         Likewise.
4297         * doc/posix-functions/puts.texi (puts): Likewise.
4298         * doc/posix-functions/putwc.texi (putwc): Likewise.
4299         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4300         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4301         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4302         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4303         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4304         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4305         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4306         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4307
4308 2011-05-22  Bruno Haible  <bruno@clisp.org>
4309
4310         strerror: Move AC_LIBOBJ invocations to module description.
4311         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4312         gl_PREREQ_STRERROR invocations from here...
4313         * modules/strerror (configure.ac): ... to here.
4314
4315 2011-05-21  Bruno Haible  <bruno@clisp.org>
4316
4317         perror: Use common idiom.
4318         * modules/perror (configure.ac): Reorder statements.
4319
4320 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4321
4322         tests: fix usage message in 'mktempd_'
4323         * tests/init.sh (mktempd_): In the usage message, use literal
4324         'mktempd_', not '$ME' (which is even undefined), as the name of
4325         the subroutine.
4326
4327 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4328
4329         tests init: new function 'fatal_', for hard errors
4330         Before this patch, the only way offered by tests/init.sh to
4331         properly signal a hard error was the `framework_failure_'
4332         function.  But the error message issued by that function,
4333         as its name would suggest, refers to a set-up failure in the
4334         testsuite, while hard errors can obviously also be due to
4335         other reasons.  The best way to fix this inconsistency is to
4336         introduce a new function with a more general error message.
4337         * tests/init.sh (fatal_): New function.
4338
4339 2011-06-06  Eric Blake  <eblake@redhat.com>
4340
4341         canonicalize-lgpl: use common idiom
4342         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4343         over newer POSIX -Rf.
4344         Reported by Bruno Haible.
4345
4346         canonicalize-lgpl: work around AIX realpath bug
4347         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4348         * doc/posix-functions/realpath.texi (realpath): Document it.
4349         Reported by Bruno Haible.
4350
4351         strerror: work around FreeBSD bug
4352         * lib/strerror.c (strerror): Special case 0.
4353         Reported by Bruno Haible.
4354
4355         strerror-override: avoid bloating errno module
4356         * modules/errno (Files, configure.ac): Move replacement strings...
4357         * modules/strerror-override: ...to new module.
4358         * modules/strerror (Depends-on): Add strerror-override.
4359         * modules/strerror_r-posix (Depends-on): Likewise.
4360         * MODULES.html.sh: Document new module.
4361         Reported by Bruno Haible.
4362
4363 2011-06-06  Bruno Haible  <bruno@clisp.org>
4364
4365         spawn-pipe tests: Rename program.
4366         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4367         * tests/test-spawn-pipe-child.c: Update comment.
4368         * tests/test-spawn-pipe.sh: Update.
4369         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4370
4371         spawn-pipe tests: Link the child program only against libc.
4372         * tests/test-spawn-pipe-child.c: New file, extracted from
4373         tests/test-spawn-pipe.c.
4374         (main): Expect only one argument.
4375         (is_open): New function, copied from tests/test-pipe.c.
4376         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4377         (child_main): Remove function.
4378         (test_pipe): Pass only one argument to the child program.
4379         (main): Remove child process code. Expect the child program's name as
4380         first argument.
4381         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4382         argument.
4383         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4384         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4385         test-spawn-pipe-child against no libraries.
4386
4387 2011-06-06  Bruno Haible  <bruno@clisp.org>
4388
4389         careadlinkat: Avoid mismatch between ssize_t and int.
4390         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4391         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4392
4393 2011-06-06  Jim Meyering  <meyering@redhat.com>
4394
4395         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4396         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4397         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4398
4399 2011-06-05  Bruno Haible  <bruno@clisp.org>
4400
4401         ansi-c++-opt: Interoperability with libtool.
4402         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4403         set the variable to "no", not to ":".
4404         * NEWS: Mention the change.
4405
4406 2011-06-05  Bruno Haible  <bruno@clisp.org>
4407
4408         acl: Fix test failure on AIX 7.
4409         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4410         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4411
4412 2011-06-05  Bruno Haible  <bruno@clisp.org>
4413
4414         pipe-filter-ii: Fix test failure on AIX and IRIX.
4415         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4416         with EAGAIN, retry with a smaller buffer size.
4417
4418 2011-06-05  Bruno Haible  <bruno@clisp.org>
4419
4420         localename: Fix link dependencies.
4421         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4422         * modules/localename-tests (Makefile.am): Link test-localename with
4423         $(LIBTHREAD).
4424
4425 2011-06-05  Bruno Haible  <bruno@clisp.org>
4426
4427         error: Avoid gcc warning.
4428         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4429
4430 2011-06-05  Bruno Haible  <bruno@clisp.org>
4431
4432         unsetenv: Avoid gcc warning.
4433         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4434
4435 2011-06-05  Bruno Haible  <bruno@clisp.org>
4436
4437         setenv: Avoid gcc warning.
4438         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4439
4440 2011-06-05  Bruno Haible  <bruno@clisp.org>
4441
4442         sys_select: Ensure memset is declared also on AIX 7.
4443         * lib/sys_select.in.h: Include <string.h> also on AIX.
4444         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4445         self-contained also on AIX 7.1.
4446
4447 2011-06-04  Jim Meyering  <meyering@redhat.com>
4448
4449         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4450         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4451         function name, "error".
4452         (_gl_translatable_diag_func_re): New configurable variable.
4453
4454 2011-06-04  Bruno Haible  <bruno@clisp.org>
4455
4456         getopt: Avoid gcc warning.
4457         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4458
4459 2011-06-04  Bruno Haible  <bruno@clisp.org>
4460
4461         strerror_r: Fix comments.
4462         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4463         commit.
4464
4465 2011-06-04  Bruno Haible  <bruno@clisp.org>
4466
4467         perror: Fix compilation error.
4468         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4469         Undefine fprintf, not sprintf.
4470         * modules/perror (Depends-on): Remove intprops, verify.
4471
4472 2011-06-04  Bruno Haible  <bruno@clisp.org>
4473
4474         setlocale: Enable replacement on Cygwin 1.5.
4475         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4476         Cygwin 1.5.x.
4477         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4478         LC_CTYPE category also exists on Cygwin 1.5.x.
4479
4480 2011-06-04  Bruno Haible  <bruno@clisp.org>
4481
4482         strerror-override: Don't disable symbol renamings.
4483         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4484         * lib/strerror-override.c: Include config.h.
4485         (strerror_override): Don't undefine.
4486
4487 2011-06-03  Bruno Haible  <bruno@clisp.org>
4488
4489         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4490         * lib/localename.h: Update copyright header.
4491         * lib/localename.c: Likewise.
4492         * lib/relocatable.h: Likewise.
4493         * lib/relocatable.c: Likewise.
4494
4495 2011-06-02  Bruno Haible  <bruno@clisp.org>
4496
4497         doc: Fix a module name.
4498         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4499
4500 2011-06-02  Bruno Haible  <bruno@clisp.org>
4501
4502         pipe2: Remove dependency on 'nonblocking' module.
4503         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4504         O_NONBLOCK is defined by gnulib.
4505         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4506         is zero.
4507         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4508         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4509         defined by gnulib.
4510         (get_nonblocking_flag): New function.
4511         (main): Test O_NONBLOCK flag only if it is nonzero.
4512         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4513
4514 2011-06-03  Jim Meyering  <meyering@redhat.com>
4515
4516         maint: three new prohibit-header-without-use rules
4517         Prohibit use of cloexec.h, posixver.h, same.h without use.
4518         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4519         (sc_prohibit_posixver_without_use): Likewise.
4520         (sc_prohibit_same_without_use): Likewise.
4521
4522 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         allocator: 'die' routine is now given requested size
4525         * lib/allocator.h (struct allocator.die): New size arg.
4526         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4527         If the actual problem is an ssize_t limitation, not a size_t or
4528         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4529
4530 2011-06-01  Eric Blake  <eblake@redhat.com>
4531
4532         strerror: drop strerror_r dependency
4533         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4534         * lib/strerror-override.c (strerror_override): ...to new file.
4535         * lib/strerror-override.h: Add prototype.
4536         * lib/strerror-impl.h: Delete.
4537         * lib/strerror.c (strerror): New implementation.
4538         * modules/errno (Files): Add new files.
4539         (configure.ac): Compile new file as appropriate.
4540         * modules/strerror (Files): Drop unused file.
4541         (Depends-on): Drop strerror_r-posix.
4542         * MODULES.html.sh: Document strerror_r-posix.
4543         Requested by Sam Steingold.
4544
4545         perror: call strerror_r directly
4546         * modules/perror (Files): Drop strerror-impl.h.
4547         * lib/perror.c (perror): Use our own stack buffer, rather than
4548         calling a wrapper that uses static storage.
4549         * doc/posix-functions/perror.texi (perror): Document a limitation
4550         of our replacement.
4551
4552         strerror_r: fix includes for FreeBSD
4553         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4554         since we use abort on some platforms.
4555         Reported by Matthias Bolte.
4556
4557 2011-05-31  Bruno Haible  <bruno@clisp.org>
4558
4559         Fix link errors in tests: openat-die uses gettext-h.
4560         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4561         against $(LIBINTL).
4562         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4563         against $(LIBINTL).
4564         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4565         $(LIBINTL).
4566         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4567         against $(LIBINTL).
4568         * modules/linkat-tests (Makefile.am): Link test-linkat against
4569         $(LIBINTL).
4570         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4571         $(LIBINTL).
4572         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4573         against $(LIBINTL).
4574         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4575         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4576         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4577         $(LIBINTL).
4578         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4579         $(LIBINTL).
4580         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4581         $(LIBINTL).
4582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4583
4584 2011-05-31  Bruno Haible  <bruno@clisp.org>
4585
4586         Fix link errors in tests: wait-process uses gettext-h.
4587         * modules/nonblocking-pipe-tests (Makefile.am): Set
4588         test_nonblocking_pipe_main_LDADD.
4589         * modules/nonblocking-socket-tests (Makefile.am): Link
4590         test-nonblocking-socket-main against $(LIBINTL).
4591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4592
4593 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         assert-h: work around 'verify' incompatibility
4596         * lib/verify.h: Use @...@ directives, not ifdef.
4597         * modules/assert-h (assert.h): Implement the directives.
4598         (assert.h): Substitute the symbol-prefix more consistently.
4599
4600 2011-05-29  Jim Meyering  <meyering@redhat.com>
4601
4602         trim: remove three superfluous assignments
4603         * lib/trim.c (trim2): Remove three superfluous assignments
4604         and correct brace positioning.
4605
4606 2011-05-29  Bruno Haible  <bruno@clisp.org>
4607
4608         wctype-h: Avoid namespace pollution on Solaris 2.6.
4609         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4610         identifiers.
4611         * doc/posix-headers/wctype.texi: Mention the problem.
4612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4613
4614 2011-05-28  Jim Meyering  <meyering@redhat.com>
4615
4616         parse-datetime.y: accommodate -Wstrict-overflow
4617         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4618         placate -Wstrict-overflow.
4619
4620         trim: avoid a warning from -O2 -Wstrict-overflow
4621         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4622
4623 2011-05-29  Bruno Haible  <bruno@clisp.org>
4624
4625         gnulib-tool: Fix bug in yesterday's commit.
4626         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4627         twice.
4628
4629 2011-05-29  Bruno Haible  <bruno@clisp.org>
4630
4631         Allow multiple gnulib generated include files to be combined.
4632         * gnulib-tool (func_compute_include_guard_prefix): New function.
4633         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4634         ${gl_include_guard_prefix} references.
4635         (func_import, func_create_testdir): Invoke
4636         func_compute_include_guard_prefix.
4637         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4638         * lib/ctype.in.h: Likewise.
4639         * lib/dirent.in.h: Likewise.
4640         * lib/errno.in.h: Likewise.
4641         * lib/fcntl.in.h: Likewise.
4642         * lib/float.in.h: Likewise.
4643         * lib/getopt.in.h: Likewise.
4644         * lib/iconv.in.h: Likewise.
4645         * lib/langinfo.in.h: Likewise.
4646         * lib/locale.in.h: Likewise.
4647         * lib/math.in.h: Likewise.
4648         * lib/netdb.in.h: Likewise.
4649         * lib/netinet_in.in.h: Likewise.
4650         * lib/poll.in.h: Likewise.
4651         * lib/pthread.in.h: Likewise.
4652         * lib/pty.in.h: Likewise.
4653         * lib/sched.in.h: Likewise.
4654         * lib/se-selinux.in.h: Likewise.
4655         * lib/search.in.h: Likewise.
4656         * lib/signal.in.h: Likewise.
4657         * lib/spawn.in.h: Likewise.
4658         * lib/stdarg.in.h: Likewise.
4659         * lib/stddef.in.h: Likewise.
4660         * lib/stdint.in.h: Likewise.
4661         * lib/stdio.in.h: Likewise.
4662         * lib/stdlib.in.h: Likewise.
4663         * lib/string.in.h: Likewise.
4664         * lib/strings.in.h: Likewise.
4665         * lib/sys_file.in.h: Likewise.
4666         * lib/sys_ioctl.in.h: Likewise.
4667         * lib/sys_select.in.h: Likewise.
4668         * lib/sys_socket.in.h: Likewise.
4669         * lib/sys_stat.in.h: Likewise.
4670         * lib/sys_time.in.h: Likewise.
4671         * lib/sys_times.in.h: Likewise.
4672         * lib/sys_uio.in.h: Likewise.
4673         * lib/sys_utsname.in.h: Likewise.
4674         * lib/sys_wait.in.h: Likewise.
4675         * lib/sysexits.in.h: Likewise.
4676         * lib/termios.in.h: Likewise.
4677         * lib/time.in.h: Likewise.
4678         * lib/unistd.in.h: Likewise.
4679         * lib/wchar.in.h: Likewise.
4680         * lib/wctype.in.h: Likewise.
4681         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4682         * modules/ctype (Makefile.am): Likewise.
4683         * modules/dirent (Makefile.am): Likewise.
4684         * modules/errno (Makefile.am): Likewise.
4685         * modules/fcntl-h (Makefile.am): Likewise.
4686         * modules/float (Makefile.am): Likewise.
4687         * modules/getopt-posix (Makefile.am): Likewise.
4688         * modules/iconv-h (Makefile.am): Likewise.
4689         * modules/langinfo (Makefile.am): Likewise.
4690         * modules/locale (Makefile.am): Likewise.
4691         * modules/math (Makefile.am): Likewise.
4692         * modules/netdb (Makefile.am): Likewise.
4693         * modules/netinet_in (Makefile.am): Likewise.
4694         * modules/poll-h (Makefile.am): Likewise.
4695         * modules/pthread (Makefile.am): Likewise.
4696         * modules/pty (Makefile.am): Likewise.
4697         * modules/sched (Makefile.am): Likewise.
4698         * modules/search (Makefile.am): Likewise.
4699         * modules/selinux-h (Makefile.am): Likewise.
4700         * modules/signal (Makefile.am): Likewise.
4701         * modules/spawn (Makefile.am): Likewise.
4702         * modules/stdarg (Makefile.am): Likewise.
4703         * modules/stddef (Makefile.am): Likewise.
4704         * modules/stdint (Makefile.am): Likewise.
4705         * modules/stdio (Makefile.am): Likewise.
4706         * modules/stdlib (Makefile.am): Likewise.
4707         * modules/string (Makefile.am): Likewise.
4708         * modules/strings (Makefile.am): Likewise.
4709         * modules/sys_file (Makefile.am): Likewise.
4710         * modules/sys_ioctl (Makefile.am): Likewise.
4711         * modules/sys_select (Makefile.am): Likewise.
4712         * modules/sys_socket (Makefile.am): Likewise.
4713         * modules/sys_stat (Makefile.am): Likewise.
4714         * modules/sys_time (Makefile.am): Likewise.
4715         * modules/sys_times (Makefile.am): Likewise.
4716         * modules/sys_uio (Makefile.am): Likewise.
4717         * modules/sys_utsname (Makefile.am): Likewise.
4718         * modules/sys_wait (Makefile.am): Likewise.
4719         * modules/sysexits (Makefile.am): Likewise.
4720         * modules/termios (Makefile.am): Likewise.
4721         * modules/time (Makefile.am): Likewise.
4722         * modules/unistd (Makefile.am): Likewise.
4723         * modules/wchar (Makefile.am): Likewise.
4724         * modules/wctype-h (Makefile.am): Likewise.
4725         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4726
4727 2011-05-29  Bruno Haible  <bruno@clisp.org>
4728
4729         assert-h: Allow multiple gnulib generated replacements to coexist.
4730         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4731
4732 2011-05-29  Bruno Haible  <bruno@clisp.org>
4733
4734         argp: Allow coexistence with strerror_r-posix module.
4735         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4736         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4737         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4738         not the glibc signature.
4739
4740 2011-05-28  Bruno Haible  <bruno@clisp.org>
4741
4742         gnulib-tool: Alternative structure of testdirs, similar to --import.
4743         * gnulib-tool: New option --single-configure.
4744         (func_usage): Document it.
4745         (single_configure): New variable.
4746         (func_modules_transitive_closure_separately,
4747         func_modules_transitive_closure_separately,
4748         func_determine_use_libtests, func_modules_add_dummy_separately,
4749         func_modules_to_filelist_separately): New functions, extracted from
4750         func_import.
4751         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4752         (func_import): Use the new functions.
4753         (func_create_testdir): Set final_modules. Handle $single_configure =
4754         true case.
4755
4756 2011-05-28  Bruno Haible  <bruno@clisp.org>
4757
4758         getloadavg: Remove an unreliable safety check.
4759         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4760         getloadavg.c is in place.
4761         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4762         Reported by Sam Steingold <sds@gnu.org>.
4763
4764 2011-05-28  Bruno Haible  <bruno@clisp.org>
4765
4766         doc: Cleanup yet another file produced by texinfo.tex.
4767         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4768
4769 2011-05-28  Bruno Haible  <bruno@clisp.org>
4770
4771         Finish the conditional dependencies mechanism.
4772         * gnulib-tool: New option --no-conditional-dependencies.
4773         (func_usage): Document it. Don't mark --conditional-dependencies as
4774         experimental.
4775         (cond_dependencies): The possible values can now be true, false, empty.
4776         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4777         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4778         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4779
4780 2011-05-28  Bruno Haible  <bruno@clisp.org>
4781
4782         doc: Use a recent texinfo.tex.
4783         * doc/Makefile (tex_opts): New variable.
4784         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4785
4786 2011-05-28  Jim Meyering  <meyering@redhat.com>
4787
4788         intprops.h: adjust comment to match code change
4789         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4790         only once, it *may* have side effects.  Also fix an unrelated typo.
4791         (_GL_INT_SIGNED): Likewise.
4792
4793 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4794
4795         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4796
4797 2011-05-26  Bruno Haible  <bruno@clisp.org>
4798
4799         mbsrchr: Avoid collision with system function on Interix.
4800         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4801         Reported by Markus Duft <mduft@gentoo.org>.
4802
4803 2011-05-15  James Youngman  <jay@gnu.org>
4804
4805         getopt: for ambiguous options, enumerate the possibilities.
4806         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4807         the ambiguous options when an ambiguous prefix is given. This was
4808         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4809         glibc change was
4810         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4811
4812 2011-05-25  Eric Blake  <eblake@redhat.com>
4813
4814         getcwd: work around mingw bug
4815         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4816         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4817         Reported by Matthias Bolte.
4818
4819 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4820
4821         test-intprops: disable -Wtype-limits diagnostics
4822         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4823         diagnostics.  Otherwise, the integer overflow macros generate many
4824         diagnostics.  Reported by Jim Meyering in
4825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4826
4827         intprops: shorten, to pacify gcc -Woverlength-strings
4828         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4829         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4830         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4831         likely to run afoul of C compiler limits for string constant lengths.
4832         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4833
4834 2011-05-24  Eric Blake  <eblake@redhat.com>
4835
4836         docs: document recently fixed glibc printf bug
4837         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4838         * doc/posix-functions/printf.texi (printf): Likewise.
4839         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4840         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4841
4842         closein-tests: convert to init.sh
4843         * modules/closein-tests (Files): Add init.sh
4844         * tests/test-closein.sh Use it.
4845
4846         yesno-tests: convert to init.sh
4847         * modules/yesno-tests (Files): Add init.sh.
4848         * tests/test-yesno.sh: Use it.
4849
4850         atexit-tests: ensure reliable exit status
4851         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4852         Reported by Bruno Haible.
4853
4854 2011-05-24  Bruno Haible  <bruno@clisp.org>
4855
4856         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4857         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4858         gl_PREREQ_STRERROR_R invocations from here...
4859         * modules/strerror_r-posix (configure.ac): ... to here.
4860
4861 2011-05-24  Eric Blake  <eblake@redhat.com>
4862
4863         strerror_r: fix missing header
4864         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4865
4866         strerror_r: fix AIX test failures
4867         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4868         ERANGE failure.
4869
4870         strerror_r: fix Solaris test failures
4871         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4872         failures.
4873         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4874
4875         strerror_r: enforce POSIX recommendations
4876         * lib/strerror_r.c (safe_copy): New helper method.
4877         (strerror_r): Guarantee a non-empty string.
4878         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4879         recent POSIX rulings and to match our strerror guarantees.
4880         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4881
4882 2011-05-24  Jim Meyering  <meyering@redhat.com>
4883
4884         test-perror2.c: avoid warning about unused variable
4885         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4886
4887 2011-05-24  Eric Blake  <eblake@redhat.com>
4888
4889         perror: avoid spurious test failure on HP-UX
4890         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4891
4892         tests: fix logic bug in init.sh
4893         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4894         shell.
4895
4896 2011-05-24  Jim Meyering  <meyering@redhat.com>
4897
4898         utimensat: do not reference an out-of-scope buffer
4899         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4900         declared in an inner scope, yet "times" would be dereferenced outside
4901         the scope in which "ts" was valid.
4902         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4903         of ts[2] "out/up", so that the use of aliased "times" (via
4904         "times = ts;") does not end up referencing an out-of-scope "ts"
4905
4906         opendir-safer.c: don't clobber errno; don't close negative FD
4907         * lib/opendir-safer.c (opendir_safer):
4908         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4909         file descriptor, and more importantly, don't clobber the
4910         offending errno value with EINVAL.  Before, upon failure
4911         of dup_safer, we would pass the negative file descriptor to
4912         fdopendir, which would clobber errno.
4913
4914 2011-05-23  Bruno Haible  <bruno@clisp.org>
4915
4916         idcache: Fix module description.
4917         * modules/idcache (Include): Set to "idcache.h".
4918
4919 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4920
4921         gnulib-tool: fix portability problem with MacOS sed
4922         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4923         before the "}".  Problem reported by Leo in
4924         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4925         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4926         sed_extract_condition1, sed_extract_condition2.
4927
4928 2011-05-23  Bruno Haible  <bruno@clisp.org>
4929
4930         hash: Simplify autoconf macro.
4931         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4932
4933 2011-05-23  Bruno Haible  <bruno@clisp.org>
4934
4935         getugroups: Fix module description.
4936         * modules/getugroups (Include): Set to "getugroups.h".
4937
4938 2011-05-23  Bruno Haible  <bruno@clisp.org>
4939
4940         linkat: Simplify autoconf macro.
4941         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4942
4943 2011-05-23  Bruno Haible  <bruno@clisp.org>
4944             Eric Blake  <eblake@redhat.com>
4945
4946         linkat, renameat: Update dependencies.
4947         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4948         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4949         symlinkat.
4950
4951 2011-05-23  Jim Meyering  <meyering@redhat.com>
4952
4953         maint.mk: more tight_scope improvements
4954         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4955         (_gl_TS_headers): Define only in if-0'd block.
4956         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4957         sometimes we must *not* use it.  Adjust uses accordingly.
4958         (sc_tight_scope): Use much simpler grep-based test to determine
4959         whether we skip this rule.
4960
4961         maint.mk: generalize/improve the tight-scope rule
4962         * top/maint.mk: Emit a warning when the test is skipped.
4963         (_gl_TS_dir): Add $(srcdir)/ prefix.
4964         (_gl_TS_function_match): Simplify, rather than trying
4965         to enumerate common types.  Otherwise, it would fail to match an
4966         "extern unsigned char const *" declaration in idutils.
4967         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4968         a way to support use of that type of macro.
4969         (_gl_TS_var_match): Simplify regexp.
4970         (_gl_TS_obj_files): New configurable variable.
4971         (_gl_TS_headers): Likewise.
4972
4973 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4974
4975         verify: fix bug when gnulib <assert.h> is also included
4976         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4977         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4978         Perhaps there's a better way, but this fixes the immediate problem.
4979         Problem reported by Bruno Haible in
4980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4981
4982 2011-05-22  Bruno Haible  <bruno@clisp.org>
4983
4984         xgetcwd: Simplify autoconf macro.
4985         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4986
4987 2011-05-22  Bruno Haible  <bruno@clisp.org>
4988
4989         New module 'mktime-internal'.
4990         * modules/mktime-internal: New file.
4991         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4992         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4993         mktime_internal as a C macro if libc has __mktime_internal.
4994         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4995         conditions.
4996         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4997
4998 2011-05-22  Bruno Haible  <bruno@clisp.org>
4999
5000         timegm: Correct mktime replacement statements.
5001         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5002         defining mktime as a C macro. This completes a 2009-07-28 commit.
5003
5004 2011-05-22  Bruno Haible  <bruno@clisp.org>
5005
5006         timegm: Simplify autoconf macro.
5007         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5008
5009 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         clock-time: change to LGPLv2+.
5012         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5013         BSD-like but we have no mark for that; this is good enough for now.
5014
5015 2011-05-21  Bruno Haible  <bruno@clisp.org>
5016
5017         strerror_r: Fix comments.
5018         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5019
5020 2011-05-21  Bruno Haible  <bruno@clisp.org>
5021
5022         relocatable-prog-wrapper: Fix possible link error.
5023         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5024         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5025         (gl_FUNC_SETENV): ... to here.
5026         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5027         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5028
5029 2011-05-21  Bruno Haible  <bruno@clisp.org>
5030
5031         relocatable-prog-wrapper: Assume strerror() exists.
5032         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5033         m4/strerror.m4.
5034         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5035         * lib/relocwrapper.c: Remove mention of strerror module.
5036         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5037         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5038         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5039         C macro.
5040
5041 2011-05-21  Bruno Haible  <bruno@clisp.org>
5042
5043         select: Simplify replacement idiom.
5044         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5045         Win32 platforms.
5046         * lib/sys_select.in.h (select): Simplify accordingly.
5047         * modules/select (Depends-on): Likewise.
5048
5049 2011-05-21  Bruno Haible  <bruno@clisp.org>
5050
5051         mkdir-p: Simplify autoconf macro.
5052         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5053         gl_FUNC_LCHOWN.
5054
5055 2011-05-21  Eric Blake  <eblake@redhat.com>
5056
5057         strerror_r: avoid clobbering strerror on cygwin
5058         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5059         fall back instead to sys_errlist.
5060         * modules/strerror (configure.ac): Add witness.
5061         * tests/test-strerror_r.c (main): Enhance test.
5062         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5063         * tests/test-perror2.c (main): Free memory before exit.
5064
5065 2011-05-21  Bruno Haible  <bruno@clisp.org>
5066
5067         mkdtemp: Use gnulib naming conventions.
5068         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5069         * modules/mkdtemp (configure.ac): Update.
5070
5071 2011-05-20  Eric Blake  <eblake@redhat.com>
5072
5073         strerror_r: avoid corrupting errno on Solaris
5074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5075         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5076
5077         strerror_r: avoid compiler warning
5078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5079
5080         strerror_r: simplify AIX code
5081         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5082
5083         test-perror: avoid spurious failure on FreeBSD
5084         * modules/perror-tests (Depends-on): Add strerror, now that
5085         strerror_r no longer pulls it in.
5086
5087 2011-05-20  Bruno Haible  <bruno@clisp.org>
5088
5089         strerror_r-posix: Remove unused dependencies.
5090         * modules/strerror_r-posix (Depends-on): Remove strerror.
5091         Reported by Eric Blake.
5092
5093 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5094
5095         intprops: remove assumption about A|B representation
5096         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5097         is a valid integer if both A and B are.  Although this is true for
5098         all known practical hosts, the C standard doesn't guarantee it,
5099         and the code need not assume it.  Also, this change may work around
5100         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5102
5103 2011-05-20  Eric Blake  <eblake@redhat.com>
5104
5105         perror: work around FreeBSD bug
5106         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5107         is broken.  Move AC_LIBOBJ...
5108         * modules/perror (configure.ac): Here.
5109         * doc/posix-functions/perror.texi (perror): Document this.
5110         * tests/test-perror2.c (main): Enhance test.
5111
5112         test-perror: check for strerror interactions
5113         * tests/macros.h (STREQ): Add macro.
5114         * modules/perror-tests (Files): Add second test.
5115         * tests/test-perror2.c (main): New file.
5116         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5117
5118         test-perror: rewrite to use init script
5119         * modules/perror-tests (Files): Add init.sh.
5120         * tests/test-perror.sh: Use temporary directory.
5121
5122 2011-05-20  Jim Meyering  <meyering@redhat.com>
5123
5124         maint: replace misused "a" with "an"
5125         * doc/intprops.texi: "a integer"
5126         * doc/regex.texi: "a explanation"
5127         * lib/alignof.h: "a object"
5128         * lib/argmatch.h: "a explanation"
5129         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5130         * lib/stdint.in.h: "a integer"
5131         * lib/userspec.c: "a owner"
5132         * doc/gnulib.texi: Fix "a idea", and reword.
5133
5134 2011-05-19  Jim Meyering  <meyering@redhat.com>
5135
5136         maint: correct misuse of "a" and "an"
5137         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5138         * lib/argp-help.c: "an docum...": s/an/a/
5139         * lib/argp-parse.c: "An vector": s/An/A/
5140         * lib/execute.c: "an native": s/an/a/
5141         * lib/spawn-pipe.c: Likewise.
5142         * lib/gc.h: "an Gc_rc": s/an/a/
5143         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5144         * lib/fts.c: "an stat.st_dev": s/an/a/
5145
5146 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5147
5148         intprops-tests: work around HP-UX 11.23 cc bug with constants
5149         * tests/test-intprops.c (VERIFY): New macro.
5150         (main): Use it, instead of verify, to work around the compiler bug; see
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5152
5153         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5154         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5155         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5156         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5157         (_GL_REMAINDER_OVERFLOW): Use it.
5158
5159         intprops-tests: revert unsigned part of previous change
5160         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5161         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5162         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5164
5165 2011-05-19  Bruno Haible  <bruno@clisp.org>
5166
5167         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5168         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5169         strerror_r() returned without filling the buffer.
5170         Reported by Eric Blake.
5171
5172 2011-05-19  Eric Blake  <eblake@redhat.com>
5173
5174         strerror_r: guarantee unchanged errno
5175         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5176         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5177         failure.
5178         * tests/test-strerror_r.c (main): Enhance test.
5179
5180 2011-05-19  Bruno Haible  <bruno@clisp.org>
5181
5182         strerror_r: Reorder #if blocks.
5183         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5184         for consistency with the previous commit.
5185
5186 2011-05-19  Bruno Haible  <bruno@clisp.org>
5187
5188         perror: Avoid clobbering the strerror buffer when possible.
5189         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5190         * lib/strerror.c: Include it.
5191         * modules/strerror (Files): Add lib/strerror-impl.h.
5192         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5193         (my_strerror): New function, defined through lib/strerror-impl.h.
5194         (perror): Use it instead of strerror.
5195         * modules/perror (Files): Add lib/strerror-impl.h.
5196         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5197
5198 2011-05-19  Eric Blake  <eblake@redhat.com>
5199
5200         strerror_r: fix on newer cygwin
5201         * lib/strerror_r.c (strerror_r): Cygwin now has
5202         __xpg_strerror_r, use it.
5203
5204 2011-05-19  Bruno Haible  <bruno@clisp.org>
5205
5206         strerror_r: Avoid clobbering the strerror buffer when possible.
5207         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5208         (sys_nerr, sys_errlist): New declarations.
5209         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5210         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5211         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5212
5213 2011-05-19  Bruno Haible  <bruno@clisp.org>
5214
5215         strerror_r: Fix test failure on mingw.
5216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5217         EXTEND_STRERROR_R.
5218         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5219         macros from errno.in.h instead.
5220
5221 2011-05-19  Eric Blake  <eblake@redhat.com>
5222
5223         strerror: relax test for Solaris
5224         * tests/test-strerror.c (main): Permit Solaris behavior.
5225         * tests/test-strerror_r.c (main): Likewise.
5226
5227         strerror: enforce POSIX ruling on strerror(0)
5228         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5229         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5230         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5231         * doc/posix-functions/strerror.texi (strerror): Document it.
5232         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5233         * tests/test-strerror.c (main): Strengthen test.
5234         * tests/test-strerror_r.c (main): Likewise.
5235
5236 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5237
5238         intprop-tests: port to older and more-pedantic compilers
5239         * modules/intprops-tests (Files): Add tests/macros.h.
5240         * tests/test-intprops.c: Include macros.h.
5241         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5242         it's no longer documented to expand to an integer constant expression.
5243         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5244         argument is floating point, as it's no longer documented to expand
5245         to an integer constant expression in that case.
5246         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5247         compiler bugs reported by Bruno Haible.  See
5248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5249         (U0, U1): New constants, to work around the same bugs.  Also,
5250         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5251
5252         intprops: work around C compiler bugs
5253         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5254         bug in Sun C 5.11 2010/08/13 and other compilers; see
5255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5256
5257         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5258         * doc/intprops.texi (Integer Type Determination): Fix
5259         documentation for TYPE_IS_INTEGER: it returns an constant
5260         expression, not an integer constant expression.  Fix doc for
5261         TYPE_SIGNED: it returns an integer constant expression only if its
5262         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5263         hardly worth documented that way....)
5264
5265 2011-05-18  Bruno Haible  <bruno@clisp.org>
5266
5267         strerror_r: Avoid clobbering the strerror buffer when possible.
5268         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5269         Handle gnulib defined errno values here. When strerror() returns NULL
5270         or an empty string, return EINVAL.
5271         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5272         gnulib defined errno values here.
5273         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5274
5275 2011-05-18  Eric Blake  <eblake@redhat.com>
5276
5277         fnmatch: avoid compiler warning
5278         * lib/fnmatch_loop.c (FCT): Use correct type.
5279         Reported by Matthias Bolte.
5280
5281 2011-05-13  Jim Meyering  <meyering@redhat.com>
5282
5283         maint.mk: three new prohibit_<HDR>_without_use rules
5284         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5285         (sc_prohibit_stdio-safer_without_use): Likewise.
5286         (sc_prohibit_xfreopen_without_use): Likewise.
5287
5288 2011-05-17  Jim Meyering  <meyering@redhat.com>
5289
5290         announce-gen: fail if the NEWS delta is empty
5291         If there's nothing noteworthy in NEWS, then either you forgot
5292         or you shouldn't be releasing.
5293         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5294
5295 2011-05-17  Pádraig Brady <P@draigBrady.com>
5296
5297         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5298         reserved symbols starting with double underscore from the check.
5299
5300 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5301
5302         intprops: add doc
5303         * doc/intprops.texi: New file, documenting intprops.
5304         * doc/gnulib.texi (Particular Modules): Include it.
5305
5306         verify: add doc to gnulib manual and fix example
5307         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5308         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5309         (Compile-time Assertions): Fix example so it can't overflow.
5310
5311 2011-05-17  Jim Meyering  <meyering@redhat.com>
5312
5313         warnings.m4: don't usurp save_CPPFLAGS variable name
5314         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5315
5316         doc: fix typo
5317         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5318
5319 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5320             Bruno Haible  <bruno@clisp.org>
5321
5322         doc: Tweak recent change.
5323         * README (Portability guidelines): Tweak new text.
5324         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5325         Interix 6.1.
5326
5327 2011-05-16  Eric Blake  <eblake@redhat.com>
5328
5329         inttypes: avoid autoconf warning
5330         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5331         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5332
5333 2011-05-16  Sam Steingold <sds@gnu.org>
5334         and Eric Blake  <eblake@redhat.com>
5335
5336         vc-list-files: accept multiple directory operands
5337         * build-aux/vc-list-files: Iterate over all remaining operands.
5338
5339 2011-05-16  Bruno Haible  <bruno@clisp.org>
5340
5341         Fix confusion regarding deprecated modules.
5342         * modules/calloc (Status, Notice): Mark module as deprecated, not
5343         obsolete.
5344         * modules/fnmatch-posix (Status, Notice): Likewise.
5345         * modules/getdate (Status, Notice): Likewise.
5346         * modules/getopt (Status, Notice): Likewise.
5347         * modules/malloc (Status, Notice): Likewise.
5348         * modules/pipe (Status, Notice): Likewise.
5349         * modules/realloc (Status, Notice): Likewise.
5350         * modules/rename-dest-slash (Status, Notice): Likewise.
5351         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5352         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5353         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5354         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5355         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5356
5357 2011-05-16  Bruno Haible  <bruno@clisp.org>
5358
5359         doc: List the target platforms.
5360         * doc/gnulib-intro.texi (Target Platforms): New section.
5361         * doc/gnulib.texi (Introduction): Update menu.
5362         * README (Portability guidelines): Refer to the new section. Update
5363         statement about oldest supported environment. Remove rationale why
5364         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5365         unportable C89 function.
5366         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5367         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5368
5369 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5370
5371         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5372
5373 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5374
5375         intprops-tests: new module
5376         * modules/intprops-tests, tests/test-intprops.c: New files.
5377
5378         intprops: add safe, portable integer overflow checking
5379         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5380         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5381         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5382         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5383         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5384         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5385         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5386         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5387         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5388         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5389         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5390
5391 2011-05-12  James Youngman  <jay@gnu.org>
5392
5393         Add a test for glibc's Bugzilla bug #12378.
5394         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5395         doesn't allow the literal matching of a lone "[" (which is
5396         required by POSIX).
5397         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5398
5399 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5400
5401         Sync glibc change fixing Bugzilla bug #12378.
5402         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5403         beginning and fall back to matching as normal character if the
5404         string ends before the matching ']' is found.  This is what POSIX
5405         requires.
5406
5407 2011-05-13  Eric Blake  <eblake@redhat.com>
5408
5409         getcwd-lgpl: relax test for FreeBSD
5410         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5411         issue.
5412         * tests/test-getcwd-lgpl.c (main): Relax test.
5413         Reported by Matthias Bolte.
5414
5415 2011-05-11  Eric Blake  <eblake@redhat.com>
5416
5417         test-fflush: silence compiler warning
5418         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5419
5420 2011-05-11  Bruno Haible  <bruno@clisp.org>
5421
5422         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5423         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5424         * modules/canonicalize (Depends-on): Add 'nocrash'.
5425         * modules/canonicalize-lgpl (Depends-on): Likewise.
5426         * doc/posix-functions/realpath.texi: Update platforms list.
5427         Reported by Ryan Schmidt <ryandesign@macports.org>.
5428
5429 2011-05-11  Bruno Haible  <bruno@clisp.org>
5430
5431         group-member: Declare function in <unistd.h>.
5432         * lib/unistd.in.h (group_member): New declaration.
5433         * lib/group-member.h: Remove file.
5434         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5435         * tests/test-unistd-c++.cc: Check signature of group_member.
5436         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5437         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5438         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5439         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5440         HAVE_GROUP_MEMBER.
5441         * modules/group-member (Files): Remove lib/group-member.h.
5442         (Depends-on): Add unistd. Specify conditions.
5443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5444         (Include): Change to <unistd.h>.
5445         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5446         HAVE_GROUP_MEMBER.
5447         * NEWS: Mention the change.
5448         * lib/euidaccess.c: Don't include group-member.h.
5449
5450 2011-05-11  Bruno Haible  <bruno@clisp.org>
5451
5452         group-member: Document module.
5453         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5454         module.
5455
5456 2011-05-11  Bruno Haible  <bruno@clisp.org>
5457
5458         fclose: Fix mistake earlier today.
5459         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5460
5461 2011-05-11  Eric Blake  <eblake@redhat.com>
5462
5463         fclose: preserve fflush errors
5464         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5465         Reported by Jim Meyering.
5466
5467         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5468         * build-aux/bootstrap (check_versions): When no specific version
5469         is required, merely check that the app produces an exit status
5470         that indicates its existence.
5471
5472         maint.mk: drop redundant check
5473         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5474         the same but better.
5475
5476 2011-05-11  Bruno Haible  <bruno@clisp.org>
5477
5478         fclose: Fix possible link error.
5479         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5480         unregister_shadow_fd. Improve comments.
5481         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5482         Eric Blake.
5483
5484 2011-05-11  Jim Meyering  <meyering@redhat.com>
5485
5486         maint.mk: improve "can not" detection and generalize rule name
5487         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5488         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5489         Use the same technique as in sc_prohibit_doubled_word, so that
5490         we recognize "can not" also when the words are separated by a newline.
5491         Suggested by Eric Blake.
5492         (perl_filename_lineno_text_): Define.  Factored out of...
5493         (prohibit_doubled_word_): ...here.  Use the new definition.
5494         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5495         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5496         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5497
5498 2011-05-10  Eric Blake  <eblake@redhat.com>
5499
5500         fclose: avoid double close race when possible
5501         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5502         all but WINDOWS_SOCKETS.
5503
5504 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5505
5506         openat: correct new comment
5507         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5508
5509 2011-05-10  Jim Meyering  <meyering@redhat.com>
5510
5511         openat: add comments
5512         * lib/openat-proc.c (openat_proc_name): Add comments,
5513         mostly from Eric Blake.
5514
5515 2011-05-09  Eric Blake  <eblake@redhat.com>
5516
5517         openat: reduce syscalls in first probe of /proc
5518         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5519         be a directory.  Simplify the probe for .. bugs.
5520         * modules/openat (Depends-on): Drop same-inode.
5521         Reported by Bastien ROUCARIES.
5522
5523 2011-05-09  Jim Meyering  <meyering@redhat.com>
5524
5525         maint.mk: change semantics/name of tight_scope variables
5526         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5527         Rename variables to align with semantics that make them more useful.
5528
5529         maint.mk: tweak new rule's name not to impinge
5530         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5531         (sc_tight_scope): Use new rule name rather than $@-0.
5532
5533         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5534         * top/maint.mk (sc_tight_scope): New rule.
5535         (sc_tight_scope-0): New rule, ifdef'd out.
5536         (_gl_TS_dir): Default.
5537         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5538         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5539
5540 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5541
5542         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5543         Haible <bruno@clisp.org>.
5544
5545 2011-05-08  Bruno Haible  <bruno@clisp.org>
5546
5547         Comments.
5548         * m4/isnanf.m4: Add comment.
5549         * m4/isnanl.m4: Likewise.
5550
5551 2011-05-08  Bruno Haible  <bruno@clisp.org>
5552
5553         glob: Remove obsolete macro.
5554         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5555
5556 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5557
5558         intprops: Sun C 5.11 supports __typeof__
5559         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5560         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5561         which is new.
5562         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5563
5564         intprops: switch to usual gnulib indenting and naming
5565         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5566         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5567
5568         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5569
5570 2011-05-08  Jim Meyering  <meyering@redhat.com>
5571
5572         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5573         * top/maint.mk (release-prep): Use make's --no-print-directory
5574         option when generating the announcement.  This eliminates the
5575         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5576         generated announcement template.
5577
5578 2011-05-08  Bruno Haible  <bruno@clisp.org>
5579
5580         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5581         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5582         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5583
5584 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5585
5586         ignore-value, verify: Omit include files from lib_SOURCES.
5587         * modules/ignore-value, modules/verify (Makefile.am):
5588         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5589         that leads Automake to duplicate use of am__objects_... variables
5590         in Makefile.in.  See
5591         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5592
5593 2011-05-07  Bruno Haible  <bruno@clisp.org>
5594
5595         fclose: Simplify autoconf macro.
5596         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5597         defined.
5598
5599 2011-05-07  Bruno Haible  <bruno@clisp.org>
5600
5601         canonicalize-lgpl: Fix autoconf macro ordering bug.
5602         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5603         gl_STDLIB_H_DEFAULTS.
5604
5605 2011-05-06  Eric Blake  <eblake@redhat.com>
5606
5607         maintainer-makefile: make sc_po_check easier to tune
5608         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5609         to probe for strings, such as an alternate location for gnulib.
5610
5611         fclose: guarantee behavior on seekable stdin
5612         * modules/fclose (Depends-on): Add fflush.
5613         * doc/posix-functions/fclose.texi (fclose): Document this.
5614         * tests/test-fclose.c (main): Make test for this unconditional.
5615
5616 2011-05-06  Bruno Haible  <bruno@clisp.org>
5617
5618         fflush, fpurge: Relicense under LGPLv2+.
5619         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5620         * modules/fpurge (License): Likewise.
5621         With permission from Eric Blake and Jim Meyering.
5622         Suggested by Eric Blake.
5623
5624 2011-05-06  Karl Berry  <karl@gnu.org>
5625
5626         * MODULES.html.sh (func_all_modules): remove exit.
5627
5628 2011-05-06  Jim Meyering  <meyering@redhat.com>
5629
5630         maint.mk: use info-gnu@ as the default only for a stable release
5631         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5632         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5633         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5635
5636 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5637
5638         assert-h: new module, which supports C1X-style static_assert
5639         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5640         * lib/verify.h: Revamp so that this can be copied into assert.h,
5641         while retaining the ability to use it standalone as before.
5642         Rename private identifiers so as not to encroach on the
5643         standard C namespace, since this is now used by assert.h.
5644         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5645         the old verify_true.
5646         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5647         the old verify_true.  Use _GL_VERIFY_TYPE.
5648         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5649         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5650         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5651         defined when this file is copied into the replacement assert.h.
5652         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5653         and _Static_assert is not built in.
5654         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5655         defined, and use the new macros mentioned above.
5656         * doc/posix-headers/assert.texi: Document this.
5657
5658 2011-05-05  Bruno Haible  <bruno@clisp.org>
5659
5660         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5661         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5662         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5663         gl_REPLACE_FCLOSE here.
5664         * modules/fflush (Depends-on): Remove fclose.
5665         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5666         combination with module 'fclose'.
5667
5668 2011-05-05  Bruno Haible  <bruno@clisp.org>
5669
5670         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5671         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5672         gl_FUNC_FFLUSH.
5673         (gl_FUNC_FFLUSH): Use it.
5674         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5675         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5676         gl_REPLACE_FSEEKO here.
5677
5678 2011-05-05  Bruno Haible  <bruno@clisp.org>
5679
5680         tzset: Relicense under LGPL.
5681         * modules/tzset (License): Change to LGPL.
5682         No agreement needed; it's a no-op.
5683
5684         strtoimax, strtoumax: Relicense under LGPL.
5685         * modules/strtoimax (License): Change to LGPL.
5686         * modules/strtoumax (License): Likewise.
5687         With permission from Jim Meyering, Paul Eggert:
5688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5690
5691         getgroups: Relicense under LGPL.
5692         * modules/getgroups (License): Change to LGPL.
5693         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5697
5698         nanosleep: Relicense under LGPL.
5699         * modules/nanosleep (License): Change to LGPL.
5700         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5701         Haible:
5702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5706
5707         futimens: Relicense under LGPL.
5708         * modules/futimens (License): Change to LGPL.
5709         With permission from Eric Blake:
5710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5711
5712         fflush: Relicense under LGPL.
5713         * modules/fflush (License): Change to LGPL.
5714         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5718
5719         tmpfile: Relicense under LGPL.
5720         * modules/tmpfile (License): Change to LGPL.
5721         With permission from Ben Pfaff:
5722         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5723
5724         isfinite: Relicense under LGPL.
5725         * modules/isfinite (License): Change to LGPL.
5726         With permission from Ben Pfaff, Bruno Haible:
5727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5729
5730         acosl..tanl: Relicense under LGPL.
5731         * modules/acosl (License): Change to LGPL.
5732         * modules/asinl (License): Likewise.
5733         * modules/atanl (License): Likewise.
5734         * modules/cosl (License): Likewise.
5735         * modules/expl (License): Likewise.
5736         * modules/logl (License): Likewise.
5737         * modules/sinl (License): Likewise.
5738         * modules/sqrtl (License): Likewise.
5739         * modules/tanl (License): Likewise.
5740         Source code originally from glibc and Paolo Bonzini. Agreements:
5741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5743
5744 2011-05-05  Bruno Haible  <bruno@clisp.org>
5745
5746         signal: Define sighandler_t.
5747         * lib/signal.in.h (sighandler_t): New type.
5748         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5749         whether sighandler_t is defined.
5750         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5751         * modules/signal (Depends-on): Add extensions.
5752         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5753         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5754         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5755
5756 2011-05-05  Eric Blake  <eblake@redhat.com>
5757
5758         maint: remove useless REPLACE_*_H macros
5759         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5760         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5761         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5762         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5763         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5764         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5765         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5766         * m4/btowc.m4: Update callers.
5767         * m4/dirfd.m4: Likewise.
5768         * m4/duplocale.m4: Likewise.
5769         * m4/fchdir.m4: Likewise.
5770         * m4/fdopendir.m4: Likewise.
5771         * m4/inet_ntop.m4: Likewise.
5772         * m4/inet_pton.m4: Likewise.
5773         * m4/ioctl.m4: Likewise.
5774         * m4/mbrlen.m4: Likewise.
5775         * m4/mbrtowc.m4: Likewise.
5776         * m4/mbsinit.m4: Likewise.
5777         * m4/mbsnrtowcs.m4: Likewise.
5778         * m4/mbsrtowcs.m4: Likewise.
5779         * m4/poll.m4: Likewise.
5780         * m4/setlocale.m4: Likewise.
5781         * m4/wcrtomb.m4: Likewise.
5782         * m4/wcsnrtombs.m4: Likewise.
5783         * m4/wcsrtombs.m4: Likewise.
5784         * m4/wctob.m4: Likewise.
5785         * m4/wcwidth.m4: Likewise.
5786         * modules/posix_spawn: Likewise.
5787         * modules/posix_spawn_file_actions_addclose: Likewise.
5788         * modules/posix_spawn_file_actions_adddup2: Likewise.
5789         * modules/posix_spawn_file_actions_addopen: Likewise.
5790         * modules/posix_spawn_file_actions_destroy: Likewise.
5791         * modules/posix_spawn_file_actions_init: Likewise.
5792         * modules/posix_spawnattr_destroy: Likewise.
5793         * modules/posix_spawnattr_getflags: Likewise.
5794         * modules/posix_spawnattr_getpgroup: Likewise.
5795         * modules/posix_spawnattr_getschedparam: Likewise.
5796         * modules/posix_spawnattr_getschedpolicy: Likewise.
5797         * modules/posix_spawnattr_getsigdefault: Likewise.
5798         * modules/posix_spawnattr_getsigmask: Likewise.
5799         * modules/posix_spawnattr_init: Likewise.
5800         * modules/posix_spawnattr_setflags: Likewise.
5801         * modules/posix_spawnattr_setpgroup: Likewise.
5802         * modules/posix_spawnattr_setschedparam: Likewise.
5803         * modules/posix_spawnattr_setschedpolicy: Likewise.
5804         * modules/posix_spawnattr_setsigdefault: Likewise.
5805         * modules/posix_spawnattr_setsigmask: Likewise.
5806         * modules/posix_spawnp: Likewise.
5807
5808 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5809
5810         Add option to do-release-commit-and-tag to specify branch.
5811         * build-aux/do-release-commit-and-tag: Add --branch.
5812
5813 2011-05-03  Bruno Haible  <bruno@clisp.org>
5814
5815         Avoid unnecessary compilation units, through conditional dependencies.
5816         * modules/accept (Depends-on): Add conditions to the dependencies.
5817         * modules/acosl (Depends-on): Likewise.
5818         * modules/argz (Depends-on): Likewise.
5819         * modules/asinl (Depends-on): Likewise.
5820         * modules/atanl (Depends-on): Likewise.
5821         * modules/atoll (Depends-on): Likewise.
5822         * modules/bind (Depends-on): Likewise.
5823         * modules/btowc (Depends-on): Likewise.
5824         * modules/canonicalize-lgpl (Depends-on): Likewise.
5825         * modules/ceil (Depends-on): Likewise.
5826         * modules/ceilf (Depends-on): Likewise.
5827         * modules/ceill (Depends-on): Likewise.
5828         * modules/chdir-long (Depends-on): Likewise.
5829         * modules/chown (Depends-on): Likewise.
5830         * modules/close (Depends-on): Likewise.
5831         * modules/connect (Depends-on): Likewise.
5832         * modules/cosl (Depends-on): Likewise.
5833         * modules/dirfd (Depends-on): Likewise.
5834         * modules/dprintf (Depends-on): Likewise.
5835         * modules/dprintf-posix (Depends-on): Likewise.
5836         * modules/error (Depends-on): Likewise.
5837         * modules/euidaccess (Depends-on): Likewise.
5838         * modules/expl (Depends-on): Likewise.
5839         * modules/faccessat (Depends-on): Likewise.
5840         * modules/fchdir (Depends-on): Likewise.
5841         * modules/fclose (Depends-on): Likewise.
5842         * modules/fcntl (Depends-on): Likewise.
5843         * modules/fdopendir (Depends-on): Likewise.
5844         * modules/fflush (Depends-on): Likewise.
5845         * modules/floor (Depends-on): Likewise.
5846         * modules/floorf (Depends-on): Likewise.
5847         * modules/floorl (Depends-on): Likewise.
5848         * modules/fnmatch (Depends-on): Likewise.
5849         * modules/fopen (Depends-on): Likewise.
5850         * modules/fprintf-posix (Depends-on): Likewise.
5851         * modules/frexp (Depends-on): Likewise.
5852         * modules/frexp-nolibm (Depends-on): Likewise.
5853         * modules/frexpl (Depends-on): Likewise.
5854         * modules/frexpl-nolibm (Depends-on): Likewise.
5855         * modules/fseek (Depends-on): Likewise.
5856         * modules/fsusage (Depends-on): Likewise.
5857         * modules/ftell (Depends-on): Likewise.
5858         * modules/ftello (Depends-on): Likewise.
5859         * modules/futimens (Depends-on): Likewise.
5860         * modules/getcwd (Depends-on): Likewise.
5861         * modules/getcwd-lgpl (Depends-on): Likewise.
5862         * modules/getdelim (Depends-on): Likewise.
5863         * modules/getdomainname (Depends-on): Likewise.
5864         * modules/getgroups (Depends-on): Likewise.
5865         * modules/gethostname (Depends-on): Likewise.
5866         * modules/getline (Depends-on): Likewise.
5867         * modules/getlogin_r (Depends-on): Likewise.
5868         * modules/getopt-posix (Depends-on): Likewise.
5869         * modules/getpeername (Depends-on): Likewise.
5870         * modules/getsockname (Depends-on): Likewise.
5871         * modules/getsockopt (Depends-on): Likewise.
5872         * modules/getsubopt (Depends-on): Likewise.
5873         * modules/getusershell (Depends-on): Likewise.
5874         * modules/glob (Depends-on): Likewise.
5875         * modules/grantpt (Depends-on): Likewise.
5876         * modules/iconv_open (Depends-on): Likewise.
5877         * modules/iconv_open-utf (Depends-on): Likewise.
5878         * modules/inet_ntop (Depends-on): Likewise.
5879         * modules/inet_pton (Depends-on): Likewise.
5880         * modules/ioctl (Depends-on): Likewise.
5881         * modules/isapipe (Depends-on): Likewise.
5882         * modules/isfinite (Depends-on): Likewise.
5883         * modules/isinf (Depends-on): Likewise.
5884         * modules/lchown (Depends-on): Likewise.
5885         * modules/ldexpl (Depends-on): Likewise.
5886         * modules/link (Depends-on): Likewise.
5887         * modules/linkat (Depends-on): Likewise.
5888         * modules/listen (Depends-on): Likewise.
5889         * modules/logl (Depends-on): Likewise.
5890         * modules/lstat (Depends-on): Likewise.
5891         * modules/mbrlen (Depends-on): Likewise.
5892         * modules/mbrtowc (Depends-on): Likewise.
5893         * modules/mbsinit (Depends-on): Likewise.
5894         * modules/mbsnrtowcs (Depends-on): Likewise.
5895         * modules/mbsrtowcs (Depends-on): Likewise.
5896         * modules/mbtowc (Depends-on): Likewise.
5897         * modules/memcmp (Depends-on): Likewise.
5898         * modules/mkdir (Depends-on): Likewise.
5899         * modules/mkdtemp (Depends-on): Likewise.
5900         * modules/mkfifo (Depends-on): Likewise.
5901         * modules/mkfifoat (Depends-on): Likewise.
5902         * modules/mknod (Depends-on): Likewise.
5903         * modules/mkostemp (Depends-on): Likewise.
5904         * modules/mkostemps (Depends-on): Likewise.
5905         * modules/mkstemp (Depends-on): Likewise.
5906         * modules/mkstemps (Depends-on): Likewise.
5907         * modules/mktime (Depends-on): Likewise.
5908         * modules/nanosleep (Depends-on): Likewise.
5909         * modules/open (Depends-on): Likewise.
5910         * modules/openat (Depends-on): Likewise.
5911         * modules/perror (Depends-on): Likewise.
5912         * modules/poll (Depends-on): Likewise.
5913         * modules/popen (Depends-on): Likewise.
5914         * modules/posix_spawn (Depends-on): Likewise.
5915         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5916         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5917         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5918         * modules/posix_spawnp (Depends-on): Likewise.
5919         * modules/pread (Depends-on): Likewise.
5920         * modules/printf-posix (Depends-on): Likewise.
5921         * modules/ptsname (Depends-on): Likewise.
5922         * modules/putenv (Depends-on): Likewise.
5923         * modules/pwrite (Depends-on): Likewise.
5924         * modules/readline (Depends-on): Likewise.
5925         * modules/readlink (Depends-on): Likewise.
5926         * modules/readlinkat (Depends-on): Likewise.
5927         * modules/recv (Depends-on): Likewise.
5928         * modules/recvfrom (Depends-on): Likewise.
5929         * modules/regex (Depends-on): Likewise.
5930         * modules/remove (Depends-on): Likewise.
5931         * modules/rename (Depends-on): Likewise.
5932         * modules/renameat (Depends-on): Likewise.
5933         * modules/rmdir (Depends-on): Likewise.
5934         * modules/round (Depends-on): Likewise.
5935         * modules/roundf (Depends-on): Likewise.
5936         * modules/roundl (Depends-on): Likewise.
5937         * modules/rpmatch (Depends-on): Likewise.
5938         * modules/select (Depends-on): Likewise.
5939         * modules/send (Depends-on): Likewise.
5940         * modules/sendto (Depends-on): Likewise.
5941         * modules/setenv (Depends-on): Likewise.
5942         * modules/setlocale (Depends-on): Likewise.
5943         * modules/setsockopt (Depends-on): Likewise.
5944         * modules/shutdown (Depends-on): Likewise.
5945         * modules/sigaction (Depends-on): Likewise.
5946         * modules/signbit (Depends-on): Likewise.
5947         * modules/sigprocmask (Depends-on): Likewise.
5948         * modules/sinl (Depends-on): Likewise.
5949         * modules/sleep (Depends-on): Likewise.
5950         * modules/snprintf (Depends-on): Likewise.
5951         * modules/snprintf-posix (Depends-on): Likewise.
5952         * modules/socket (Depends-on): Likewise.
5953         * modules/sprintf-posix (Depends-on): Likewise.
5954         * modules/sqrtl (Depends-on): Likewise.
5955         * modules/stat (Depends-on): Likewise.
5956         * modules/strchrnul (Depends-on): Likewise.
5957         * modules/strdup-posix (Depends-on): Likewise.
5958         * modules/strerror (Depends-on): Likewise.
5959         * modules/strerror_r-posix (Depends-on): Likewise.
5960         * modules/strndup (Depends-on): Likewise.
5961         * modules/strnlen (Depends-on): Likewise.
5962         * modules/strptime (Depends-on): Likewise.
5963         * modules/strsep (Depends-on): Likewise.
5964         * modules/strsignal (Depends-on): Likewise.
5965         * modules/strstr-simple (Depends-on): Likewise.
5966         * modules/strtod (Depends-on): Likewise.
5967         * modules/strtoimax (Depends-on): Likewise.
5968         * modules/strtok_r (Depends-on): Likewise.
5969         * modules/strtoumax (Depends-on): Likewise.
5970         * modules/symlink (Depends-on): Likewise.
5971         * modules/symlinkat (Depends-on): Likewise.
5972         * modules/tanl (Depends-on): Likewise.
5973         * modules/tcgetsid (Depends-on): Likewise.
5974         * modules/tmpfile (Depends-on): Likewise.
5975         * modules/trunc (Depends-on): Likewise.
5976         * modules/truncf (Depends-on): Likewise.
5977         * modules/truncl (Depends-on): Likewise.
5978         * modules/uname (Depends-on): Likewise.
5979         * modules/unlink (Depends-on): Likewise.
5980         * modules/unlockpt (Depends-on): Likewise.
5981         * modules/unsetenv (Depends-on): Likewise.
5982         * modules/usleep (Depends-on): Likewise.
5983         * modules/utimensat (Depends-on): Likewise.
5984         * modules/vasprintf (Depends-on): Likewise.
5985         * modules/vdprintf (Depends-on): Likewise.
5986         * modules/vdprintf-posix (Depends-on): Likewise.
5987         * modules/vfprintf-posix (Depends-on): Likewise.
5988         * modules/vprintf-posix (Depends-on): Likewise.
5989         * modules/vsnprintf (Depends-on): Likewise.
5990         * modules/vsnprintf-posix (Depends-on): Likewise.
5991         * modules/vsprintf-posix (Depends-on): Likewise.
5992         * modules/wcrtomb (Depends-on): Likewise.
5993         * modules/wcscasecmp (Depends-on): Likewise.
5994         * modules/wcscspn (Depends-on): Likewise.
5995         * modules/wcsdup (Depends-on): Likewise.
5996         * modules/wcsncasecmp (Depends-on): Likewise.
5997         * modules/wcsnrtombs (Depends-on): Likewise.
5998         * modules/wcspbrk (Depends-on): Likewise.
5999         * modules/wcsrtombs (Depends-on): Likewise.
6000         * modules/wcsspn (Depends-on): Likewise.
6001         * modules/wcsstr (Depends-on): Likewise.
6002         * modules/wcstok (Depends-on): Likewise.
6003         * modules/wcswidth (Depends-on): Likewise.
6004         * modules/wctob (Depends-on): Likewise.
6005         * modules/wctomb (Depends-on): Likewise.
6006         * modules/wctype (Depends-on): Likewise.
6007         * modules/wcwidth (Depends-on): Likewise.
6008         * modules/write (Depends-on): Likewise.
6009
6010 2011-05-03  Bruno Haible  <bruno@clisp.org>
6011
6012         Support for conditional dependencies.
6013         * doc/gnulib.texi (Module description): Document the syntax of
6014         conditional dependencies.
6015         * gnulib-tool: New option --conditional-dependencies.
6016         (func_usage): Document it.
6017         (cond_dependencies): New variable.
6018         (func_get_automake_snippet_conditional,
6019         func_get_automake_snippet_unconditional): New functions, extracted from
6020         func_get_automake_snippet.
6021         (func_get_automake_snippet): Use them.
6022         (sed_first_32_chars): New variable.
6023         (func_module_shellfunc_name): New function.
6024         (func_module_shellvar_name): New function.
6025         (func_module_conditional_name): New function.
6026         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6027         func_cond_module_condition): New functions.
6028         (func_modules_transitive_closure): Add support for conditional
6029         dependencies.
6030         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6031         conditional automake snippet in an automake conditional.
6032         (func_emit_autoconf_snippets): Emit shell functions that contain the
6033         code for conditional modules.
6034         (func_import, func_create_testdir): Update specification.
6035
6036 2011-05-03  Eric Blake  <eblake@redhat.com>
6037
6038         test-getaddrinfo: report error information
6039         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6040
6041 2011-05-03  Jim Meyering  <meyering@redhat.com>
6042
6043         bootstrap: avoid build failure when $GZIP is set
6044         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6045         program name.  If defined at all, it is supposed to list gzip options.
6046         Reported by Alan Curry in http://debbugs.gnu.org/8609
6047
6048 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6049
6050         readme-release: new module with release instructions
6051         * modules/readme-release: New module.
6052         * top/README-release: New file, from coreutils, grep, diffutils.
6053         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6054
6055 2011-05-02  Eric Blake  <eblake@redhat.com>
6056
6057         fflush: also replace fclose when fixing fflush
6058         * modules/fflush (Depends-on): Add fclose.
6059         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6060         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6061         memstreams with no backing fd.
6062         * doc/posix-functions/fclose.texi (fclose): Document the use of
6063         fflush module to fix the bug.
6064         * tests/test-fclose.c (main): Relax test when fclose is used in
6065         isolation.
6066
6067         fclose: add some tests
6068         * modules/fclose-tests: New test module.
6069         * tests/test-fclose.c: New file.
6070         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6071
6072         fclose: reduced dependencies
6073         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6074         simpler lseek.
6075         * lib/fclose.c (rpl_fclose): Likewise.
6076         Reported by Simon Josefsson.
6077
6078         exit: drop remaining clients
6079         * modules/argmatch (Depends-on): Replace exit with stdlib.
6080         * modules/copy-file (Depends-on): Likewise.
6081         * modules/execute (Depends-on): Likewise.
6082         * modules/exitfail (Depends-on): Likewise.
6083         * modules/obstack (Depends-on): Likewise.
6084         * modules/pagealign_alloc (Depends-on): Likewise.
6085         * modules/pipe-filter-gi (Depends-on): Likewise.
6086         * modules/pipe-filter-ii (Depends-on): Likewise.
6087         * modules/savewd (Depends-on): Likewise.
6088         * modules/spawn-pipe (Depends-on): Likewise.
6089         * modules/wait-process (Depends-on): Likewise.
6090         * modules/xsetenv (Depends-on): Likewise.
6091         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6092         * modules/git-merge-changelog (Depends-on): Likewise.
6093         * modules/long-options (Depends-on): Likewise.
6094         * modules/pt_chown (Depends-on): Likewise.
6095         * modules/sysexits (Depends-on): Likewise.
6096
6097         freading: relax license from LGPLv3+ to LGPLv2+
6098         * modules/freading (License): Relax LGPL version.
6099
6100 2011-05-02  Bruno Haible  <bruno@clisp.org>
6101
6102         fchdir: Remove unused dependencies.
6103         * modules/fchdir (Depends-on): Remove include_next.
6104
6105 2011-05-02  Bruno Haible  <bruno@clisp.org>
6106
6107         gnulib-tool: Refactor.
6108         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6109         from func_emit_autoconf_snippets.
6110         (func_emit_autoconf_snippets): Use it.
6111
6112 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6113
6114         * NEWS: Document removal of 'exit'.
6115         * modules/exit: Remove file.
6116
6117 2011-05-01  Bruno Haible  <bruno@clisp.org>
6118
6119         Update DEPENDENCIES.
6120         * DEPENDENCIES (gettext): Recommend the newest release.
6121         Reported by Simon Josefsson.
6122
6123 2011-05-01  Bruno Haible  <bruno@clisp.org>
6124
6125         gnulib-tool: Reduce code duplication.
6126         * gnulib-tool (func_emit_autoconf_snippets): New function.
6127         (func_import, func_create_testdir): Use it.
6128
6129 2011-04-30  Eric Blake  <eblake@redhat.com>
6130
6131         fclose: don't fail on non-seekable input stream
6132         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6133         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6134         since fflush is allowed to fail in that case.
6135
6136 2011-04-30  Bruno Haible  <bruno@clisp.org>
6137
6138         dup3: cleanup
6139         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6140
6141 2011-04-30  Bruno Haible  <bruno@clisp.org>
6142
6143         netdb: Make it work in C++ mode.
6144         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6145         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6146         module.
6147         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6148         gl_MODULE_INDICATOR_FOR_TESTS.
6149         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6150         * modules/netdb-c++-tests: New file.
6151         * tests/test-netdb-c++.cc: New file.
6152
6153 2011-04-30  Bruno Haible  <bruno@clisp.org>
6154
6155         New modules 'vfscanf', 'vscanf'.
6156         * modules/vfscanf: New file.
6157         * modules/vscanf: New file.
6158         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6159         here.
6160         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6161         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6162
6163 2011-04-30  Bruno Haible  <bruno@clisp.org>
6164
6165         passfd: Add comments.
6166         * lib/passfd.c: Add comments about platforms.
6167
6168 2011-04-30  Bruno Haible  <bruno@clisp.org>
6169
6170         sys_uio: Make <sys/uio.h> self-contained.
6171         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6172         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6173
6174 2011-04-30  Bruno Haible  <bruno@clisp.org>
6175
6176         sys_socket: Ensure 'struct iovec' definition.
6177         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6178         <sys/socket.h>.
6179         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6180
6181 2011-04-30  Bruno Haible  <bruno@clisp.org>
6182
6183         sys_uio: Protect definition of 'struct iovec'.
6184         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6185         it as a C struct.
6186
6187 2011-04-30  Bruno Haible  <bruno@clisp.org>
6188
6189         manywarnings: fix indentation
6190         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6191
6192 2011-04-30  Pádraig Brady <P@draigBrady.com>
6193
6194         manywarnings: add -Wno-missing-field-initializers if needed.
6195         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6196         option if it's needed to allow initialization with { 0, }
6197
6198 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6199
6200         announce-gen: cosmetic improvement
6201         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6202
6203 2011-04-29  Jim Meyering  <meyering@redhat.com>
6204
6205         vc-list-files: indent with spaces, not TABs
6206         * build-aux/vc-list-files: Convert leading TABs to spaces,
6207         to match the style of most other files in gnulib.
6208
6209         announce-gen: indent with spaces, not TABs
6210         * build-aux/announce-gen: Convert all TABs to spaces, to match
6211         the style of most other files in gnulib.
6212
6213 2011-04-29  Eric Blake  <eblake@redhat.com>
6214
6215         quotearg: avoid uninitialized variable use
6216         * lib/quotearg.c (quoting_options_from_style): Initialize
6217         remaining fields, and ensure that custom styles are only used via
6218         quoting_options rather than quoting_style.
6219
6220 2011-04-29  Jim Meyering  <meyering@redhat.com>
6221
6222         maint.mk: remove unused VC-tag variable
6223         * top/maint.mk (VC-tag): Remove unused variable.
6224
6225 2011-04-29  Bruno Haible  <bruno@clisp.org>
6226
6227         netdb: fix gai_strerror replacements
6228         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6229         * modules/netdb: Substitute it.
6230
6231 2011-04-29  Jim Meyering  <meyering@redhat.com>
6232
6233         test-getcwd.c: avoid new set-but-not-used warning
6234         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6235         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6236         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6237         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6238
6239         test-hash.c: avoid a new shadowing warning
6240         * tests/test-hash.c (main): Don't shadow "dup".
6241
6242 2011-04-28  Eric Blake  <eblake@redhat.com>
6243
6244         getaddrinfo: fix gai_strerror signature
6245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6246         and work around mingw with UNICODE defined.
6247         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6248         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6249         * modules/netdb (Makefile.am): Substitute it.
6250         * lib/netdb.in.h (gai_strerror): Declare replacement.
6251         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6252         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6253         the fix.
6254
6255         getsockopt: avoid compiler warning
6256         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6257         Reported by Matthias Bolte.
6258
6259         tests: drop unused link dependency
6260         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6261         * modules/dirent-safer-tests (Makefile.am): Likewise.
6262         * modules/fdopendir-tests (Makefile.am): Likewise.
6263         * modules/mkfifoat-tests (Makefile.am): Likewise.
6264         * modules/openat-safer-tests (Makefile.am): Likewise.
6265         * modules/openat-tests (Makefile.am): Likewise.
6266         * modules/readlinkat-tests (Makefile.am): Likewise.
6267         * modules/symlinkat-tests (Makefile.am): Likewise.
6268         * modules/linkat-tests (Makefile.am): Likewise.
6269         (Depends-on): Switch to filenamecat-lgpl.
6270         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6271         LIBINTL.
6272         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6273         * tests/test-linkat.c (main): Don't require xalloc.
6274
6275         hash, mgetgroups: drop xalloc dependency
6276         * lib/hash.c (includes): Adjust includes.
6277         * lib/mgetgroups.c (includes): Likewise.
6278         (xgetgroups): Move...
6279         * lib/xgetgroups.c: ...to new file.
6280         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6281         * modules/xgetgroups: New file, split from...
6282         * modules/mgetgroups: ...here.
6283         (Depends-on): Add xalloc-oversized.
6284         * modules/hash (Depends-on): Likewise.
6285         * modules/hash-tests (Depends-on): Drop xalloc.
6286         (test_hash_LDADD): Drop unused library.
6287         * tests/test-hash.c (main): Break xalloc dependency.
6288         (includes): Drop unused include.
6289
6290         xalloc-oversized: new module
6291         * modules/xalloc-oversized: New module.
6292         * modules/xalloc (Depends-on): Add it.
6293         * lib/xalloc.h (xalloc_oversized): Move...
6294         * lib/xalloc-oversized.h: ...into new file.
6295
6296         utimecmp: drop dependency on xmalloc
6297         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6298         due to memory pressure.
6299         * modules/utimecmp (Depends-on): Drop xalloc.
6300
6301 2011-04-27  Eric Blake  <eblake@redhat.com>
6302
6303         getcwd: fix mingw bugs
6304         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6305         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6306         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6307
6308 2011-04-27  Bruno Haible  <bruno@clisp.org>
6309
6310         mkstemps: Ensure declaration on MacOS X 10.5.
6311         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6312         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6313         MacOS X.
6314
6315 2011-04-27  Bruno Haible  <bruno@clisp.org>
6316
6317         mkstemp: More documentation.
6318         * doc/posix-functions/mkstemp.texi: Document header file problem on
6319         MacOS X.
6320
6321 2011-04-27  Bruno Haible  <bruno@clisp.org>
6322
6323         mkstemp: Tweak configure message when cross-compiling.
6324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6325         result as a guess.
6326
6327 2011-04-27  Bruno Haible  <bruno@clisp.org>
6328
6329         clean-temp: Clarify what it does.
6330         * lib/clean-temp.h: Add more comments.
6331         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6332         module.
6333         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6334         * doc/glibc-functions/mkstemps.texi: Likewise.
6335         * doc/glibc-functions/mkostemps.texi: Likewise.
6336
6337 2011-04-27  Eric Blake  <eblake@redhat.com>
6338
6339         fchdir: avoid extra chdir and fix test
6340         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6341         getcwd-lgpl.
6342         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6343         have to be canonical.
6344         (canonicalize_file_name): Drop unused macro.
6345         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6346
6347         filenamecat-lgpl: fix licence
6348         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6349         when it was first created.
6350
6351         linkat, renameat: add missing dependency
6352         * modules/linkat (Depends-on): Require getcwd-lgpl.
6353         * modules/renameat (Depends-on): Likewise.
6354
6355         tests: reduce dependencies
6356         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6357         * tests/test-renameat.c (main): Likewise.
6358         * modules/linkat-tests (Depends-on): Relax dependency.
6359         * modules/renameat-tests (Depends-on): Likewise.
6360         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6361         dependency explicit.
6362
6363         save-cwd: reduce default dependency
6364         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6365         * lib/save-cwd.c: Update comments.
6366         * NEWS: Document the semantic change.
6367
6368         getcwd: enhance tests
6369         * tests/test-getcwd-lgpl.c: New file, taken from...
6370         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6371         repeat long path stress tests from m4 probe.
6372         * modules/getcwd-lgpl-tests: New module.
6373         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6374         * m4/getcwd-abort-bug.m4: Update comment.
6375         * m4/getcwd-path-max.m4: Likewise.
6376
6377         getcwd-lgpl: new module
6378         * modules/getcwd-lgpl: New module.
6379         * lib/getcwd-lgpl.c: New file.
6380         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6381         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6382         * modules/getcwd (configure.ac): Set C witness.
6383         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6384
6385         getcwd: tweak comments
6386         * m4/getcwd-abort-bug.m4: Fix comments.
6387         * m4/getcwd-path-max.m4: Likewise.
6388         * m4/getcwd.m4: Likewise.
6389
6390 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6391         and Eric Blake  <eblake@redhat.com>
6392
6393         mkstemp: replace if system version uses wrong permissions
6394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6395         read/write mode bits set in file created by mkstemp.
6396         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6397
6398 2011-04-27  Eric Blake  <eblake@redhat.com>
6399
6400         passfd: avoid compiler warning
6401         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6402         Reported by Laine Stump.
6403
6404 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6405
6406         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6407         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6408
6409 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6410         and Eric Blake  <eblake@redhat.com>
6411
6412         mkstemp: mention clean-temp module
6413         * lib/mkstemp.c: Add comment.
6414         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6415
6416 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6417
6418         inttypes: also provide default values for 32-bit tests
6419         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6420         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6421
6422 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         strtoumax: remove dependency on strtoimax
6425         This is like the strtoull change of yesterday.
6426         * modules/strtoumax (Files): Add lib/strtoimax.c.
6427         (Depends-on): Remove strtoimax and add verify.
6428
6429         inttypes-incomplete: new module
6430         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6431         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6432         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6433         of gl_INTTYPES_H.
6434         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6435         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6436         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6437         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6438         * modules/strtoumax, modules/xstrtol (Depends-on):
6439         Depend on inttypes-incomplete, not inttypes.
6440         * modules/inttypes-incomplete: New module, containing the contents
6441         of the old modules/inttypes module, except that the Files: section
6442         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6443         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6444         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6445         (Depends-on): Depend only on inttypes-incomplete.
6446         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6447
6448         inttypes: omit now-redundant strtoimax and strtoumax work
6449         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6450         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6451
6452         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6453         This supports apps that need pointers to strtoimax and strtoumax,
6454         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6455         nonexistent functions.  See
6456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6457         et seq.
6458         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6459         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6460         a macro.
6461         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6462
6463 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6464
6465         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6466
6467 2011-04-25  Bruno Haible  <bruno@clisp.org>
6468
6469         strtol, strtoul: Mark modules as obsolete.
6470         * modules/strtol (Status, Notice): New sections.
6471         * modules/strtoul (Status, Notice): New sections.
6472
6473 2011-04-25  Bruno Haible  <bruno@clisp.org>
6474
6475         strtod: Remove check for strtod, unless supporting old platforms.
6476         * modules/strtod-obsolete: New file.
6477         * m4/strtod-obsolete.m4: New file.
6478         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6479         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6480         * modules/strtod (Depends-on): Add strtod-obsolete.
6481         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6482
6483 2011-04-25  Bruno Haible  <bruno@clisp.org>
6484
6485         strcase: Make module obsolete.
6486         * modules/strcase (Status, Notice): New sections.
6487
6488 2011-04-25  Bruno Haible  <bruno@clisp.org>
6489
6490         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6491         * modules/dup2-obsolete: New file.
6492         * m4/dup2-obsolete.m4: New file.
6493         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6494         gl_FUNC_DUP2_OBSOLETE is not also defined.
6495         * modules/dup2 (Depends-on): Add dup2-obsolete.
6496         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6497
6498 2011-04-25  Bruno Haible  <bruno@clisp.org>
6499
6500         strnlen: Avoid memchr related link error on old obsolete platforms.
6501         * modules/memchr-obsolete: New file.
6502         * m4/memchr-obsolete.m4: New file.
6503         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6504         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6505         * modules/memchr (Depends-on): Add memchr-obsolete.
6506         * modules/strnlen (Depends-on): Likewise.
6507         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6508
6509 2011-04-25  Jim Meyering  <meyering@redhat.com>
6510
6511         maint.mk: makefile_at_at_check extend and clean up
6512         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6513         in addition to */Makefile.am.
6514         Exempt legitimate uses of @VAR@ notation, e.g.,
6515         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6516         Remove obsolete coreutils-specific comment.
6517         Prompted by discussion here:
6518         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6519
6520 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6521
6522         strtoul: remove dependency on strtol
6523         This is so that 'configure' need not check for strtol merely because
6524         the application needs strtoul.
6525         * modules/strtoul (Files): Add lib/strtol.c.
6526         (Depends-on): Remove strtol.
6527
6528         strtoull: remove dependency on strtoul
6529         This is like the strtoll change.
6530         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6531         (Depends-on): Remove strtoul.
6532
6533         strtoll: remove dependency on strtol
6534         This is so that 'configure' need not check for strtol merely because
6535         the application needs strtoll.
6536         * modules/strtoll (Files): Add lib/strtol.c.
6537         (Depends-on): Remove strtol.
6538
6539 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6540
6541         inttypes: Move some configure check to module 'imaxdiv'.
6542         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6543         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6544         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6545
6546 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         inttypes: Move some configure check to module 'imaxabs'.
6549         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6550         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6551         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6552
6553 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6554
6555         inttypes: Remove configure tests that are not needed since 2009-12-31.
6556         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6557         gl_cv_header_working_inttypes_h.
6558
6559 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6560
6561         * modules/strnlen (Depends-on): Remove memchr.
6562         The strnlen implementation doesn't need the memchr module's fixes; see
6563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6564
6565         strtol: remove dependency on wchar
6566         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6567         * modules/strtol (Depends-on): Remove wchar.
6568
6569 2011-04-21  Eric Blake  <eblake@redhat.com>
6570
6571         passfd: fix test regression on Linux
6572         * modules/passfd-tests (configure.ac): Correct socketpair check.
6573
6574         passfd: speed up configure and drop unused code
6575         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6576         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6577         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6578         Instead of probing at configure for unix_scm_rights_bsd44_way,
6579         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6580         check to a struct member probe.
6581         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6582         (sendfd, recvfd): Update preprocessor checks.
6583         * modules/passfd (Files): Reflect rename, and drop unused file.
6584         (Depends-on): Drop unused dependency.
6585
6586         passfd: allow compilation on mingw
6587         * modules/sys_socket (Depends-on): Add sys_uio.
6588         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6589         iovec and a minimal struct msghdr.
6590         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6591         * tests/test-sys_socket.c (main): Enhance test.
6592         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6593         guaranteed to provide what we need.
6594         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6595         * modules/passfd-tests (Depends-on): Add sys_wait.
6596         * tests/test-passfd.c (main): Skip test on mingw, for now.
6597         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6598         partial 'struct msghdr' implementation.
6599
6600         sys_uio: new module
6601         * modules/sys_uio: New module.
6602         * modules/sys_uio-tests: Likewise.
6603         * lib/sys_uio.in.h: New file.
6604         * m4/sys_uio_h.m4: Likewise.
6605         * tests/test-sys_uio.c: Likewise.
6606         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6607         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6608
6609 2011-04-20  Jim Meyering  <meyering@redhat.com>
6610
6611         useless-if-before-free: avoid false-positive
6612         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6613         disjunct so that it too requires a terminating ";".  Without that,
6614         this script would identify as useless one statement from gcc that
6615         was not:
6616           if (aligned_ptr)
6617             free (((void **) aligned_ptr) [-1]);
6618
6619 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6620
6621         doc: update users.txt.
6622         * users.txt: Add barcode.
6623
6624 2011-04-19  Bruno Haible  <bruno@clisp.org>
6625
6626         ioctl: Remove link dependency on native Windows.
6627         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6628         (gl_close_fn, gl_ioctl_fn): New types.
6629         (struct fd_hook): Renamed from struct close_hook. Change type of
6630         private_close_fn field. Add private_ioctl_fn field.
6631         (close_hook_fn): Add parameter for primary close method.
6632         (execute_close_hooks, execute_all_close_hooks): Likewise.
6633         (ioctl_hook_fn): New type.
6634         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6635         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6636         argument.
6637         (unregister_fd_hook): Renamed from unregister_close_hook.
6638         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6639         Don't include <unistd.h>.
6640         (close): Remove undef.
6641         (anchor): Update.
6642         (execute_close_hooks): Add argument for primary close method.
6643         (execute_all_close_hooks): Likewise.
6644         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6645         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6646         argument. Allow each argument to be NULL.
6647         (unregister_fd_hook): Renamed from unregister_close_hook.
6648         * lib/close.c (rpl_close): Pass 'close' function pointer to
6649         execute_all_close_hooks.
6650         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6651         (primary_ioctl): New function.
6652         (ioctl): Don't call ioctlsocket here. Instead, call
6653         execute_all_ioctl_hooks.
6654         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6655         close method.
6656         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6657         (fd_sockets_hook): Renamed from close_sockets_hook.
6658         (gl_sockets_startup, gl_sockets_cleanup): Update.
6659         * modules/fd-hook: Renamed from modules/close-hook. Update.
6660         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6661         * modules/sockets (Depends-on): Likewise.
6662         * modules/ioctl (Depends-on): Add fd-hook.
6663         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6664         GNULIB_SOCKET.
6665
6666 2011-04-19  Bruno Haible  <bruno@clisp.org>
6667
6668         Move the support of O_NONBLOCK in open() to the 'open' module.
6669         * modules/nonblocking (Depends-on): Remove 'open'.
6670         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6671         gl_cv_have_open_O_NONBLOCK.
6672         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6673         O_NONBLOCK support.
6674         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6675
6676 2011-04-17  Bruno Haible  <bruno@clisp.org>
6677
6678         pipe2: Simplify code.
6679         * lib/pipe2.c (pipe2): Reduce code duplication.
6680
6681 2011-04-17  Bruno Haible  <bruno@clisp.org>
6682
6683         nonblocking: Add comment.
6684         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6685
6686 2011-04-17  Bruno Haible  <bruno@clisp.org>
6687
6688         nonblocking: Add tests for sockets.
6689         * tests/test-nonblocking-socket.sh: New file.
6690         * tests/test-nonblocking-socket-main.c: New file.
6691         * tests/test-nonblocking-socket-child.c: New file.
6692         * tests/test-nonblocking-socket.h: New file.
6693         * tests/socket-server.h: New file.
6694         * tests/socket-client.h: New file.
6695         * modules/nonblocking-socket-tests: New file.
6696         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6697
6698 2011-04-17  Bruno Haible  <bruno@clisp.org>
6699
6700         nonblocking: Add tests for pipes.
6701         * tests/test-nonblocking-pipe.sh: New file.
6702         * tests/test-nonblocking-pipe-main.c: New file.
6703         * tests/test-nonblocking-pipe-child.c: New file.
6704         * tests/test-nonblocking-pipe.h: New file.
6705         * tests/test-nonblocking-writer.h: New file.
6706         * tests/test-nonblocking-reader.h: New file.
6707         * tests/test-nonblocking-misc.h: New file.
6708         * modules/nonblocking-pipe-tests: New file.
6709         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6710
6711 2011-04-16  Bruno Haible  <bruno@clisp.org>
6712
6713         gettext: Clarify the needed programmer actions.
6714         * modules/gettext (Notice): New field.
6715         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6716
6717 2011-04-16  Bruno Haible  <bruno@clisp.org>
6718
6719         strchrnul: Tweak last commit.
6720         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6721         bug.
6722         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6723         as in _GL_FUNCDECL_SYS.
6724         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6725         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6726
6727 2011-04-15  Eric Blake  <eblake@redhat.com>
6728
6729         strchrnul: work around cygwin bug
6730         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6731         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6733         * modules/string (Makefile.am): Substitute it.
6734         * lib/string.in.h (strchrnul): Use it.
6735
6736 2011-04-15  Bruno Haible  <bruno@clisp.org>
6737
6738         Don't require lib/stdio-write.c when only module 'stdio' is used.
6739         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6740         invocation.
6741         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6742
6743 2011-04-14  Bruno Haible  <bruno@clisp.org>
6744
6745         Support non-blocking pipe I/O in read() on native Windows.
6746         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6747         (read): New declaration.
6748         * lib/read.c: New file.
6749         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6750         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6751         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6752         vscanf): New declarations.
6753         * lib/stdio-read.c: New file.
6754         * m4/read.m4: New file.
6755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6756         REPLACE_READ.
6757         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6758         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6759         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6760         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6761         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6762         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6763         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6764         * modules/read: New file.
6765         * modules/nonblocking (Files): Add lib/stdio-read.c.
6766         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6767         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6768         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6769         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6770         * modules/pread (Depends-on): Add read.
6771         * modules/safe-read (Depends-on): Likewise.
6772         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6773         gets, scanf, vfscanf, vscanf): Verify signatures.
6774         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6775         problem with non-blocking pipes.
6776         * doc/posix-functions/fgetc.texi: Likewise.
6777         * doc/posix-functions/fgets.texi: Likewise.
6778         * doc/posix-functions/fread.texi: Likewise.
6779         * doc/posix-functions/fscanf.texi: Likewise.
6780         * doc/posix-functions/getc.texi: Likewise.
6781         * doc/posix-functions/getchar.texi: Likewise.
6782         * doc/posix-functions/gets.texi: Likewise.
6783         * doc/posix-functions/scanf.texi: Likewise.
6784         * doc/posix-functions/vfscanf.texi: Likewise.
6785         * doc/posix-functions/vscanf.texi: Likewise.
6786
6787 2011-04-14  Bruno Haible  <bruno@clisp.org>
6788
6789         Support non-blocking pipe I/O in write() on native Windows.
6790         * lib/write.c (rpl_write): Split a write request that failed merely
6791         because the byte count was larger than the pipe buffer's size.
6792         * doc/posix-functions/write.texi: Mention the problem with large byte
6793         counts.
6794
6795 2011-04-14  Bruno Haible  <bruno@clisp.org>
6796
6797         wchar: Ensure that wchar_t gets defined on uClibc.
6798         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6799         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6800
6801 2011-04-13  Bruno Haible  <bruno@clisp.org>
6802
6803         safe-write, full-read: Avoid unnecessary compilation units.
6804         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6805         (Depends-on): Remove safe-read. Add ssize_t.
6806         * modules/full-read (Files): Add lib/full-write.c.
6807         (Depends-on): Add full-write.
6808
6809 2011-04-13  Bruno Haible  <bruno@clisp.org>
6810
6811         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6812         * modules/pwrite (Depends-on): Add 'write'.
6813
6814 2011-04-13  Bruno Haible  <bruno@clisp.org>
6815
6816         Support non-blocking pipe I/O in write() on native Windows.
6817         * lib/unistd.in.h (write): Enable replacement also if
6818         GNULIB_UNISTD_H_NONBLOCKING is 1.
6819         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6820         (rpl_write): When failing to write on a non-blocking pipe, change
6821         errno from ENOSPC to EAGAIN.
6822         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6823         putchar, puts, vfprintf, vprintf): Enable replacement also if
6824         GNULIB_STDIO_H_NONBLOCKING is 1.
6825         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6826         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6827         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6828         CALL_WITH_SIGPIPE_EMULATION.
6829         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6830         * m4/nonblocking.m4: New file.
6831         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6832         for non-blocking I/O support.
6833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6834         GNULIB_UNISTD_H_NONBLOCKING.
6835         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6836         required for non-blocking I/O support.
6837         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6838         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6839         lib/stdio-write.c, m4/asm-underscore.m4.
6840         (Depends-on): Add stdio, unistd.
6841         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6842         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6843         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6844         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6845         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6846         problem with non-blocking pipes.
6847         * doc/posix-functions/fputc.texi: Likewise.
6848         * doc/posix-functions/fputs.texi: Likewise.
6849         * doc/posix-functions/fwrite.texi: Likewise.
6850         * doc/posix-functions/printf.texi: Likewise.
6851         * doc/posix-functions/putc.texi: Likewise.
6852         * doc/posix-functions/putchar.texi: Likewise.
6853         * doc/posix-functions/puts.texi: Likewise.
6854         * doc/posix-functions/vfprintf.texi: Likewise.
6855         * doc/posix-functions/vprintf.texi: Likewise.
6856         * doc/posix-functions/write.texi: Likewise.
6857
6858 2011-04-10  Jim Meyering  <meyering@redhat.com>
6859
6860         maint.mk: prohibit doubled words
6861         Detect them also when they're separated by a newline.
6862         There are 3 ways to customize it:
6863           - disable the test on a per file basis, as usual with rules using
6864             $(VC_LIST_EXCEPT)
6865           - replace the default doubled-word-selecting regexp (affects all files)
6866           - ignore a particular file-vs-doubled-word match
6867         I nearly used that last one to ignore the "is is" match in
6868         coreutils' NEWS file, since the text was "ls -is is ..."
6869         To do that, I would have added this line to cfg.mk:
6870           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6871         but it would have ignored any "is is" match in NEWS.
6872         Low probability, but still...
6873         Instead, I changed the text, slightly:
6874           -  ls -is is now consistent with ls -lis in ignoring values returned
6875           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6876         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6877         (prohibit_doubled_word_): Define.
6878         (sc_prohibit_doubled_word): New rule.
6879         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6880
6881 2011-04-10  Jim Meyering  <meyering@redhat.com>
6882
6883         maint: fix doubled-word typo in comment
6884         * m4/gethostname.m4: s/is is/it is/
6885         * m4/getdomainname.m4: Likewise.
6886
6887 2011-04-10  Jim Meyering  <meyering@redhat.com>
6888
6889         maint: remove doubled word: s/it it/it/
6890         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6891
6892 2011-04-10  Jim Meyering  <meyering@redhat.com>
6893
6894         maint.mk: remove useless semicolon and backslash
6895         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6896         semicolon and backslash.
6897
6898 2011-04-10  Bruno Haible  <bruno@clisp.org>
6899
6900         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6901         * modules/stdint-tests (Depends-on): Add wchar.
6902
6903 2011-04-10  Jim Meyering  <meyering@redhat.com>
6904
6905         maint: remove doubled words in comments, e.g., s/a a/a/
6906         * lib/strptime.c (day_of_the_week): s/the the/the/
6907         * tests/test-chown.h (test_chown): s/a a/a/
6908
6909         test-chown.h: correct a cast
6910         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6911         when the destination is a stat.st_gid.
6912
6913 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6914
6915         getaddrinfo: Fix test for sa_len member.
6916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6917         include <sys/types.h> before <sys/socket.h>.
6918
6919 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6920
6921         maint: change "can not" to "cannot"
6922         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6923         boundaries.
6924
6925 2011-04-09  Jim Meyering  <meyering@redhat.com>
6926
6927         maint: change "a a" to "a"
6928         * tests/test-lchown.h (test_lchown): s/a a/a/
6929
6930         maint.mk: prohibit \<the the\>
6931         * top/maint.mk (sc_prohibit_the_the): New rule.
6932
6933         maint: fix "the the" in comment
6934         * lib/count-one-bits.h: s/the the/the/
6935
6936         maint: change "can not" to "cannot"
6937         But do not change the occurrences in maintain.texi or in
6938         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6939         * doc/gnulib-tool.texi: s/can not/cannot/
6940         * doc/posix-functions/accept.texi (accept): Likewise.
6941         * doc/posix-functions/socket.texi (socket): Likewise.
6942         * lib/mbrtowc.c: Likewise.
6943
6944         maint.mk: prohibit use of "can not"
6945         * top/maint.mk (sc_prohibit_can_not): New rule.
6946         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6947
6948 2011-04-09  Bruno Haible  <bruno@clisp.org>
6949
6950         careadlinkat: Guard against misuse of careadlinkatcwd.
6951         * lib/careadlinkat.c: Include <stdlib.h>.
6952         (careadlinkatcwd): Check that the fd argument is as expected.
6953
6954 2011-04-09  Bruno Haible  <bruno@clisp.org>
6955
6956         careadlinkat: Use common coding style.
6957         * lib/careadlinkat.c: Move gnulib includes after system includes.
6958
6959 2011-04-09  Bruno Haible  <bruno@clisp.org>
6960
6961         careadlinkat: Clarify specification.
6962         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6963         (careadlinkatcwd): Add comment.
6964         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6965
6966 2011-04-09  Bruno Haible  <bruno@clisp.org>
6967
6968         areadlinkat: Avoid link error on many platforms.
6969         * modules/areadlinkat (Depends-on): Add areadlink.
6970
6971 2011-04-09  Bruno Haible  <bruno@clisp.org>
6972
6973         allocator, careadlinkat: Fix double-inclusion guard.
6974         * lib/allocator.h: Fix double-inclusion guard.
6975         * lib/careadlinkat.h: Likewise.
6976
6977 2011-04-09  Bruno Haible  <bruno@clisp.org>
6978
6979         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6980         * lib/relocwrapper.c: Update dependencies hierarchy.
6981         * build-aux/install-reloc: Update list of files to be compiled.
6982         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6983         lib/allocator.[hc].
6984
6985 2011-04-08  Eric Blake  <eblake@redhat.com>
6986
6987         strftime: silence gnulib-tool warning
6988         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6989
6990 2011-04-08  Bruno Haible  <bruno@clisp.org>
6991
6992         verify: Fix syntax error with GCC 4.6 in C++ mode.
6993         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6994         (HAVE_STATIC_ASSERT): New macro.
6995         (verify_true, verify): Use 'static_assert' if it is supported and
6996         '_Static_assert' is not supported.
6997
6998 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6999
7000         allocator: New module.
7001         * modules/allocator, lib/allocator.c: New files.
7002         * lib/allocator.h (stdlib_allocator): New decl.
7003         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7004         Remove.  Do not include <stdlib.h>.
7005         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7006         * modules/careadlinkat (Files): Remove lib/allocator.h.
7007         (Depends-on): Add allocator.
7008
7009         stdlib: let modules use system malloc, realloc
7010         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7011         if !_GL_USE_STDLIB_ALLOC.
7012         (malloc, realloc): Limit this change to a smaller scope.
7013
7014         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7015         (malloc, realloc): Don't #undef; no longer needed.
7016         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7017         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7018         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7019         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7020         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7021         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7022         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7023         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7024
7025         careadlinkat: rename members to avoid problem
7026         * lib/allocator.h (struct allocator): Rename members from
7027         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7028         and realloc are #define'd.  Reported by Eric Blake in
7029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7030         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7031
7032 2011-04-08  Eric Blake  <eblake@redhat.com>
7033
7034         nonblocking: reduce dependency
7035         * tests/test-nonblocking.c: Only test sockets when in use.
7036         * modules/nonblocking-tests (Depends-on): Drop socket.
7037         (Makefile.am): Link even if sockets are not present.
7038         * modules/pipe2-tests (Makefile.am): Likewise.
7039         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7040
7041         pipe2: fix O_NONBLOCK support on mingw
7042         * modules/pipe2 (Depends-on): Add nonblocking.
7043         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7044         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7045         * tests/test-nonblocking.c (main): Likewise.
7046         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7047
7048         fcntl-h: fix O_ACCMODE on cygwin
7049         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7050         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7051
7052         pipe-filter: drop O_NONBLOCK workarounds
7053         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7054         * modules/pipe-filter-ii (Depends-on): Likewise.
7055         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7056
7057         nonblocking: provide O_NONBLOCK for mingw
7058         * modules/nonblocking (Depends-on): Add open.
7059         (configure.ac): Set new witness macro.
7060         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7061         * modules/fcntl-h (Makefile.am): Substitute it.
7062         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7063         nonblocking module is in use.
7064         * lib/nonblocking.c: Adjust portability test.
7065         * lib/open.c (open): Don't let native open see gnulib flag.
7066         * tests/test-fcntl-h.c (main): Enhance test.
7067         * tests/test-open.h (test_open): Likewise.
7068         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7069
7070         careadlinkat: fix compilation error on mingw
7071         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7072         within struct allocator.
7073
7074 2011-04-06  Eric Blake  <eblake@redhat.com>
7075
7076         binary-io: relicense under LGPLv2+
7077         * modules/binary-io (License): Relax to LGPLv2+.
7078         Requested for libvirt, and required by pipe2.
7079
7080 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7081
7082         verify: use _Static_assert if available
7083         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7084         (verify_true, verify): Use it if available.  This generates better
7085         diagnostics with GCC 4.6.0 and later.
7086
7087 2011-04-05  Bruno Haible  <bruno@clisp.org>
7088
7089         Remove leftover generated .h files after config.status changed.
7090
7091         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7092         GL_GENERATE_ALLOCA_H.
7093         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7094         GL_GENERATE_ALLOCA_H evaluates to false.
7095
7096         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7097         GL_GENERATE_ARGZ_H.
7098         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7099         evaluates to false.
7100
7101         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7102         GL_GENERATE_BYTESWAP_H.
7103         * modules/byteswap (Makefile.am): Remove byteswap.h if
7104         GL_GENERATE_BYTESWAP_H evaluates to false.
7105
7106         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7107         GL_GENERATE_ERRNO_H.
7108         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7109         evaluates to false.
7110
7111         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7112         GL_GENERATE_FLOAT_H.
7113         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7114         evaluates to false.
7115
7116         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7117         GL_GENERATE_FNMATCH_H.
7118         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7119         GL_GENERATE_FNMATCH_H evaluates to false.
7120
7121         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7122         GL_GENERATE_GLOB_H.
7123         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7124         evaluates to false.
7125
7126         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7127         automake conditional GL_GENERATE_ICONV_H.
7128         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7129         evaluates to false.
7130
7131         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7132         GL_GENERATE_NETINET_IN_H.
7133         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7134         GL_GENERATE_NETINET_IN_H evaluates to false.
7135
7136         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7137         conditional GL_GENERATE_PTHREAD_H.
7138         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7139         * modules/pthread (Makefile.am): Remove pthread.h if
7140         GL_GENERATE_PTHREAD_H evaluates to false.
7141
7142         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7143         GL_GENERATE_SCHED_H.
7144         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7145         evaluates to false.
7146
7147         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7148         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7149         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7150         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7151
7152         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7153         GL_GENERATE_STDARG_H.
7154         * modules/stdarg (Makefile.am): Remove stdarg.h if
7155         GL_GENERATE_STDARG_H evaluates to false.
7156
7157         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7158         GL_GENERATE_STDBOOL_H.
7159         * modules/stdbool (Makefile.am): Remove stdbool.h if
7160         GL_GENERATE_STDBOOL_H evaluates to false.
7161
7162         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7163         conditional GL_GENERATE_STDDEF_H.
7164         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7165         * modules/stddef (Makefile.am): Remove stddef.h if
7166         GL_GENERATE_STDDEF_H evaluates to false.
7167
7168         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7169         GL_GENERATE_STDINT_H.
7170         * modules/stdint (Makefile.am): Remove stdint.h if
7171         GL_GENERATE_STDINT_H evaluates to false.
7172
7173         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7174         GL_GENERATE_SYSEXITS_H.
7175         * modules/sysexits (Makefile.am): Remove sysexits.h if
7176         GL_GENERATE_SYSEXITS_H evaluates to false.
7177
7178         Reported by Karl Berry and Ralf Wildenhues.
7179
7180 2011-04-05  Bruno Haible  <bruno@clisp.org>
7181
7182         Ensure to rebuild generated .h files when config.status has changed.
7183         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7184         config.status.
7185         * modules/ctype (Makefile.am): Likewise.
7186         * modules/dirent (Makefile.am): Likewise.
7187         * modules/errno (Makefile.am): Likewise.
7188         * modules/fcntl-h (Makefile.am): Likewise.
7189         * modules/float (Makefile.am): Likewise.
7190         * modules/getopt-posix (Makefile.am): Likewise.
7191         * modules/glob (Makefile.am): Likewise.
7192         * modules/iconv-h (Makefile.am): Likewise.
7193         * modules/inttypes (Makefile.am): Likewise.
7194         * modules/langinfo (Makefile.am): Likewise.
7195         * modules/locale (Makefile.am): Likewise.
7196         * modules/math (Makefile.am): Likewise.
7197         * modules/netdb (Makefile.am): Likewise.
7198         * modules/netinet_in (Makefile.am): Likewise.
7199         * modules/poll-h (Makefile.am): Likewise.
7200         * modules/pthread (Makefile.am): Likewise.
7201         * modules/pty (Makefile.am): Likewise.
7202         * modules/sched (Makefile.am): Likewise.
7203         * modules/search (Makefile.am): Likewise.
7204         * modules/selinux-h (Makefile.am): Likewise.
7205         * modules/signal (Makefile.am): Likewise.
7206         * modules/spawn (Makefile.am): Likewise.
7207         * modules/stdarg (Makefile.am): Likewise.
7208         * modules/stdbool (Makefile.am): Likewise.
7209         * modules/stddef (Makefile.am): Likewise.
7210         * modules/stdint (Makefile.am): Likewise.
7211         * modules/stdio (Makefile.am): Likewise.
7212         * modules/stdlib (Makefile.am): Likewise.
7213         * modules/string (Makefile.am): Likewise.
7214         * modules/strings (Makefile.am): Likewise.
7215         * modules/sys_file (Makefile.am): Likewise.
7216         * modules/sys_ioctl (Makefile.am): Likewise.
7217         * modules/sys_select (Makefile.am): Likewise.
7218         * modules/sys_socket (Makefile.am): Likewise.
7219         * modules/sys_stat (Makefile.am): Likewise.
7220         * modules/sys_time (Makefile.am): Likewise.
7221         * modules/sys_times (Makefile.am): Likewise.
7222         * modules/sys_utsname (Makefile.am): Likewise.
7223         * modules/sys_wait (Makefile.am): Likewise.
7224         * modules/sysexits (Makefile.am): Likewise.
7225         * modules/termios (Makefile.am): Likewise.
7226         * modules/time (Makefile.am): Likewise.
7227         * modules/unistd (Makefile.am): Likewise.
7228         * modules/wchar (Makefile.am): Likewise.
7229         * modules/wctype-h (Makefile.am): Likewise.
7230         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7231
7232 2011-04-05  Bruno Haible  <bruno@clisp.org>
7233
7234         pipe2: Relicense under LGPLv2+.
7235         * modules/pipe2 (License): Change to LGPLv2+.
7236         Requested by Eric Blake, for libvirt.
7237
7238 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7239
7240         bootstrap: compute gnulib_extra_files after updating build_aux
7241         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7242         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7243
7244 2011-04-05  Eric Blake  <eblake@redhat.com>
7245
7246         bootstrap: preserve git whitelist item sorting
7247         * build-aux/bootstrap (sort_patterns): New function.
7248         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7249
7250 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7251
7252         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7253         sc_space_tab check.
7254
7255 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         areadlink, areadlinkat: rewrite in terms of careadlinkat
7258         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7259         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7260         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7261         (malloc, realloc): Remove #undefs.
7262         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7263         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7264         readlink, ssize_t, stdint, unistd.
7265         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7266         areadlink, stdint.
7267
7268         careadlinkat: new module
7269         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7270         * modules/careadlinkat: New files, written by me with
7271         a review and feedback from Ben Pfaff in
7272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7273
7274 2011-04-01  Bruno Haible  <bruno@clisp.org>
7275
7276         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7277         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7278         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7279         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7280         Reported by Bruce Korb <bruce.korb@gmail.com>.
7281
7282 2011-04-01  Bruno Haible  <bruno@clisp.org>
7283
7284         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7285         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7286         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7287         * modules/wcpcpy (Depends-on): Add extensions.
7288         * modules/wcpncpy (Depends-on): Likewise.
7289         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7290         systems.
7291         * doc/posix-functions/wcpncpy.texi: Likewise.
7292         * doc/posix-functions/wcwidth.texi: Likewise.
7293
7294 2011-03-31  Eric Blake  <eblake@redhat.com>
7295
7296         nonblocking: fix mingw test failures
7297         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7298         non-blocking flag on regular file.
7299         (get_nonblocking_flag): Set errno on invalid fd.
7300         * tests/test-nonblocking.c (main): Avoid test failure on
7301         directories if fchdir is not active.
7302         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7303
7304 2011-03-31  Bruno Haible  <bruno@clisp.org>
7305
7306         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7307         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7308         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7309         Reported by Simon Josefsson <simon@josefsson.org>.
7310
7311 2011-03-31  Bruno Haible  <bruno@clisp.org>
7312         and Eric Blake  <eblake@redhat.com>
7313
7314         nonblocking: new module
7315         * modules/nonblocking: New module.
7316         * modules/nonblocking-tests: Likewise.
7317         * lib/nonblocking.h: New file.
7318         * lib/nonblocking.c: Likewise.
7319         * tests/test-nonblocking.c: New test.
7320         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7321
7322 2011-03-30  Bruno Haible  <bruno@clisp.org>
7323
7324         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7325         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7326         instead of 'printf' format for GCC >= 4.4.
7327         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7328         (fprintf, printf, vfprintf, vprintf): Declare with
7329         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7330         the system's vfprintf() function.
7331         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7332
7333 2011-03-30  Eric Blake  <eblake@redhat.com>
7334
7335         passfd: fix scoping bug
7336         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7337         before sendmsg/recvmsg.
7338
7339         passfd: standardize coding conventions
7340         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7341         can be learned at compile time.
7342         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7343         ifdefs.
7344         (sendfd, recvfd): Follow gnulib code conventions.
7345
7346         passfd: fix incorrect sendmsg arguments
7347         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7348         incorrect msg_controllen value.
7349         * modules/passfd-tests (Depends-on): Check for alarm.
7350         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7351         Reported by Bastien ROUCARIES.
7352
7353 2011-03-30  Bruno Haible  <bruno@clisp.org>
7354
7355         c-strcasestr: Relicense under LGPLv2+.
7356         * modules/c-strcasestr (License): Change to LGPLv2+.
7357         Requested by Eric Blake, for libvirt.
7358
7359 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7360
7361         * users.txt: Add libidn2.  Fix libtasn1 link.
7362
7363 2011-03-30  Jim Meyering  <meyering@redhat.com>
7364
7365         tests: readlink* ("",... fails with EINVAL on newer kernels
7366         readlink and readlinkat have typically failed with ENOENT for
7367         the invalid, empty file name,  "".  However, with the advent
7368         of linux-2.6.39, they fail with EINVAL.
7369         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7370         when operating on the empty file name.
7371         * tests/test-readlink.h (test_readlink): Likewise.
7372
7373 2011-03-29  Bruno Haible  <bruno@clisp.org>
7374
7375         Relicense some modules under LGPLv2+, for libidn2.
7376         * modules/array-mergesort (License): Change to LGPLv2+.
7377         * modules/c-strcaseeq (License): Likewise.
7378         * modules/striconveh (License): Likewise.
7379         * modules/striconveha (License): Likewise.
7380         * modules/uniconv/base (License): Likewise.
7381         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7382         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7383         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7384         * modules/unictype/base (License): Likewise.
7385         * modules/unictype/bidiclass-of (License): Likewise.
7386         * modules/unictype/category-M (License): Likewise.
7387         * modules/unictype/category-none (License): Likewise.
7388         * modules/unictype/category-of (License): Likewise.
7389         * modules/unictype/category-test (License): Likewise.
7390         * modules/unictype/category-test-withtable (License): Likewise.
7391         * modules/unictype/combining-class (License): Likewise.
7392         * modules/unictype/joiningtype-of (License): Likewise.
7393         * modules/unictype/scripts (License): Likewise.
7394         * modules/uninorm/base (License): Likewise.
7395         * modules/uninorm/canonical-decomposition (License): Likewise.
7396         * modules/uninorm/composition (License): Likewise.
7397         * modules/uninorm/decompose-internal (License): Likewise.
7398         * modules/uninorm/decomposition-table (License): Likewise.
7399         * modules/uninorm/nfc (License): Likewise.
7400         * modules/uninorm/nfd (License): Likewise.
7401         * modules/uninorm/u32-normalize (License): Likewise.
7402         * modules/unistr/base (License): Likewise.
7403         * modules/unistr/u32-cpy (License): Likewise.
7404         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7405         * modules/unistr/u32-to-u8 (License): Likewise.
7406         * modules/unistr/u32-uctomb (License): Likewise.
7407         * modules/unistr/u8-check (License): Likewise.
7408         * modules/unistr/u8-mblen (License): Likewise.
7409         * modules/unistr/u8-mbtouc (License): Likewise.
7410         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7411         * modules/unistr/u8-mbtoucr (License): Likewise.
7412         * modules/unistr/u8-prev (License): Likewise.
7413         * modules/unistr/u8-strlen (License): Likewise.
7414         * modules/unistr/u8-to-u32 (License): Likewise.
7415         * modules/unistr/u8-uctomb (License): Likewise.
7416         * modules/unitypes (License): Likewise.
7417         Requested by Simon Josefsson.
7418
7419 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7420
7421         lib-symbol-visibility: Add a notice.
7422         * modules/lib-symbol-visibility (Notice): New field.
7423
7424 2011-03-29  Bruno Haible  <bruno@clisp.org>
7425
7426         getaddrinfo: Doc fix.
7427         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7428         section "fixed in Gnulib".
7429
7430 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7431
7432         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7433         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7434
7435 2011-03-26  Bruno Haible  <bruno@clisp.org>
7436
7437         unictype/property-byname: Reduce the number of load-time relocations.
7438         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7439         (UC_PROPERTY_INDEX_*): New enumeration values.
7440         (uc_property_byname): Convert an index from the lookup table to an
7441         uc_property_t.
7442         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7443         values.
7444
7445 2011-03-26  Bruno Haible  <bruno@clisp.org>
7446
7447         unictype/property-byname: Allow omitted word separators and aliases.
7448         * lib/unictype/pr_byname.gperf: Add property names without word
7449         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7450         for 'space'.
7451
7452 2011-03-26  Bruno Haible  <bruno@clisp.org>
7453
7454         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7455         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7456         also hyphens to space.
7457         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7458         without spaces.
7459         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7460
7461 2011-03-26  Bruno Haible  <bruno@clisp.org>
7462
7463         unictype/joiningtype-byname: Recognize long names as well.
7464         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7465         a long name.
7466         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7467         unictype/joiningtype_byname.h.
7468         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7469         * lib/unictype/joiningtype_byname.gperf: New file.
7470         * modules/unictype/joiningtype-byname (Files): Add
7471         lib/unictype/joiningtype_byname.gperf.
7472         (Depends-on): Add gperf.
7473         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7474         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7475         long names.
7476
7477         Tests for module 'unictype/joiningtype-longname'.
7478         * modules/unictype/joiningtype-longname-tests: New file.
7479         * tests/unictype/test-joiningtype_longname.c: New file.
7480
7481         New module 'unictype/joiningtype-longname'.
7482         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7483         * lib/unictype/joiningtype_longname.c: New file.
7484         * modules/unictype/joiningtype-longname: New file.
7485         * modules/unictype/joiningtype-all (Depends-on): Add
7486         unictype/joiningtype-longname.
7487
7488 2011-03-26  Bruno Haible  <bruno@clisp.org>
7489
7490         unictype/bidiclass-byname: Recognize long names as well.
7491         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7492         name.
7493         * lib/unictype/bidi_byname.c: Include <string.h>,
7494         unictype/bidi_byname.h.
7495         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7496         * lib/unictype/bidi_byname.gperf: New file.
7497         * modules/unictype/bidiclass-byname (Files): Add
7498         lib/unictype/bidi_byname.gperf.
7499         (Depends-on): Add gperf.
7500         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7501         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7502         long names.
7503
7504         Tests for module 'unictype/bidiclass-longname'.
7505         * modules/unictype/bidiclass-longname-tests: New file.
7506         * tests/unictype/test-bidi_longname.c: New file.
7507
7508         New module 'unictype/bidiclass-longname'.
7509         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7510         * lib/unictype/bidi_longname.c: New file.
7511         * modules/unictype/bidiclass-longname: New file.
7512         * modules/unictype/bidiclass-all (Depends-on): Add
7513         unictype/bidiclass-longname.
7514
7515 2011-03-26  Bruno Haible  <bruno@clisp.org>
7516
7517         unictype/bidi*: Rename modules.
7518         * modules/unictype/bidiclass-all: Renamed from
7519         modules/unictype/bidicategory-all.
7520         * modules/unictype/bidiclass-name: Renamed from
7521         modules/unictype/bidiclass-name.
7522         (Description): Update.
7523         * modules/unictype/bidiclass-name-tests: Renamed from
7524         modules/unictype/bidicategory-name-tests.
7525         * modules/unictype/bidiclass-byname: Renamed from
7526         modules/unictype/bidicategory-byname.
7527         (Description): Update.
7528         * modules/unictype/bidiclass-byname-tests: Renamed from
7529         modules/unictype/bidicategory-byname-tests.
7530         * modules/unictype/bidiclass-of: Renamed from
7531         modules/unictype/bidicategory-of.
7532         (Description): Update.
7533         * modules/unictype/bidiclass-of-tests: Renamed from
7534         modules/unictype/bidicategory-of-tests.
7535         * modules/unictype/bidiclass-test: Renamed from
7536         modules/unictype/bidicategory-test.
7537         (Description): Update.
7538         * modules/unictype/bidiclass-test-tests: Renamed from
7539         modules/unictype/bidicategory-test-tests.
7540         * modules/unictype/bidicategory-all: New file, a simple redirection.
7541         * modules/unictype/bidicategory-name: Likewise.
7542         * modules/unictype/bidicategory-byname: Likewise.
7543         * modules/unictype/bidicategory-of: Likewise.
7544         * modules/unictype/bidicategory-test: Likewise.
7545         * modules/unictype/property-bidi-* (Dependencies): Update.
7546         * lib/unictype/bidi_*.c: Update comment.
7547
7548 2011-03-26  Bruno Haible  <bruno@clisp.org>
7549
7550         unictype/bidi*: Rename functions, part 2.
7551         * modules/unictype/bidicategory-name (configure.ac): Update required
7552         libunistring version.
7553         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7554
7555 2011-03-25  Bruno Haible  <bruno@clisp.org>
7556
7557         New module 'unictype/combining-class-all'.
7558         * modules/unictype/combining-class-all: New file.
7559
7560         Tests for module 'unictype/combining-class-byname'.
7561         * modules/unictype/combining-class-byname-tests: New file.
7562         * tests/unictype/test-combiningclass_byname.c: New file.
7563
7564         New module 'unictype/combining-class-byname'.
7565         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7566         * lib/unictype/combiningclass_byname.c: New file.
7567         * lib/unictype/combiningclass_byname.gperf: New file.
7568         * modules/unictype/combining-class-byname: New file.
7569
7570         Tests for module 'unictype/combining-class-longname'.
7571         * modules/unictype/combining-class-longname-tests: New file.
7572         * tests/unictype/test-combiningclass_longname.c: New file.
7573
7574         New module 'unictype/combining-class-longname'.
7575         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7576         * lib/unictype/combiningclass_longname.c: New file.
7577         * modules/unictype/combining-class-longname: New file.
7578
7579         Tests for module 'unictype/combining-class-name'.
7580         * modules/unictype/combining-class-name-tests: New file.
7581         * tests/unictype/test-combiningclass_name.c: New file.
7582
7583         New module 'unictype/combining-class-name'.
7584         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7585         * lib/unictype/combiningclass_name.c: New file.
7586         * modules/unictype/combining-class-name: New file.
7587
7588 2011-03-25  Bruno Haible  <bruno@clisp.org>
7589
7590         unictype/combining-class: Rename source files.
7591         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7592         of unictype/combining.h.
7593         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7594         Update.
7595         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7596         * modules/unictype/combining-class (Description): Fix.
7597         (Files, Makefile.am): Update.
7598         * tests/unictype/test-combiningclass.c: Renamed from
7599         tests/unictype/test-combining.c.
7600         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7601
7602 2011-03-25  Bruno Haible  <bruno@clisp.org>
7603
7604         unictype: Update list of canonical combining classes.
7605         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7606
7607 2011-03-25  Bruno Haible  <bruno@clisp.org>
7608
7609         unictype/category-byname: Recognize long names as well.
7610         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7611         a long name.
7612         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7613         unictype/categ_byname.h.
7614         (UC_CATEGORY_INDEX_*): New enumeration values.
7615         (uc_general_category_byname): Use uc_general_category_lookup and
7616         convert from index to value.
7617         * lib/unictype/categ_byname.gperf: New file.
7618         * modules/unictype/category-byname (Files): Add
7619         lib/unictype/categ_byname.gperf.
7620         (Depends-on): Add gperf.
7621         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7622         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7623         long names.
7624
7625         Tests for module 'unictype/category-longname'.
7626         * modules/unictype/category-longname-tests: New file.
7627         * tests/unictype/test-categ_longname.c: New file.
7628
7629         New module 'unictype/category-longname'.
7630         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7631         * lib/unictype/categ_longname.c: New file.
7632         * modules/unictype/category-longname: New file.
7633         * modules/unictype/category-all (Depends-on): Add it.
7634
7635 2011-03-25  Bruno Haible  <bruno@clisp.org>
7636
7637         Tests for module 'unictype/category-LC'.
7638         * modules/unictype/category-LC-tests: New file.
7639         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7640
7641         New module 'unictype/category-LC'.
7642         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7643         (UC_CATEGORY_LC): New declaration.
7644         (UC_CASED_LETTER): New macro.
7645         * lib/gen-uni-tables.c (is_category_LC): New function.
7646         (output_categories): Also handle category LC.
7647         (UC_CATEGORY_MASK_LC): New enumeration value.
7648         (general_category_byname): Also handle category LC.
7649         * lib/unictype/categ_LC.c: New file.
7650         * lib/unictype/categ_LC.h: New file, automatically generated.
7651         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7652         category LC.
7653         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7654         * modules/unictype/category-LC: New file.
7655         * modules/unictype/category-byname (Depends-on): Add
7656         unictype/category-LC.
7657         * modules/unictype/category-all (Depends-on): Likewise.
7658
7659 2011-03-25  Eric Blake  <eblake@redhat.com>
7660
7661         xmalloc: revert yesterday's regression
7662         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7663         realloc's underlying behavior (allowing allocation of zero-size
7664         objects, especially if malloc-gnu is also in use).
7665
7666 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7667
7668         maint.mk: add missing version to VC-tag
7669         * top/maint.mk: git tag was missing actual tag name; add it.
7670
7671         valgrind: do leak checking, and exit with code 1 on error (not 0)
7672         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7673         to VALGRIND.
7674
7675 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7676
7677         posix-modules: say what it does.
7678         * posix-modules: Add a line to the --help output saying what it does.
7679
7680 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7681
7682         xmalloc: Do not leak if underlying realloc is C99 compatible.
7683         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7684         This avoids a leak on C99-based systems.  See
7685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7686
7687 2011-03-24  Eric Blake  <eblake@redhat.com>
7688
7689         realloc: document portability problem
7690         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7691         passing 0 size to realloc.
7692
7693 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7694
7695         doc: update users.txt
7696         * users.txt: Add cvsps, tmpwatch
7697
7698 2011-03-23  Matt Rice  <ratmice@gmail.com>
7699
7700         doc: update users.txt
7701         * users.txt: Add gdb.
7702
7703 2011-03-23  Jim Meyering  <meyering@redhat.com>
7704
7705         doc: update users.txt
7706         Looking through matches up to the following URL (there are still
7707         several more pages), I found several projects that use gnulib:
7708         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7709         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7710         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7711
7712 2011-03-22  Bruno Haible  <bruno@clisp.org>
7713
7714         unictype/bidi*: Rename functions.
7715         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7716         uc_bidi_class, uc_is_bidi_class): New declarations.
7717         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7718         uc_bidi_category_byname.
7719         (uc_bidi_category_byname): New function.
7720         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7721         u_bidi_category_name.
7722         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7723         (uc_bidi_category_name): New function.
7724         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7725         uc_bidi_category.
7726         (uc_bidi_category): New function.
7727         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7728         uc_is_bidi_category. Invoke uc_bidi_class.
7729         (uc_is_bidi_category): New function.
7730         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7731         instead of uc_bidi_category_byname.
7732         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7733         instead of uc_bidi_category_name.
7734         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7735         uc_bidi_category.
7736         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7737         instead of uc_is_bidi_category.
7738
7739 2011-03-21  Bruno Haible  <bruno@clisp.org>
7740
7741         New module 'unictype/joininggroup-all'.
7742         * modules/unictype/joininggroup-all: New file.
7743
7744         Tests for module 'unictype/joininggroup-of'.
7745         * modules/unictype/joininggroup-of-tests: New file.
7746         * tests/unictype/test-joininggroup_of.c: New file.
7747         * tests/unictype/test-joininggroup_of.h: New file, automatically
7748         generated by gen-uni-tables.
7749
7750         New module 'unictype/joininggroup-of'.
7751         * modules/unictype/joininggroup-of: New file.
7752         * lib/unictype/joininggroup_of.c: New file.
7753         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7754         gen-uni-tables.
7755
7756         Tests for module 'unictype/joininggroup-byname'.
7757         * modules/unictype/joininggroup-byname-tests: New file.
7758         * tests/unictype/test-joininggroup_byname.c: New file.
7759
7760         New module 'unictype/joininggroup-byname'.
7761         * modules/unictype/joininggroup-byname: New file.
7762         * lib/unictype/joininggroup_byname.c: New file.
7763         * lib/unictype/joininggroup_byname.gperf: New file.
7764
7765         Tests for module 'unictype/joininggroup-name'.
7766         * modules/unictype/joininggroup-name-tests: New file.
7767         * tests/unictype/test-joininggroup_name.c: New file.
7768
7769         New module 'unictype/joininggroup-name'.
7770         * modules/unictype/joininggroup-name: New file.
7771         * lib/unictype/joininggroup_name.c: New file.
7772         * lib/unictype/joininggroup_name.h: New file.
7773
7774         New module 'unictype/joiningtype-all'.
7775         * modules/unictype/joiningtype-all: New file.
7776
7777         Tests for module 'unictype/joiningtype-of'.
7778         * modules/unictype/joiningtype-of-tests: New file.
7779         * tests/unictype/test-joiningtype_of.c: New file.
7780         * tests/unictype/test-joiningtype_of.h: New file, automatically
7781         generated by gen-uni-tables.
7782
7783         New module 'unictype/joiningtype-of'.
7784         * modules/unictype/joiningtype-of: New file.
7785         * lib/unictype/joiningtype_of.c: New file.
7786         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7787         gen-uni-tables.
7788
7789         Tests for module 'unictype/joiningtype-byname'.
7790         * modules/unictype/joiningtype-byname-tests: New file.
7791         * tests/unictype/test-joiningtype_byname.c: New file.
7792
7793         New module 'unictype/joiningtype-byname'.
7794         * modules/unictype/joiningtype-byname: New file.
7795         * lib/unictype/joiningtype_byname.c: New file.
7796
7797         Tests for module 'unictype/joiningtype-name'.
7798         * modules/unictype/joiningtype-name-tests: New file.
7799         * tests/unictype/test-joiningtype_name.c: New file.
7800
7801         New module 'unictype/joiningtype-name'.
7802         * modules/unictype/joiningtype-name: New file.
7803         * lib/unictype/joiningtype_name.c: New file.
7804
7805         unictype: Add support for Arabic shaping properties.
7806         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7807         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7808         declarations.
7809         (UC_JOINING_GROUP_*): New enumeration values.
7810         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7811         declarations.
7812         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7813         (unicode_joining_type): New variable.
7814         (UC_JOINING_GROUP_*): New enumeration values.
7815         (unicode_joining_group): New variable.
7816         (fill_arabicshaping, joining_type_as_c_identifier,
7817         output_joining_type_test, output_joining_type,
7818         joining_group_as_c_identifier, output_joining_group_test,
7819         output_joining_group): New functions.
7820         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7821         fill_arabicshaping and output_joining_type_test, output_joining_type,
7822         output_joining_group_test, output_joining_group.
7823         Reported by Simon Josefsson.
7824
7825 2011-03-21  Jim Meyering  <meyering@redhat.com>
7826
7827         strftime: fix a bug in yesterday's change
7828         * lib/strftime.c (add): Accommodate width's initial value of -1.
7829         Otherwise, nstrftime would copy uninitialized data into
7830         the result buffer.
7831
7832 2011-03-21  Jim Meyering  <meyering@redhat.com>
7833
7834         tests: add strftime-tests module
7835         * tests/test-strftime.c: New file.
7836         * modules/strftime-tests: New module.
7837
7838 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7839
7840         strftime: don't assume a byte count fits in 'int'
7841         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7842         found this problem by static analysis, using gcc -Wstrict-overflow
7843         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7844         on an integer overflow having undefined behavior, but it turns out
7845         that the argument is a size, which might not fit in 'int' anyway,
7846
7847 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         stdio: don't require ignore_value around fwrite
7850
7851         This patch works around libc bug 11959
7852         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7853         Without this patch, applications must often write
7854         ignore_value (fwrite (...)) even though the ignore_value is
7855         not helpful here.  It's common to write many objects, using
7856         fwrite/printf/etc., and then use ferror to detect output error.
7857
7858         I considered making this patch optional, but decided against it,
7859         because libc is obviously being inconsistent here: there is no
7860         reason libc should insist that user code must inspect fwrite
7861         return's value without also insisting that it inspect printf's,
7862         putchar's, etc.  If user code wants to have a strict style where
7863         all these functions' values are checked (so that ferror need not
7864         be checked), we could add support for that style in a new gnulib
7865         module, but in the meantime it's better to be consistent and to
7866         support common usage.
7867
7868         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7869         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7870         that we are compiling in checking mode, and if not C++, and
7871         if not already wrapping fwrite for some other reason.
7872         (fwrite): #define to rpl_fwrite if the latter is defined.
7873
7874 2011-03-20  Bruno Haible  <bruno@clisp.org>
7875
7876         verror: Fix compilation error introduced on 2011-02-13.
7877         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7878         instead of __attribute__.
7879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7880
7881 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7882             Bruno Haible  <bruno@clisp.org>
7883
7884         socklen: do not depend on sys_socket
7885         While trying to modify Emacs to use gnulib's socklen module,
7886         I discovered a circular dependency: socklen depends on sys_socket
7887         and vice versa.  Emacs can use socklen, but it does not need
7888         sys_socket because it has its own substitute for sys/socket.h.
7889         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7890         gl_TYPE_SOCKLEN_T.
7891         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7892         gl_PREREQ_SYS_H_SOCKET.
7893         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7894         gl_PREREQ_SYS_H_SOCKET.
7895         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7896         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7897         * modules/socklen (Depends-on): Do not depend on sys_socket.
7898         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7899
7900 2011-03-20  Jim Meyering  <meyering@redhat.com>
7901
7902         maint.mk: sort file names *after* new transformation
7903         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7904         prefix would have led to an unwarranted failure in GNU parted.
7905         Sort after that transformation.
7906
7907 2011-03-19  Jim Meyering  <meyering@redhat.com>
7908
7909         maint.mk: fix po-file syntax-check rule
7910         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7911         Patch by Bruno Haible.
7912
7913 2011-03-19  Bruno Haible  <bruno@clisp.org>
7914
7915         socklen: Update comment.
7916         * m4/socklen.m4: Update comment about platforms.
7917
7918 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7919             Bruno Haible  <bruno@clisp.org>
7920
7921         inet_ntop, inet_pton: Simplify.
7922         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7923         documented to provide socklen_t and we already depend on sys_socket.
7924         * modules/inet_pton (Depends-on): Likewise.
7925         * lib/arpa_inet.in.h: Adjust comment.
7926
7927 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7928             Bruno Haible  <bruno@clisp.org>
7929
7930         netdb: Simplify.
7931         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7932         documented to provide socklen_t and we already depend on sys_socket.
7933         * lib/netdb.in.h: Adjust comment.
7934
7935 2011-03-19  Bruno Haible  <bruno@clisp.org>
7936
7937         sys_socket, netdb: Document problem with socklen_t.
7938         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7939         platforms.
7940         * doc/posix-headers/netdb.texi: Likewise.
7941
7942 2011-03-18  Eric Blake  <eblake@redhat.com>
7943
7944         maint.mk: let po check work in VPATH build
7945         * top/maint.mk (po_file): Allow cfg.mk override.
7946         (sc_po_check): Allow VPATH use.
7947         Reported by Jiri Denemark.
7948
7949 2011-03-16  Jim Meyering  <meyering@redhat.com>
7950
7951         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7952         Before, you would have had to create one .x-sc_ file per rule in order
7953         to exempt offending files.  Now, you may instead use a Make variable --
7954         usually defined in cfg.mk -- whose name identifies the affected rule.
7955         * top/maint.mk (_sc_excl): Define.
7956         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7957         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7958
7959 2011-03-13  Bruno Haible  <bruno@clisp.org>
7960
7961         ignore-value tests: Avoid warnings.
7962         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7963         empty for gcc < 3.4.
7964
7965 2011-03-13  Bruno Haible  <bruno@clisp.org>
7966
7967         passfd: Fix link error on Solaris.
7968         * modules/passfd (Description): Correct.
7969         (Depends-on): Add socketlib.
7970         (Link): New section.
7971         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7972
7973 2011-03-13  Bruno Haible  <bruno@clisp.org>
7974
7975         passfd: Fix link error on AIX 5.2.
7976         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7977
7978 2011-03-13  Bruno Haible  <bruno@clisp.org>
7979
7980         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7981         * lib/sys_socket.in.h: Include <stddef.h>.
7982         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7983         CMSG_FIRSTHDR. Remove unused variable.
7984
7985 2011-03-13  Bruno Haible  <bruno@clisp.org>
7986
7987         passfd: Fix compilation error on OpenBSD.
7988         * lib/passfd.c: Include <sys/uio.h>.
7989
7990 2011-03-13  Bruno Haible  <bruno@clisp.org>
7991
7992         passfd test: Fix warnings.
7993         * tests/test-passfd.c: Include <sys/wait.h>.
7994         (main): Fix typo.
7995
7996 2011-03-13  Bruno Haible  <bruno@clisp.org>
7997
7998         passfd module, part 4, tweaks.
7999         * tests/test-passfd.c: Reorder includes.
8000         (main): Fix perror and printf calls.
8001
8002 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8003
8004         passfd module, part 4.
8005         * modules/passfd-tests: New file.
8006         * tests/test-passfd.c: New file.
8007
8008 2011-03-13  Jim Meyering  <meyering@redhat.com>
8009
8010         Makefile: rely on GNU make; derive syntax-check rule names
8011         Rather than requiring that each sc_ rule be listed as a dependent
8012         of "check", use features of GNU make to derive the list.
8013         * Makefile (syntax-check-rules): Define.
8014         (check): Depend on the new variable, not the hard-coded list.
8015
8016 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8017             Bruno Haible  <bruno@clisp.org>
8018
8019         passfd module, part 3.
8020         * lib/passfd.h (recvfd): Add a flags argument.
8021         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8022         (recvfd): Add a flags argument.
8023         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8024         exists.
8025         * modules/passfd (Depends-on): Add cloexec.
8026         Suggested by Eric Blake.
8027
8028 2011-03-13  Bruno Haible  <bruno@clisp.org>
8029
8030         passfd module, part 2, tweaks.
8031         * modules/passfd (Files): Reorder.
8032         (Depends-on): Remove errno.
8033         (Include): Remove <sys/socket.h>, <sys/un.h>.
8034         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8035         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8036         specification header. Include <sys/socket.h> always. Don't include
8037         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8038         (sendfd): Clarify that it sets errno when it fails.
8039         (recvfd): Fix specification.
8040
8041 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8042
8043         passfd module, part 2.
8044         * modules/passfd: New file.
8045         * lib/passfd.h: New file.
8046         * lib/passfd.c: New file.
8047
8048 2011-03-12  Bruno Haible  <bruno@clisp.org>
8049
8050         wcswidth, mbswidth: Avoid integer overflow.
8051         * lib/wcswidth.c: Include <limits.h>.
8052         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8053         * lib/mbswidth.c: Include <limits.h>.
8054         (mbsnwidth): Avoid 'int' overflow.
8055         Reported by Jim Meyering.
8056
8057 2011-03-12  Bruno Haible  <bruno@clisp.org>
8058
8059         futimens, utimensat: Avoid endless recursion on Solaris 10.
8060         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8061         Solaris.
8062         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8063         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8064
8065 2011-03-11  Jim Meyering  <meyering@redhat.com>
8066
8067         maint.mk: relax a regexp to accommodate other formatting styles
8068         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8069         between "ngettext" and the following "(".
8070
8071 2011-03-11  Pádraig Brady <P@draigBrady.com>
8072
8073         maint.mk: suppress a false positive warning
8074         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8075         diagnostics are marked with ngettext.
8076
8077 2011-03-10  Eric Blake  <eblake@redhat.com>
8078
8079         wchar: add explicit dependencies, for Tru64
8080         * modules/mbmemcasecoll (Depends-on): Add wchar.
8081         * modules/mbtowc (Depends-on): Likewise.
8082         * modules/vasnprintf (Depends-on): Likewise.
8083         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8084         * modules/wctomb (Depends-on): Likewise.
8085         Reported by Peter O'Gorman.
8086
8087 2011-03-08  Bruno Haible  <bruno@clisp.org>
8088
8089         passfd module, part 1, tweaks.
8090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8091         Improve indentation. Improve AC_MSG_CHECKING messages.
8092         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8093         gl_SOCKET_FAMILIES.
8094
8095 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8096
8097         passfd module, part 1.
8098         * m4/afunix.m4: New file.
8099         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8100         sockets.
8101
8102 2011-03-08  Bruno Haible  <bruno@clisp.org>
8103
8104         regex-quote: New API.
8105         * lib/regex-quote.h: Include <stdbool.h>.
8106         (struct regex_quote_spec): New type.
8107         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8108         New declarations.
8109         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8110         'const struct regex_quote_spec *' argument.
8111         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8112         (pcre_special): New constant.
8113         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8114         New functions.
8115         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8116         'const struct regex_quote_spec *' argument.
8117         * modules/regex-quote (Depends-on): Add stdbool.
8118         * tests/test-regex-quote.c (check): Update for new API. Add test for
8119         anchored results.
8120         * NEWS: Mention the API change.
8121         Reported by Reuben Thomas and Eric Blake.
8122
8123 2011-03-06  Bruno Haible  <bruno@clisp.org>
8124
8125         regex-quote: Fix creation of POSIX extended regular expressions.
8126         * lib/regex-quote.c (ere_special): Add grouping and alternation
8127         operators.
8128
8129 2011-03-05  Bruno Haible  <bruno@clisp.org>
8130
8131         doc: Improve doc regarding autopoint vs. gnulib.
8132         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8133         disable autopoint while running autoreconf.
8134         Suggested by Ralf Wildenhues.
8135
8136 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8137
8138         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8139         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8140
8141 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8142
8143         parse-duration: remove xalloc.h dependency
8144         * lib/parse-duration.c (parse_period): handle NULL return from
8145         strdup instead of calling xstrdup().
8146         * modules/parse-duration: remove "xalloc" dependency
8147
8148 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8149
8150         bootstrap: honor m4_base when running aclocal
8151         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8152
8153 2011-03-02  Jim Meyering  <meyering@redhat.com>
8154
8155         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8156         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8157         on request from Matt Booth.
8158
8159 2011-03-01  Eric Blake  <eblake@redhat.com>
8160
8161         test-link: work on Hurd
8162         * tests/test-link.h (test_link): Hurd rejects linking directories
8163         with EISDIR instead of the POSIX-mandated EPERM.
8164
8165 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8166
8167         stdio: simplify by moving files to printf-posix, sigpipe
8168         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8169         since this symbol is needed only if printf is replaced.
8170         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8171         Require gl_ASM_SYMBOL_PREFIX.
8172         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8173         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8174         (Depends-on): Add 'raise'.
8175         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8176         * modules/stdio (Files): Remove lib/stdio-write.c,
8177         m4/asm-underscore.m4.
8178         (Depends-on): Remove 'raise'.
8179
8180         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8181         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8182         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8183         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8184
8185 2011-02-28  Bruno Haible  <bruno@clisp.org>
8186
8187         localcharset: Assume ANSI C behaviour of free().
8188         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8189         calling free().
8190         Suggested by Simon Josefsson <simon@josefsson.org>.
8191
8192 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8193             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8194             Bruno Haible  <bruno@clisp.org>  (tiny change)
8195
8196         On Cygwin, use /proc file system instead of win32 API.
8197         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8198         Win32 file names.
8199         (DllMain): Simplify by removing Cygwin specific code.
8200         (find_shared_library_fullname): Use Linux specific implementation also
8201         for Cygwin.
8202         (get_shared_library_fullname): Update accordingly.
8203         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8204         Win32 file names.
8205         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8206         Cygwin specific code.
8207
8208 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8209             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8210
8211         Fix OpenMP flag detection for various Fortran compilers.
8212         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8213         OpenMP-conditional compilation construct, to force compile
8214         failure with missing OpenMP flag.
8215         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8216
8217 2011-02-25  Eric Blake  <eblake@redhat.com>
8218
8219         strstr: expand test coverage
8220         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8221         compilation.
8222         * tests/test-memmem.c (main): Duplicate tests.
8223         * tests/test-strcasestr.c (main): Likewise.
8224         * tests/test-c-strcasestr.c (main): Likewise.
8225
8226 2011-02-25  Jim Meyering  <meyering@redhat.com>
8227
8228         maint.mk: detect missing-NL-at-EOF, too
8229         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8230         it also detects when a file lacks a newline at EOF.
8231         (require_exactly_one_NL_at_EOF_): Renamed from
8232         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8233         since people may well have .x-sc_... file names tied to the
8234         existing name.  Suggested by Eric Blake.
8235
8236 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8237
8238         dirname: move m4/dos.m4 functionality into lib/dosname.h
8239
8240         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8241         extracts symbols from it, puts them into config.h; but it's much
8242         easier to use the symbols directly.  filename.h already does this,
8243         but it disagrees with dos.m4 in some respects.  This patch
8244         introduces a different include file dosname.h that packages up
8245         dos.m4, and then later we can work on merging filename.h and
8246         dosname.h.  Applications that need only the easy-to-configure
8247         symbols should consider including dosname.h rather than dirname.h.
8248         * NEWS: Mention incompatible changes.
8249         * m4/dos.m4: Remove.
8250         * lib/dosname.h, modules/dosname: New files.
8251         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8252         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8253         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8254         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8255         Include dosname.h, not dirname.h.
8256         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8257         Include dosname.h, for definitions of symbols like ISSLASH
8258         that used to be in config.h.
8259         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8260         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8261         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8262         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8263         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8264         * modules/rmdir (Files): Likewise.
8265         * modules/stat (Files): Likewise.
8266         * modules/unlink (Files): Likewise.
8267         * modules/dirname-lgpl (Depends-on): Add dosname.
8268         * modules/lstat (Depends-on): Likewise.
8269         * modules/openat (Depends-on): Likewise.
8270         * modules/rmdir (Depends-on): Likewise.
8271         * modules/savewd (Depends-on): Likewise.
8272         * modules/stat (Depends-on): Likewise.
8273         * modules/unlink (Depends-on): Likewise.
8274         * modules/openat (Depends-on): Remove dirname-lgpl.
8275         * modules/savewd (Depends-on): Likewise.
8276         * tests/test-dirname.c: Do not use removed symbols like
8277         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8278         the remaining symbols, e.g., ISSLASH ('\\').
8279
8280 2011-02-25  Eric Blake  <eblake@redhat.com>
8281
8282         strstr: revert patches that introduced bug and pessimization
8283         * lib/str-two-way.h: Add another reference.
8284         (two_way_short_needle, two_way_long_needle): Revert changes from
8285         2011-02-24; they pessimize search speed.
8286         (critical_factorization): Partially revert changes from
8287         2010-06-22; they violate the requirement that the left half of the
8288         needle be smaller than the period of the needle.
8289
8290 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8291
8292         filenamecat: remove unnecessary dependency on dirname-lgpl
8293         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8294         is no direct dependency, just an indirect one via filenamecat-lgpl.
8295
8296         remove: remove unnecessary use of m4/dos.m4
8297         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8298         * modules/remove (FILES): Remove m4/dos.m4.
8299
8300         * lib/openat-proc.c: Don't include dirname.h; not needed.
8301
8302         backupfile: remove unnecessary use of m4/dos.m4
8303         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8304         of its symbols are used by the backupfile code.  backupfile.c does
8305         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8306         for the rare case of programs that want all their backup file
8307         names to live within 8+3 limits, and dos.m4 doesn't address that.
8308         * modules/backupfile (Files): Remove m4/dos.m4.
8309
8310 2011-02-24  Jim Meyering  <meyering@redhat.com>
8311
8312         strstr: fix a bug whereby strstr would mistakenly return NULL
8313         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8314         in period calculation.
8315         (two_way_long_needle): Likewise.
8316         The original problem was reported by Mike Stump in
8317         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8318         Ralf Wildenhues provided the short needle and haystack.
8319         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8320         Add a more involved test to trigger the bug in two_way_long_needle.
8321
8322 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8323
8324         gnulib-tool: remove use of bold display in help screen
8325         * gnulib-tool (func_usage): Do not use bold display anymore in the
8326         help screen.  That was just meant to be a temporary emphasis for a
8327         backward-incompatible change.
8328
8329 2011-02-23  Bruno Haible  <bruno@clisp.org>
8330
8331         Fix misindentation of preprocessor directives.
8332         * lib/argp-namefrob.h: Reindent preprocessor directives.
8333         * lib/getopt_int.h (struct _getopt_data): Likewise.
8334         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8335         * lib/vasnprintf.c (decode_long_double): Likewise.
8336         * tests/test-argmatch.c: Insert blank lines, for clarity.
8337         * tests/test-exclude.c: Likewise.
8338
8339 2011-02-22  Bruno Haible  <bruno@clisp.org>
8340
8341         ioctl: Fix for MacOS X in 64-bit mode.
8342         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8343         value.
8344         Suggested by Eric Blake.
8345         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8346
8347 2011-02-22  Jim Meyering  <meyering@redhat.com>
8348
8349         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8350         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8351         in lib/.
8352
8353 2011-02-22  Eric Blake  <eblake@redhat.com>
8354
8355         maint: avoid any CDPATH issue
8356         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8357
8358         maint: adjust cpp indentation for my modules, as well
8359         * Makefile (sc_cpp_indent_check): Add my name.
8360         * lib/fbufmode.c: Filter through cppi.
8361         * lib/fpurge.c: Likewise.
8362         * lib/freadable.c: Likewise.
8363         * lib/freading.c: Likewise.
8364         * lib/fwritable.c: Likewise.
8365         * lib/fwriting.c: Likewise.
8366         * lib/sigaction.c: Likewise.
8367
8368 2011-02-22  Jim Meyering  <meyering@redhat.com>
8369
8370         maint: adjust cpp indentation to reflect nesting depth
8371         I.e., in a block of code that begins with an unnested "#if",
8372         put one space between the "#" in column 1 and following token.
8373         For example,
8374         -#include <sys/vfs.h>
8375         +# include <sys/vfs.h>
8376         Do this only in .c files that are part of a module I maintain.
8377         * lib/linkat.c: Filter through cppi.
8378         * lib/nanosleep.c: Likewise.
8379         * lib/openat.c: Likewise.
8380         * lib/openat-die.c: Likewise.
8381         * lib/dup3.c: Likewise.
8382         * lib/fchownat.c: Likewise.
8383         * lib/flock.c: Likewise.
8384         * lib/fsync.c: Likewise.
8385         * lib/fts.c: Likewise.
8386         * lib/getpass.c: Likewise.
8387         * lib/gettimeofday.c: Likewise.
8388         * lib/userspec.c: Likewise.
8389         * Makefile (sc_cpp_indent_check): New rule, to check this.
8390
8391 2011-02-22  Bruno Haible  <bruno@clisp.org>
8392
8393         New module 'wctomb'.
8394         * lib/stdlib.in.h (wctomb): New declaration.
8395         * lib/wctomb.c: New file.
8396         * lib/wctomb-impl.h: New file.
8397         * m4/wctomb.m4: New file.
8398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8399         REPLACE_WCTOMB.
8400         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8401         REPLACE_WCTOMB.
8402         * modules/wctomb: New file.
8403         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8404         * doc/posix-functions/wctomb.texi: Mention the new module.
8405         * modules/wctob (Depends-on): Add wctomb.
8406
8407 2011-02-22  Bruno Haible  <bruno@clisp.org>
8408
8409         New module 'mbtowc'.
8410         * lib/stdlib.in.h (mbtowc): New declaration.
8411         * lib/mbtowc.c: New file.
8412         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8413         * m4/mbtowc.m4: New file.
8414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8415         REPLACE_MBTOWC.
8416         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8417         REPLACE_MBTOWC.
8418         * modules/mbtowc: New file.
8419         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8420         * doc/posix-functions/mbtowc.texi: Mention the new module.
8421         * modules/btowc (Depends-on): Add mbtowc.
8422
8423 2011-02-22  Bruno Haible  <bruno@clisp.org>
8424
8425         wcrtomb: Add more tests for native Windows platforms.
8426         * tests/test-wcrtomb-w32-1.sh: New file.
8427         * tests/test-wcrtomb-w32-2.sh: New file.
8428         * tests/test-wcrtomb-w32-3.sh: New file.
8429         * tests/test-wcrtomb-w32-4.sh: New file.
8430         * tests/test-wcrtomb-w32-5.sh: New file.
8431         * tests/test-wcrtomb-w32.c: New file.
8432         * modules/wcrtomb-tests (Files): Add them.
8433         (Makefile.am): Arrange to run these tests.
8434         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8435         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8436
8437 2011-02-20  Bruno Haible  <bruno@clisp.org>
8438
8439         wcrtomb: Enhance test.
8440         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8441
8442 2011-02-20  Bruno Haible  <bruno@clisp.org>
8443
8444         mbrtowc: Tiny optimization.
8445         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8446
8447 2011-02-20  Jim Meyering  <meyering@redhat.com>
8448
8449         test-exclude.c: remove unmatched #endif
8450         * tests/test-exclude.c: Remove stray #endif, left over from
8451         the change of a week ago.
8452
8453 2011-02-19  Jim Meyering  <meyering@redhat.com>
8454
8455         git-version-gen: skip "-dirty" check when appropriate
8456         * build-aux/git-version-gen: Don't run any git commands when the
8457         version string comes from .tarball-version.  Prior to this, we
8458         would run git update-index --refresh even from a just-unpacked
8459         tarball directory, and that could affect a .git/ directory in a
8460         parent of the build directory.  Reported by Mike Frysinger.
8461
8462 2011-02-19  Bruno Haible  <bruno@clisp.org>
8463
8464         unictype/property-byname: Reduce the size of the 'data' segment.
8465         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8466
8467 2011-02-19  Bruno Haible  <bruno@clisp.org>
8468
8469         unictype/scripts: Reduce the size of the 'data' segment.
8470         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8471         '%pic'.
8472         * lib/unictype/scripts_byname.gperf: Regenerated.
8473
8474 2011-02-19  Bruno Haible  <bruno@clisp.org>
8475
8476         stdint: Update documentation.
8477         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8478
8479 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8480
8481         stdint: omit redundant check for wchar.h
8482         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8483         always tests whether wchar.h exists, so remove the now-redundant test.
8484
8485 2011-02-18  Bruno Haible  <bruno@clisp.org>
8486
8487         stdint: Cut dependency to module 'wchar'.
8488         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8489         include the necessary prerequisites.
8490         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8491         * modules/stdint (Depends-on): Remove wchar.
8492         (Makefile.am): Substitute HAVE_WCHAR_H.
8493         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8494
8495 2011-02-18  Eric Blake  <eblake@redhat.com>
8496
8497         longlong: skip, rather than fail, on cross-compilation
8498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8499         when cross-compiling; regression from 2011-02-16.
8500
8501 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8502
8503         * NEWS: Mention 2011-02-08 change to stdlib.
8504
8505 2011-02-17  Bruno Haible  <bruno@clisp.org>
8506
8507         getloadavg: Add comments about platforms.
8508         * m4/getloadavg.m4: Add comment.
8509         * lib/getloadavg.c: Likewise.
8510
8511 2011-02-17  Bruno Haible  <bruno@clisp.org>
8512
8513         getloadavg: Fix link error on Solaris 2.6.
8514         * modules/getloadavg (Link): New section.
8515         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8516         linking test-getloadavg.
8517         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8518         getloadavg.
8519
8520 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8521
8522         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8523         It was 'int', but this doesn't match the IRIX 6.5 manual.
8524         Suggested by Bruno Haible in
8525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8526
8527 2011-02-17  Bruno Haible  <bruno@clisp.org>
8528
8529         havelib: Fix comments.
8530         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8531         change.
8532
8533 2011-02-17  Bruno Haible  <bruno@clisp.org>
8534
8535         havelib: Update config.rpath.
8536         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8537
8538 2011-02-17  Bruno Haible  <bruno@clisp.org>
8539
8540         getloadavg test: Add some plausibility checks.
8541         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8542         is improbable.
8543
8544 2011-02-16  Eric Blake  <eblake@redhat.com>
8545
8546         maintainer-makefile: make syntax-check a no-op from tarballs
8547         * top/maint.mk (no-vc-detected): New rule.
8548         (local-checks-available): Use it to avoid hanging if someone tries
8549         'make syntax-check' from a tarball.  Also append to any non-syntax
8550         checks already defined in cfg.mk.
8551
8552 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8553
8554         longlong: tune, particularly for common case of c99
8555
8556         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8557         or running anything if c99, or if unsigned long long int does not
8558         work.  In either case, we know the answer without further tests.
8559         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8560         it at most once, and use its results for both long long int and
8561         unsigned long long int.  This is more likely to be efficient in
8562         the common case where the program wants to check for both long
8563         long int and unsigned long long int.
8564         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8565         since the answer is already known.
8566
8567 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8568
8569         getloadavg: set errno
8570         * lib/getloadavg.c: Set errno when returning -1.  If no other
8571         error number looks appropriate, set it to ENOSYS if the getloadavg
8572         looks like it can't possibly ever work, ENOTSUP otherwise.
8573         Suggested by Bruno Haible in
8574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8575
8576         getloadavg: trim unused parts and speed up 'configure'
8577         * NEWS: Document this.
8578         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8579         always compiled if getloadavg is absent.
8580         Move test code to ...
8581         * tests/test-getloadavg.c: New file, containing previous
8582         contents of test from lib/getloadavg.c.  It also contains
8583         suggestions by Bruno Haible in
8584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8585         * modules/getloadavg-tests: New file.
8586         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8587         Do tests in the same order as they're needed for getloadavg.c.
8588         Omit setgid-related tests that generate symbols KMEM_GROUP,
8589         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8590         Do only the tests that are needed to see whether the system has
8591         getloadavg, moving the other tests into ...
8592         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8593         NLIST_NAME_UNION; nobody should be using it.  Do not define
8594         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8595         relevant, as the user of this module shouldn't care how getloadavg
8596         is implemented.
8597
8598         getloadavg: omit unused var
8599         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8600
8601 2011-02-15  Jim Meyering  <meyering@redhat.com>
8602
8603         doc: update users.txt
8604         * users.txt: Update iwhd's URL.
8605
8606 2011-02-13  Bruno Haible  <bruno@clisp.org>
8607
8608         Consistent macro naming for macros that use GCC __attribute__.
8609         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8610         _ATTRIBUTE_NONNULL_.
8611         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8612         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8613         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8614         ATTRIBUTE_DEPRECATED.
8615         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8616         ATTRIBUTE_NORETURN.
8617         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8618         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8619         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8620         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8621         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8622         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8623         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8624         ATTRIBUTE_SENTINEL.
8625         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8626         ATTRIBUTE_RETURN_CHECK.
8627         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8628         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8629         ATTRIBUTE_NORETURN.
8630         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8631         Reported by Paul Eggert.
8632
8633 2011-02-13  Bruno Haible  <bruno@clisp.org>
8634
8635         Don't interfere with a program's definition of __attribute__.
8636         * lib/argp.h (__attribute__): Remove definition.
8637         (_GL_ATTRIBUTE_FORMAT): New macro.
8638         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8639         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8640         (_GL_ATTRIBUTE_FORMAT): New macro.
8641         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8642         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8643         GCC 3 or newer.
8644         * lib/error.h (__attribute__): Remove definition.
8645         (_GL_ATTRIBUTE_FORMAT): New macro.
8646         (error, error_at_line): Use it.
8647         * lib/hash.h (__attribute__): Remove definition.
8648         (ATTRIBUTE_WUR): Update definition. Define always.
8649         * lib/openat.h (__attribute__): Remove definition.
8650         (ATTRIBUTE_NORETURN): Update definition. Define always.
8651         * lib/sigpipe-die.h (__attribute__): Remove definition.
8652         (ATTRIBUTE_NORETURN): Update definition. Define always.
8653         * lib/vasnprintf.h (__attribute__): Remove definition.
8654         (_GL_ATTRIBUTE_FORMAT): New macro.
8655         (asnprintf, vasnprintf): Use it.
8656         * lib/xalloc.h (__attribute__): Remove definition.
8657         (ATTRIBUTE_NORETURN): Update definition. Define always.
8658         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8659         * lib/xmemdup0.h (__attribute__): Remove definition.
8660         (ATTRIBUTE_NORETURN): Update definition. Define always.
8661         * lib/xprintf.h (__attribute__): Remove definition.
8662         (_GL_ATTRIBUTE_FORMAT): New macro.
8663         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8664         * lib/xstrtol.h (__attribute__): Remove definition.
8665         (ATTRIBUTE_NORETURN): Update definition. Define always.
8666         * lib/xvasprintf.h (__attribute__): Remove definition.
8667         (_GL_ATTRIBUTE_FORMAT): New macro.
8668         (xasprintf, xvasprintf): Use it.
8669         * tests/test-argmatch.c (__attribute__): Remove definition.
8670         (ATTRIBUTE_NORETURN): Update definition. Define always.
8671         * tests/test-exclude.c (__attribute__): Remove definition.
8672         (ATTRIBUTE_NORETURN): Update definition. Define always.
8673         Reported by Paul Eggert.
8674
8675 2011-02-13  Bruno Haible  <bruno@clisp.org>
8676
8677         mbrtowc: Add more tests for native Windows platforms.
8678         * tests/test-mbrtowc-w32-1.sh: New file.
8679         * tests/test-mbrtowc-w32-2.sh: New file.
8680         * tests/test-mbrtowc-w32-3.sh: New file.
8681         * tests/test-mbrtowc-w32-4.sh: New file.
8682         * tests/test-mbrtowc-w32-5.sh: New file.
8683         * tests/test-mbrtowc-w32.c: New file.
8684         * modules/mbrtowc-tests (Files): Add them.
8685         (Makefile.am): Arrange to run these tests.
8686         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8687         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8688
8689 2011-02-13  Bruno Haible  <bruno@clisp.org>
8690
8691         mbrtowc: Work around native Windows bug.
8692         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8693         guess when no suitable locale for testing was found.
8694         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8695
8696 2011-02-13  Bruno Haible  <bruno@clisp.org>
8697
8698         mbsinit: Work around mingw bug.
8699         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8700         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8701         Windows.
8702         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8703
8704 2011-02-13  Bruno Haible  <bruno@clisp.org>
8705
8706         mbsinit: Don't crash for a NULL argument.
8707         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8708         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8709
8710 2011-02-13  Bruno Haible  <bruno@clisp.org>
8711
8712         Don't interfere with a program's definition of __attribute__.
8713         * lib/stdio.in.h (__attribute__): Remove definition.
8714         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8715         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8716         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8717         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8718         * lib/string.in.h (__attribute__): Remove definition.
8719         Reported by Paul Eggert.
8720
8721 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8722
8723         stdlib: don't get in the way of non-GCC __attribute__
8724         See thread starting at
8725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8726         Revert previous stdlib change, installing the following instead:
8727         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8728         to get in the way of a non-GCC compiler that supports __attribute__.
8729         (_GL_ATTRIBUTE_RETURN): New macro.
8730         (_Exit): Use it instead of __attribute__.
8731
8732 2011-02-12  Bruno Haible  <bruno@clisp.org>
8733
8734         quotearg test: Avoid test failure on mingw.
8735         * tests/test-quotearg.sh: Convert the locale identifier from native
8736         Windows syntax to Unix syntax.
8737
8738 2011-02-12  Bruno Haible  <bruno@clisp.org>
8739
8740         setlocale: Prefer gnulib's override over libintl's override.
8741         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8742         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8743         GNULIB_defined_setlocale is set.
8744
8745 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8746
8747         stdlib: support non-GCC __attribute__
8748
8749         Fix a serious and tricky problem encountered when attempting to
8750         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8751         5.5, but it crashed due to memory corruption on Solaris 10 with
8752         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8753         bits that are otherwise zero.  This tagging is optional inside
8754         Emacs but is preferred and is used when __attribute__ ((__aligned
8755         (8))) works, as it does with both recent-enough GCC and with Sun C
8756         5.11.  However, Sun C 5.11 is not GCC and does not #define
8757         __GNUC__ and __GNUC_MINOR__.
8758
8759         When I added the getloadavg module to Emacs, it brought in
8760         stdlib.in.h, which contained this fragment:
8761
8762            #ifndef __attribute__
8763            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8764            #  define __attribute__(Spec)   /* empty */
8765            # endif
8766            #endif
8767
8768         When files that include <stdlib.h> were compiled with Sun C 5.11,
8769         the above code disabled __attribute__ ((__aligned (8))), which
8770         caused variables to not be properly aligned, which eventually led
8771         to the pointer corruption mentioned above.  (This was a bit hard
8772         to diagnose, unfortunately.)
8773
8774         Several "#define __attribute__(X) /* empty */" code snippets need
8775         to be eradicated from Gnulib to work with non-GCC compilers that
8776         support __attribute__.  The Autoconf way to do this is to test for
8777         each kind of attribute that we want support for, and selectively
8778         enable that in source code.
8779
8780         Fix this problem just for stdlib.h, by adding a test for the
8781         __noreturn__ attribute, and change stdlib.in.h to use that test
8782         when needed.  This technique can be easily generalized to the
8783         other *.in.h files and attributes, and a similar technique can be
8784         used for *.h and *.c files.  This patch is enough to solve the
8785         problem for Emacs + getloadavg, and I thought I'd publish it for
8786         feedback before undertaking further, similar fixes in other
8787         modules.
8788
8789         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8790         because it's not needed for stdlib.h.  It merely substitutes the
8791         value directly into stdlib.h.  We may well need to #define it, or
8792         similar symbols, for other modules, but it's nice to also have an
8793         option to not #define it for applications like Emacs that do not
8794         need it.
8795
8796         * lib/stdlib.in.h (__attribute__): Do not #define.
8797         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8798         be defined only if the _Exit module is also used.
8799         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8801         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8802         platforms.
8803         * modules/_Exit (Files): Add m4/attribute.m4.
8804         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8805         * m4/attribute.m4: New file.
8806
8807 2011-02-12  Bruno Haible  <bruno@clisp.org>
8808
8809         wcsrtombs: Work around bug on native Windows.
8810         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8811         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8812         instead of len.
8813         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8814
8815 2011-02-12  Bruno Haible  <bruno@clisp.org>
8816
8817         mbsrtowcs: Work around bug on native Windows.
8818         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8819         against mingw bug.
8820         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8821
8822 2011-02-12  Bruno Haible  <bruno@clisp.org>
8823
8824         Avoid setlocale bugs in tests.
8825         * modules/btowc (Dependencies): Add setlocale.
8826         * modules/c-strcase (Dependencies): Likewise.
8827         * modules/mbmemcasecmp (Dependencies): Likewise.
8828         * modules/mbmemcasecoll (Dependencies): Likewise.
8829         * modules/mbrtowc (Dependencies): Likewise.
8830         * modules/mbscasecmp (Dependencies): Likewise.
8831         * modules/mbscasestr (Dependencies): Likewise.
8832         * modules/mbschr (Dependencies): Likewise.
8833         * modules/mbscspn (Dependencies): Likewise.
8834         * modules/mbsinit (Dependencies): Likewise.
8835         * modules/mbsncasecmp (Dependencies): Likewise.
8836         * modules/mbsnrtowcs (Dependencies): Likewise.
8837         * modules/mbspbrk (Dependencies): Likewise.
8838         * modules/mbspcasecmp (Dependencies): Likewise.
8839         * modules/mbsrchr (Dependencies): Likewise.
8840         * modules/mbsrtowcs (Dependencies): Likewise.
8841         * modules/mbsspn (Dependencies): Likewise.
8842         * modules/mbsstr (Dependencies): Likewise.
8843         * modules/nl_langinfo (Dependencies): Likewise.
8844         * modules/quotearg (Dependencies): Likewise.
8845         * modules/unicase/locale-language (Dependencies): Likewise.
8846         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8847         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8848         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8849         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8850         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8851         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8852         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8853         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8854         * modules/vasnprintf-posix (Dependencies): Likewise.
8855         * modules/wcrtomb (Dependencies): Likewise.
8856         * modules/wcsnrtombs (Dependencies): Likewise.
8857         * modules/wcsrtombs (Dependencies): Likewise.
8858
8859 2011-02-12  Bruno Haible  <bruno@clisp.org>
8860
8861         setlocale: Workaround native Windows bug.
8862         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8863         succeeds but sets LC_CTYPE to "C", report a failure.
8864         * tests/test-setlocale2.sh: New file.
8865         * tests/test-setlocale2.c: New file.
8866         * modules/setlocale-tests (Files): Add the new files.
8867         (Makefile.am): Enable test-setlocale2.sh test.
8868         * doc/posix-functions/setlocale.texi: Mention workaround.
8869
8870 2011-02-11  Bruno Haible  <bruno@clisp.org>
8871
8872         Tests for module 'setlocale'.
8873         * modules/setlocale-tests: New file.
8874         * tests/test-setlocale1.sh: New file.
8875         * tests/test-setlocale1.c: New file.
8876
8877         New module 'setlocale'.
8878         * lib/locale.in.h (setlocale): New declaration.
8879         * lib/setlocale.c: New file, based on
8880         gettext/gettext-runtime/intl/setlocale.c.
8881         * m4/setlocale.m4: New file.
8882         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8883         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8884         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8885         REPLACE_SETLOCALE.
8886         * modules/setlocale: New file.
8887         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8888         * doc/posix-functions/setlocale.texi: Mention the new module.
8889
8890 2011-02-11  Bruno Haible  <bruno@clisp.org>
8891
8892         Prepare for locale dependent tests on mingw.
8893         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8894         because it has the wrong locale encoding.
8895         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8896         French_France.1252 instead of "fr".
8897         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8898         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8899         because it has the wrong locale encoding.
8900         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8901         native Windows, try Turkish_Turkey.65001.
8902         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8903         Chinese_China.54936.
8904
8905         Prepare for locale dependent tests on mingw.
8906         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8907         differently.
8908         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8909         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8910         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8911         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8912
8913 2011-02-11  Eric Blake  <eblake@redhat.com>
8914
8915         strptime: avoid compiler warnings
8916         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8917         compiler warnings about dead code.
8918         Reported by Daniel P. Berrange.
8919
8920 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8921
8922         doc: update users.txt
8923         * users.txt: Add rcs.
8924
8925 2011-02-10  John W. Eaton  <jwe@gnu.org>
8926
8927         doc: update users.txt
8928         * users.txt: Add octave.
8929
8930 2011-02-10  Jim Meyering  <meyering@redhat.com>
8931
8932         doc: update users.txt
8933         * users.txt: Add iwhd.
8934
8935 2011-02-09  Bruno Haible  <bruno@clisp.org>
8936
8937         gnulib-tool: Make copyright notice adjustment more robust.
8938         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8939         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8940         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8941         License".
8942         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8943
8944 2011-02-06  Bruno Haible  <bruno@clisp.org>
8945
8946         New module 'towctrans'.
8947         * modules/towctrans: New file.
8948         * lib/wctype.in.h (towctrans): New declaration.
8949         * lib/towctrans.c: New file.
8950         * lib/towctrans-impl.h: New file.
8951         * m4/towctrans.m4: New file.
8952         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8953         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8954         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8955         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8956         * doc/posix-functions/towctrans.texi: Mention the new module.
8957
8958 2011-02-06  Bruno Haible  <bruno@clisp.org>
8959
8960         New module 'wctrans'.
8961         * modules/wctrans: New file.
8962         * lib/wctype.in.h (wctrans): New declaration.
8963         * lib/wctrans.c: New file.
8964         * lib/wctrans-impl.h: New file.
8965         * m4/wctrans.m4: New file.
8966         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8967         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8968         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8969         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8970         * doc/posix-functions/wctrans.texi: Mention the new module.
8971
8972 2011-02-06  Bruno Haible  <bruno@clisp.org>
8973
8974         New module 'iswctype'.
8975         * modules/iswctype: New file.
8976         * lib/wctype.in.h (iswctype): New declaration.
8977         * lib/iswctype.c: New file.
8978         * lib/iswctype-impl.h: New file.
8979         * m4/iswctype.m4: New file.
8980         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8981         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8982         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8983         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8984         * doc/posix-functions/iswctype.texi: Mention the new module and the
8985         HP-UX 11.00 problem.
8986
8987 2011-02-06  Bruno Haible  <bruno@clisp.org>
8988
8989         New module 'wctype'.
8990         * modules/wctype: Change to represent the wctype() substitute.
8991         * lib/wctype.in.h (wctype): New declaration.
8992         * lib/wctype.c: New file.
8993         * lib/wctype-impl.h: New file.
8994         * m4/wctype.m4: New file.
8995         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8996         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8997         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8998         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8999         * doc/posix-functions/wctype.texi: Mention the new module and the
9000         HP-UX 11.00 problem.
9001
9002 2011-02-06  Bruno Haible  <bruno@clisp.org>
9003
9004         wctype-h: Ensure wctype_t and wctrans_t are defined.
9005         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9006         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9007         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9008         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9009         HAVE_WCTRANS_T.
9010         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9011
9012 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9013
9014         flock: fix license typo
9015
9016         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9017         omitted.
9018
9019 2011-02-08  Bruno Haible  <bruno@clisp.org>
9020
9021         Split large sed scripts, for HP-UX sed.
9022         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9023         to avoid HP-UX limit of 99 commands, in the near future.
9024         * modules/stdlib (Makefile.am): Likewise.
9025         * modules/unistd (Makefile.am): Likewise.
9026         * modules/wchar (Makefile.am): Likewise.
9027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9028         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9030
9031 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9032             Bruno Haible  <bruno@clisp.org>
9033
9034         stdlib: improve random_r modularization
9035         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9036         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9037         you also need the random_r module to get this material right.
9038         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9039         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9040         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9041
9042 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9043
9044         stdlib: don't depend on stdint
9045         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9046         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9047         be independent of whether stdint.h is needed.
9048         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9049         here, instead of ...
9050         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9051         struct random_data should be using the random_r module, not just
9052         the stdlib module (which wouldn't make sense: what package needs
9053         just struct random_data without also needing random_r?).
9054         * modules/stdlib (Depends-on): Remove stdint.
9055
9056         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9057         See the thread rooted at
9058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9059         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9060         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9061         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9062         __VMS)); previously it was always included (via fcntl--.h).
9063         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9064         hand; this is good enough for load averages.  Also, do not use
9065         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9066         flags directly if available and don't bother otherwise.  (Packages
9067         that need the extra reliability should use the modules that define
9068         these flags on older platforms that lack them.)
9069         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9070         fcntl-safer.
9071
9072 2011-02-08  Jim Meyering  <meyering@redhat.com>
9073
9074         di-set.h, ino-map.h: add multiple-inclusion guard
9075         Technically, the guard is required only for ino-map.h, due to its
9076         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9077         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9078         * lib/ino-map.h: Likewise.
9079
9080 2011-02-06  Bruno Haible  <bruno@clisp.org>
9081
9082         iswblank: Ensure declaration on glibc systems.
9083         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9084         * modules/iswblank (Dependencies): Add 'extensions'.
9085         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9086
9087 2011-02-06  Bruno Haible  <bruno@clisp.org>
9088
9089         New module 'iswblank'.
9090         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9091         * modules/iswblank: New file.
9092         * modules/wctype-h (Files): Remove lib/iswblank.c.
9093         (Makefile.am): Substitute GNULIB_ISWBLANK.
9094         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9095         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9096         (gl_WCTYPE_H_DEFAULTS): New macro.
9097         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9098         * modules/iswblank-tests: New file.
9099         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9100         * tests/test-wctype-h.c (main): Remove iswblank tests.
9101         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9102         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9103         of 'wctype-h'.
9104         * NEWS: Mention the change.
9105         * modules/mbchar (Depends-on): Add iswblank.
9106
9107 2011-02-08  Bruno Haible  <bruno@clisp.org>
9108
9109         di-set tests: Refactor.
9110         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9111         unnecessary includes.
9112         (ASSERT): Remove macro.
9113         (main): Make C90 compliant by avoiding variable declaration after
9114         statement.
9115         * modules/di-set-tests (Files): Add tests/macros.h.
9116
9117 2011-02-08  Bruno Haible  <bruno@clisp.org>
9118
9119         ino-map tests: Refactor.
9120         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9121         unnecessary includes.
9122         (ASSERT): Remove macro.
9123         (main): Make C90 compliant by avoiding variable declaration after
9124         statement.
9125         * modules/ino-map-tests (Files): Add tests/macros.h.
9126
9127 2011-02-08  Jim Meyering  <meyering@redhat.com>
9128
9129         di-set: add "const" to a cast
9130         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9131         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9132
9133 2011-02-06  Bruno Haible  <bruno@clisp.org>
9134
9135         Rename module 'wctype' to 'wctype-h'.
9136         * modules/wctype-h: Renamed from modules/wctype.
9137         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9138         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9139         (Files, Depends-on, Makefile.am): Update.
9140         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9141         (Files, Makefile.am): Update.
9142         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9143         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9144         * doc/posix-headers/wctype.texi: Update.
9145         * doc/posix-functions/iswalnum.texi: Update.
9146         * doc/posix-functions/iswalpha.texi: Update.
9147         * doc/posix-functions/iswblank.texi: Update.
9148         * doc/posix-functions/iswcntrl.texi: Update.
9149         * doc/posix-functions/iswdigit.texi: Update.
9150         * doc/posix-functions/iswgraph.texi: Update.
9151         * doc/posix-functions/iswlower.texi: Update.
9152         * doc/posix-functions/iswprint.texi: Update.
9153         * doc/posix-functions/iswpunct.texi: Update.
9154         * doc/posix-functions/iswspace.texi: Update.
9155         * doc/posix-functions/iswupper.texi: Update.
9156         * doc/posix-functions/iswxdigit.texi: Update.
9157         * doc/posix-functions/towlower.texi: Update.
9158         * doc/posix-functions/towupper.texi: Update.
9159         * NEWS: Mention the change.
9160         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9161         * modules/mbchar (Dependencies): Likewise.
9162         * modules/mbswidth (Dependencies): Likewise.
9163         * modules/quotearg (Dependencies): Likewise.
9164         * modules/regex (Dependencies): Likewise.
9165         * modules/wcscasecmp (Dependencies): Likewise.
9166         * modules/wcsncasecmp (Dependencies): Likewise.
9167         * modules/wcwidth (Dependencies): Likewise.
9168
9169 2011-02-06  Bruno Haible  <bruno@clisp.org>
9170
9171         New module 'wcswidth'.
9172         * modules/wcswidth: New file.
9173         * lib/wchar.in.h (wcswidth): New declaration.
9174         * lib/wcswidth.c: New file.
9175         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9176         * m4/wcswidth.m4: New file.
9177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9179         REPLACE_WCSWIDTH.
9180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9181         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9182         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9183         * doc/posix-functions/wcswidth.texi: Mention the new module.
9184
9185 2011-02-06  Bruno Haible  <bruno@clisp.org>
9186
9187         New module 'wcstok'.
9188         * modules/wcstok: New file.
9189         * lib/wchar.in.h (wcstok): New declaration.
9190         * lib/wcstok.c: New file.
9191         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9192         * m4/wcstok.m4: New file.
9193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9196         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9197         * doc/posix-functions/wcstok.texi: Mention the new module.
9198
9199 2011-02-06  Bruno Haible  <bruno@clisp.org>
9200
9201         New module 'wcsstr'.
9202         * modules/wcsstr: New file.
9203         * lib/wchar.in.h (wcsstr): New declaration.
9204         * lib/wcsstr.c: New file.
9205         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9206         * m4/wcsstr.m4: New file.
9207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9210         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9211         * doc/posix-functions/wcsstr.texi: Mention the new module.
9212
9213 2011-02-06  Bruno Haible  <bruno@clisp.org>
9214
9215         New module 'wcspbrk'.
9216         * modules/wcspbrk: New file.
9217         * lib/wchar.in.h (wcspbrk): New declaration.
9218         * lib/wcspbrk.c: New file.
9219         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9220         * m4/wcspbrk.m4: New file.
9221         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9222         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9224         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9225         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9226
9227 2011-02-06  Bruno Haible  <bruno@clisp.org>
9228
9229         New module 'wcsspn'.
9230         * modules/wcsspn: New file.
9231         * lib/wchar.in.h (wcsspn): New declaration.
9232         * lib/wcsspn.c: New file.
9233         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9234         * m4/wcsspn.m4: New file.
9235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9238         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9239         * doc/posix-functions/wcsspn.texi: Mention the new module.
9240
9241 2011-02-06  Bruno Haible  <bruno@clisp.org>
9242
9243         New module 'wcscspn'.
9244         * modules/wcscspn: New file.
9245         * lib/wchar.in.h (wcscspn): New declaration.
9246         * lib/wcscspn.c: New file.
9247         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9248         * m4/wcscspn.m4: New file.
9249         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9250         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9251         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9252         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9253         * doc/posix-functions/wcscspn.texi: Mention the new module.
9254
9255 2011-02-06  Bruno Haible  <bruno@clisp.org>
9256
9257         New module 'wcsrchr'.
9258         * modules/wcsrchr: New file.
9259         * lib/wchar.in.h (wcsrchr): New declaration.
9260         * lib/wcsrchr.c: New file.
9261         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9262         * m4/wcsrchr.m4: New file.
9263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9265         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9266         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9267         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9268
9269 2011-02-06  Bruno Haible  <bruno@clisp.org>
9270
9271         New module 'wcschr'.
9272         * modules/wcschr: New file.
9273         * lib/wchar.in.h (wcschr): New declaration.
9274         * lib/wcschr.c: New file.
9275         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9276         * m4/wcschr.m4: New file.
9277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9280         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9281         * doc/posix-functions/wcschr.texi: Mention the new module.
9282
9283 2011-02-06  Bruno Haible  <bruno@clisp.org>
9284
9285         New module 'wcsdup'.
9286         * modules/wcsdup: New file.
9287         * lib/wchar.in.h (wcsdup): New declaration.
9288         * lib/wcsdup.c: New file.
9289         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9290         * m4/wcsdup.m4: New file.
9291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9294         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9295         * doc/posix-functions/wcsdup.texi: Mention the new module.
9296
9297 2011-02-06  Bruno Haible  <bruno@clisp.org>
9298
9299         New module 'wcsxfrm'.
9300         * modules/wcsxfrm: New file.
9301         * lib/wchar.in.h (wcsxfrm): New declaration.
9302         * lib/wcsxfrm.c: New file.
9303         * lib/wcsxfrm-impl.h: New file.
9304         * m4/wcsxfrm.m4: New file.
9305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9308         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9309         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9310
9311 2011-02-06  Bruno Haible  <bruno@clisp.org>
9312
9313         New module 'wcscoll'.
9314         * modules/wcscoll: New file.
9315         * lib/wchar.in.h (wcscoll): New declaration.
9316         * lib/wcscoll.c: New file.
9317         * lib/wcscoll-impl.h: New file.
9318         * m4/wcscoll.m4: New file.
9319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9322         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9323         * doc/posix-functions/wcscoll.texi: Mention the new module.
9324
9325 2011-02-06  Bruno Haible  <bruno@clisp.org>
9326
9327         New module 'wcsncasecmp'.
9328         * modules/wcsncasecmp: New file.
9329         * lib/wchar.in.h (wcsncasecmp): New declaration.
9330         * lib/wcsncasecmp.c: New file.
9331         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9332         * m4/wcsncasecmp.m4: New file.
9333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9336         HAVE_WCSNCASECMP.
9337         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9338         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9339
9340 2011-02-06  Bruno Haible  <bruno@clisp.org>
9341
9342         New module 'wcscasecmp'.
9343         * modules/wcscasecmp: New file.
9344         * lib/wchar.in.h (wcscasecmp): New declaration.
9345         * lib/wcscasecmp.c: New file.
9346         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9347         * m4/wcscasecmp.m4: New file.
9348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9351         HAVE_WCSCASECMP.
9352         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9353         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9354
9355 2011-02-05  Bruno Haible  <bruno@clisp.org>
9356
9357         New module 'wcsncmp'.
9358         * modules/wcsncmp: New file.
9359         * lib/wchar.in.h (wcsncmp): New declaration.
9360         * lib/wcsncmp.c: New file.
9361         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9362         * m4/wcsncmp.m4: New file.
9363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9366         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9367         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9368
9369 2011-02-05  Bruno Haible  <bruno@clisp.org>
9370
9371         New module 'wcscmp'.
9372         * modules/wcscmp: New file.
9373         * lib/wchar.in.h (wcscmp): New declaration.
9374         * lib/wcscmp.c: New file.
9375         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9376         * m4/wcscmp.m4: New file.
9377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9380         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9381         * doc/posix-functions/wcscmp.texi: Mention the new module.
9382
9383 2011-02-05  Bruno Haible  <bruno@clisp.org>
9384
9385         New module 'wcsncat'.
9386         * modules/wcsncat: New file.
9387         * lib/wchar.in.h (wcsncat): New declaration.
9388         * lib/wcsncat.c: New file.
9389         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9390         * m4/wcsncat.m4: New file.
9391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9394         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9395         * doc/posix-functions/wcsncat.texi: Mention the new module.
9396
9397 2011-02-05  Bruno Haible  <bruno@clisp.org>
9398
9399         New module 'wcscat'.
9400         * modules/wcscat: New file.
9401         * lib/wchar.in.h (wcscat): New declaration.
9402         * lib/wcscat.c: New file.
9403         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9404         * m4/wcscat.m4: New file.
9405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9408         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9409         * doc/posix-functions/wcscat.texi: Mention the new module.
9410
9411 2011-02-05  Bruno Haible  <bruno@clisp.org>
9412
9413         New module 'wcpncpy'.
9414         * modules/wcpncpy: New file.
9415         * lib/wchar.in.h (wcpncpy): New declaration.
9416         * lib/wcpncpy.c: New file.
9417         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9418         * m4/wcpncpy.m4: New file.
9419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9421         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9422         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9423         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9424
9425 2011-02-05  Bruno Haible  <bruno@clisp.org>
9426
9427         New module 'wcsncpy'.
9428         * modules/wcsncpy: New file.
9429         * lib/wchar.in.h (wcsncpy): New declaration.
9430         * lib/wcsncpy.c: New file.
9431         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9432         * m4/wcsncpy.m4: New file.
9433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9436         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9437         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9438
9439 2011-02-05  Bruno Haible  <bruno@clisp.org>
9440
9441         New module 'wcpcpy'.
9442         * modules/wcpcpy: New file.
9443         * lib/wchar.in.h (wcpcpy): New declaration.
9444         * lib/wcpcpy.c: New file.
9445         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9446         * m4/wcpcpy.m4: New file.
9447         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9448         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9449         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9450         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9451         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9452
9453 2011-02-05  Bruno Haible  <bruno@clisp.org>
9454
9455         New module 'wcscpy'.
9456         * modules/wcscpy: New file.
9457         * lib/wchar.in.h (wcscpy): New declaration.
9458         * lib/wcscpy.c: New file.
9459         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9460         * m4/wcscpy.m4: New file.
9461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9464         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9465         * doc/posix-functions/wcscpy.texi: Mention the new module.
9466
9467 2011-02-05  Bruno Haible  <bruno@clisp.org>
9468
9469         New module 'wcsnlen'.
9470         * modules/wcsnlen: New file.
9471         * lib/wchar.in.h (wcsnlen): New declaration.
9472         * lib/wcsnlen.c: New file.
9473         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9474         * m4/wcsnlen.m4: New file.
9475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9478         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9479         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9480
9481 2011-02-05  Bruno Haible  <bruno@clisp.org>
9482
9483         New module 'wcslen'.
9484         * modules/wcslen: New file.
9485         * lib/wchar.in.h (wcslen): New declaration.
9486         * lib/wcslen.c: New file.
9487         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9488         * m4/wcslen.m4: New file.
9489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9492         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9493         * doc/posix-functions/wcslen.texi: Mention the new module.
9494
9495 2011-02-05  Bruno Haible  <bruno@clisp.org>
9496
9497         New module 'wmemset'.
9498         * modules/wmemset: New file.
9499         * lib/wchar.in.h (wmemset): New declaration.
9500         * lib/wmemset.c: New file.
9501         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9502         * m4/wmemset.m4: New file.
9503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9505         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9506         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9507         * doc/posix-functions/wmemset.texi: Mention the new module.
9508
9509 2011-02-05  Bruno Haible  <bruno@clisp.org>
9510
9511         New module 'wmemmove'.
9512         * modules/wmemmove: New file.
9513         * lib/wchar.in.h (wmemmove): New declaration.
9514         * lib/wmemmove.c: New file.
9515         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9516         * m4/wmemmove.m4: New file.
9517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9519         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9520         HAVE_WMEMMOVE.
9521         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9522         * doc/posix-functions/wmemmove.texi: Mention the new module.
9523
9524 2011-02-05  Bruno Haible  <bruno@clisp.org>
9525
9526         New module 'wmemcpy'.
9527         * modules/wmemcpy: New file.
9528         * lib/wchar.in.h (wmemcpy): New declaration.
9529         * lib/wmemcpy.c: New file.
9530         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9531         * m4/wmemcpy.m4: New file.
9532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9534         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9535         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9536         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9537
9538 2011-02-05  Bruno Haible  <bruno@clisp.org>
9539
9540         New module 'wmemcmp'.
9541         * modules/wmemcmp: New file.
9542         * lib/wchar.in.h (wmemcmp): New declaration.
9543         * lib/wmemcmp.c: New file.
9544         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9545         * m4/wmemcmp.m4: New file.
9546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9548         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9549         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9550         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9551
9552 2011-02-07  Jim Meyering  <meyering@redhat.com>
9553
9554         di-set, ino-map: new modules, from coreutils
9555         * lib/di-set.c: New file.
9556         * lib/di-set.h: Likewise.
9557         * lib/ino-map.c: Likewise.
9558         * lib/ino-map.h: Likewise.
9559         * modules/di-set: Likewise.
9560         * modules/di-set-tests: Likewise.
9561         * modules/ino-map: Likewise.
9562         * modules/ino-map-tests: Likewise.
9563         * tests/test-di-set.c: Likewise.
9564         * tests/test-ino-map.c: Likewise.
9565
9566 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9567
9568         getloadavg: merge minor changes from Emacs
9569
9570         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9571         (getloadavg): Use memset, not bzero.
9572
9573         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9574         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9575         clash (bug#86).
9576
9577 2010-11-14  Bruno Haible  <bruno@clisp.org>
9578
9579         Allow multiple gnulib generated replacements to coexist.
9580         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9581         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9582         * lib/langinfo.in.h (nl_item): Likewise.
9583         * lib/math.in.h (_NaN, NAN): Likewise.
9584         * lib/netdb.in.h (struct addrinfo): Likewise.
9585         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9586         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9587         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9588         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9589         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9590         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9591         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9592         pthread_mutexattr_init, pthread_mutexattr_settype,
9593         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9594         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9595         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9596         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9597         * lib/sched.in.h (struct sched_param): Likewise.
9598         * lib/se-selinux.in.h (security_class_t, security_context_t,
9599         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9600         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9601         lsetfilecon, fsetfilecon, security_check_context,
9602         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9603         Likewise.
9604         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9605         Likewise.
9606         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9607         _gl_function_taking_int_returning_void_t, union sigval,
9608         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9609         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9610         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9611         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9612         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9613         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9614         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9615         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9616         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9617         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9618         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9619         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9620         socklen_t, rpl_fd_isset): Likewise.
9621         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9622         * lib/sys_time.in.h (struct timeval): Likewise.
9623         * lib/sys_times.in.h (struct tms): Likewise.
9624         * lib/sys_utsname.in.h (struct utsname):
9625         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9626         * lib/unistd.in.h (getpagesize): Likewise.
9627         * lib/wchar.in.h (mbstate_t): Likewise.
9628         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9629         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9630         towlower, towupper): Likewise.
9631         Reported by Sam Steingold <sds@gnu.org>.
9632
9633 2011-02-05  Eric Blake  <eblake@redhat.com>
9634
9635         unsetenv: work around Haiku issues
9636         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9637         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9638
9639 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9640
9641         libposix: avoid calling error() within libposix
9642         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9643         is defined.
9644
9645 2011-02-05  Eric Blake  <eblake@redhat.com>
9646
9647         strerror_r-posix: port to cygwin
9648         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9649         implementation.
9650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9651         * tests/test-strerror_r.c (main): Fix test.
9652         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9653         issue.
9654
9655 2011-02-05  Bruno Haible  <bruno@clisp.org>
9656
9657         New module 'wmemchr'.
9658         * modules/wmemchr: New file.
9659         * lib/wchar.in.h (wmemchr): New declaration.
9660         * lib/wmemchr.c: New file.
9661         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9662         * m4/wmemchr.m4: New file.
9663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9665         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9666         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9667         * doc/posix-functions/wmemchr.texi: Mention the new module.
9668
9669 2011-02-04  Eric Blake  <eblake@redhat.com>
9670
9671         fdopendir: detect FreeBSD bug
9672         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9673         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9674
9675 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         stdbool: do not define HAVE_STDBOOL_H
9678         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9679         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9680         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9681         imported from the latest Autoconf git.  It was motivated by Emacs,
9682         which uses gnulib but does not need HAVE_STDBOOL_H.
9683
9684 2011-02-04  Bruno Haible  <bruno@clisp.org>
9685
9686         wcsnrtombs: Prepare for new module wwcsnrtombs.
9687         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9688         * lib/wcsnrtombs.c: Include it.
9689         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9690
9691         wcsrtombs: Prepare for new module wwcsrtombs.
9692         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9693         * lib/wcsrtombs.c: Include it.
9694         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9695
9696         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9697         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9698         * lib/mbsnrtowcs.c: Include it.
9699         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9700
9701         mbsrtowcs: Prepare for new module mbsrtowwcs.
9702         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9703         * lib/mbsrtowcs.c: Include it.
9704         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9705
9706 2011-02-04  Bruno Haible  <bruno@clisp.org>
9707
9708         vasnprintf: Reduce use of malloc for small format strings.
9709         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9710         (arguments): Add room for the first 7 arguments.
9711         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9712         (char_directives, u8_directives, u16_directives, u32_directives): Add
9713         room for the first 7 directives.
9714         * lib/printf-parse.c: Include <string.h>.
9715         (PRINTF_PARSE): Change memory handling code so that it uses the first
9716         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9717         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9718         Reported by Pádraig Brady <P@draigbrady.com>.
9719
9720 2011-01-31  Eric Blake  <eblake@redhat.com>
9721
9722         dup2: work around Haiku bug
9723         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9724         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9725         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9726         * tests/test-dup2.c (main): Enhance test.
9727
9728 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9729
9730         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9731         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9732         declared by eglibc 2.11.2.
9733         * lib/stdio.in.h: Likewise.
9734
9735 2011-01-31  Eric Blake  <eblake@redhat.com>
9736
9737         ignore-value: add missing test dependency
9738         * tests/test-ignore-value.c: Revert previous change; stdio.h
9739         provides off_t.
9740         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9741
9742 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9743
9744         mktime: clarify long_int width checking
9745         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9746         the top level, to make it clearer that the assumption about
9747         long_int width is being checked.  See
9748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9749
9750 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9751
9752         ignore-value: Fix self-test.
9753         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9754
9755 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9756
9757         TYPE_MAXIMUM: avoid theoretically undefined behavior
9758         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9759         negative number, which the C Standard says has undefined behavior.
9760         In practice this is not a problem, but might as well do it by the book.
9761         Reported by Rich Felker and Eric Blake; see
9762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9763         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9764         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9766         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9767         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9768         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9769
9770         mktime: #undef mktime before #defining it
9771         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9772
9773         mktime: systematically normalize tm_isdst comparisons
9774         * lib/mktime.c (isdst_differ): New function.
9775         (__mktime_internal): Use it systematically for all isdst comparisons.
9776         This completes the fix for libc BZ #6723, and removes the need for
9777         normalizing tm_isdst.  See
9778         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9779         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9780
9781         mktime: fix some integer overflow issues and sidestep the rest
9782
9783         This was prompted by a bug report by Benjamin Lindner for MinGW
9784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9785         His bug is due to signed integer overflow (0 - INT_MIN), and I
9786         I scanned through mktime.c looking for other integer overflow
9787         problems, fixing all the bugs I found.
9788
9789         Although the C Standard says the resulting code is still not safe
9790         in the presence of integer overflow, in practice it should be good
9791         enough for all real-world two's-complement implementations, except
9792         for debugging environments that deliberately trap on integer
9793         overflow (e.g., gcc -ftrapv).
9794
9795         * lib/mktime.c (WRAPV): New macro.
9796         (SHR): Also check that long_int and time_t shift right in the
9797         usual way, before using the fast-but-unportable method.
9798         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9799         used.  The code already assumed two's complement, so there's
9800         no need to test for alternatives.  All uses removed.
9801         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9802         the C standard.  Problem reported by Rich Felker in
9803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9804         (twos_complement_arithmetic): Also check long_int and time_t.
9805         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9806         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9807         (__mktime_internal): Avoid integer overflow with unary subtraction
9808         in two instances where -1 - X is an adequate replacement for -X,
9809         since the calculations are approximate.
9810
9811 2011-01-29  Eric Blake  <eblake@redhat.com>
9812
9813         mktime: avoid infinite loop
9814         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9815         type; behavior is still undefined but portable to all known targets.
9816         Reported by Rich Felker.
9817
9818 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9819
9820         rename, unlink, same-inode: Relicense.
9821         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9822         * modules/unlink (License): Likewise.
9823         * modules/same-inode (License): Likewise.
9824
9825 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9826
9827         mktime: avoid problems on NetBSD 5 / i386
9828         * lib/mktime.c (long_int): New type.  This works around a problem
9829         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9830         but time_t is 64 bits, and where I expect the existing code is
9831         wrong in some cases.
9832         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9833         (ydhms_diff): Bring back the compile-time check for wide-enough
9834         year and yday.
9835
9836         mktime: fix misspelling in comment
9837         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9838         This merges all recent glibc changes of importance.
9839
9840 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9841
9842         move-if-change: cope with concurrent mv of identical file.
9843         * build-aux/move-if-change (CMPPROG): Accept environment
9844         variable as an override for `cmp'.
9845         (usage): Document CMPPROG.
9846         Adjust comparison to drop stdout.  Cope with failure of mv if
9847         the target file exists and is identical to the source, for
9848         parallel builds.
9849         Report from H.J. Lu against binutils in PR binutils/12283.
9850
9851 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9852
9853         * users.txt: Mention sharutils.
9854
9855 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9856
9857         * users.txt: Mention OATH Toolkit.
9858
9859 2011-01-27  Bruno Haible  <bruno@clisp.org>
9860
9861         Prepare for supporting FreeBSD 10.
9862         * build-aux/config.libpath: Remove handling of freebsd1*.
9863
9864 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9865
9866         Prepare for supporting FreeBSD 10.
9867         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9868         match FreeBSD 10.0.
9869
9870 2011-01-27  Bruno Haible  <bruno@clisp.org>
9871
9872         vma-iter, get-rusage-as: Add OpenBSD support.
9873         * modules/vma-iter (configure.ac): Test for mquery.
9874         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9875         * lib/vma-iter.c: Include <sys/mman.h>.
9876         (vma_iterate): Add an implementation based on mquery().
9877         * lib/resource-ext.h (get_rusage_as): Update comments.
9878         * lib/get-rusage-as.c: Likewise.
9879         * lib/get-rusage-data.c: Likewise.
9880
9881 2011-01-26  Karl Berry  <karl@gnu.org>
9882
9883         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9884         variables to make it easier to override the makeinfo program used.
9885
9886 2011-01-26  Eric Blake  <eblake@redhat.com>
9887
9888         fcntl: work around Haiku F_DUPFD bugs
9889         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9890         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9891         cloexec bit on duplication.
9892         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9893
9894 2011-01-26  Bruno Haible  <bruno@clisp.org>
9895
9896         Enable memory leak tests on AIX.
9897         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9898         * tests/test-fprintf-posix3.c (main): Likewise.
9899
9900 2011-01-26  Bruno Haible  <bruno@clisp.org>
9901
9902         Tests for module 'get-rusage-data'.
9903         * modules/get-rusage-data-tests: New file.
9904         * tests/test-get-rusage-data.c: New file.
9905
9906         New module 'get-rusage-data'.
9907         * lib/resource-ext.h (get_rusage_data): New declaration.
9908         * lib/get-rusage-data.c: New file.
9909         * modules/get-rusage-data: New file.
9910
9911 2011-01-25  Bruno Haible  <bruno@clisp.org>
9912
9913         get-rusage-as: Allow for easier testing.
9914         * lib/resource-ext.h (get_rusage_as): Add comment.
9915         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9916         (main): New function for interactive testing.
9917
9918 2011-01-25  Bruno Haible  <bruno@clisp.org>
9919
9920         vma-iter: Treat Haiku like BeOS.
9921         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9922         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9923
9924 2011-01-25  Eric Blake  <eblake@redhat.com>
9925
9926         c-stack: fix regression on cygwin when libsigsegv is present
9927         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9928
9929 2011-01-24  Bruno Haible  <bruno@clisp.org>
9930
9931         vma-iter: Avoid empty intervals.
9932         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9933         on an empty interval.
9934
9935 2011-01-24  Jim Meyering  <meyering@redhat.com>
9936
9937         u64: remove unnecessary #include
9938         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9939
9940 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9943         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9944
9945 2011-01-23  Bruno Haible  <bruno@clisp.org>
9946
9947         New module 'vma-iter'.
9948         * lib/vma-iter.h: New file.
9949         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9950         * modules/vma-iter: New file.
9951         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9952         for get_rusage_as_via_iterator.
9953         (vma_iterate_callback): New function.
9954         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9955         * modules/get-rusage-as (Depends-on): Add vma-iter.
9956
9957 2011-01-23  Bruno Haible  <bruno@clisp.org>
9958
9959         uninorm: Tweak includes.
9960         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9961         Reported by Jim Meyering.
9962
9963 2011-01-23  Bruno Haible  <bruno@clisp.org>
9964
9965         get-rusage-as: Improve on NetBSD.
9966         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9967         /proc, like on FreeBSD.
9968
9969 2011-01-23  Jim Meyering  <meyering@redhat.com>
9970
9971         xreadlink.h: remove unnecessary #include
9972         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9973
9974         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9975         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9976
9977 2011-01-23  Bruno Haible  <bruno@clisp.org>
9978
9979         get-rusage-as: Fix bug.
9980         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9981         original limit when aborting the first loop.
9982
9983 2011-01-23  Bruno Haible  <bruno@clisp.org>
9984
9985         wctype: Ensure valid C syntax.
9986         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9987         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9988
9989 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9990
9991         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9993         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9994         as they are needed only for configure's test case.
9995         This removes two unnecessary symbols from config.h.
9996
9997         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9998         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10000         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10001         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10003         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10004         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10005         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10006         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10007         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10009         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10010         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10011         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10012         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10013         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10014         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10015
10016 2011-01-21  Eric Blake  <eblake@redhat.com>
10017
10018         maintainer-makefile: work with older git for submodule check
10019         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10020         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10021         Reported by Matthias Bolte.
10022
10023         bootstrap: minor portability fixes
10024         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10025         (usage): Omit leading capital and trailing . on help phrases, per
10026         GNU Coding Standards.
10027         (check_versions, top level): Prefix messages with script name.
10028
10029 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10030
10031         bootstrap: support --no-git option
10032         * build-aux/bootstrap: Add --no-git option, to be used when
10033         --gnulib-srcdir points to the exact desired checkout.
10034
10035 2011-01-21  Eric Blake  <eblake@redhat.com>
10036
10037         strerror_r-posix: work with glibc 2.13
10038         * lib/strerror_r.c (strerror_r): Fix return type.
10039
10040 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10041             Bruno Haible  <bruno@clisp.org>
10042
10043         uN_strstr: New unit tests.
10044         * modules/unistr/u8-strstr-tests: New file.
10045         * modules/unistr/u16-strstr-tests: New file.
10046         * modules/unistr/u32-strstr-tests: New file.
10047         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10048         * tests/unistr/test-u8-strstr.c: New file.
10049         * tests/unistr/test-u16-strstr.c: New file.
10050         * tests/unistr/test-u32-strstr.c: New file.
10051
10052 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10053             Bruno Haible  <bruno@clisp.org>
10054
10055         Make uN_strstr functions O(n) worst-case.
10056         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10057         16-bit and 32-bit unit cases, use the unibyte algorithm from
10058         lib/mbsstr.c.
10059         * lib/unistr/u8-strstr.c: Include <string.h>.
10060         (UNIT_IS_UINT8_T): New macro.
10061         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10062         (U_STRLEN, U_STRNLEN): New macros.
10063         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10064         (U_STRLEN, U_STRNLEN): New macros.
10065         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10066         (configure.ac): Update required libunistring version.
10067         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10068         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10069         malloca.
10070         (configure.ac): Update required libunistring version.
10071         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10072         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10073         malloca.
10074         (configure.ac): Update required libunistring version.
10075
10076 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10077             Bruno Haible  <bruno@clisp.org>
10078
10079         Prepare for faster uN_strstr functions.
10080         * lib/str-kmp.h: Support definable UNITs.
10081         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10082         needle_len argument.
10083         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10084         * lib/mbscasestr.c (mbscasestr): Likewise.
10085
10086 2011-01-21  Pádraig Brady <P@draigBrady.com>
10087
10088         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10089         * tests/test-malloca.c (main): Unset the environment variable
10090         to greatly speed up the test.
10091         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10092         * modules/malloca-tests: Depend on unsetenv.
10093
10094 2011-01-21  Pádraig Brady <P@draigBrady.com>
10095
10096         ignore-value: remove stdint dependency
10097         * lib/ignore-value.h: Remove <stdint.h>
10098         * modules/ignore-value: Remove stdint dependency.
10099
10100 2011-01-21  Jim Meyering  <meyering@redhat.com>
10101
10102         maint.mk: adjust variable name to be consistent with other gl_ vars
10103         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10104         to be lower case.
10105
10106 2011-01-20  Jim Meyering  <meyering@redhat.com>
10107
10108         maint.mk: make "check" depend on public-submodule-commit by default
10109         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10110
10111 2011-01-20  Bruno Haible  <bruno@clisp.org>
10112
10113         mbfile, mbiter: Complete change from 2008-12-21.
10114         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10115         * m4/mbiter.m4 (gl_MBITER): Likewise.
10116
10117 2011-01-20  Jim Meyering  <meyering@redhat.com>
10118
10119         init.sh: insert space between each function name and "()"
10120         * tests/init.sh: Make it a little easier to see that a function's
10121         name is "warn_", and not "warn" when looking at the first part of
10122         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10123
10124 2011-01-20  Jim Meyering  <meyering@redhat.com>
10125
10126         mountlist: clean up code formatting
10127         * lib/mountlist.c (read_file_system_list): Split a long line,
10128         correct bracing style, use NULL in place of "(struct statfs *)0",
10129         don't parenthesize return value, add spaces around "=" and after
10130         ";-in-for-stmt".
10131
10132 2011-01-14  Markus Duft <mduft@gentoo.org>
10133
10134         mountlist: add support for Interix
10135         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10136         Apply statvfs to all entries of /dev/fs.
10137         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10138         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10139
10140 2011-01-20  Jim Meyering  <meyering@redhat.com>
10141
10142         maint.mk: improve the public-submodule-commit rule
10143         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10144         to suppress printing of its commands... unless V=1.
10145         Add git submodule's --quiet option to suppress printing of e.g.,
10146         "Entering gnulib" output.
10147         "cd" into $(srcdir) before running git submodule.
10148
10149 2011-01-20  Bruno Haible  <bruno@clisp.org>
10150
10151         include_next: Fix bug introduced on 2011-01-18.
10152         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10153         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10154         ac_cv_header_... variable if the second argument is not 'check'.
10155         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10156         gl_NEXT_HEADERS_INTERNAL.
10157
10158 2011-01-20  Bruno Haible  <bruno@clisp.org>
10159
10160         Allow the user to avoid the GNULIB_TEST_* macros.
10161         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10162         Suggested by Paul Eggert.
10163
10164 2011-01-14  Jim Meyering  <meyering@redhat.com>
10165
10166         bootstrap: avoid failure when there is no .gitmodules file
10167         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10168         has been assigned to, even when its value is the empty string.
10169         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10170         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10171         Reported by John W. Eaton <jwe@gnu.org>.
10172
10173 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10174
10175         assume <ctype.h>, ..., <time.h> exist
10176         For years gnulib has been assuming the existence of the headers
10177         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10178         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10179         them, since they don't appear to be needed.
10180         * README (Portability guidelines): Document this.
10181         * lib/flock.c: Assume <fcntl.h> exists.
10182         * lib/regex_internal.h: Assume <locale.h> exists.
10183         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10185         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10186         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10187         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10188         * m4/regex.m4 (gl_REGEX): Likewise.
10189         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10190         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10191         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10192         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10193         * tests/test-argp.c: Likewise.
10194         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10195
10196         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10197         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10198         AA_APPLE_UNIVERSAL_BUILD.  See
10199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10200         * NEWS: Document this.
10201
10202 2011-01-19  Eric Blake  <eblake@redhat.com>
10203
10204         c-stack: assume stack overflow if SA_SIGINFO unsupported
10205         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10206         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10207         sigaction will work.
10208         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10209         behavior match Linux.
10210         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10211
10212         stdbool-tests: accomodate Haiku
10213         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10214
10215         binary-io: fix O_TEXT on Haiku
10216         * modules/binary-io (Depends-on): Add fcntl-h.
10217         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10218         than blindly undefining O_TEXT.
10219         Reported by Scott McCreary.
10220
10221 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10222
10223         include_next: do not check for standard headers like stddef.h
10224
10225         I found this problem when modifying Emacs to use gnulib.
10226         I noticed that it added HAVE_STDDEF_H to config.h, even though
10227         gnulib always assumes <stddef.h> exists as per README and this
10228         symbol is unnecessary.
10229         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10230         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10231         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10232         faster for headers like stddef.h that are known to exist.
10233         (gl_CHECK_NEXT_HEADERS): Use it.
10234         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10235         rather than gl_CHECK_NEXT_HEADERS.
10236         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10237         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10238
10239 2011-01-18  Eric Blake  <eblake@redhat.com>
10240
10241         ansi-c++-opt: skip C++ dependency style if C++ is unused
10242         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10243         tests when we know C++ compilation is not desired.
10244         Reported by Scott McCreary.
10245
10246 2011-01-18  Bruno Haible  <bruno@clisp.org>
10247
10248         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10249         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10250         (main): Perform test also when getrlimit and setrlimit don't exist or
10251         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10252         limiting the address space size using setrlimit, compare the address
10253         space size before and after the the test.
10254         * tests/test-dprintf-posix2.c: Likewise.
10255         * tests/test-fprintf-posix3.sh: Update skip messages.
10256         * tests/test-dprintf-posix2.sh: Likewise.
10257         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10258         * modules/dprintf-posix-tests (Depends-on): Likewise.
10259         Reported by Bruce Korb <bkorb@gnu.org> and
10260         Gary V. Vaughan <gary@gnu.org>.
10261
10262 2011-01-18  Bruno Haible  <bruno@clisp.org>
10263
10264         get-rusage-as: Improvement for Cygwin.
10265         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10266         areas that are merely reserved.
10267
10268 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10269
10270         strftime: remove dependencies on multibyte modules
10271
10272         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10273         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10274         only if __osf__ is defined, and I suspect OSF doesn't need these
10275         other modules.  If my guess is wrong, we'll need to come up with a
10276         variant of strftime that doesn't need the multibyte modules.
10277
10278         I discovered this problem when attempting modify Emacs to use the
10279         strftime module.  With the previous gnulib, this caused Emacs to
10280         need 31 new files, ranging from lib/config.charset to
10281         m4/wint_t.m4.  This was overkill and I expect would be offputting
10282         to the Emacs maintainers.  After this change, only 6 new files are
10283         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10284         stdbool.m4, and tm_gmtoff.m4.
10285
10286         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10287         Suggested by Bruno Haible in
10288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10289         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10290         and do not check for wchar.h.
10291         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10292         (Depends-on): Remove mbrlen, mbsinit, wchar.
10293
10294 2011-01-18  Bruno Haible  <bruno@clisp.org>
10295
10296         Tests for module 'get-rusage-as'.
10297         * modules/get-rusage-as-tests: New file.
10298         * tests/test-get-rusage-as.c: New file.
10299
10300         New module 'get-rusage-as'.
10301         * modules/get-rusage-as: New file.
10302         * lib/resource-ext.h: New file.
10303         * lib/get-rusage-as.c: New file.
10304
10305 2011-01-17  Eric Blake  <eblake@redhat.com>
10306
10307         sigaction: relax license from LGPLv3+ to LGPLv2+
10308         * modules/sigaction (License): Relax to LGPLv2+.
10309
10310 2011-01-14  Bruno Haible  <bruno@clisp.org>
10311
10312         filemode: Make function declarations usable in C++ mode.
10313         * lib/filemode.h: Enclose function declarations in extern "C" block.
10314         Reported by John W. Eaton <jwe@gnu.org>.
10315
10316 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10317
10318         save-cwd: no longer include "xgetcwd.h"
10319         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10320         This avoids a compilation failure in projects that use save-cwd
10321         without also using the xgetcwd module.
10322
10323 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10324
10325         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10326         This is so that a program like Emacs, which needs only dtoastr,
10327         does not have to bother with distributing and compiling ftoastr
10328         and ldtoastr.
10329         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10330         * modules/dtoastr, modules/ldtoastr: New files.
10331         * modules/ftoastr: Now works just for 'float'.
10332         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10333         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10334         dtoastr.c, ldtoastr.c.
10335
10336 2011-01-11  Jim Meyering  <meyering@redhat.com>
10337
10338         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10339         There is no need to work around the lack of the fchdir function,
10340         since gnulib can now provide a replacement when required.
10341         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10342         * modules/save-cwd (Depends-on): Add fchdir.
10343
10344 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         openat, save-cwd: avoid xmalloc
10347
10348         This removes a direct (but undocumented) dependency of openat on
10349         xalloc, along with an indirect dependency via save-cwd.  It also
10350         removes a dependency of save-cwd on xgetcwd, and thereby
10351         indirectly on xalloc.  This change causes the openat substitute
10352         to fall back on save_cwd when memory is tight, and for save_cwd to
10353         fail instead of dying when memory is tight, but that's good enough.
10354         Problem and initial idea for fix reported by Bastien Roucaries in
10355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10356
10357         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10358         xalloc.h (for xmalloc).
10359         (openat_proc_name): Use malloc, not xmalloc.
10360         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10361         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10362
10363         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10364         This avoids heap allocation for file names whose lengths are in
10365         the range 512..1023, with the upper bound increasing to at most
10366         4031 depending on the platform's PATH_MAX.  (We do not want
10367         pathmax.h here as it might supply a non-constant PATH_MAX.)
10368         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10369         Perhaps they should be moved to malloca.h?
10370         (OPENAT_BUFFER_SIZE): Use them.
10371
10372 2011-01-10  Bruno Haible  <bruno@clisp.org>
10373
10374         doc: Update users.txt.
10375         * users.txt: Add recutils.
10376
10377 2011-01-09  Karl Berry  <karl@gnu.org>
10378
10379         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10380
10381         * doc/configmake.texi: New file.
10382         * doc/gnulib.texi: Include it.
10383         * modules/configmake: Move documentation from here.
10384
10385 2011-01-09  Bruno Haible  <bruno@clisp.org>
10386
10387         Update to Unicode 6.0.0.
10388         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10389         (get_lbp): Update for Unicode 6.0.0.
10390         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10391         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10392         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10393         U+11001, U+11038..U+11046. Remove U+06DE.
10394         (uc_width): Fix bounds of planes.
10395         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10396         lib/uniwidth/width.c.
10397         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10398         trailing whitespace removed.
10399         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10400         without comments, but with the original copyright notice.
10401         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10402         * lib/unicase/ignorable.h: Likewise.
10403         * lib/unicase/tocasefold.h: Likewise.
10404         * lib/unicase/tolower.h: Likewise.
10405         * lib/unicase/totitle.h: Likewise.
10406         * lib/unicase/toupper.h: Likewise.
10407         * lib/unictype/bidi_of.h: Likewise.
10408         * lib/unictype/blocks.h: Likewise.
10409         * lib/unictype/categ_C.h: Likewise.
10410         * lib/unictype/categ_Cn.h: Likewise.
10411         * lib/unictype/categ_L.h: Likewise.
10412         * lib/unictype/categ_Ll.h: Likewise.
10413         * lib/unictype/categ_Lm.h: Likewise.
10414         * lib/unictype/categ_Lo.h: Likewise.
10415         * lib/unictype/categ_Lu.h: Likewise.
10416         * lib/unictype/categ_M.h: Likewise.
10417         * lib/unictype/categ_Mc.h: Likewise.
10418         * lib/unictype/categ_Me.h: Likewise.
10419         * lib/unictype/categ_Mn.h: Likewise.
10420         * lib/unictype/categ_N.h: Likewise.
10421         * lib/unictype/categ_Nd.h: Likewise.
10422         * lib/unictype/categ_No.h: Likewise.
10423         * lib/unictype/categ_P.h: Likewise.
10424         * lib/unictype/categ_Po.h: Likewise.
10425         * lib/unictype/categ_S.h: Likewise.
10426         * lib/unictype/categ_Sc.h: Likewise.
10427         * lib/unictype/categ_Sk.h: Likewise.
10428         * lib/unictype/categ_Sm.h: Likewise.
10429         * lib/unictype/categ_So.h: Likewise.
10430         * lib/unictype/categ_of.h: Likewise.
10431         * lib/unictype/combining.h: Likewise.
10432         * lib/unictype/ctype_alnum.h: Likewise.
10433         * lib/unictype/ctype_alpha.h: Likewise.
10434         * lib/unictype/ctype_graph.h: Likewise.
10435         * lib/unictype/ctype_lower.h: Likewise.
10436         * lib/unictype/ctype_print.h: Likewise.
10437         * lib/unictype/ctype_punct.h: Likewise.
10438         * lib/unictype/ctype_upper.h: Likewise.
10439         * lib/unictype/decdigit.h: Likewise.
10440         * lib/unictype/digit.h: Likewise.
10441         * lib/unictype/numeric.h: Likewise.
10442         * lib/unictype/pr_alphabetic.h: Likewise.
10443         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10444         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10445         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10446         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10447         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10448         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10449         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10450         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10451         * lib/unictype/pr_case_ignorable.h: Likewise.
10452         * lib/unictype/pr_cased.h: Likewise.
10453         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10454         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10455         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10456         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10457         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10458         * lib/unictype/pr_combining.h: Likewise.
10459         * lib/unictype/pr_composite.h: Likewise.
10460         * lib/unictype/pr_currency_symbol.h: Likewise.
10461         * lib/unictype/pr_decimal_digit.h: Likewise.
10462         * lib/unictype/pr_deprecated.h: Likewise.
10463         * lib/unictype/pr_format_control.h: Likewise.
10464         * lib/unictype/pr_grapheme_base.h: Likewise.
10465         * lib/unictype/pr_grapheme_extend.h: Likewise.
10466         * lib/unictype/pr_grapheme_link.h: Likewise.
10467         * lib/unictype/pr_id_continue.h: Likewise.
10468         * lib/unictype/pr_id_start.h: Likewise.
10469         * lib/unictype/pr_ideographic.h: Likewise.
10470         * lib/unictype/pr_lowercase.h: Likewise.
10471         * lib/unictype/pr_math.h: Likewise.
10472         * lib/unictype/pr_numeric.h: Likewise.
10473         * lib/unictype/pr_other_alphabetic.h: Likewise.
10474         * lib/unictype/pr_other_id_continue.h: Likewise.
10475         * lib/unictype/pr_other_math.h: Likewise.
10476         * lib/unictype/pr_punctuation.h: Likewise.
10477         * lib/unictype/pr_sentence_terminal.h: Likewise.
10478         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10479         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10480         * lib/unictype/pr_unified_ideograph.h: Likewise.
10481         * lib/unictype/pr_uppercase.h: Likewise.
10482         * lib/unictype/pr_xid_continue.h: Likewise.
10483         * lib/unictype/pr_xid_start.h: Likewise.
10484         * lib/unictype/scripts.h: Likewise.
10485         * lib/unictype/scripts_byname.gperf: Likewise.
10486         * lib/unictype/sy_java_ident.h: Likewise.
10487         * lib/unigbrk/gbrkprop.h: Likewise.
10488         * lib/unilbrk/lbrkprop1.h: Likewise.
10489         * lib/unilbrk/lbrkprop2.h: Likewise.
10490         * lib/uninorm/decomposition-table2.h: Likewise.
10491         * lib/uniwbrk/wbrkprop.h: Likewise.
10492         * tests/unicase/test-cased.c: Likewise.
10493         * tests/unicase/test-ignorable.c: Likewise.
10494         * tests/unicase/test-uc_tolower.c: Likewise.
10495         * tests/unicase/test-uc_totitle.c: Likewise.
10496         * tests/unicase/test-uc_toupper.c: Likewise.
10497         * tests/unictype/test-categ_C.c: Likewise.
10498         * tests/unictype/test-categ_Cn.c: Likewise.
10499         * tests/unictype/test-categ_L.c: Likewise.
10500         * tests/unictype/test-categ_Ll.c: Likewise.
10501         * tests/unictype/test-categ_Lm.c: Likewise.
10502         * tests/unictype/test-categ_Lo.c: Likewise.
10503         * tests/unictype/test-categ_Lu.c: Likewise.
10504         * tests/unictype/test-categ_M.c: Likewise.
10505         * tests/unictype/test-categ_Mc.c: Likewise.
10506         * tests/unictype/test-categ_Me.c: Likewise.
10507         * tests/unictype/test-categ_Mn.c: Likewise.
10508         * tests/unictype/test-categ_N.c: Likewise.
10509         * tests/unictype/test-categ_Nd.c: Likewise.
10510         * tests/unictype/test-categ_No.c: Likewise.
10511         * tests/unictype/test-categ_P.c: Likewise.
10512         * tests/unictype/test-categ_Po.c: Likewise.
10513         * tests/unictype/test-categ_S.c: Likewise.
10514         * tests/unictype/test-categ_Sc.c: Likewise.
10515         * tests/unictype/test-categ_Sk.c: Likewise.
10516         * tests/unictype/test-categ_Sm.c: Likewise.
10517         * tests/unictype/test-categ_So.c: Likewise.
10518         * tests/unictype/test-ctype_alnum.c: Likewise.
10519         * tests/unictype/test-ctype_alpha.c: Likewise.
10520         * tests/unictype/test-ctype_graph.c: Likewise.
10521         * tests/unictype/test-ctype_lower.c: Likewise.
10522         * tests/unictype/test-ctype_print.c: Likewise.
10523         * tests/unictype/test-ctype_punct.c: Likewise.
10524         * tests/unictype/test-ctype_upper.c: Likewise.
10525         * tests/unictype/test-decdigit.h: Likewise.
10526         * tests/unictype/test-digit.h: Likewise.
10527         * tests/unictype/test-numeric.h: Likewise.
10528         * tests/unictype/test-pr_alphabetic.c: Likewise.
10529         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10530         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10531         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10532         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10533         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10534         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10535         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10536         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10537         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10538         * tests/unictype/test-pr_cased.c: Likewise.
10539         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10540         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10541         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10542         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10543         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10544         * tests/unictype/test-pr_combining.c: Likewise.
10545         * tests/unictype/test-pr_composite.c: Likewise.
10546         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10547         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10548         * tests/unictype/test-pr_deprecated.c: Likewise.
10549         * tests/unictype/test-pr_format_control.c: Likewise.
10550         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10551         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10552         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10553         * tests/unictype/test-pr_id_continue.c: Likewise.
10554         * tests/unictype/test-pr_id_start.c: Likewise.
10555         * tests/unictype/test-pr_ideographic.c: Likewise.
10556         * tests/unictype/test-pr_lowercase.c: Likewise.
10557         * tests/unictype/test-pr_math.c: Likewise.
10558         * tests/unictype/test-pr_numeric.c: Likewise.
10559         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10560         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10561         * tests/unictype/test-pr_other_math.c: Likewise.
10562         * tests/unictype/test-pr_punctuation.c: Likewise.
10563         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10564         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10565         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10566         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10567         * tests/unictype/test-pr_uppercase.c: Likewise.
10568         * tests/unictype/test-pr_xid_continue.c: Likewise.
10569         * tests/unictype/test-pr_xid_start.c: Likewise.
10570         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10571         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10572         changes.
10573         * lib/unictype/categ_Cc.h: Likewise.
10574         * lib/unictype/categ_Cf.h: Likewise.
10575         * lib/unictype/categ_Co.h: Likewise.
10576         * lib/unictype/categ_Cs.h: Likewise.
10577         * lib/unictype/categ_Lt.h: Likewise.
10578         * lib/unictype/categ_Nl.h: Likewise.
10579         * lib/unictype/categ_Pc.h: Likewise.
10580         * lib/unictype/categ_Pd.h: Likewise.
10581         * lib/unictype/categ_Pe.h: Likewise.
10582         * lib/unictype/categ_Pf.h: Likewise.
10583         * lib/unictype/categ_Pi.h: Likewise.
10584         * lib/unictype/categ_Ps.h: Likewise.
10585         * lib/unictype/categ_Z.h: Likewise.
10586         * lib/unictype/categ_Zl.h: Likewise.
10587         * lib/unictype/categ_Zp.h: Likewise.
10588         * lib/unictype/categ_Zs.h: Likewise.
10589         * lib/unictype/ctype_blank.h: Likewise.
10590         * lib/unictype/ctype_cntrl.h: Likewise.
10591         * lib/unictype/ctype_digit.h: Likewise.
10592         * lib/unictype/ctype_space.h: Likewise.
10593         * lib/unictype/ctype_xdigit.h: Likewise.
10594         * lib/unictype/mirror.h: Likewise.
10595         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10596         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10597         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10598         * lib/unictype/pr_bidi_control.h: Likewise.
10599         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10600         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10601         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10602         * lib/unictype/pr_bidi_pdf.h: Likewise.
10603         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10604         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10605         * lib/unictype/pr_dash.h: Likewise.
10606         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10607         * lib/unictype/pr_diacritic.h: Likewise.
10608         * lib/unictype/pr_extender.h: Likewise.
10609         * lib/unictype/pr_hex_digit.h: Likewise.
10610         * lib/unictype/pr_hyphen.h: Likewise.
10611         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10612         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10613         * lib/unictype/pr_ignorable_control.h: Likewise.
10614         * lib/unictype/pr_iso_control.h: Likewise.
10615         * lib/unictype/pr_join_control.h: Likewise.
10616         * lib/unictype/pr_left_of_pair.h: Likewise.
10617         * lib/unictype/pr_line_separator.h: Likewise.
10618         * lib/unictype/pr_logical_order_exception.h: Likewise.
10619         * lib/unictype/pr_non_break.h: Likewise.
10620         * lib/unictype/pr_not_a_character.h: Likewise.
10621         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10622         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10623         * lib/unictype/pr_other_id_start.h: Likewise.
10624         * lib/unictype/pr_other_lowercase.h: Likewise.
10625         * lib/unictype/pr_other_uppercase.h: Likewise.
10626         * lib/unictype/pr_paired_punctuation.h: Likewise.
10627         * lib/unictype/pr_paragraph_separator.h: Likewise.
10628         * lib/unictype/pr_pattern_syntax.h: Likewise.
10629         * lib/unictype/pr_pattern_white_space.h: Likewise.
10630         * lib/unictype/pr_private_use.h: Likewise.
10631         * lib/unictype/pr_quotation_mark.h: Likewise.
10632         * lib/unictype/pr_radical.h: Likewise.
10633         * lib/unictype/pr_soft_dotted.h: Likewise.
10634         * lib/unictype/pr_space.h: Likewise.
10635         * lib/unictype/pr_titlecase.h: Likewise.
10636         * lib/unictype/pr_variation_selector.h: Likewise.
10637         * lib/unictype/pr_white_space.h: Likewise.
10638         * lib/unictype/pr_zero_width.h: Likewise.
10639         * lib/unictype/sy_c_ident.h: Likewise.
10640         * lib/unictype/sy_c_whitespace.h: Likewise.
10641         * lib/unictype/sy_java_whitespace.h: Likewise.
10642         * lib/uninorm/composition-table.gperf: Likewise.
10643         * lib/uninorm/decomposition-table1.h: Likewise.
10644         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10645         LB8.
10646         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10647         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10648         * modules/unictype/*: Bump version number of expected libunistring
10649         version.
10650
10651 2011-01-09  Bruno Haible  <bruno@clisp.org>
10652
10653         Update to Unicode 5.2.0.
10654         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10655         trailing whitespace removed.
10656
10657 2011-01-09  Bruno Haible  <bruno@clisp.org>
10658
10659         New Unicode character properties, from Unicode 5.2.0.
10660         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10661         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10662         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10663         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10664         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10665         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10666         uc_is_property_cased, uc_is_property_case_ignorable,
10667         uc_is_property_changes_when_lowercased,
10668         uc_is_property_changes_when_uppercased,
10669         uc_is_property_changes_when_titlecased,
10670         uc_is_property_changes_when_casefolded,
10671         uc_is_property_changes_when_casemapped): New declarations.
10672         * lib/unictype/pr_byname.gperf: Add the new properties.
10673         * modules/unictype/property-byname (Depends-on): Depend on the new
10674         properties modules.
10675         * modules/unictype/property-all (Depends-on): Likewise.
10676         * MODULES.html.sh (Unicode string functions): Add
10677         unictype/property-case-ignorable, unictype/property-cased,
10678         unictype/property-changes-when-casefolded,
10679         unictype/property-changes-when-casemapped,
10680         unictype/property-changes-when-lowercased,
10681         unictype/property-changes-when-titlecased,
10682         unictype/property-changes-when-uppercased.
10683
10684         New module 'unictype/property-changes-when-casemapped'.
10685         * modules/unictype/property-changes-when-casemapped: New file.
10686         * lib/unictype/pr_changes_when_casemapped.c: New file.
10687         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10688         generated by gen-uni-tables.
10689         * modules/unictype/property-changes-when-casemapped-tests: New file.
10690         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10691         automatically generated by gen-uni-tables.
10692
10693         New module 'unictype/property-changes-when-casefolded'.
10694         * modules/unictype/property-changes-when-casefolded: New file.
10695         * lib/unictype/pr_changes_when_casefolded.c: New file.
10696         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10697         generated by gen-uni-tables.
10698         * modules/unictype/property-changes-when-casefolded-tests: New file.
10699         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10700         automatically generated by gen-uni-tables.
10701
10702         New module 'unictype/property-changes-when-titlecased'.
10703         * modules/unictype/property-changes-when-titlecased: New file.
10704         * lib/unictype/pr_changes_when_titlecased.c: New file.
10705         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10706         generated by gen-uni-tables.
10707         * modules/unictype/property-changes-when-titlecased-tests: New file.
10708         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10709         automatically generated by gen-uni-tables.
10710
10711         New module 'unictype/property-changes-when-uppercased'.
10712         * modules/unictype/property-changes-when-uppercased: New file.
10713         * lib/unictype/pr_changes_when_uppercased.c: New file.
10714         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10715         generated by gen-uni-tables.
10716         * modules/unictype/property-changes-when-uppercased-tests: New file.
10717         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10718         automatically generated by gen-uni-tables.
10719
10720         New module 'unictype/property-changes-when-lowercased'.
10721         * modules/unictype/property-changes-when-lowercased: New file.
10722         * lib/unictype/pr_changes_when_lowercased.c: New file.
10723         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10724         generated by gen-uni-tables.
10725         * modules/unictype/property-changes-when-lowercased-tests: New file.
10726         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10727         automatically generated by gen-uni-tables.
10728
10729         New module 'unictype/property-case-ignorable'.
10730         * modules/unictype/property-case-ignorable: New file.
10731         * lib/unictype/pr_case_ignorable.c: New file.
10732         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10733         by gen-uni-tables.
10734         * modules/unictype/property-case-ignorable-tests: New file.
10735         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10736         generated by gen-uni-tables.
10737
10738         New module 'unictype/property-cased'.
10739         * modules/unictype/property-cased: New file.
10740         * lib/unictype/pr_cased.c: New file.
10741         * lib/unictype/pr_cased.h: New file, automatically generated by
10742         gen-uni-tables.
10743         * modules/unictype/property-cased-tests: New file.
10744         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10745         gen-uni-tables.
10746
10747 2011-01-09  Bruno Haible  <bruno@clisp.org>
10748
10749         Update to Unicode 5.2.0.
10750         * lib/gen-uni-tables.c (output_predicate, output_category,
10751         output_combclass, output_bidi_category, output_decimal_digit_test,
10752         output_decimal_digit, output_digit_test, output_digit,
10753         output_numeric_test, output_numeric, output_mirror, output_scripts,
10754         output_scripts_byname, output_blocks, output_ident_category): Fix
10755         comment header.
10756         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10757         get_wbp.
10758         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10759         items.
10760         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10761         Changes_When_Lowercased, Changes_When_Uppercased,
10762         Changes_When_Titlecased, Changes_When_Casefolded,
10763         Changes_When_Casemapped.
10764         (is_property_alphabetic, is_property_default_ignorable_code_point):
10765         Update for Unicode 5.2.0.
10766         (is_property_cased, is_property_case_ignorable,
10767         is_property_changes_when_lowercased,
10768         is_property_changes_when_uppercased,
10769         is_property_changes_when_titlecased,
10770         is_property_changes_when_casefolded,
10771         is_property_changes_when_casemapped): New functions.
10772         (output_properties): Output also the properties cased, case_ignorable,
10773         changes_when_lowercased, changes_when_uppercased,
10774         changes_when_titlecased, changes_when_casefolded,
10775         changes_when_casemapped.
10776         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10777         Unicode TR#11 revision 17 -> 19.
10778         (LBP_CP): New enumeration value.
10779         (LBP_*): Adjust values accordingly.
10780         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10781         TR#14 revision 22 -> 24.
10782         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10783         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10784         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10785         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10786         is_WBP_MIDLETTER.
10787         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10788         the code1 and code2 of each composition rule.
10789         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10790         * lib/unicase/ignorable.h: Likewise.
10791         * lib/unicase/tocasefold.h: Likewise.
10792         * lib/unicase/tolower.h: Likewise.
10793         * lib/unicase/totitle.h: Likewise.
10794         * lib/unicase/toupper.h: Likewise.
10795         * lib/unictype/bidi_of.h: Likewise.
10796         * lib/unictype/blocks.h: Likewise.
10797         * lib/unictype/categ_C.h: Likewise.
10798         * lib/unictype/categ_Cf.h: Likewise.
10799         * lib/unictype/categ_Cn.h: Likewise.
10800         * lib/unictype/categ_L.h: Likewise.
10801         * lib/unictype/categ_Ll.h: Likewise.
10802         * lib/unictype/categ_Lm.h: Likewise.
10803         * lib/unictype/categ_Lo.h: Likewise.
10804         * lib/unictype/categ_Lu.h: Likewise.
10805         * lib/unictype/categ_M.h: Likewise.
10806         * lib/unictype/categ_Mc.h: Likewise.
10807         * lib/unictype/categ_Mn.h: Likewise.
10808         * lib/unictype/categ_N.h: Likewise.
10809         * lib/unictype/categ_Nd.h: Likewise.
10810         * lib/unictype/categ_Nl.h: Likewise.
10811         * lib/unictype/categ_No.h: Likewise.
10812         * lib/unictype/categ_P.h: Likewise.
10813         * lib/unictype/categ_Pd.h: Likewise.
10814         * lib/unictype/categ_Po.h: Likewise.
10815         * lib/unictype/categ_S.h: Likewise.
10816         * lib/unictype/categ_Sc.h: Likewise.
10817         * lib/unictype/categ_So.h: Likewise.
10818         * lib/unictype/categ_of.h: Likewise.
10819         * lib/unictype/combining.h: Likewise.
10820         * lib/unictype/ctype_alnum.h: Likewise.
10821         * lib/unictype/ctype_alpha.h: Likewise.
10822         * lib/unictype/ctype_graph.h: Likewise.
10823         * lib/unictype/ctype_lower.h: Likewise.
10824         * lib/unictype/ctype_print.h: Likewise.
10825         * lib/unictype/ctype_punct.h: Likewise.
10826         * lib/unictype/ctype_upper.h: Likewise.
10827         * lib/unictype/decdigit.h: Likewise.
10828         * lib/unictype/digit.h: Likewise.
10829         * lib/unictype/numeric.h: Likewise.
10830         * lib/unictype/pr_alphabetic.h: Likewise.
10831         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10832         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10833         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10834         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10835         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10836         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10837         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10838         * lib/unictype/pr_combining.h: Likewise.
10839         * lib/unictype/pr_composite.h: Likewise.
10840         * lib/unictype/pr_currency_symbol.h: Likewise.
10841         * lib/unictype/pr_dash.h: Likewise.
10842         * lib/unictype/pr_decimal_digit.h: Likewise.
10843         * lib/unictype/pr_deprecated.h: Likewise.
10844         * lib/unictype/pr_diacritic.h: Likewise.
10845         * lib/unictype/pr_extender.h: Likewise.
10846         * lib/unictype/pr_grapheme_base.h: Likewise.
10847         * lib/unictype/pr_grapheme_extend.h: Likewise.
10848         * lib/unictype/pr_grapheme_link.h: Likewise.
10849         * lib/unictype/pr_id_continue.h: Likewise.
10850         * lib/unictype/pr_id_start.h: Likewise.
10851         * lib/unictype/pr_ideographic.h: Likewise.
10852         * lib/unictype/pr_ignorable_control.h: Likewise.
10853         * lib/unictype/pr_logical_order_exception.h: Likewise.
10854         * lib/unictype/pr_lowercase.h: Likewise.
10855         * lib/unictype/pr_numeric.h: Likewise.
10856         * lib/unictype/pr_other_alphabetic.h: Likewise.
10857         * lib/unictype/pr_punctuation.h: Likewise.
10858         * lib/unictype/pr_sentence_terminal.h: Likewise.
10859         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10860         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10861         * lib/unictype/pr_unified_ideograph.h: Likewise.
10862         * lib/unictype/pr_uppercase.h: Likewise.
10863         * lib/unictype/pr_xid_continue.h: Likewise.
10864         * lib/unictype/pr_xid_start.h: Likewise.
10865         * lib/unictype/pr_zero_width.h: Likewise.
10866         * lib/unictype/scripts.h: Likewise.
10867         * lib/unictype/scripts_byname.gperf: Likewise.
10868         * lib/unictype/sy_java_ident.h: Likewise.
10869         * lib/unigbrk/gbrkprop.h: Likewise.
10870         * lib/unilbrk/lbrkprop1.h: Likewise.
10871         * lib/unilbrk/lbrkprop2.h: Likewise.
10872         * lib/unilbrk/lbrktables.h: Likewise.
10873         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10874         LBP_CP. Implement rule LB30.
10875         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10876         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10877         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10878         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10879         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10880         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10881         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10882         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10883         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10884         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10885         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10886         bits instead of 16 bits in the code1 and code2 of each composition
10887         rule.
10888         (uc_composition): Update for Unicode 5.2.0.
10889         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10890         * lib/uninorm/decomposition-table2.h: Likewise.
10891         * lib/uniwbrk/wbrkprop.h: Likewise.
10892         * tests/unicase/test-cased.c: Likewise.
10893         * tests/unicase/test-ignorable.c: Likewise.
10894         * tests/unicase/test-uc_tolower.c: Likewise.
10895         * tests/unicase/test-uc_totitle.c: Likewise.
10896         * tests/unicase/test-uc_toupper.c: Likewise.
10897         * tests/unictype/test-categ_C.c: Likewise.
10898         * tests/unictype/test-categ_Cf.c: Likewise.
10899         * tests/unictype/test-categ_Cn.c: Likewise.
10900         * tests/unictype/test-categ_L.c: Likewise.
10901         * tests/unictype/test-categ_Ll.c: Likewise.
10902         * tests/unictype/test-categ_Lm.c: Likewise.
10903         * tests/unictype/test-categ_Lo.c: Likewise.
10904         * tests/unictype/test-categ_Lu.c: Likewise.
10905         * tests/unictype/test-categ_M.c: Likewise.
10906         * tests/unictype/test-categ_Mc.c: Likewise.
10907         * tests/unictype/test-categ_Mn.c: Likewise.
10908         * tests/unictype/test-categ_N.c: Likewise.
10909         * tests/unictype/test-categ_Nd.c: Likewise.
10910         * tests/unictype/test-categ_Nl.c: Likewise.
10911         * tests/unictype/test-categ_No.c: Likewise.
10912         * tests/unictype/test-categ_P.c: Likewise.
10913         * tests/unictype/test-categ_Pd.c: Likewise.
10914         * tests/unictype/test-categ_Po.c: Likewise.
10915         * tests/unictype/test-categ_S.c: Likewise.
10916         * tests/unictype/test-categ_Sc.c: Likewise.
10917         * tests/unictype/test-categ_So.c: Likewise.
10918         * tests/unictype/test-ctype_alnum.c: Likewise.
10919         * tests/unictype/test-ctype_alpha.c: Likewise.
10920         * tests/unictype/test-ctype_graph.c: Likewise.
10921         * tests/unictype/test-ctype_lower.c: Likewise.
10922         * tests/unictype/test-ctype_print.c: Likewise.
10923         * tests/unictype/test-ctype_punct.c: Likewise.
10924         * tests/unictype/test-ctype_upper.c: Likewise.
10925         * tests/unictype/test-decdigit.h: Likewise.
10926         * tests/unictype/test-digit.h: Likewise.
10927         * tests/unictype/test-numeric.h: Likewise.
10928         * tests/unictype/test-pr_alphabetic.c: Likewise.
10929         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10930         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10931         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10932         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10933         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10934         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10935         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10936         * tests/unictype/test-pr_combining.c: Likewise.
10937         * tests/unictype/test-pr_composite.c: Likewise.
10938         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10939         * tests/unictype/test-pr_dash.c: Likewise.
10940         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10941         * tests/unictype/test-pr_deprecated.c: Likewise.
10942         * tests/unictype/test-pr_diacritic.c: Likewise.
10943         * tests/unictype/test-pr_extender.c: Likewise.
10944         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10945         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10946         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10947         * tests/unictype/test-pr_id_continue.c: Likewise.
10948         * tests/unictype/test-pr_id_start.c: Likewise.
10949         * tests/unictype/test-pr_ideographic.c: Likewise.
10950         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10951         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10952         * tests/unictype/test-pr_lowercase.c: Likewise.
10953         * tests/unictype/test-pr_numeric.c: Likewise.
10954         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10955         * tests/unictype/test-pr_punctuation.c: Likewise.
10956         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10957         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10958         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10959         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10960         * tests/unictype/test-pr_uppercase.c: Likewise.
10961         * tests/unictype/test-pr_xid_continue.c: Likewise.
10962         * tests/unictype/test-pr_xid_start.c: Likewise.
10963         * tests/unictype/test-pr_zero_width.c: Likewise.
10964         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10965         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10966         changed behaviour: line breaking is now disallowed between a letter
10967         or '=' and '('.
10968         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10969         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10970         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10971         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10972         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10973         lib/uniwidth/width.c.
10974         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10975         without comments, but with the original copyright notice.
10976         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10977         changes.
10978         * lib/unictype/categ_Cc.h: Likewise.
10979         * lib/unictype/categ_Co.h: Likewise.
10980         * lib/unictype/categ_Cs.h: Likewise.
10981         * lib/unictype/categ_Lt.h: Likewise.
10982         * lib/unictype/categ_Me.h: Likewise.
10983         * lib/unictype/categ_Pc.h: Likewise.
10984         * lib/unictype/categ_Pe.h: Likewise.
10985         * lib/unictype/categ_Pf.h: Likewise.
10986         * lib/unictype/categ_Pi.h: Likewise.
10987         * lib/unictype/categ_Ps.h: Likewise.
10988         * lib/unictype/categ_Sk.h: Likewise.
10989         * lib/unictype/categ_Sm.h: Likewise.
10990         * lib/unictype/categ_Z.h: Likewise.
10991         * lib/unictype/categ_Zl.h: Likewise.
10992         * lib/unictype/categ_Zp.h: Likewise.
10993         * lib/unictype/categ_Zs.h: Likewise.
10994         * lib/unictype/ctype_blank.h: Likewise.
10995         * lib/unictype/ctype_cntrl.h: Likewise.
10996         * lib/unictype/ctype_digit.h: Likewise.
10997         * lib/unictype/ctype_space.h: Likewise.
10998         * lib/unictype/ctype_xdigit.h: Likewise.
10999         * lib/unictype/mirror.h: Likewise.
11000         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11001         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11002         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11003         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11004         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11005         * lib/unictype/pr_bidi_control.h: Likewise.
11006         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11007         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11008         * lib/unictype/pr_bidi_pdf.h: Likewise.
11009         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11010         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11011         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11012         * lib/unictype/pr_format_control.h: Likewise.
11013         * lib/unictype/pr_hex_digit.h: Likewise.
11014         * lib/unictype/pr_hyphen.h: Likewise.
11015         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11016         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11017         * lib/unictype/pr_iso_control.h: Likewise.
11018         * lib/unictype/pr_join_control.h: Likewise.
11019         * lib/unictype/pr_left_of_pair.h: Likewise.
11020         * lib/unictype/pr_line_separator.h: Likewise.
11021         * lib/unictype/pr_math.h: Likewise.
11022         * lib/unictype/pr_non_break.h: Likewise.
11023         * lib/unictype/pr_not_a_character.h: Likewise.
11024         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11025         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11026         * lib/unictype/pr_other_id_continue.h: Likewise.
11027         * lib/unictype/pr_other_id_start.h: Likewise.
11028         * lib/unictype/pr_other_lowercase.h: Likewise.
11029         * lib/unictype/pr_other_math.h: Likewise.
11030         * lib/unictype/pr_other_uppercase.h: Likewise.
11031         * lib/unictype/pr_paired_punctuation.h: Likewise.
11032         * lib/unictype/pr_paragraph_separator.h: Likewise.
11033         * lib/unictype/pr_pattern_syntax.h: Likewise.
11034         * lib/unictype/pr_pattern_white_space.h: Likewise.
11035         * lib/unictype/pr_private_use.h: Likewise.
11036         * lib/unictype/pr_quotation_mark.h: Likewise.
11037         * lib/unictype/pr_radical.h: Likewise.
11038         * lib/unictype/pr_soft_dotted.h: Likewise.
11039         * lib/unictype/pr_space.h: Likewise.
11040         * lib/unictype/pr_titlecase.h: Likewise.
11041         * lib/unictype/pr_variation_selector.h: Likewise.
11042         * lib/unictype/pr_white_space.h: Likewise.
11043         * lib/unictype/sy_c_ident.h: Likewise.
11044         * lib/unictype/sy_c_whitespace.h: Likewise.
11045         * lib/unictype/sy_java_whitespace.h: Likewise.
11046         * modules/uni*/*: Bump version number of expected libunistring version.
11047         Reported by Simon Josefsson.
11048
11049 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11050
11051         useless-if-before-free: fix typo in --help and make the internal,
11052         automatic version date update process work once again.
11053         --help output contained a NUL character instead of the
11054         backslash-zero that was intended.  Also, the "must lie within
11055         the first 8 lines" line is on line 9, and hence not getting
11056         automatically updated.
11057         * build-aux/useless-if-before-free: Fix the former by adding a
11058         backslash, and the latter by condensing the three lines of what-it-does
11059         to a single line, leaving one line of slack for the future.
11060
11061 2011-01-09  Bruno Haible  <bruno@clisp.org>
11062
11063         uniwidth/width: Fix width of U+1D173..U+1D17A.
11064         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11065         symbolic_width, output_width_property_test): New functions.
11066         (main): Invoke output_nonspacing_property, output_width_property_test.
11067         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11068         U+1D173..U+1D17A.
11069         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11070         1.
11071         * modules/uniwidth/*: Bump version number of expected libunistring
11072         version.
11073         * modules/unilbrk/*: Likewise.
11074
11075 2011-01-08  Bruno Haible  <bruno@clisp.org>
11076
11077         uninorm tests: Preserve copyright of Unicode data file.
11078         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11079         Mention modifications.
11080
11081 2011-01-08  Bruno Haible  <bruno@clisp.org>
11082
11083         gen-uni-tables: Prepare for Unicode 5.2.0.
11084         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11085         (debug_output_lbp, output_lbp): Update.
11086
11087 2011-01-08  Bruno Haible  <bruno@clisp.org>
11088
11089         unilbrk: Clarify gen-uni-tables.c code.
11090         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11091         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11092         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11093
11094 2011-01-07  Bruno Haible  <bruno@clisp.org>
11095
11096         strtod: Restore errno when successfully parsing Infinity or NaN.
11097         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11098         restore the original errno.
11099
11100 2011-01-07  Bruno Haible  <bruno@clisp.org>
11101
11102         remove test: Avoid failure on HP-UX 11.
11103         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11104
11105 2011-01-07  Bruno Haible  <bruno@clisp.org>
11106
11107         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11108         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11109         error code.
11110
11111 2011-01-07  Pádraig Brady <P@draigBrady.com>
11112
11113         ignore-value: fixup comments, and add Eric Blake
11114         as an author since he rewrote the macros.
11115         * lib/ignore-value.h (ignore_value):  State that
11116         we now support aggregates.  Also specify exactly
11117         when the GCC warn_unused_result feature was added.
11118
11119 2011-01-06  Eric Blake  <eblake@redhat.com>
11120
11121         ignore-value: support aggregate types
11122         * lib/ignore-value.h (ignore_value): Provide separate gcc
11123         definition.
11124         * modules/ignore-value-tests: New test module.
11125         * tests/test-ignore-value.c: New test.
11126
11127         maint.mk: improve sc_prohibit_strcmp regex
11128         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11129         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11130         definition of STRNEQ.
11131
11132         signal: work around Haiku issue with SIGBUS
11133         * lib/siglist.h: Add comment.
11134         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11135         strsignal's favoring of SIGSEGV.
11136         * tests/test-signal.c (main): Avoid test failure.
11137         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11138         Reported by Scott McCreary.
11139
11140         maint.mk: add pre-release check to ensure submodule commits are public
11141         * top/maint.mk (public-submodule-commit): New rule.
11142         (submodule-checks): New variable.
11143         (alpha beta stable): Depend on the variable.
11144
11145 2011-01-05  Pádraig Brady <P@draigBrady.com>
11146         and Jim Meyering  <meyering@redhat.com>
11147
11148         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11149         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11150         (ATTRIBUTE_DEPRECATED): Define.
11151         (_ignore_case): New function.
11152         (ignore_value): New macro, to replace the old function.
11153         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11154         * modules/ignore-value (Depends-on): Add stdint.
11155
11156 2011-01-04  Eric Blake  <eblake@redhat.com>
11157
11158         doc: regenerate INSTALL
11159         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11160         @firstparagraphindent support, now that autoconf dropped it.
11161         (INSTALL_PRELUDE): Reinstate old macro.
11162         * doc/install.texi: Resync from autoconf.
11163         * doc/INSTALL: Reflect recent autoconf update.
11164         * doc/INSTALL.ISO: Likewise.
11165         * doc/INSTALL.UTF-8: Likewise.
11166         Reported by Karl Berry.
11167
11168 2011-01-04  Bruce Korb  <address@hidden>
11169
11170         git-version-gen: avoid a sub-shell
11171         * build-aux/git-version-gen: Redirect stderr in `...` via
11172         "exec 2>...", rather than via an added sub-shell.
11173
11174 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11175
11176         git-version-gen: use (...) rather than sh -c '...'
11177         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11178         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11179
11180 2011-01-03  Jim Meyering  <meyering@redhat.com>
11181
11182         git-version-gen: convert leading TABs to spaces
11183         * build-aux/git-version-gen: Expand leading TABs.
11184
11185         git-version-gen: handle failed "git rev-list"
11186         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11187         from git and proceeding as if it had succeeded but printed no SHA1
11188         checksums, suppress the diagnostic and handle the failure.
11189         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11190
11191         git-version-gen: include command name in one more diagnostic
11192         * build-aux/git-version-gen: When the required .tarball-version file
11193         was missing or unreadable, you might see the diagnostic from "cat",
11194         but no trace of the name of the invoking script.  Now, you still see
11195         the diagnostic from cat, but also get one from "git-version-gen: ".
11196         Inspired by a patch from Bruce Korb.
11197
11198         update-copyright: adjust test to match changed code
11199         * tests/test-update-copyright.sh: Change test's expected output
11200         to match new actual output.
11201
11202 2011-01-02  Bruno Haible  <bruno@clisp.org>
11203
11204         getlogin_r: Avoid test failure on HP-UX 11.
11205         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11206         ERANGE when the second argument is zero.
11207         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11208         portability problem.
11209
11210 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11211
11212         * build-aux/update-copyright: doc Simon's changes
11213
11214 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11215
11216         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11217         environment variable.
11218
11219 2011-01-02  Bruno Haible  <bruno@clisp.org>
11220
11221         unigbrk: Avoid gcc warnings.
11222         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11223         unused variable.
11224         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11225         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11226         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11227         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11228         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11229         Change type of first argument to 'const char *'.
11230         (main): Remove unused variable.
11231         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11232         type of first argument to 'const char *'.
11233         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11234         Likewise.
11235         (main): Change type of variable 's'.
11236         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11237         to 'int'.
11238
11239 2011-01-02  Bruno Haible  <bruno@clisp.org>
11240
11241         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11242         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11243         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11244         bug.
11245         * lib/pwrite.c: Undo 2010-12-31 patch.
11246         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11247
11248 2011-01-02  Bruno Haible  <bruno@clisp.org>
11249
11250         pread: Fix test whether it works.
11251         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11252
11253 2011-01-02  Bruno Haible  <bruno@clisp.org>
11254
11255         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11256         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11257         ends in "6". Don't require a specific month name. Try also the locale
11258         names found on HP-UX 11 and Solaris 7.
11259
11260 2011-01-02  Bruno Haible  <bruno@clisp.org>
11261
11262         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11263         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11264         C linkage.
11265         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11266
11267 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11268
11269         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11270         for consistency, since the "cluster" term is not used elsewhere.
11271         * lib/unigbrk.in.h: Update name.
11272         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11273         * lib/unigbrk/u16-grapheme-next.c: Update name.
11274         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11275         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11276         * lib/unigbrk/u32-grapheme-next.c: Update name.
11277         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11278         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11279         * lib/unigbrk/u8-grapheme-next.c: Update name.
11280         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11281         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11282         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11283         Suggested by Bruno Haible.
11284
11285 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11286
11287         Remove module 'u8-grapheme-len' as too redundant with
11288         'u8-grapheme-next'.
11289         * modules/unigbrk/u8-grapheme-len: Delete file.
11290         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11291         * lib/unigbrk.in.h: Remove prototype for deleted function.
11292         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11293         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11294
11295         Remove module 'u16-grapheme-len' as too redundant with
11296         'u16-grapheme-next'.
11297         * modules/unigbrk/u16-grapheme-len: Delete file.
11298         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11299         * lib/unigbrk.in.h: Remove prototype for deleted function.
11300         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11301         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11302
11303         Remove module 'u32-grapheme-len' as too redundant with
11304         'u32-grapheme-next'.
11305         * modules/unigbrk/u32-grapheme-len: Delete file.
11306         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11307         * lib/unigbrk.in.h: Remove prototype for deleted function.
11308         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11309         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11310
11311         Suggested by Bruno Haible.
11312
11313 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11314
11315         * unigbrk.in.h: Fix typo: "ben" => "been".
11316         Reported by Bruno Haible.
11317
11318 2011-01-01  Jim Meyering  <meyering@redhat.com>
11319
11320         maint: update almost all copyright ranges to include 2011
11321         Run the new "make update-copyright" rule.
11322
11323 2011-01-01  Jim Meyering  <meyering@redhat.com>
11324
11325         maint: update-copyright: exempt doc/INSTALL*
11326         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11327         since they are generated.  Suggested by Bruno Haible.
11328
11329 2011-01-01  Jim Meyering  <meyering@redhat.com>
11330
11331         maint: refine the update-copyright rule
11332         * Makefile (update-copyright): Also exclude any file that includes
11333         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11334         code that merely generates the comment.
11335
11336 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11337
11338         New module 'u8-grapheme-len'.
11339         * modules/unigbrk/u8-grapheme-len: New file.
11340         * modules/unigbrk/u8-grapheme-len-tests: New file.
11341         * lib/unigbrk.in.h: Add prototype for new function.
11342         * lib/unigbrk/u8-grapheme-len.c: New file.
11343         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11344
11345         New module 'u16-grapheme-len'.
11346         * modules/unigbrk/u16-grapheme-len: New file.
11347         * modules/unigbrk/u16-grapheme-len-tests: New file.
11348         * lib/unigbrk.in.h: Add prototype for new function.
11349         * lib/unigbrk/u16-grapheme-len.c: New file.
11350         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11351
11352         New module 'u32-grapheme-len'.
11353         * modules/unigbrk/u32-grapheme-len: New file.
11354         * modules/unigbrk/u32-grapheme-len-tests: New file.
11355         * lib/unigbrk.in.h: Add prototype for new function.
11356         * lib/unigbrk/u32-grapheme-len.c: New file.
11357         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11358
11359         New module 'u8-grapheme-next'.
11360         * modules/unigbrk/u8-grapheme-next: New file.
11361         * modules/unigbrk/u8-grapheme-next-tests: New file.
11362         * lib/unigbrk.in.h: Add prototype for new function.
11363         * lib/unigbrk/u8-grapheme-next.c: New file.
11364         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11365
11366         New module 'u16-grapheme-next'.
11367         * modules/unigbrk/u16-grapheme-next: New file.
11368         * modules/unigbrk/u16-grapheme-next-tests: New file.
11369         * lib/unigbrk.in.h: Add prototype for new function.
11370         * lib/unigbrk/u16-grapheme-next.c: New file.
11371         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11372
11373         New module 'u32-grapheme-next'.
11374         * modules/unigbrk/u32-grapheme-next: New file.
11375         * modules/unigbrk/u32-grapheme-next-tests: New file.
11376         * lib/unigbrk.in.h: Add prototype for new function.
11377         * lib/unigbrk/u32-grapheme-next.c: New file.
11378         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11379
11380         New module 'u8-grapheme-prev'.
11381         * modules/unigbrk/u8-grapheme-prev: New file.
11382         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11383         * lib/unigbrk.in.h: Add prototype for new function.
11384         * lib/unigbrk/u8-grapheme-prev.c: New file.
11385         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11386
11387         New module 'u16-grapheme-prev'.
11388         * modules/unigbrk/u16-grapheme-prev: New file.
11389         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11390         * lib/unigbrk.in.h: Add prototype for new function.
11391         * lib/unigbrk/u16-grapheme-prev.c: New file.
11392         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11393
11394         New module 'u32-grapheme-prev'.
11395         * modules/unigbrk/u32-grapheme-prev: New file.
11396         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11397         * lib/unigbrk.in.h: Add prototype for new function.
11398         * lib/unigbrk/u32-grapheme-prev.c: New file.
11399         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11400
11401         New module 'u8-grapheme-breaks'.
11402         * modules/unigbrk/u8-grapheme-breaks: New file.
11403         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11404         * lib/unigbrk.in.h: Add prototype for new function.
11405         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11406         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11407
11408         New module 'u16-grapheme-breaks'.
11409         * modules/unigbrk/u16-grapheme-breaks: New file.
11410         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11411         * lib/unigbrk.in.h: Add prototype for new function.
11412         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11413         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11414
11415         New module 'u32-grapheme-breaks'.
11416         * modules/unigbrk/u32-grapheme-breaks: New file.
11417         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11418         * lib/unigbrk.in.h: Add prototype for new function.
11419         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11420         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11421
11422         New module 'ulc-grapheme-breaks'.
11423         * modules/unigbrk/ulc-grapheme-breaks: New file.
11424         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11425         * m4/locale-ar.m4: New file.
11426         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11427         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11428         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11429
11430 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11431
11432         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11433         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11434         modified how this file was generated before I initially submitted
11435         the module, but failed to regenerate it.  This meant that several
11436         of the level2 entries were wrong.
11437         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11438         Remove the division-by-2 that is folded into the table now that
11439         gbrkprop.h has been regenerated properly.  Now -1 entries are
11440         handled correctly.
11441
11442         New module 'unigbrk/uc-gbrk-prop-tests'.
11443         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11444         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11445         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11446         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11447
11448 2011-01-01  Bruno Haible  <bruno@clisp.org>
11449
11450         Avoid use of hexadecimal escapes.
11451         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11452         instead of hexadecimal escapes.
11453
11454 2011-01-01  Jim Meyering  <meyering@redhat.com>
11455
11456         maint: new rule to update copyright year ranges
11457         * Makefile (update-copyright): New rule.
11458
11459         maint: indent with TABs in Makefile
11460         * Makefile: Expand leading sequences of spaces to TABs
11461
11462         version-etc: update the copyright year it reports
11463         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11464
11465 2010-12-31  Bruno Haible  <bruno@clisp.org>
11466
11467         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11468         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11469         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11470         zero.
11471
11472 2010-12-31  Bruno Haible  <bruno@clisp.org>
11473
11474         pwrite: Work around HP-UX 11.11 bug.
11475         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11476         works and set REPLACE_PWRITE if not.
11477         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11478         function.
11479         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11480
11481 2010-12-31  Bruno Haible  <bruno@clisp.org>
11482
11483         pread: Work around HP-UX 11 bugs.
11484         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11485         and set REPLACE_PREAD if not.
11486         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11487
11488 2010-12-31  Eric Blake  <eblake@redhat.com>
11489
11490         nl_langinfo: fix YESEXPR on Irix 6.5
11491         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11492         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11493         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11494         it.
11495
11496 2010-12-31  Bruno Haible  <bruno@clisp.org>
11497
11498         iconv: Document HP-UX 11 bug.
11499         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11500
11501 2010-12-31  Bruno Haible  <bruno@clisp.org>
11502
11503         ldexpl: Fix link error on HP-UX 11.
11504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11505         LDEXPL_LIBM, using $ISNANL_LIBM.
11506
11507 2010-12-31  Eric Blake  <eblake@redhat.com>
11508
11509         ftello: avoid compilation failure with SunStudio c89
11510         * lib/ftello.c (ftello): Use lseek, not llseek.
11511
11512         tests: avoid failing coreutils tests on cygwin
11513         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11514         (create_exe_shims_): Return 0 when skipping.
11515
11516 2010-12-31  Bruno Haible  <bruno@clisp.org>
11517
11518         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11519         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11520
11521 2010-12-31  Bruno Haible  <bruno@clisp.org>
11522
11523         waitpid: Fix link error in C++ mode.
11524         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11525
11526 2010-12-31  Bruno Haible  <bruno@clisp.org>
11527
11528         isnan: Use GCC built-ins when possible.
11529         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11530         __builtin_isnan.
11531         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11532         (isnan): Define using GCC built-ins for GCC >= 4.0.
11533
11534 2010-12-31  Bruno Haible  <bruno@clisp.org>
11535
11536         isnand: Fix mistake.
11537         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11538         __builtin_isnand.
11539
11540 2010-12-31  Bruno Haible  <bruno@clisp.org>
11541
11542         open: Avoid C++ error on HP-UX 11.
11543         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11544
11545 2010-12-31  Bruno Haible  <bruno@clisp.org>
11546
11547         time_r: Add missing declarations on HP-UX 11.
11548         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11549         instead of HAVE_LOCALTIME_R.
11550         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11551         HAVE_LOCALTIME_R always.
11552         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11553         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11554         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11555         HAVE_LOCALTIME_R.
11556         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11557         * doc/posix-functions/localtime_r.texi: Likewise.
11558
11559 2010-12-29  Eric Blake  <eblake@redhat.com>
11560
11561         mountlist: tweak previous commit
11562         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11563         Reported by Paul Eggert.
11564
11565         mountlist: fix local drive detection on cygwin
11566         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11567         that works for cygwin.
11568
11569 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11570
11571         ftoastr, snprintf: ftoastr + snprintf module
11572         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11573         since the snprintf module now should be good enough here.
11574         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11575         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11576         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11577         GNULIB_SNPRINTF only for the test directory, and the latter
11578         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11579         seems to suffice by itself.
11580
11581 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11582
11583         alloca: one step towards thread-safety
11584         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11585         need for a static variable.  All callers changed.  This does not
11586         make the alloca replacement thread-safe, but it's one step.
11587
11588         tests: minor indenting change
11589         * tests/init.sh: Sync from coreutils housekeeping patch
11590         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11591         to keep lines within 80 columns.
11592
11593 2010-12-28  Jim Meyering  <meyering@redhat.com>
11594
11595         regex: don't infloop on persistent failing calloc
11596         * lib/regexec.c (build_trtable): Return failure indication upon
11597         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11598         In glibc, this was fixed for version 2.13:
11599         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11600
11601 2010-12-28  Bruno Haible  <bruno@clisp.org>
11602             Paul Eggert <eggert@cs.ucla.edu>
11603
11604         linkat: Make implementation robust against system behaviour variations.
11605         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11606         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11607         way, and to -2 if it needs a generic runtime test.
11608         * lib/linkat.c (solaris_optimized_link_immediate,
11609         solaris_optimized_link_follow): New functions.
11610         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11611         (check_same_link): Use it.
11612
11613 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11614
11615         New module 'unigbrk/base'.
11616         * modules/unigbrk/base: New file.
11617         * lib/unigbrk.in.h: New file.
11618
11619         New module 'unigbrk/uc-gbrk-prop'.
11620         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11621         * modules/unigbrk/uc-gbrk-prop: New file.
11622         * lib/unigbrk/gbrkprop.h: New file.
11623         * lib/unigbrk/uc-gbrk-prop.c: New file.
11624
11625         New module 'unigbrk/uc-is-grapheme-break'.
11626         * modules/unigbrk/uc-is-grapheme-break: New file.
11627         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11628         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11629         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11630         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11631         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11632
11633         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11634
11635 2010-12-27  Bruno Haible  <bruno@clisp.org>
11636
11637         linkat test: Avoid failure on Solaris 11 2010-11.
11638         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11639
11640 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11641
11642         utimens: work around glibc rounding bug on more platforms
11643         * lib/utimens.c (fdutimens): Work around rounding bug even if
11644         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11646
11647 2010-12-27  Bruno Haible  <bruno@clisp.org>
11648
11649         select tests: Improve comments.
11650         * tests/test-select.c (do_select): Add comments.
11651
11652 2010-12-27  Bruno Haible  <bruno@clisp.org>
11653
11654         select tests: Safer way of handling timeout.
11655         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11656         at every invocation.
11657
11658 2010-12-27  Bruno Haible  <bruno@clisp.org>
11659
11660         select tests: Use 'bool' where appropriate.
11661         * tests/test-select.c (connect_to_socket): Change argument type to
11662         'bool'.
11663
11664 2010-12-27  Bruno Haible  <bruno@clisp.org>
11665
11666         select tests: Use existing modules.
11667         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11668         (configure.ac): Don't test for unistd.h.
11669         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11670         declared in <unistd.h>.
11671
11672 2010-12-27  Bruno Haible  <bruno@clisp.org>
11673
11674         mbrtowc: Work around a Solaris 7 bug.
11675         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11676         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11677         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11678         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11679         MBRTOWC_NULL_ARG1_BUG.
11680         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11681         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11682         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11683         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11684
11685 2010-12-27  Jim Meyering  <meyering@redhat.com>
11686
11687         read-file.c: tweak syntax
11688         * lib/read-file.c (fread_file): Remove space after "*" in function
11689         definitions.
11690
11691 2010-12-27  Bruno Haible  <bruno@clisp.org>
11692
11693         times test: Avoid gcc warnings on OSF/1.
11694         * tests/test-times.c (main): Cast printf arguments from clock_t to
11695         'long int'.
11696
11697 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11698
11699         utimens: work around glibc rounding bug on older Linux kernels
11700         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11701         on Linux with a glibc whose utimes might not work, then work
11702         around a longstanding glibc bug involving rounding rather than
11703         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11705
11706 2010-12-26  Bruno Haible  <bruno@clisp.org>
11707
11708         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11709         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11710         _GL_CXXALIAS_SYS.
11711         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11712
11713 2010-12-26  Bruno Haible  <bruno@clisp.org>
11714
11715         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11716         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11717         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11718         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11719         looking for the declaration.
11720         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11721         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11722         problem.
11723         * doc/posix-functions/inet_pton.texi: Likewise.
11724
11725 2010-12-26  Bruno Haible  <bruno@clisp.org>
11726
11727         arpa_inet: Use the common idioms with C++ support.
11728         * lib/arpa_inet.in.h: Include c++defs.h.
11729         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11730         support.
11731         * modules/arpa_inet (Depends-on): Add c++defs.
11732         (Makefile.am): Substitute the contents of c++defs.h.
11733         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11734         * modules/arpa_inet-c++-tests: New file.
11735         * tests/test-arpa_inet-c++.cc: New file.
11736
11737 2010-12-25  Bruno Haible  <bruno@clisp.org>
11738
11739         Fix more C++ link errors on Solaris 8.
11740         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11741         $(LIB_EACCESS).
11742         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11743         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11744         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11745         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11746         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11747
11748 2010-12-25  Bruno Haible  <bruno@clisp.org>
11749
11750         printf-posix: Fix link error when a non-GCC compiler is used.
11751         * lib/stdio.in.h (printf): When not using GCC, override printf
11752         correctly.
11753         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11754
11755 2010-12-25  Bruno Haible  <bruno@clisp.org>
11756
11757         strerror_r-posix: Update doc.
11758         * doc/posix-functions/strerror_r.texi: Update doc about the return
11759         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11760
11761 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         utimens: simplify the logic of the previous change
11764         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11765         This should not affect whether the test succeeds or fails.
11766
11767         utimens: configure better on hosts with NFS clock skew
11768         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11769         uses the clock of the local host.  It might use the clock of the
11770         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11772
11773 2010-12-25  Bruno Haible  <bruno@clisp.org>
11774
11775         ptsname test: Avoid failure on Solaris.
11776         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11777         open a pseudo-terminal; don't use BSD-style ptys.
11778         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11779
11780 2010-12-25  Bruno Haible  <bruno@clisp.org>
11781
11782         ptsname: Avoid ERANGE failure on some systems.
11783         * lib/ptsname.c (buffer): Increase size.
11784
11785 2010-12-25  Bruno Haible  <bruno@clisp.org>
11786
11787         rename, renameat: Avoid test failures at NFS mounted locations.
11788         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11789         so that subsequent mkdir calls succeed.
11790
11791 2010-12-25  Bruno Haible  <bruno@clisp.org>
11792
11793         iswblank: Fix C++ link error on Solaris 8.
11794         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11795         _GL_FUNCDECL_SYS.
11796
11797 2010-12-25  Bruno Haible  <bruno@clisp.org>
11798
11799         unistd: Fix C++ link error on Solaris 8.
11800         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11801
11802 2010-12-25  Bruno Haible  <bruno@clisp.org>
11803
11804         readlink doc: Mention an old glibc bug.
11805         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11806
11807 2010-12-25  Bruno Haible  <bruno@clisp.org>
11808
11809         fcntl-h: Fix for use of C++ on glibc systems.
11810         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11811         also on glibc systems in C++ mode.
11812         Reported by Gary V. Vaughan <gary@gnu.org>.
11813
11814 2010-12-25  Bruno Haible  <bruno@clisp.org>
11815
11816         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11817         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11818
11819 2010-12-25  Bruno Haible  <bruno@clisp.org>
11820
11821         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11822         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11823         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11824         test whether truncl works according to ISO C 99 with IEC 60559.
11825         * m4/truncl-ieee.m4: New file.
11826         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11827         m4/signbit.m4.
11828         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11829
11830 2010-12-25  Bruno Haible  <bruno@clisp.org>
11831
11832         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11833         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11834         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11835         test whether ceill works according to ISO C 99 with IEC 60559.
11836         * m4/ceill-ieee.m4: New file.
11837         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11838         m4/signbit.m4.
11839         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11840
11841 2010-12-25  Bruno Haible  <bruno@clisp.org>
11842
11843         Ensure all prerequisites of <wchar.h> are included.
11844         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11845         before <wchar.h>.
11846         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11847         gl_MBRLEN_NUL_RETVAL): Likewise.
11848         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11849         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11850         AC_FUNC_MBRTOWC): Likewise.
11851         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11852         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11853         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11854         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11855         Likewise.
11856         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11857         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11858         (gl_WCHAR_H): Improve comments.
11859         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11860
11861 2010-12-25  Bruno Haible  <bruno@clisp.org>
11862
11863         strtok_r: Fix C syntax error in autoconf macro.
11864         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11865         characters in test program.
11866
11867 2010-12-24  Bruno Haible  <bruno@clisp.org>
11868
11869         ceil, trunc, round: Fix gcc warnings.
11870         * lib/ceil.c (MIN): Undefine before redefining.
11871         * lib/trunc.c (MIN): Likewise.
11872         * lib/round.c (MIN): Likewise.
11873         Include <math.h> first.
11874
11875 2010-12-24  Bruno Haible  <bruno@clisp.org>
11876
11877         select tests: Avoid failures on OSF/1 5.1.
11878         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11879         failure of closing the last socket; it may fail with ECONNRESET.
11880
11881 2010-12-24  Eric Blake  <eblake@redhat.com>
11882
11883         stdint: avoid HP-UX 10.20 preprocessor bug
11884         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11885         than #if.
11886         * tests/test-floor2.c (main): Likewise.
11887         Reported by Peter O'Gorman.
11888
11889         pipe: make obsoletion transition easier
11890         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11891         * modules/pipe (Files): Include revived file.
11892         (Include): Drop reference, to mirror getdate's behavior.
11893
11894 2010-12-24  Bruno Haible  <bruno@clisp.org>
11895
11896         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11897         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11898         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11899         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11900
11901 2010-12-24  Bruno Haible  <bruno@clisp.org>
11902
11903         gethostname: Ensure declaration on NonStop Kernel.
11904         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11905         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11906
11907 2010-12-24  Bruno Haible  <bruno@clisp.org>
11908
11909         sys_select: Ensure all necessary types on NonStop Kernel.
11910         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11911         include <sys/time.h>.
11912         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11913         NonStop Kernel.
11914         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11915
11916 2010-12-24  Bruno Haible  <bruno@clisp.org>
11917
11918         sys_select: Remove unneeded include.
11919         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11920         have <sys/select.h>.
11921
11922 2010-12-24  Bruno Haible  <bruno@clisp.org>
11923
11924         gethostname: Provide a fallback for HOST_NAME_MAX.
11925         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11926         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11927         instead.
11928         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11929
11930 2010-12-24  Bruno Haible  <bruno@clisp.org>
11931
11932         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11933         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11934         (SA_RESTART): Likewise.
11935         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11936
11937 2010-12-24  Bruno Haible  <bruno@clisp.org>
11938
11939         signal: Define NSIG.
11940         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11941         * tests/test-signal.c (nsig): New variable.
11942         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11943
11944 2010-12-24  Bruno Haible  <bruno@clisp.org>
11945
11946         rename, renameat: Avoid test failures on OSF/1 5.1.
11947         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11948         alternative error codes.
11949         * tests/test-renameat.c (main): Likewise.
11950
11951 2010-12-24  Bruno Haible  <bruno@clisp.org>
11952
11953         *printf: Detect large precisions bug on Solaris 10/SPARC.
11954         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11955         by Paul Eggert.
11956         * tests/test-snprintf-posix.h (test_function): Add this test code here
11957         too.
11958         * tests/test-sprintf-posix.h (test_function): Likewise.
11959         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11960         * tests/test-vasprintf-posix.c (test_function): Likewise.
11961         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11962         around by gnulib.
11963         * doc/posix-functions/printf.texi: Likewise.
11964         * doc/posix-functions/snprintf.texi: Likewise.
11965         * doc/posix-functions/sprintf.texi: Likewise.
11966         * doc/posix-functions/vfprintf.texi: Likewise.
11967         * doc/posix-functions/vprintf.texi: Likewise.
11968         * doc/posix-functions/vsnprintf.texi: Likewise.
11969         * doc/posix-functions/vsprintf.texi: Likewise.
11970         * doc/posix-functions/dprintf.texi: Undo last commit.
11971         * doc/posix-functions/vdprintf.texi: Likewise.
11972
11973 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11974
11975         tests: port test-fdutimensat.c to Solaris 8
11976         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11977         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11978         On Solaris 8, it fails with errno == ENOSYS, because there is no
11979         futimens (so it can't use the fd), and there is no lutimens (so it
11980         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11981
11982         vsnprintf: make more consistent with snprintf; doc fixes
11983
11984         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11985         the byte count return problem was promoted from the snprintf-posix
11986         to the snprintf module.
11987         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11988         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11989         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11990         * tests/test-snprintf.c (main): Check the byte count returned.
11991         * tests/test-vsnprintf.c (main): Likewise.
11992
11993 2010-12-23  Eric Blake  <eblake@redhat.com>
11994
11995         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11996         * modules/sigpipe (License): Relax license.
11997
11998 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11999
12000         doc: document Solaris printf bug with large float precisions
12001         * doc/posix-functions/dprintf.texi (dprintf):
12002         * doc/posix-functions/fprintf.texi (fprintf):
12003         * doc/posix-functions/printf.texi (printf):
12004         * doc/posix-functions/snprintf.texi (snprintf):
12005         * doc/posix-functions/sprintf.texi (sprintf):
12006         * doc/posix-functions/vdprintf.texi (vdprintf):
12007         * doc/posix-functions/vfprintf.texi (vfprintf):
12008         * doc/posix-functions/vprintf.texi (vprintf):
12009         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12010         * doc/posix-functions/vsprintf.texi (vsprintf):
12011         Mention that these functions mishandle large floating point
12012         precisions on Solaris 10.  The same bug is also present in Solaris
12013         8, and I assume earlier.  This causes "cd gnulib-tests; make
12014         check" to fail on Solaris 8 (and I assume, later) when building
12015         the latest coreutils, in test-vasprintf-posix's call to
12016         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12017         the wide flavors (e.g., wprintf) so this patch just updates the
12018         documentation for the narrow ones.
12019
12020         test-posixtm.c: add two tests
12021         * tests/test-posixtm.c: Add two tests, to highlight the
12022         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12023         around this bug; this is merely to document it.
12024
12025 2010-12-22  Bruno Haible  <bruno@clisp.org>
12026
12027         getlogin_r: Work around portability problem on OSF/1.
12028         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12029         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12030         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12031         test for a truncated result.
12032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12033         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12034         * modules/getlogin_r (Depends-on): Add memchr.
12035         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12036
12037 2010-12-22  Bruno Haible  <bruno@clisp.org>
12038
12039         ptsname: Avoid test failure on OSF/1 5.1.
12040         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12041         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12042         (same_slave): New function.
12043         (main): Use it to compare ptsname's result with the expected file name.
12044
12045 2010-12-22  Bruno Haible  <bruno@clisp.org>
12046
12047         Port extended stdio modules to HP NonStop Kernel.
12048         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12049         macros.
12050         * lib/fbufmode.c: Update comments.
12051         * lib/fflush.c: Likewise.
12052         * lib/fpurge.c: Likewise.
12053         * lib/freadable.c: Likewise.
12054         * lib/freadahead.c: Likewise.
12055         * lib/freading.c: Likewise.
12056         * lib/freadptr.c: Likewise.
12057         * lib/freadseek.c: Likewise.
12058         * lib/fseeko.c: Likewise.
12059         * lib/fseterr.c: Likewise.
12060         * lib/fwritable.c: Likewise.
12061         * lib/fwriting.c: Likewise.
12062         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12063
12064 2010-12-22  Bruno Haible  <bruno@clisp.org>
12065
12066         ttyname_r: Work around bug on OSF/1 5.1.
12067         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12068         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12069         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12070         present.
12071         * lib/ttyname_r.c (ttyname_r): Update comments.
12072
12073 2010-12-22  Bruno Haible  <bruno@clisp.org>
12074
12075         round: Implement result sign according to IEEE 754.
12076         * lib/round.c (MIN, MINUS_ZERO): New macros.
12077         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12078         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12079         * tests/test-round-ieee.c (main): Likewise.
12080         * tests/test-roundl-ieee.c (main): Likewise.
12081
12082         trunc: Implement result sign according to IEEE 754.
12083         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12084         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12085         * tests/test-trunc2.c: Include minus-zero.h.
12086         (MINUS_ZERO): New macro.
12087         (trunc_reference): Keep in sync with lib/trunc.c.
12088         * tests/test-truncf2.c: Include minus-zero.h.
12089         (MINUS_ZERO): New macro.
12090         (truncf_reference): Keep in sync with lib/trunc.c.
12091         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12092         * tests/test-trunc-ieee.c (main): Likewise.
12093         * tests/test-truncl-ieee.c (main): Likewise.
12094
12095         ceil: Implement result sign according to IEEE 754.
12096         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12097         (FUNC): Return -0.0 for -1 < x < 0.
12098         * tests/test-ceil2.c: Include minus-zero.h.
12099         (MINUS_ZERO): New macro.
12100         (ceil_reference): Keep in sync with lib/ceil.c.
12101         * tests/test-ceilf2.c: Include minus-zero.h.
12102         (MINUS_ZERO): New macro.
12103         (ceilf_reference): Keep in sync with lib/ceil.c.
12104         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12105         * tests/test-ceil-ieee.c (main): Likewise.
12106         * tests/test-ceill-ieee.c (main): Likewise.
12107
12108         floor: Implement result sign according to IEEE 754.
12109         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12110         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12111         * tests/test-floorf2.c (floorf_reference): Likewise.
12112         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12113         * tests/test-floor-ieee.c (main): Likewise.
12114         * tests/test-floorl-ieee.c (main): Likewise.
12115
12116 2010-12-22  Bruno Haible  <bruno@clisp.org>
12117
12118         getaddrinfo: Update doc.
12119         * doc/posix-functions/gai_strerror.texi: Return type is also different
12120         on AIX and HP-UX.
12121
12122 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12123
12124         getaddrinfo, inet_ntop: Update doc for Solaris.
12125         * doc/posix-functions/gai_strerror.texi: Return type is also an
12126         issue on Solaris 9 and earlier.
12127         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12128         on Solaris 10 and earlier.
12129
12130 2010-12-21  Bruno Haible  <bruno@clisp.org>
12131
12132         New module 'roundl-ieee'.
12133         * modules/roundl-ieee: New file.
12134         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12135         test whether roundl works according to ISO C 99 with IEC 60559.
12136         * m4/roundl-ieee.m4: New file.
12137         * modules/roundl-ieee-tests: New file.
12138         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12139         * tests/test-roundl.c (main): Remove signbit tests.
12140         * modules/roundl-tests (Depends-on): Remove signbit.
12141         * doc/posix-functions/roundl.texi: Mention the new module.
12142
12143 2010-12-21  Bruno Haible  <bruno@clisp.org>
12144
12145         New module 'truncl-ieee'.
12146         * modules/truncl-ieee: New file.
12147         * modules/truncl-ieee-tests: New file.
12148         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12149         * tests/test-truncl.c (main): Remove signbit tests.
12150         * modules/truncl-tests (Depends-on): Remove signbit.
12151         * doc/posix-functions/truncl.texi: Mention the new module.
12152
12153 2010-12-21  Bruno Haible  <bruno@clisp.org>
12154
12155         New module 'ceill-ieee'.
12156         * modules/ceill-ieee: New file.
12157         * modules/ceill-ieee-tests: New file.
12158         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12159         * tests/test-ceill.c (main): Remove signbit tests.
12160         * modules/ceill-tests (Depends-on): Remove signbit.
12161         * doc/posix-functions/ceill.texi: Mention the new module.
12162
12163 2010-12-21  Bruno Haible  <bruno@clisp.org>
12164
12165         New module 'floorl-ieee'.
12166         * modules/floorl-ieee: New file.
12167         * modules/floorl-ieee-tests: New file.
12168         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12169         * tests/test-floorl.c (main): Remove signbit tests.
12170         * modules/floorl-tests (Depends-on): Remove signbit.
12171         * doc/posix-functions/floorl.texi: Mention the new module.
12172
12173 2010-12-21  Bruno Haible  <bruno@clisp.org>
12174
12175         New module 'round-ieee'.
12176         * modules/round-ieee: New file.
12177         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12178         whether round works according to ISO C 99 with IEC 60559.
12179         * m4/round-ieee.m4: New file.
12180         * modules/round-ieee-tests: New file.
12181         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12182         * tests/test-round1.c (main): Remove signbit tests.
12183         * modules/round-tests (Depends-on): Remove 'signbit'.
12184         * doc/posix-functions/round.texi: Mention the new module.
12185
12186 2010-12-21  Bruno Haible  <bruno@clisp.org>
12187
12188         New module 'trunc-ieee'.
12189         * modules/trunc-ieee: New file.
12190         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12191         whether trunc works according to ISO C 99 with IEC 60559.
12192         * m4/trunc-ieee.m4: New file.
12193         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12195         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12196         * modules/trunc-ieee-tests: New file.
12197         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12198         * tests/test-trunc1.c (main): Remove signbit tests.
12199         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12200         * doc/posix-functions/trunc.texi: Mention the new module.
12201
12202 2010-12-21  Bruno Haible  <bruno@clisp.org>
12203
12204         New module 'ceil-ieee'.
12205         * modules/ceil-ieee: New file.
12206         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12207         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12208         ISO C 99 with IEC 60559.
12209         * m4/ceil-ieee.m4: New file.
12210         * modules/ceil (Files): Add lib/ceil.c.
12211         (Depends-on): Add 'float'.
12212         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12213         * lib/math.in.h (ceil): New declaration.
12214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12215         REPLACE_CEIL.
12216         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12217         * modules/ceil-ieee-tests: New file.
12218         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12219         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12220         * doc/posix-functions/ceil.texi: Mention the new module.
12221
12222 2010-12-21  Bruno Haible  <bruno@clisp.org>
12223
12224         New module 'floor-ieee'.
12225         * modules/floor-ieee: New file.
12226         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12227         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12228         ISO C 99 with IEC 60559.
12229         * m4/floor-ieee.m4: New file.
12230         * modules/floor (Files): Add lib/floor.c.
12231         (Depends-on): Add 'float'.
12232         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12233         * lib/math.in.h (floor): New declaration.
12234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12235         REPLACE_FLOOR.
12236         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12237         * modules/floor-ieee-tests: New file.
12238         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12239         * tests/test-math-c++.cc: Check the signature of 'floor'.
12240         * doc/posix-functions/floor.texi: Mention the new module.
12241
12242 2010-12-21  Bruno Haible  <bruno@clisp.org>
12243
12244         New module 'roundf-ieee'.
12245         * modules/roundf-ieee: New file.
12246         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12247         test whether roundf works according to ISO C 99 with IEC 60559.
12248         * m4/roundf-ieee.m4: New file.
12249         * modules/roundf-ieee-tests: New file.
12250         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12251         * tests/test-roundf1.c (main): Remove signbit tests.
12252         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12253         * doc/posix-functions/roundf.texi: Mention the new module.
12254
12255 2010-12-21  Bruno Haible  <bruno@clisp.org>
12256
12257         New module 'truncf-ieee'.
12258         * modules/truncf-ieee: New file.
12259         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12260         test whether truncf works according to ISO C 99 with IEC 60559.
12261         * m4/truncf-ieee.m4: New file.
12262         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12264         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12265         * modules/truncf-ieee-tests: New file.
12266         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12267         * tests/test-truncf1.c (main): Remove signbit tests.
12268         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12269         * doc/posix-functions/truncf.texi: Mention the new module.
12270
12271 2010-12-21  Bruno Haible  <bruno@clisp.org>
12272
12273         New module 'ceilf-ieee'.
12274         * modules/ceilf-ieee: New file.
12275         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12276         test whether ceilf works according to ISO C 99 with IEC 60559.
12277         * m4/ceilf-ieee.m4: New file.
12278         * modules/ceilf-ieee-tests: New file.
12279         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12280         * tests/test-ceilf1.c (main): Remove signbit tests.
12281         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12282         * doc/posix-functions/ceilf.texi: Mention the new module.
12283
12284 2010-12-21  Bruno Haible  <bruno@clisp.org>
12285
12286         New module 'floorf-ieee'.
12287         * modules/floorf-ieee: New file.
12288         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12289         test whether floorf works according to ISO C 99 with IEC 60559.
12290         * m4/floorf-ieee.m4: New file.
12291         * modules/floorf-ieee-tests: New file.
12292         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12293         * tests/test-floorf1.c (main): Remove signbit tests.
12294         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12295         * doc/posix-functions/floorf.texi: Mention the new module.
12296
12297 2010-12-21  Bruno Haible  <bruno@clisp.org>
12298
12299         Support for minus zero in autoconf macros.
12300         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12301         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12302         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12303         * tests/minus-zero.h: Update comments.
12304
12305 2010-12-21  Bruno Haible  <bruno@clisp.org>
12306
12307         Tests for module 'ceil'.
12308         * modules/ceil-tests: New file.
12309         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12310         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12311
12312 2010-12-21  Bruno Haible  <bruno@clisp.org>
12313
12314         Tests for module 'floor'.
12315         * modules/floor-tests: New file.
12316         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12317         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12318
12319 2010-12-21  Bruno Haible  <bruno@clisp.org>
12320
12321         math: Fix indentation.
12322         * lib/math.in.h (floorf): Fix indentation.
12323
12324 2010-12-21  Bruno Haible  <bruno@clisp.org>
12325
12326         Fix cross-compilation guesses on Solaris.
12327         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12328         not match "solaris2.10".
12329         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12330         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12331         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12332
12333 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12334
12335         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12336         This fixes a problem observed with the latest coreutils snapshot
12337         that caused a test to fail on Solaris 8.  src/csplit.c's call
12338         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12339         earlier, instead of returning the number of bytes that would have
12340         been generated; this causes csplit to incorrectly report memory
12341         exhaustion.
12342         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12343         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12344         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12345         comments to match.
12346         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12347         Fix typo in matching older versions of Solaris: "solaris2.10"
12348         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12349         only for guessing while cross-compiling.
12350         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12351
12352 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12353
12354         ftoastr: fix comment again
12355         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12357         Also, simplify example a bit by using flags = 0.
12358
12359 2010-12-20  Bruno Haible  <bruno@clisp.org>
12360
12361         round*, trunc*: Update documentation regarding glibc.
12362         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12363         * doc/posix-functions/round.texi: Likewise.
12364         * doc/posix-functions/roundl.texi: Likewise.
12365         * doc/posix-functions/truncf.texi: Likewise.
12366         * doc/posix-functions/trunc.texi: Likewise.
12367         * doc/posix-functions/truncl.texi: Likewise.
12368
12369 2010-12-20  Bruno Haible  <bruno@clisp.org>
12370
12371         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12372         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12373         * doc/posix-functions/round.texi: Likewise.
12374         * doc/posix-functions/roundl.texi: Likewise.
12375
12376 2010-12-20  Bruno Haible  <bruno@clisp.org>
12377
12378         ttyname_r: Add missing declaration on HP-UX 11.
12379         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12380         HAVE_TTYNAME_R.
12381         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12382         declared. Set HAVE_TTYNAME_R always.
12383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12384         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12386         HAVE_TTYNAME_R.
12387         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12388
12389 2010-12-20  Bruno Haible  <bruno@clisp.org>
12390
12391         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12392         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12393         * doc/posix-functions/getlogin_r.texi: Likewise.
12394         * tests/test-getlogin.c: Include <errno.h>.
12395         (main): Avoid test failure on HP-UX 11.11.
12396         * tests/test-getlogin_r.c (main): Likewise.
12397
12398 2010-12-20  Bruno Haible  <bruno@clisp.org>
12399
12400         getlogin_r: Add missing declaration on HP-UX 11.
12401         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12402         declared also when it exists as a function.
12403         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12404
12405 2010-12-20  Bruno Haible  <bruno@clisp.org>
12406
12407         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12408         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12409         through wcrtomb.
12410
12411 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         ftoastr: fix comment
12414         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12416
12417 2010-12-19  Bruno Haible  <bruno@clisp.org>
12418
12419         isnan: Ensure it is a macro.
12420         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12421         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12422         Solaris.
12423
12424 2010-12-19  Bruno Haible  <bruno@clisp.org>
12425
12426         ldexpl test: Fix link error on OSF/1 5.1.
12427         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12428
12429 2010-12-19  Bruno Haible  <bruno@clisp.org>
12430
12431         wctype: Make it work in C++ mode on OSF/1 5.1.
12432         * lib/wctype.in.h (iswblank): Declare but not define here.
12433         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12434         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12435         * modules/wctype (Files): Add lib/iswblank.c.
12436
12437 2010-12-19  Bruno Haible  <bruno@clisp.org>
12438
12439         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12440         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12441         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12442
12443 2010-12-19  Bruno Haible  <bruno@clisp.org>
12444
12445         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12446         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12447         _POSIX_PII_SOCKET.
12448         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12449         * doc/posix-functions/recvfrom.texi: Likewise.
12450         * doc/posix-functions/send.texi: Likewise.
12451         * doc/posix-functions/sendto.texi: Likewise.
12452
12453 2010-12-19  Bruno Haible  <bruno@clisp.org>
12454
12455         tcgetsid: Add missing declaration on OSF/1 5.1.
12456         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12457         HAVE_TCGETSID.
12458         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12459         Don't set HAVE_TCGETSID.
12460         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12461         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12462         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12463         HAVE_TCGETSID.
12464         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12465
12466 2010-12-19  Bruno Haible  <bruno@clisp.org>
12467
12468         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12469         * lib/stdio.in.h: During the include_next statement, let recursive
12470         includes of this file include only the system header file.
12471
12472 2010-12-19  Bruno Haible  <bruno@clisp.org>
12473
12474         iconv_open: Fix regression from 2010-12-04.
12475         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12476         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12477
12478 2010-12-19  Bruno Haible  <bruno@clisp.org>
12479
12480         stdbool test: Avoid a gcc warning.
12481         * tests/test-stdbool.c (main): Fail if e1 is false.
12482         Reported by Jim Meyering.
12483
12484 2010-12-19  Jim Meyering  <meyering@redhat.com>
12485
12486         setenv: restore to working order
12487         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12488         mistakenly removed.
12489         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12490         HAVE_SETENV.
12491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12492         HAVE_SETENV.
12493
12494 2010-12-19  Bruno Haible  <bruno@clisp.org>
12495
12496         Document some different function declarations on OSF/1 5.1.
12497         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12498         * doc/posix-functions/inet_ntop.texi: Likewise.
12499         * doc/posix-functions/gethostname.texi: Likewise.
12500         * lib/unistd.in.h (gethostname): Update comment.
12501
12502 2010-12-19  Bruno Haible  <bruno@clisp.org>
12503
12504         doc: Mention vasprintf-posix module.
12505         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12506         the 'vasprintf-posix' module.
12507         * doc/glibc-functions/vasprintf.texi: Likewise.
12508
12509 2010-12-19  Bruno Haible  <bruno@clisp.org>
12510
12511         unsetenv: Add missing declaration on OSF/1 5.1.
12512         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12513         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12514         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12516         not HAVE_UNSETENV.
12517         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12518         HAVE_UNSETENV.
12519         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12520
12521 2010-12-19  Bruno Haible  <bruno@clisp.org>
12522
12523         setenv: Add missing declaration on OSF/1 5.1.
12524         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12526         declared. Don't set HAVE_SETENV.
12527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12528         not HAVE_SETENV.
12529         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12530         HAVE_SETENV.
12531         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12532
12533 2010-12-19  Bruno Haible  <bruno@clisp.org>
12534
12535         nl_langinfo tests: Avoid gcc warning.
12536         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12537
12538 2010-12-19  Bruno Haible  <bruno@clisp.org>
12539
12540         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12541         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12542         _GL_CXXALIAS_SYS.
12543
12544 2010-12-19  Bruno Haible  <bruno@clisp.org>
12545
12546         stdbool: Relax test.
12547         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12548         address to 'bool' work in static initializer, for compilers other than
12549         GCC.
12550
12551 2010-12-19  Bruno Haible  <bruno@clisp.org>
12552
12553         ftello: Add missing declaration on OSF/1 5.1.
12554         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12555         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12557         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12558         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12559
12560 2010-12-19  Bruno Haible  <bruno@clisp.org>
12561
12562         fseeko: Add missing declaration on OSF/1 5.1.
12563         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12564         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12566         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12567         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12568
12569 2010-12-19  Bruno Haible  <bruno@clisp.org>
12570
12571         fchdir: Add missing declaration on OSF/1 5.1.
12572         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12575         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12576         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12577
12578 2010-12-19  Bruno Haible  <bruno@clisp.org>
12579
12580         relocatable-prog-wrapper: Separate from relocatable-prog.
12581         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12582         uninstall-relocwrapper rule here.
12583         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12584         Reported by Ian Beckwith <ianb@erislabs.net>.
12585
12586 2010-12-19  Bruno Haible  <bruno@clisp.org>
12587
12588         unistr/u8-mbsnlen: Add missing dependency.
12589         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12590         Reported by Ian Beckwith <ianb@erislabs.net>.
12591
12592 2010-12-19  Bruno Haible  <bruno@clisp.org>
12593
12594         iconv: Make it possible again to use this module without 'iconv-h'.
12595         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12596         if it is not defined.
12597         Reported by Ian Beckwith <ianb@erislabs.net>.
12598
12599 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12600
12601         acl: port to Solaris 8 when copying from tmpfs to ufs
12602         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12603         error number.  Problem observed on Solaris 8 with latest
12604         coreutils, with "mv A B", where A is on a tmpfs file system and B
12605         is on a ufs file system.  This caused coreutils' mv/part-symlink
12606         test to fail.
12607
12608         tests: set fail=0 at start
12609         * tests/init.sh (setup_): Move fail=0 initialization here ...
12610         (mktempd_): ... from here, so that tests can rely on fail being
12611         set to 0 initially.  This fixes a problem in coreutils; see:
12612         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12613
12614 2010-12-18  Bruno Haible  <bruno@clisp.org>
12615
12616         memmem-simple: Stylistic changes.
12617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12618         Fix preprocessor directive indentation.
12619
12620 2010-12-15  Pádraig Brady <P@draigBrady.com>
12621
12622         memmem, memmem-simple: reorganize and expand empty needle check
12623         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12624         functional checks to memmem-simple so that one has a fully functional
12625         memmem by using just this module.
12626         Restrict the performance only check to the memmem module.
12627         Also expand the empty needle check to ensure the correct
12628         pointer is returned, not just a non NULL pointer.
12629         * doc/glibc-functions/memmem.texi: Rearrange the portability
12630         documentation to correlate with the rearranged checks.
12631         Clarify exactly how the memmem and memmem-simple modules
12632         relate to each other.
12633
12634 2010-12-15  Pádraig Brady <P@draigBrady.com>
12635             Bruno Haible  <bruno@clisp.org>
12636
12637         Improve cross-compilation guesses for uClibc.
12638         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12639         that uClibc does not have the glibc bug.
12640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12641         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12642
12643 2010-12-14  Eric Blake  <eblake@redhat.com>
12644
12645         configmake: provide fallbacks for oldest supported autotools
12646         * m4/configmake.m4: New file.
12647         * modules/configmake (Files): Ship it.
12648         (configure.ac): Use it to guarantee fallbacks.
12649
12650 2010-12-13  Pádraig Brady <P@draigBrady.com>
12651
12652         read-file: Improve handling of large files
12653         * lib/read-file.c (fread_file): Minimize realloc()s
12654         for regular files, and better manage sizes around SIZE_MAX.
12655
12656 2010-12-13  Eric Blake  <eblake@redhat.com>
12657
12658         cloexec, fcntl: relax license
12659         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12660         consent from all contributors.
12661         * modules/fcntl (License): Likewise.
12662
12663 2010-12-10  Bruno Haible  <bruno@clisp.org>
12664
12665         Tests for module 'pipe-posix'.
12666         * modules/pipe-posix-tests: New file.
12667         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12668
12669 2010-12-10  Bruno Haible  <bruno@clisp.org>
12670
12671         pipe-posix: Make it work in C++ mode.
12672         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12673         (pipe): Use common idiom, not a macro definition.
12674         * lib/pipe.c: New file.
12675         * m4/pipe.m4: New file.
12676         * modules/pipe-posix (Description): Enhance.
12677         (Files): Add lib/pipe.c, m4/pipe.m4.
12678         (configure.ac): Invoke gl_FUNC_PIPE.
12679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12680         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12681         * tests/test-unistd-c++.cc: Check the signature of pipe.
12682
12683 2010-12-10  Bruno Haible  <bruno@clisp.org>
12684
12685         Rename module 'pipe' to 'spawn-pipe'.
12686         * modules/spawn-pipe: New file, renamed from modules/pipe.
12687         (Files, configure.ac, Makefile.am): Update.
12688         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12689         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12690         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12691         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12692         "spawn-pipe.h" instead of "pipe.h".
12693         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12694         to gl_SPAWN_PIPE.
12695         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12696         (Files, Makefile.am): Update.
12697         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12698         Update.
12699         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12700         Include "spawn-pipe.h" instead of "pipe.h".
12701         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12702         * lib/javacomp.c: Likewise.
12703         * lib/javaversion.c: Likewise.
12704         * lib/pipe-filter-gi.c: Likewise.
12705         * lib/pipe-filter-ii.c: Likewise.
12706         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12707         * modules/javacomp (Depends-on): Likewise.
12708         * modules/javaversion (Depends-on): Likewise.
12709         * modules/pipe-filter-gi (Depends-on): Likewise.
12710         * modules/pipe-filter-ii (Depends-on): Likewise.
12711         * MODULES.html.sh (Executing programs): Update.
12712         * NEWS: Mention the change.
12713
12714 2010-12-10  Eric Blake  <eblake@redhat.com>
12715
12716         pipe-posix: new module
12717         * modules/pipe-posix: New file.
12718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12719         (gl_UNISTD_H): Check for declaration.
12720         * modules/unistd (Makefile.am): Substitute it.
12721         * lib/unistd.in.h (pipe): Provide it for mingw.
12722         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12723         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12724
12725 2010-12-07  Bruno Haible  <bruno@clisp.org>
12726
12727         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12728         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12729         u8_strcmp_gnu.
12730         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12731
12732 2010-12-06  Bruno Haible  <bruno@clisp.org>
12733
12734         Update internal documentation.
12735         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12736
12737 2010-12-04  Bruno Haible  <bruno@clisp.org>
12738
12739         Put more information about failed tests into the test return codes.
12740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12741         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12742         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12743         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12744         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12745         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12746         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12747         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12748         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12750         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12751         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12752         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12753         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12754         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12755         returns a bit mask.
12756         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12757         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12758         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12759         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12760         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12764         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12765         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12766         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12767         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12768         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12770         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12771         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12772         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12773         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12774         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12775         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12777         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12778         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12779         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12780         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12781         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12782         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12783         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12784         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12785         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12786         gl_PRINTF_PRECISION): Likewise.
12787         * m4/regex.m4 (gl_REGEX): Likewise.
12788         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12791         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12795         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12796         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12797         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12798         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12799         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12800         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12801         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12802         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12803         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12804         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12805         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12807         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12808         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12809         enumerated value.
12810         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12811
12812 2010-12-04  Bruno Haible  <bruno@clisp.org>
12813
12814         Update for Solaris 11 2010-11.
12815         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12816         Express, released in November 2010.
12817
12818 2010-12-04  Bruno Haible  <bruno@clisp.org>
12819
12820         nproc: Relax license.
12821         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12822         and Paul Eggert.
12823         Requested by Ludovic Courtès <ludo@gnu.org>.
12824
12825 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12826
12827         utimecmp: fine-grained src to nearby coarse-grained dest
12828
12829         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12830         and the source is on a file system with higher-resolution time
12831         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12832         not work, and the time stamps are close together, the algorithm to
12833         determine the exact resolution from the read-back mtime was buggy:
12834         it had a "!=" where it should have had an "==".  This bug has been
12835         in the code ever since it was introduced to gnulib.
12836         Problem reported by Dan Jacobson in
12837         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12838
12839 2010-11-30  Bruno Haible  <bruno@clisp.org>
12840
12841         strerror_r-posix: Fix autoconf test.
12842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12843
12844 2010-11-28  Bruno Haible  <bruno@clisp.org>
12845             Paul Eggert  <eggert@cs.ucla.edu>
12846
12847         Tests for module 'getdomainname'.
12848         * modules/getdomainname-tests: New file.
12849         * tests/test-getdomainname.c: New file, based on
12850         tests/test-gethostname.c.
12851
12852 2010-11-28  Bruno Haible  <bruno@clisp.org>
12853             Paul Eggert  <eggert@cs.ucla.edu>
12854
12855         getdomainname: Use the system function when possible.
12856         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12857         (getdomainname): Replace if needed. Provide the declaration if it is
12858         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12859         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12860         (getdomainname): When the system has getdomainname, call the system
12861         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12862         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12863         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12864         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12865         the function if its second argument is of type 'int' or if it is found
12866         in libnsl.
12867         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12868         <sys/systeminfo.h> and sysinfo().
12869         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12871         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12872         HAVE_GETDOMAINNAME.
12873         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12874         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12875         * doc/glibc-functions/getdomainname.texi: Document the problems with
12876         the getdomainname declaration.
12877
12878 2010-11-28  Bruno Haible  <bruno@clisp.org>
12879
12880         sys_socket: Ensure ss_family field on AIX.
12881         * lib/sys_socket.in.h (ss_family): New macro definition.
12882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12883         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12884         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12885         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12886         * modules/sys_socket (Makefile.am): Substitute
12887         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12888         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12889
12890 2010-11-27  Bruno Haible  <bruno@clisp.org>
12891
12892         readline: Improve configure output.
12893         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12894         "checking for readline..." result understandable.
12895
12896 2010-11-27  Bruno Haible  <bruno@clisp.org>
12897
12898         *printf-posix: Detect a bug on Solaris 10/x86.
12899         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12900         for floating-point output.
12901         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12902         directive.
12903         * tests/test-snprintf-posix.h (test_function): Likewise.
12904         * tests/test-sprintf-posix.h (test_function): Likewise.
12905         * tests/test-vasprintf-posix.c (test_function): Likewise.
12906         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12907         * doc/posix-functions/printf.texi: Likewise.
12908         * doc/posix-functions/snprintf.texi: Likewise.
12909         * doc/posix-functions/sprintf.texi: Likewise.
12910         * doc/posix-functions/vfprintf.texi: Likewise.
12911         * doc/posix-functions/vprintf.texi: Likewise.
12912         * doc/posix-functions/vsnprintf.texi: Likewise.
12913         * doc/posix-functions/vsprintf.texi: Likewise.
12914         * doc/glibc-functions/obstack_printf.texi: Likewise.
12915         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12916
12917 2010-11-27  Bruno Haible  <bruno@clisp.org>
12918
12919         Fix link error when module libunistring-optional is in use.
12920         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12921         * modules/striconveha-tests (Makefile.am): Likewise.
12922
12923 2010-11-27  Bruno Haible  <bruno@clisp.org>
12924
12925         regex: Mention link dependencies.
12926         * modules/regex (Link): New section.
12927         * modules/rpmatch (Link): Likewise.
12928         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12929
12930 2010-11-27  Bruno Haible  <bruno@clisp.org>
12931
12932         ftoastr: Fix compilation error on Solaris.
12933         * lib/ftoastr.c: Include <config.h>.
12934
12935 2010-11-27  Bruno Haible  <bruno@clisp.org>
12936
12937         getloadavg: Update documentation.
12938         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12939
12940 2010-11-27  Bruno Haible  <bruno@clisp.org>
12941
12942         sys_socket: Fix test whether the functions are declared.
12943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12944         not <sys/select.h>.
12945
12946 2010-11-27  Bruno Haible  <bruno@clisp.org>
12947
12948         getpass: Make sure to get system declaration on some platforms.
12949         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12950         gl_USE_SYSTEM_EXTENSIONS.
12951         * modules/getpass (Depends-on): Add extensions.
12952
12953 2010-11-26  Bruno Haible  <bruno@clisp.org>
12954
12955         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12956         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12957         'iconv' module is present.
12958         (ICONV_CONST): New macro.
12959         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12960         ICONV_CONST.
12961         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12962         set ICONV_CONST.
12963         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12964         here.
12965         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12966         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12967         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12968         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12969         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12970         present.
12971
12972 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12973
12974         ftoastr: comment fix
12975         * lib/ftoastr.c: "little" -> "little or no" in comment
12976
12977 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12978
12979         stdint: port to GCC 4.3 + OSX + Octave
12980         On this platform, stdint.h is buggy and defines int64_t to long
12981         long int.  The replacement defined it to long int, causing
12982         problems with C++ style name mangling.  Instead, trust the system
12983         definition if INT64_MAX is defined, and likewise for the unsigned
12984         variant.   Problem reported by Jarno Rajahalme in
12985         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12986         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12987         and don't mess with int64_t and INT64_MAX in this case.
12988         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12989
12990 2010-11-24  Bruno Haible  <bruno@clisp.org>
12991
12992         doc: Corrections regarding MacOS X 10.4 and 10.5.
12993         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12994         MacOS X.
12995         Reported by Simon Josefsson.
12996
12997 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12998
12999         Uninstall ".bin" files installed by relocwrapper.
13000         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13001         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13002         unless it is already there.
13003
13004 2010-11-21  Bruno Haible  <bruno@clisp.org>
13005
13006         Update for NetBSD 5.0.
13007         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13008         NetBSD; the test fails on NetBSD 5.0.
13009         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13010         about NetBSD.
13011
13012 2010-11-21  Bruno Haible  <bruno@clisp.org>
13013
13014         Update for HP-UX 11.23 and HP-UX 11.31.
13015         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13016         HP-UX.
13017
13018 2010-11-21  Bruno Haible  <bruno@clisp.org>
13019
13020         Update for MacOS X 10.5.
13021         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13022         MacOS X; the test fails on MacOS X 10.5.8.
13023         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13024         about MacOS X.
13025
13026 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13027
13028         bootstrap: add bootstrap_sync option.
13029         See discussion at
13030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13032         * build-aux/bootstrap: Accept --bootstrap-sync to update
13033         bootstrap if it is not identical to the local gnulib's
13034         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13035         enable this by default.  Accept --no-bootstrap-sync to disable
13036         it.
13037
13038 2010-11-20  Bruno Haible  <bruno@clisp.org>
13039
13040         Ensure that <features.h> is included before __GLIBC__ is tested.
13041         * lib/printf-parse.h: Include <features.h>.
13042         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13043         Reported by Mike Frysinger <vapier@gentoo.org>.
13044
13045         Ensure that <features.h> is included before __GLIBC__ is tested.
13046         * lib/wchar.in.h: Include <features.h>.
13047         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13048         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13049         Reported by Mike Frysinger <vapier@gentoo.org>.
13050
13051         Ensure that <features.h> is included before __GLIBC__ is tested.
13052         * lib/arpa_inet.in.h: Include <features.h>.
13053         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13054         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13055         Reported by Mike Frysinger <vapier@gentoo.org>.
13056
13057         Ensure that <features.h> is included before __GLIBC__ is tested.
13058         * build-aux/link-warning.h: Include <features.h>.
13059         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13060         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13061         Reported by Mike Frysinger <vapier@gentoo.org>.
13062
13063         Ensure that <features.h> is included before __GLIBC__ is tested.
13064         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13065         Reported by Mike Frysinger <vapier@gentoo.org>.
13066
13067 2010-11-20  Bruno Haible  <bruno@clisp.org>
13068
13069         memmem: Fix autoconf test.
13070         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13071
13072 2010-11-20  Bruno Haible  <bruno@clisp.org>
13073
13074         Port to uClibc.
13075         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13076         * lib/fcntl.in.h: Likewise.
13077         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13078         * lib/mbrtowc.c (mbrtowc): Likewise.
13079         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13080         * lib/strerror_r.c: Likewise.
13081         * lib/unistr/u8-strnlen.c: Likewise.
13082         * lib/vasnprintf.c (decimal_point_char): Likewise.
13083         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13084         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13086         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13087         * tests/test-sigaction.c (handler, main): Likewise.
13088         * lib/freading.h: Treat uClibc like a non-glibc platform.
13089         * lib/freading.c: Likewise.
13090         * lib/gettext.h: Likewise.
13091         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13092         Likewise.
13093         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13094         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13095         * lib/propername.c (proper_name_utf8): Likewise.
13096         * lib/spawn.in.h: Likewise.
13097         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13098         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13099         mem_cd_iconveh_internal): Likewise.
13100         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13101         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13102         strstr, strcasestr): Likewise.
13103         * lib/unicodeio.c (unicode_to_mb): Likewise.
13104         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13105         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13106         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13107         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13108         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13109         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13110         * lib/unistr/u8-stpncpy.c: Likewise.
13111         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13112         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13115         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13116         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13120         Likewise.
13121         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13122         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13126         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13127         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13128         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13129         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13130         * tests/test-striconveha.c (main): Likewise.
13131         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13132         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13133         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13134         * doc/posix-functions/getline.texi: Likewise.
13135         Reported by Mike Frysinger <vapier@gentoo.org>.
13136
13137 2010-11-20  Bruno Haible  <bruno@clisp.org>
13138
13139         nproc: Fix condition.
13140         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13141         HAVE_PTHREAD_AFFINITY_NP.
13142
13143 2010-11-20  Bruno Haible  <bruno@clisp.org>
13144
13145         Fix a comment.
13146         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13147
13148 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13149
13150         ftoastr: don't assume snprintf
13151         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13152         Implement a subset of snprintf here, by using sprintf safely.
13153         * modules/ftoastr (Depends-on): Remove snprintf.
13154
13155 2010-11-19  Jim Meyering  <meyering@redhat.com>
13156
13157         test-rename.h: fix compilation failure
13158         * tests/test-rename.h (test_rename): Add omitted "}".
13159
13160 2010-11-17  Jim Meyering  <meyering@redhat.com>
13161
13162         maint.mk: add a URL discussing the no-@acronym policy
13163         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13164
13165 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13166
13167         ftoastr: depend on snprintf, improve comments
13168         * lib/ftoastr.c: Also mention Loitsch's draft.
13169         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13170         needed in the current implementation, but it might simplify
13171         speeding up the code later.
13172         * modules/ftoastr: Depend on snprintf; this improves portability.
13173         Suggested by Bruno Haible in the same email.
13174
13175         ftoastr: port to hosts lacking strtof and strtold
13176         Problem reported by Bruno Haible in
13177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13178         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13179         environment and strtold (and presumably strtof) are not available.
13180         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13181         (configure.ac): Require gl_C99_STRTOLD.
13182
13183 2010-11-18  Bruno Haible  <bruno@clisp.org>
13184
13185         c-strtold: Avoid link error on AIX 7.
13186         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13187         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13188         (gl_C_STRTOLD): Test whether strtold_l exists.
13189         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13190
13191 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         intprops: new macro INT_BITS_STRLEN_BOUND
13194         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13195         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13196         not exposed.  Also, it uses a slightly tighter bound than before;
13197         though this makes no practical difference, we might as well be as
13198         tight as we easily can.
13199
13200         ftoastr: new module, for lossless conversion of floats to short strings
13201         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13202         * modules/ftoastr: New files.
13203
13204 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13205
13206         bootstrap: port to Solaris sed
13207         * build-aux/bootstrap (get_version): Port to Solaris sed.
13208         See Ralf Wildenhues's note in
13209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13210
13211 2010-11-14  Jim Meyering  <meyering@redhat.com>
13212
13213         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13214         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13215         and move definition closer to sole use.
13216
13217 2010-11-13  Jim Meyering  <meyering@redhat.com>
13218
13219         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13220         Now we require at least autoconf-2.59, which means the work-around
13221         is no longer needed.
13222         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13224         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13225         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13226         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13227
13228 2010-11-13  Bruno Haible  <bruno@clisp.org>
13229
13230         rename, renameat: Avoid test failures at NFS mounted locations.
13231         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13232         functions.
13233         (test_rename): Use assert_nonexistent.
13234         * tests/test-rename.c: Include <dirent.h>.
13235         * tests/test-renameat.c: Likewise.
13236         Reported by Gary V. Vaughan <gary@gnu.org>.
13237
13238         rename, renameat: Document Linux bug with NFS
13239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13240         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13241         * doc/posix-functions/renameat.texi: Likewise.
13242         Suggested by Eric Blake.
13243
13244 2010-11-13  Bruno Haible  <bruno@clisp.org>
13245
13246         rename test: Add comments.
13247         * tests/test-rename.h (test_rename): Add structure and comments.
13248
13249 2010-11-13  Eric Blake  <eblake@redhat.com>
13250
13251         maintainer-makefile: cover a few more files
13252         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13253         scripts generated within C files, for libvirt.
13254
13255 2010-11-13  Bruno Haible  <bruno@clisp.org>
13256
13257         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13258         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13259         character, return the number of bytes that belong together, not always
13260         1.
13261         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13262         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13263         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13264         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13265         number of bytes of an invalid character.
13266         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13267         (main): Invoke it.
13268         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13269         results.
13270         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13271         malformed byte sequences.
13272         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13273         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13274         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13275         Reported by Ben Pfaff and Paolo Bonzini.
13276
13277 2010-11-13  Bruno Haible  <bruno@clisp.org>
13278
13279         openat: Work around glibc bug with fchownat() and empty file names.
13280         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13281         (gl_FUNC_FCHOWNAT): Invoke it.
13282         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13283         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13284         Reported by Gary V. Vaughan <gary@gnu.org>.
13285
13286 2010-11-13  Bruno Haible  <bruno@clisp.org>
13287
13288         openat: Ensure autoconf macro ordering.
13289         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13290         gl_USE_SYSTEM_EXTENSIONS.
13291         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13292
13293 2010-11-13  Bruno Haible  <bruno@clisp.org>
13294
13295         Update comments.
13296         * lib/unistr/u8-check.c: Update file name in comments.
13297         * lib/unistr/u8-mblen.c: Likewise.
13298         * lib/unistr/u8-prev.c: Likewise.
13299         * lib/unistr/u8-strmblen.c: Likewise.
13300         * lib/unistr/u8-strmbtouc.c: Likewise.
13301
13302 2010-11-13  Jim Meyering  <meyering@redhat.com>
13303
13304         tests: avoid test failure on Solaris 10 due to lack of PATH export
13305         * tests/test-update-copyright.sh: Don't forget to export PATH.
13306
13307         init.sh: ensure that IFS is defined, just in case...
13308         * tests/init.sh (setup_): Ensure that IFS is defined,
13309         so that saving and restoring it works as expected.  This
13310         appears to be useful at least for an old version of dash
13311         from a long time ago (RH 6).  See here for details:
13312         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13313
13314         maint.mk: tighten "test a == b" check
13315         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13316         test to files that contain something like #!/bin/sh.
13317         Without this, coreutils would get two false positives in
13318         the comments of C source files.
13319
13320 2010-11-12  Eric Blake  <eblake@redhat.com>
13321
13322         bootstrap: fix typo in previous attempt
13323         * build-aux/bootstrap (buildreq): Correct the grouping.
13324         Reported by Paul Eggert.
13325
13326         maintainer-makefile: prohibit test x == x
13327         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13328         Based on a report by Matthias Bolte.
13329
13330         bootstrap: allow FreeBSD gzip
13331         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13332         which has no '.' and goes to stderr.
13333         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13334         Reported by Matthias Bolte.
13335
13336         maintainer-makefile: check for i18n setup
13337         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13338         will likely work.
13339
13340 2010-11-12  Bruno Haible  <bruno@clisp.org>
13341
13342         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13343         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13344         * lib/nanosleep.c (nanosleep): Likewise.
13345
13346 2010-11-11  Bruno Haible  <bruno@clisp.org>
13347
13348         fcntl-h: Fix for use of C++ on glibc systems.
13349         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13350         also on glibc systems in C++ mode.
13351         Reported by Gary V. Vaughan <gary@gnu.org>.
13352
13353 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13354
13355         mknod: avoid false failure with dash
13356         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13357
13358 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13359
13360         unlink: Fix "is it should" typo in diagnostic.
13361         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13363
13364 2010-11-11  Bruno Haible  <bruno@clisp.org>
13365
13366         Tests for module 'strerror_r-posix'.
13367         * modules/strerror_r-posix-tests: New file.
13368         * tests/test-strerror_r.c: New file.
13369         * tests/test-string-c++.cc: Check the signature of strerror_r.
13370
13371         New module 'strerror_r-posix'.
13372         * lib/string.in.h (strerror_r): New declaration.
13373         * lib/strerror_r.c: New file.
13374         * m4/strerror_r.m4: New file.
13375         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13376         of strerror_r.
13377         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13378         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13379         * modules/strerror_r-posix: New file.
13380         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13381         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13382         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13383         portability problems.
13384
13385 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13386
13387         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13388         line is also considered for output. Quoted function name in shell
13389         command, so temporary files for functions like MyClass::operator()
13390         are removed correctly without errors.
13391
13392 2010-11-09  Bruno Haible  <bruno@clisp.org>
13393
13394         * doc/posix-functions/strerror.texi: List more failing platforms.
13395
13396         * doc/posix-functions/strerror.texi: Add a comment.
13397
13398 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13399
13400         fdopendir: fix bug on MacOS X when low on file descriptors
13401
13402         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13403         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13404         All callers changed.
13405         (fdopendir): Invoke save_cwd at the top level, not after using
13406         multiple dup() calls to use up file descriptors.  Then retry
13407         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13408         less than the maximum number of open file descriptors, because
13409         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13410         on Mac OS X 10.6.4 for tar 1.24
13411         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13412         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13413         and for tar 1.25
13414         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13415
13416 2010-11-07  Bruno Haible  <bruno@clisp.org>
13417
13418         vasnprintf: Support I flag on glibc systems.
13419         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13420         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13421         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13422         snprintf function.
13423         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13424         glibc systems.
13425         * tests/test-vasnprintf-posix3.c: New file.
13426         * modules/vasnprintf-posix-tests (Files): Add it.
13427         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13428
13429 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13430
13431         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13432         * MODULES.html.sh: For compiler warnings, use name
13433         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13434
13435 2010-11-05  Eric Blake  <eblake@redhat.com>
13436
13437         ceil, floor: avoid spurious failure with icc
13438         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13439         [denormals-as-zero] when optimizing without -mieee-fp option.
13440         * tests/test-floorf2.c (floorf_reference): Likewise.
13441         * tests/test-ceilf1.c (dummy): New function.
13442         (main): Use it to outsmart icc's optimization.
13443         * tests/test-floorf1.c (dummy, main): Likewise.
13444
13445         tests: require working signbit
13446         * modules/ceilf-tests (Depends-on): Add signbit.
13447         * modules/ceill-tests (Depends-on): Likewise.
13448         * modules/floorf-tests (Depends-on): Likewise.
13449         * modules/floorl-tests (Depends-on): Likewise.
13450         * modules/round-tests (Depends-on): Likewise.
13451         * modules/roundf-tests (Depends-on): Likewise.
13452         * modules/roundl-tests (Depends-on): Likewise.
13453         * modules/trunc-tests (Depends-on): Likewise.
13454         * modules/truncf-tests (Depends-on): Likewise.
13455         * modules/truncl-tests (Depends-on): Likewise.
13456
13457         strtod: work around icc bug
13458         * lib/strtod.c (minus_zero): Define to working value.
13459         (strtod): Use it to avoid icc bug.
13460
13461         copysign: enhance tests
13462         * modules/copysign-tests (Files): Add minus-zero.h.
13463         * tests/test-copysign.c (main): Also test zeros.
13464
13465 2010-11-04  Eric Blake  <eblake@redhat.com>
13466
13467         ceil, floor, round, trunc: enhance tests of -0
13468         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13469         * tests/test-ceill.c (main): Likewise.
13470         * tests/test-floorf1.c (main): Likewise.
13471         * tests/test-floorl.c (main): Likewise.
13472         * tests/test-round1.c (main): Likewise.
13473         * tests/test-roundf1.c (main): Likewise.
13474         * tests/test-roundl.c (main): Likewise.
13475         * tests/test-trunc1.c (main): Likewise.
13476         * tests/test-truncf1.c (main): Likewise.
13477         * tests/test-truncl.c (main): Likewise.
13478
13479 2010-11-04  Eric Blake  <eblake@redhat.com>
13480
13481         frexp, tests: work around ICC bug with -zero
13482         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13483         works with more compilers.
13484         * tests/minus-zero.h: New file.
13485         * modules/ceilf-tests (Files): Include it.
13486         * modules/ceill-tests (Files): Likewise.
13487         * modules/floorf-tests (Files): Likewise.
13488         * modules/floorl-tests (Files): Likewise.
13489         * modules/frexp-nolibm-tests (Files): Likewise.
13490         * modules/frexp-tests (Files): Likewise.
13491         * modules/frexpl-nolibm-tests (Files): Likewise.
13492         * modules/frexpl-tests (Files): Likewise.
13493         * modules/isnan-tests (Files): Likewise.
13494         * modules/isnand-nolibm-tests (Files): Likewise.
13495         * modules/isnand-tests (Files): Likewise.
13496         * modules/isnanf-nolibm-tests (Files): Likewise.
13497         * modules/isnanf-tests (Files): Likewise.
13498         * modules/isnanl-nolibm-tests (Files): Likewise.
13499         * modules/isnanl-tests (Files): Likewise.
13500         * modules/round-tests (Files): Likewise.
13501         * modules/roundf-tests (Files): Likewise.
13502         * modules/roundl-tests (Files): Likewise.
13503         * modules/ldexpl-tests (Files): Likewise.
13504         * modules/signbit-tests (Files): Likewise.
13505         * modules/snprintf-posix-tests (Files): Likewise.
13506         * modules/sprintf-posix-tests (Files): Likewise.
13507         * modules/strtod-tests (Files): Likewise.
13508         * modules/trunc-tests (Files): Likewise.
13509         * modules/truncf-tests (Files): Likewise.
13510         * modules/truncl-tests (Files): Likewise.
13511         * modules/vsnprintf-posix-tests (Files): Likewise.
13512         * modules/vsprintf-posix-tests (Files): Likewise.
13513         * modules/vasnprintf-posix-tests (Files): Likewise.
13514         * modules/vasprintf-posix-tests (Files): Likewise.
13515         * tests/test-ceilf1.c (main): Use it.
13516         * tests/test-ceill.c (main): Likewise.
13517         * tests/test-floorf1.c (main): Likewise.
13518         * tests/test-floorl.c (main): Likewise.
13519         * tests/test-frexp.c (main): Likewise.
13520         * tests/test-frexpl.c (main): Likewise.
13521         * tests/test-isnan.c (main): Likewise.
13522         * tests/test-isnand.h (main): Likewise.
13523         * tests/test-isnanf.h (main): Likewise.
13524         * tests/test-isnanl.h (main): Likewise.
13525         * tests/test-ldexpl.c (main): Likewise.
13526         * tests/test-round.c (main): Likewise.
13527         * tests/test-roundf.c (main): Likewise.
13528         * tests/test-roundl.c (main): Likewise.
13529         * tests/test-signbit.c (test_signbitf, test_signbitd)
13530         (test_signbitl): Likewise.
13531         * tests/test-snprintf-posix.h (test_function): Likewise.
13532         * tests/test-sprintf-posix.h (test_function): Likewise.
13533         * tests/test-strtod.c (main): Likewise.
13534         * tests/test-trunc1.c (main): Likewise.
13535         * tests/test-truncf1.c (main): Likewise.
13536         * tests/test-truncl.c (main): Likewise.
13537
13538         isnanl: work around icc bug
13539         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13540
13541 2010-11-03  Eric Blake  <eblake@redhat.com>
13542
13543         tests: fix compiler warnings
13544         * tests/test-getopt.h (test_getopt): Fix condition.
13545         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13546         * tests/test-pipe2.c (main): Likewise.
13547         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13548
13549         utimens: fix broken m4 test
13550         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13551
13552 2010-10-28  Bruno Haible  <bruno@clisp.org>
13553
13554         posix_spawn*, getdtablesize: Relax license.
13555         * modules/posix_spawn (License): Change to LGPLv2+.
13556         * modules/posix_spawnp (License): Likewise.
13557         * modules/posix_spawn-internal (License): Likewise.
13558         * modules/posix_spawnattr_init (License): Likewise.
13559         * modules/posix_spawnattr_getflags (License): Likewise.
13560         * modules/posix_spawnattr_setflags (License): Likewise.
13561         * modules/posix_spawnattr_getpgroup (License): Likewise.
13562         * modules/posix_spawnattr_setpgroup (License): Likewise.
13563         * modules/posix_spawnattr_getschedparam (License): Likewise.
13564         * modules/posix_spawnattr_setschedparam (License): Likewise.
13565         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13566         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13567         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13568         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13569         * modules/posix_spawnattr_getsigmask (License): Likewise.
13570         * modules/posix_spawnattr_setsigmask (License): Likewise.
13571         * modules/posix_spawnattr_destroy (License): Likewise.
13572         * modules/posix_spawn_file_actions_init (License): Likewise.
13573         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13574         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13575         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13576         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13577         * modules/getdtablesize (License): Likewise.
13578         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13579
13580 2010-10-26  Bruno Haible  <bruno@clisp.org>
13581
13582         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13583         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13584         Cygwin and mingw.
13585         Suggested by Eric Blake.
13586
13587 2010-10-26  Bruno Haible  <bruno@clisp.org>
13588
13589         stdio: Work around compilation error due to renameat() on Solaris 10.
13590         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13591         * lib/renameat.c: Don't include <unistd.h> here.
13592         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13593         Reported by Paul Eggert and Eric Blake.
13594
13595 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13596
13597         renameat: port to Solaris 10, which declares renameat in unistd.h
13598
13599         * lib/renameat.c: Include unistd.h before stdio.h, because
13600         Solaris 10 declares renameat in unistd.h.  Problem encountered
13601         when building GNU tar 1.24 on Solaris 10.
13602
13603 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13604
13605         fdopendir: fix C89 compilation
13606         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13607         compilers.
13608
13609 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         inttostr: simplify by removing unnecessary redundancy
13612         * lib/anytostr.c: Don't include verify.h.
13613         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13614         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13615         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13616         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13617         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13618         Likewise.
13619         * modules/inttostr (Depends-on): Remove 'verify'.
13620
13621 2010-10-23  Bruno Haible  <bruno@clisp.org>
13622
13623         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13624         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13625         Reported by Eric Blake.
13626
13627 2010-10-23  Bruno Haible  <bruno@clisp.org>
13628
13629         Tests: Fix LOCALE_JA on MirBSD 10.
13630         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13631         to an UTF-8 locale.
13632         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13633         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13634         Reported by Eric Blake.
13635
13636 2010-10-21  Bruno Haible  <bruno@clisp.org>
13637
13638         nl_langinfo test: Avoid test failure on NetBSD 5.
13639         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13640         Reported by Eric Blake.
13641
13642 2010-10-21  Eric Blake  <eblake@redhat.com>
13643
13644         c-stack: work around libsigsegv 2.8 bug
13645         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13646         overflow on at least PowerPC64.
13647
13648 2010-10-17  Bruno Haible  <bruno@clisp.org>
13649
13650         userspec: Drop redundant file.
13651         * modules/userspec (Files): Remove lib/inttostr.h.
13652
13653 2010-10-17  Bruno Haible  <bruno@clisp.org>
13654
13655         nl_langinfo tests: Silence some warnings.
13656         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13657         Reported by Jim Meyering.
13658
13659 2010-10-17  Bruno Haible  <bruno@clisp.org>
13660
13661         Make use of GCC's attribute __alloc_size__.
13662         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13663         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13664         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13665         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13666         __alloc_size__.
13667         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13668         Suggested by Jim Meyering.
13669
13670 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13671
13672         bootstrap: anchor .gitignore entries.
13673         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13674         with...
13675         (insert_vc_ignore): ... this new function, which prepends `/' to
13676         all .gitignore entries before passing them to
13677         insert_sorted_if_absent.
13678
13679 2010-10-16  Bruno Haible  <bruno@clisp.org>
13680
13681         nextafter: Fix configure check.
13682         * modules/nextafter (configure.ac): Correct expected prototype.
13683
13684 2010-10-16  Bruno Haible  <bruno@clisp.org>
13685
13686         termios: Update documentation.
13687         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13688
13689 2010-10-16  Bruno Haible  <bruno@clisp.org>
13690
13691         tests: Make them compile with TinyCC.
13692         * tests/test-strstr.c (main): Remove parentheses around array
13693         initializer.
13694
13695 2010-10-15  Eric Blake  <eblake@redhat.com>
13696
13697         ignore-value: make header idempotent
13698         * lib/ignore-value.h: Add double-inclusion guards.
13699         Reported by Stefan Berger.
13700
13701 2010-10-15  Jim Meyering  <meyering@redhat.com>
13702
13703         GNUmakefile: handle "stable" target, not "major"
13704         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13705         lists in maint.mk and announce-gen.  Without this, "make stable"
13706         would fail to ensure that $(VERSION) is up to date.
13707
13708 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13709
13710         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13711         & co.
13712
13713 2010-10-14  Bruno Haible  <bruno@clisp.org>
13714
13715         vasnprintf: Don't set errno to 0.
13716         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13717         block that sets it to 0.
13718         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13719
13720 2010-10-14  Bruno Haible  <bruno@clisp.org>
13721
13722         socketlib: Fix.
13723         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13724         gl_PREREQ_SYS_H_WINSOCK2.
13725         Reported by Ian Beckwith <ianb@erislabs.net>.
13726
13727 2010-10-13  Jim Meyering  <meyering@redhat.com>
13728
13729         test-select-stdin.c: avoid warn_unused_result warnings
13730         * tests/test-select-stdin.c: Include "macros.h".
13731         ASSERT that read and fflush succeed.
13732
13733 2010-10-13  Jim Meyering  <meyering@redhat.com>
13734
13735         git-version-gen: do require git-VC'd files in cwd
13736         * build-aux/git-version-gen: Reject a git version string
13737         if there are no commits associated with the current directory.
13738         This avoids an unlikely false-positive (unrelated dir whose parent
13739         repository also contains a tag matching v*), as pointed out
13740         by Giuseppe Scrivano in
13741         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13742
13743 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13744
13745         argv-iter: omit nonconforming declaration
13746         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13747         enum arg_iter_err declaration, which doesn't conform to C99.
13748         Solaris 10 cc warns about this.
13749
13750 2010-10-13  Eric Blake  <eblake@redhat.com>
13751
13752         termios: fix compilation on mingw
13753         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13754         (gl_TERMIOS_H): Adjust it on mingw.
13755         * modules/termios (Makefile.am): Substitute new key.
13756         * lib/termios.in.h (includes): Make include_next conditional.
13757         * doc/posix-headers/termios.texi (termios.h): Update
13758         documentation.
13759         Reported by Daniel P. Berrange.
13760
13761 2010-10-13  Jim Meyering  <meyering@redhat.com>
13762
13763         git-version-gen: don't require that .git/ be in the current dir
13764         * build-aux/git-version-gen: Adjust this script so that it works
13765         when run from any working directory beneath the top-level .git/-
13766         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13767         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13768
13769         test-select: avoid warn_unused_result warnings
13770         * tests/test-select.c: Include "macros.h".
13771         ASSERT that each call to read, write, and pipe succeeds.
13772         While not technically required, also check each "close".
13773         * modules/select-tests (Files): Add tests/macros.h.
13774
13775         test-symlinkat: remove declaration of unused local
13776         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13777
13778         test-inttostr: avoid shadowing warnings
13779         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13780         and use malloc rather than the stack for the same reason as
13781         mentioned in the comment justifying the other allocation.
13782
13783 2010-10-11  Bruno Haible  <bruno@clisp.org>
13784
13785         stdlib: Allow multiple gnulib generated replacements to coexist.
13786         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13787         Reported by Sam Steingold <sds@gnu.org>.
13788
13789 2010-10-11  Jim Meyering  <meyering@redhat.com>
13790
13791         fix a documentation typo
13792         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13793
13794 2010-10-11  Eric Blake  <eblake@redhat.com>
13795
13796         futimens: work around Solaris 11 bug
13797         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13798         * tests/test-futimens.h (test_futimens): Enhance, rather than
13799         weaken test.
13800         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13801
13802 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13803
13804         Indentation.
13805         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13806         higher-level operators more to the left.
13807
13808 2010-10-11  Jim Meyering  <meyering@redhat.com>
13809
13810         test-futimens: avoid unwarranted test failure on Solaris 5.11
13811         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13812         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13813         because it tries to dereference the NULL name argument.
13814
13815 2010-10-11  Bruno Haible  <bruno@clisp.org>
13816
13817         Indentation.
13818         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13819         indentation.
13820
13821 2010-10-11  Jim Meyering  <meyering@redhat.com>
13822
13823         spawn.in.h: make indentation consistent with parentheses
13824         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13825         Make indentation consistent with parentheses.
13826
13827 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13828
13829         Fix mismatched parens in previous commit
13830         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13831         parens.
13832
13833 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13834
13835         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13836
13837         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13838         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13839         * lib/malloca.c: Include "verify.h".
13840         (verify1): Remove, replacing with a verify call.
13841         * lib/relocwrapper.c (verify1): Likewise.
13842         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13843         Likewise.
13844         * modules/malloca (Depends-on): Add 'verify'.
13845         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13846         * modules/vasnprintf (Depends-on): Add 'verify'.
13847         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13848         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13849         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13850         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13851         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13852         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13853         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13854
13855         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13856
13857         Formerly the style was sometimes 2*X - 1, because the C standard
13858         was wrongly thought to disallow ?: in integral constant expressions.
13859         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13860         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13861         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13862         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13863         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13864         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13865         verify that time_t cannot be floating.
13866
13867 2010-10-08  Eric Blake  <eblake@redhat.com>
13868
13869         time: enforce recent POSIX ruling that time_t is integral
13870         * lib/time.in.h (__time_t_must_be_integral): Detect any
13871         problematic systems, allowing the rest of gnulib to assume POSIX.
13872
13873 2010-10-08  Jim Meyering  <meyering@redhat.com>
13874
13875         fdopendir: fix a bug on systems lacking openat and /proc support
13876         OpenBSD 4.7 is one such system.  The most noticeable effect was
13877         failure of any application making nontrivial use of fts: rm, du,
13878         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13879           ./rm: traversal failed: `a': Bad file descriptor
13880         Debugging that, you see that even though FD 6 was closed just
13881         prior to the opendir call in fd_clone_opendir, its resulting
13882         dir->dd_fd was 8, rather than the expected value of 6:
13883
13884         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13885         93                close (fd);
13886         (gdb) n
13887         94                dir = fd_clone_opendir (dupfd);
13888         (gdb) n
13889         95                saved_errno = errno;
13890         (gdb) p dir->dd_fd
13891         $11 = 8
13892
13893         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13894         The problem is that on OpenBSD, fd_clone_opendir has to resort
13895         to using the old-style save/restore CWD mechanism, due to its
13896         lack of openat/proc support, and *that* would steal the FD (6)
13897         that opendir was supposed to use.
13898
13899         The fix is to squirrel away the desired FD so that save_cwd uses a
13900         different one, and then free the dest FD right before calling opendir.
13901         That guarantees opendir will use the required file descriptor.
13902
13903         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13904
13905 2010-10-08  Bruno Haible  <bruno@clisp.org>
13906
13907         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13908         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13909
13910 2010-10-08  Bruno Haible  <bruno@clisp.org>
13911
13912         nanosleep: Make replacement POSIX compliant.
13913         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13914         is out of range.
13915         Reported by Jim Meyering.
13916
13917 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13918
13919         bootstrap: add hook for altering gnulib.mk, for Bison
13920         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13921         the Bison bootstrapping process can rewrite file names and variables
13922         in this file before later parts of 'bootstrap' use the file.
13923         Bison wants to include lib/gnulib.mk from the top-level makefile,
13924         so it needs the file names in this file to be relative to the top
13925         level, not relative to lib; plus it needs variable names to be
13926         rewritten.
13927         (slurp): Use the new function.
13928
13929         bootstrap: reformat for readability
13930         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13931
13932 2010-10-08  Eric Blake  <eblake@redhat.com>
13933
13934         docs: update cygwin progress
13935         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13936         1.7.7.
13937         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13938         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13939         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13940         * doc/posix-functions/carg.texi (carg): Likewise.
13941         * doc/posix-functions/cargf.texi (cargf): Likewise.
13942         * doc/posix-functions/casin.texi (casin): Likewise.
13943         * doc/posix-functions/casinf.texi (casinf): Likewise.
13944         * doc/posix-functions/casinh.texi (casinh): Likewise.
13945         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13946         * doc/posix-functions/catan.texi (catan): Likewise.
13947         * doc/posix-functions/catanf.texi (catanf): Likewise.
13948         * doc/posix-functions/catanh.texi (catanh): Likewise.
13949         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13950         * doc/posix-functions/ccos.texi (ccos): Likewise.
13951         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13952         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13953         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13954         * doc/posix-functions/cexp.texi (cexp): Likewise.
13955         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13956         * doc/posix-functions/cimag.texi (cimag): Likewise.
13957         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13958         * doc/posix-functions/clog.texi (clog): Likewise.
13959         * doc/posix-functions/clogf.texi (clogf): Likewise.
13960         * doc/posix-functions/conj.texi (conj): Likewise.
13961         * doc/posix-functions/conjf.texi (conjf): Likewise.
13962         * doc/posix-functions/cpow.texi (cpow): Likewise.
13963         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13964         * doc/posix-functions/cproj.texi (cproj): Likewise.
13965         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13966         * doc/posix-functions/creal.texi (creal): Likewise.
13967         * doc/posix-functions/crealf.texi (crealf): Likewise.
13968         * doc/posix-functions/csin.texi (csin): Likewise.
13969         * doc/posix-functions/csinf.texi (csinf): Likewise.
13970         * doc/posix-functions/csinh.texi (csinh): Likewise.
13971         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13972         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13973         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13974         * doc/posix-functions/ctan.texi (ctan): Likewise.
13975         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13976         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13977         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13978         * doc/posix-headers/complex.texi (complex.h): Likewise.
13979
13980 2010-10-07  Jim Meyering  <meyering@redhat.com>
13981
13982         parse-datetime: avoid compilation failure on OpenBSD 4.7
13983         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13984         This works around a compilation failure on OpenBSD 4.7:
13985         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13986
13987 2010-10-07  Eric Blake  <eblake@redhat.com>
13988
13989         docs: update cygwin progress
13990         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13991         1.7.6.
13992         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13993         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13994         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13995         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13996         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13997         Likewise.
13998         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13999         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14000         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14001         Likewise.
14002         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14003         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14004         Likewise.
14005         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14006         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14007         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14008         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14009         Likewise.
14010         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14011         Likewise.
14012         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14013
14014         docs: update parse-datetime history
14015         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14016         documentation of this function's history and alternatives.
14017
14018         cygwin: use more robust version check
14019         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14020         exclude an eventual cygwin 1.9.1.
14021         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14023         (gl_FUNC_STRCASESTR): Likewise.
14024         Reported by Bruno Haible.
14025
14026 2010-10-06  Bruno Haible  <bruno@clisp.org>
14027
14028         string, sys_select: Avoid #including large headers unless necessary.
14029         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14030         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14031         OSF/1, BeOS, Haiku.
14032         Reported by Jim Meyering.
14033
14034 2010-10-05  Eric Blake  <eblake@redhat.com>
14035
14036         memmem, strstr, strcasestr: fix bug with long periodic needle
14037         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14038         periodic needle having false positive.
14039         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14040         and cygwin 1.7.7.
14041         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14043         (gl_FUNC_STRCASESTR): Likewise.
14044         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14045         * tests/test-memmem.c (main): Expose the bug.
14046         * tests/test-strcasestr.c (main): Likewise.
14047         * tests/test-strstr.c (main): Likewise.
14048         * tests/test-c-strcasestr.c (main): Likewise.
14049         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14050         * doc/posix-functions/strstr.texi (strstr): Likewise.
14051         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14052         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14053
14054 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14055
14056         parse-datetime: do some more renaming
14057         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14058         parse_datetime, not get_date.  Mention the renaming.
14059         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14060         in comments.
14061         * m4/bison.m4: Likewise.
14062
14063 2010-10-05  Eric Blake  <eblake@redhat.com>
14064
14065         parse-datetime: better name than get_date
14066         * NEWS: Reword the deprecation notice.
14067         * modules/get_date: Rename to modules/parse-datetime.
14068         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14069         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14070         * lib/get_date.y: Rename to lib/parse-datetime.y.
14071         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14072         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14073         * doc/getdate.texi: Provide fallback wrapper.
14074         * lib/getdate.h: Move guts, and wrap...
14075         * lib/parse-datetime.h: ...new file.
14076         * lib/parse-datetime.y (get_date): Rename...
14077         (parse_datetime): ...to this.
14078         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14079         (gl_PARSE_DATETIME): ...to this.
14080         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14081         documentation.
14082         * modules/getdate (Files): Provide fallback docs and header.
14083         (Notice, Depends-on): Update references.
14084         * tests/test-parse-datetime.c: Likewise.
14085         * DEPENDENCIES: Likewise.
14086         * MODULES.html.sh (Date and time <time.h>): Likewise.
14087         * doc/parse-datetime.texi (Date input formats)
14088         (Authors of parse_datetime): Likewise.
14089         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14090         (Include): Likewise.
14091         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14092         * gnulib-tool: Likewise.
14093         * m4/bison.m4 (gl_BISON): Likewise.
14094         Suggested by Bruno Haible.
14095
14096 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14097
14098         more ports to Solaris tr, which needs [] around ranges
14099         * gnulib-tool: Solaris tr needs [] around ranges.
14100         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14101         * tests/test-pipe-filter-gi1.c (main): Likewise.
14102         * tests/test-pipe-filter-ii1.c (main): Likewise.
14103
14104 2010-10-05  Eric Blake  <eblake@redhat.com>
14105
14106         bootstrap: fix Solaris regression
14107         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14108         around ranges.
14109         Reported by Pádraig Brady.
14110
14111         bootstrap: work with pkg-config
14112         * build-aux/bootstrap (check_versions): Also transliterate - in
14113         prerequisite name.
14114         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14115         prerequisites that were already found, to avoid confusion.
14116         Reported by Justin Clift.
14117
14118         faccessat: remove unused wrappers
14119         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14120         presence of these wrappers dragged in -lgen on Solaris.
14121         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14122
14123 2010-10-05  Jim Meyering  <meyering@redhat.com>
14124
14125         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14126         * Makefile (sc_pragma_columns): New syntax-check rule.
14127
14128 2010-10-04  Bruno Haible  <bruno@clisp.org>
14129
14130         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14131         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14132         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14133         Reported by Bruce Korb and Eric Blake.
14134
14135 2010-10-04  Bruno Haible  <bruno@clisp.org>
14136
14137         threadlib: Make option --with-libpth-prefix work.
14138         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14139         use $LIBPTH, not just -lpth.
14140
14141 2010-10-04  Bruno Haible  <bruno@clisp.org>
14142
14143         Avoid line length limitation from HP NonStop system header files.
14144         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14145         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14146         * lib/ctype.in.h: Likewise.
14147         * lib/dirent.in.h: Likewise.
14148         * lib/errno.in.h: Likewise.
14149         * lib/fcntl.in.h: Likewise.
14150         * lib/float.in.h: Likewise.
14151         * lib/getopt.in.h: Likewise.
14152         * lib/iconv.in.h: Likewise.
14153         * lib/inttypes.in.h: Likewise.
14154         * lib/langinfo.in.h: Likewise.
14155         * lib/locale.in.h: Likewise.
14156         * lib/math.in.h: Likewise.
14157         * lib/netdb.in.h: Likewise.
14158         * lib/netinet_in.in.h: Likewise.
14159         * lib/poll.in.h: Likewise.
14160         * lib/pthread.in.h: Likewise.
14161         * lib/pty.in.h: Likewise.
14162         * lib/sched.in.h: Likewise.
14163         * lib/se-selinux.in.h: Likewise.
14164         * lib/search.in.h: Likewise.
14165         * lib/signal.in.h: Likewise.
14166         * lib/spawn.in.h: Likewise.
14167         * lib/stdarg.in.h: Likewise.
14168         * lib/stddef.in.h: Likewise.
14169         * lib/stdint.in.h: Likewise.
14170         * lib/stdio.in.h: Likewise.
14171         * lib/stdlib.in.h: Likewise.
14172         * lib/string.in.h: Likewise.
14173         * lib/strings.in.h: Likewise.
14174         * lib/sys_file.in.h: Likewise.
14175         * lib/sys_ioctl.in.h: Likewise.
14176         * lib/sys_select.in.h: Likewise.
14177         * lib/sys_socket.in.h: Likewise.
14178         * lib/sys_stat.in.h: Likewise.
14179         * lib/sys_time.in.h: Likewise.
14180         * lib/sys_times.in.h: Likewise.
14181         * lib/sys_utsname.in.h: Likewise.
14182         * lib/sys_wait.in.h: Likewise.
14183         * lib/sysexits.in.h: Likewise.
14184         * lib/termios.in.h: Likewise.
14185         * lib/time.in.h: Likewise.
14186         * lib/unistd.in.h: Likewise.
14187         * lib/wchar.in.h: Likewise.
14188         * lib/wctype.in.h: Likewise.
14189         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14190         * modules/ctype (Makefile.am): Likewise.
14191         * modules/dirent (Makefile.am): Likewise.
14192         * modules/errno (Makefile.am): Likewise.
14193         * modules/fcntl-h (Makefile.am): Likewise.
14194         * modules/float (Makefile.am): Likewise.
14195         * modules/getopt-posix (Makefile.am): Likewise.
14196         * modules/iconv-h (Makefile.am): Likewise.
14197         * modules/inttypes (Makefile.am): Likewise.
14198         * modules/langinfo (Makefile.am): Likewise.
14199         * modules/locale (Makefile.am): Likewise.
14200         * modules/math (Makefile.am): Likewise.
14201         * modules/netdb (Makefile.am): Likewise.
14202         * modules/netinet_in (Makefile.am): Likewise.
14203         * modules/poll-h (Makefile.am): Likewise.
14204         * modules/pthread (Makefile.am): Likewise.
14205         * modules/pty (Makefile.am): Likewise.
14206         * modules/sched (Makefile.am): Likewise.
14207         * modules/search (Makefile.am): Likewise.
14208         * modules/selinux-h (Makefile.am): Likewise.
14209         * modules/signal (Makefile.am): Likewise.
14210         * modules/spawn (Makefile.am): Likewise.
14211         * modules/stdarg (Makefile.am): Likewise.
14212         * modules/stddef (Makefile.am): Likewise.
14213         * modules/stdint (Makefile.am): Likewise.
14214         * modules/stdio (Makefile.am): Likewise.
14215         * modules/stdlib (Makefile.am): Likewise.
14216         * modules/string (Makefile.am): Likewise.
14217         * modules/strings (Makefile.am): Likewise.
14218         * modules/sys_file (Makefile.am): Likewise.
14219         * modules/sys_ioctl (Makefile.am): Likewise.
14220         * modules/sys_select (Makefile.am): Likewise.
14221         * modules/sys_socket (Makefile.am): Likewise.
14222         * modules/sys_stat (Makefile.am): Likewise.
14223         * modules/sys_time (Makefile.am): Likewise.
14224         * modules/sys_times (Makefile.am): Likewise.
14225         * modules/sys_utsname (Makefile.am): Likewise.
14226         * modules/sys_wait (Makefile.am): Likewise.
14227         * modules/sysexits (Makefile.am): Likewise.
14228         * modules/termios (Makefile.am): Likewise.
14229         * modules/time (Makefile.am): Likewise.
14230         * modules/unistd (Makefile.am): Likewise.
14231         * modules/wchar (Makefile.am): Likewise.
14232         * modules/wctype (Makefile.am): Likewise.
14233
14234 2010-10-04  Bruno Haible  <bruno@clisp.org>
14235
14236         read-file tests: Avoid a test failure on NonStop Kernel.
14237         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14238         a regular file.
14239         Reported by Joachim Schmitz <schmitz@hp.com>.
14240
14241 2010-10-03  Bruno Haible  <bruno@clisp.org>
14242
14243         gnulib-tool: Fixes for --create-testdir with --libtool.
14244         * gnulib-tool (func_get_automake_snippet): Don't augment
14245         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14246         an executable.
14247         (func_create_testdir): Handle module 'alloca' like func_import.
14248         Reported by Bruce Korb <bruce.korb@gmail.com>.
14249
14250 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14251
14252         Avoid some lines longer than 80 characters.
14253         * lib/stdint.in.h: Break long comment lines.
14254         * lib/math.in.h: Likewise.
14255         (_GL_NUM_UINT_WORDS): New macro, for readability.
14256         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14257         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14258         * lib/stdlib.in.h: Likewise.
14259         * lib/spawn.in.h: Likewise.
14260         * lib/sys_socket.in.h: Update an URL.
14261         * lib/sys_stat.in.h: Break long line.
14262
14263 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14264
14265         Improve pmccabe2html.
14266         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14267         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14268         when the sources change. Remove the line in the HTML about "Used
14269         ranges" (which implied that there might be other unused ranges),
14270         rename "Resume" to "Summary" (easier to understand for more users).
14271         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14272         styles, and some unnecessary blank lines.
14273
14274 2010-10-03  Bruno Haible  <bruno@clisp.org>
14275             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14276
14277         acl: Add support for ACLs on NonStop Kernel.
14278         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14279         Check whether the function aclsort() exists.
14280         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14281         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14282         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14283         (acl_nontrivial [HAVE_ACLSORT]: New function.
14284         (file_has_acl): Implement for NonStop Kernel.
14285         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14286         (qset_acl): Implement for NonStop Kernel.
14287         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14288         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14289         (main): Implement for NonStop Kernel.
14290         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14291         Kernel. Handle this flavor.
14292         * tests/test-set-mode-acl.sh: Likewise.
14293         * tests/test-copy-acl.sh: Likewise.
14294         * tests/test-copy-file.sh: Likewise.
14295
14296 2010-10-03  Bruno Haible  <bruno@clisp.org>
14297
14298         Info about ACLs on NonStop Kernel.
14299         * doc/acl-resources.txt: Add info about NonStop Kernel.
14300         References by Joachim Schmitz <schmitz@hp.com>.
14301
14302 2010-10-02  Bruno Haible  <bruno@clisp.org>
14303
14304         Define missing EDQUOT on NonStop Kernel.
14305         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14306         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14307         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14308         missing.
14309         * doc/posix-headers/errno.texi: Mention the NSK bug.
14310         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14311         Reported by Joachim Schmitz <schmitz@hp.com>.
14312
14313 2010-10-02  Bruno Haible  <bruno@clisp.org>
14314
14315         Update doc for POSIX:2008.
14316         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14317         Update URL of POSIX specification.
14318
14319 2010-10-02  Bruno Haible  <bruno@clisp.org>
14320
14321         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14322         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14323         from gnulib, not from Automake.
14324
14325 2010-10-02  Bruno Haible  <bruno@clisp.org>
14326
14327         New module 'system-posix'.
14328         * modules/system-posix: New file.
14329         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14330         module is present.
14331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14332         GNULIB_SYSTEM_POSIX.
14333         * modules/stdlib (Depends-on): Remove sys_wait.
14334         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14335         * doc/posix-functions/system.texi: Mention the new module.
14336         * doc/posix-headers/stdlib.texi: Likewise.
14337         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14338         define test_sys_wait_macros to a no-op.
14339         Reported by Sam Steingold <sds@gnu.org>.
14340
14341 2010-09-30  Bruno Haible  <bruno@clisp.org>
14342
14343         More renaming from 'getdate' to 'get_date'.
14344         * doc/get_date.texi: Renamed from doc/getdate.texi.
14345         * modules/get_date (Files): Update.
14346         * MODULES.html.sh (Date and time <time.h>): Update.
14347         * DEPENDENCIES: Update.
14348         * gnulib-tool: Update comment.
14349         * m4/bison.m4 (gl_BISON): Likewise.
14350         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14351
14352 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14353
14354         bootstrap: support ACLOCAL_FLAGS during aclocal
14355         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14356         can add additional -I dir for third-party .m4 files.
14357
14358 2010-09-30  Eric Blake  <eblake@redhat.com>
14359
14360         bootstrap: use glibtoolize on MacOS
14361         * build-aux/bootstrap (check_versions): Convert libtool into
14362         libtoolize.
14363         (tool search): Move libtool check earlier, and look for
14364         glibtoolize for MacOS.
14365         (gnulib_tool_options): Auto-add --libtool when appropriate.
14366         Reported by Justin Clift.
14367
14368         poll: fix typo that broke test on MacOS
14369         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14370         Reported by Justin Clift.
14371
14372         getdate: rename to get_date
14373         Note: getdate.h is not renamed, to minimize client impact.
14374         * modules/getdate: Mark obsolete.  Move old contents...
14375         * modules/get_date: ...to new module name.
14376         * modules/getdate-tests: Move...
14377         * modules/get_date-tests: ...here.
14378         * m4/getdate.m4: Move...
14379         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14380         * lib/getdate.y: Move...
14381         * lib/get_date.y: ...here.
14382         * tests/test-getdate.c: Move...
14383         * tests/test-get_date.c: ...here.
14384         * doc/posix-functions/getdate.texi (getdate): Update name.
14385         * NEWS: Mention the change.
14386
14387 2010-09-29  Bruno Haible  <bruno@clisp.org>
14388
14389         Separate the module 'waitpid' from the module 'sys_wait'.
14390         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14391         present.
14392         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14393         gl_MODULE_INDICATOR_FOR_TESTS.
14394         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14395         * modules/sys_wait (Depends-on): Remove waitpid.
14396         (Makefile.am): Substitute GNULIB_WAITPID.
14397         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14398         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14399         signature only if the 'waitpid' module is present.
14400         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14401         * NEWS: Mention the change.
14402         * modules/grantpt (Depends-on): Add waitpid.
14403         * modules/wait-process (Depends-on): Likewise.
14404
14405 2010-09-29  Bruno Haible  <bruno@clisp.org>
14406
14407         More tests for module 'sys_wait'.
14408         * modules/sys_wait-c++-tests: New file.
14409         * tests/test-sys_wait-c++.cc: New file.
14410         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14411         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14412
14413 2010-09-29  Bruno Haible  <bruno@clisp.org>
14414
14415         New module 'waitpid'.
14416         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14417         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14418         Don't include <process.h>.
14419         (waitpid): Declare only, using modern idiom.
14420         * m4/waitpid.m4: New file.
14421         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14422         * modules/waitpid: New file.
14423         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14424         (Makefile.am): Update.
14425         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14426
14427 2010-09-28  Bruno Haible  <bruno@clisp.org>
14428
14429         poll: Assume ANSI C.
14430         * lib/poll.c (poll): Use an ANSI C declaration.
14431
14432 2010-09-28  Bruno Haible  <bruno@clisp.org>
14433
14434         poll-h: Create poll.h on all platforms.
14435         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14436         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14437         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14438         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14439         (gl_REPLACE_POLL_H): Don't set POLL_H.
14440         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14441         * modules/poll-h (Depends-on): Add include_next.
14442         (Makefile.am): Create poll.h unconditionally. Substitute also
14443         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14444
14445 2010-09-28  Bruno Haible  <bruno@clisp.org>
14446
14447         Tests for module 'poll-h'.
14448         * modules/poll-h-c++-tests: New file.
14449         * tests/test-poll-h-c++.cc: New file.
14450
14451         Tests for module 'poll-h'.
14452         * modules/poll-h-tests: New file.
14453         * tests/test-poll-h.c: New file.
14454
14455 2010-09-28  Bruno Haible  <bruno@clisp.org>
14456
14457         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14458         * modules/poll-h (Depends-on): Add 'extensions'.
14459
14460 2010-09-28  Bruno Haible  <bruno@clisp.org>
14461
14462         New module 'poll-h'.
14463         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14464         (poll): Use modern idiom.
14465         * modules/poll-h: New file.
14466         * modules/poll (Files): Remove lib/poll.in.h.
14467         (Depends-on): Add poll-h.
14468         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14469         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14470         * m4/poll_h.m4: New file.
14471         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14472         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14473         and invoke gl_REPLACE_POLL_H.
14474         * lib/poll.c: Use common idiom.
14475         * tests/test-poll.c: Likewise.
14476         * doc/posix-headers/poll.texi: Mention the poll-h module.
14477         Suggested by Eric Blake.
14478
14479 2010-09-26  Bruno Haible  <bruno@clisp.org>
14480
14481         sys_wait: Implement WSTOPSIG.
14482         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14483         Reported by Simon Josefsson.
14484
14485 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14486
14487         stdlib, sys_wait: Avoid compilation error on mingw.
14488         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14489
14490 2010-09-26  Bruno Haible  <bruno@clisp.org>
14491
14492         stdlib tests: Avoid code duplication.
14493         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14494         * modules/sys_wait-tests (Files): Likewise.
14495         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14496         * tests/test-stdlib.c: Include test-sys_wait.h.
14497         (main): Invoke test_sys_wait_macros.
14498         * tests/test-sys_wait.c: Include test-sys_wait.h.
14499         (main): Invoke test_sys_wait_macros.
14500
14501 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14502
14503         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14504         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14505         sure Windows sockets are working before calling getaddrinfo.
14506         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14507         * doc/gnulib.texi (Windows sockets): Fix typo.
14508
14509 2010-09-25  Bruno Haible  <bruno@clisp.org>
14510
14511         Tests for module 'regex-quote'.
14512         * modules/regex-quote-tests: New file.
14513         * tests/test-regex-quote.c: New file.
14514
14515         New module 'regex-quote'.
14516         * lib/regex-quote.h: New file.
14517         * lib/regex-quote.c: New file.
14518         * modules/regex-quote: New file.
14519         Suggested by Reuben Thomas <rrt@sc3d.org>.
14520
14521 2010-09-24  Bruno Haible  <bruno@clisp.org>
14522
14523         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14524         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14525
14526 2010-09-23  Bruno Haible  <bruno@clisp.org>
14527
14528         setenv: Relax license.
14529         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14530         Blake.
14531         Requested by Eric Blake.
14532
14533 2010-09-22  Bruno Haible  <bruno@clisp.org>
14534
14535         termios: Relax license.
14536         * modules/termios (License): Change to LGPLv2+.
14537         Requested by Eric Blake.
14538
14539 2010-09-22  Bruno Haible  <bruno@clisp.org>
14540
14541         threadlib: Allow the package to change the default to 'no'.
14542         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14543         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14544         Reported by Paul Eggert.
14545
14546 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14547             Bruno Haible  <bruno@clisp.org>
14548
14549         Fix endless loop in mbmemcasecoll.
14550         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14551         byte.
14552         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14553
14554 2010-09-22  Bruno Haible  <bruno@clisp.org>
14555
14556         Tests for module 'memcoll'.
14557         * modules/memcoll-tests: New file.
14558         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14559
14560         memcoll, xmemcoll: Clarify size vs. length.
14561         * modules/memcoll.c (memcoll0): Clarify specification.
14562         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14563         passed to collate_error.
14564
14565 2010-09-22  Bruno Haible  <bruno@clisp.org>
14566
14567         Tests for module 'memcasecmp'.
14568         * modules/memcasecmp-tests: New file.
14569         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14570
14571 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         * lib/pthread.in.h: Add split double-inclusion guard, and include
14574         system <pthread.h> if there is one.  Use @@-style as in other
14575         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14576         pthread.h doesn't.
14577         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14578         (pthread_mutexattr_settype, pthread_mutex_trylock):
14579         New static inline functions, if there's no system <pthread.h>.
14580         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14581         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14582         Approximate with mutexes if the system lacks spinlocks, as in
14583         MacOS.
14584         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14585         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14586         @@-style.  Check for spinlocks separately.
14587         (gl_PTHREAD_DEFAULTS): New macro.
14588         * modules/pthread: Redo to use a more typical style for in.h files.
14589
14590 2010-09-21  Eric Blake  <eblake@redhat.com>
14591
14592         net_if: enhance tests
14593         * tests/test-net_if.c (main): Move signature checks earlier.
14594         Print failures to stderr.
14595         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14596         Document the bug that we do not yet fix.
14597
14598 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14599
14600         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14601         about gnulib, not GSS.
14602
14603 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14604
14605         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14606         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14607         for Emacs.
14608         * build-aux/pmccabe2html: Make Makefile.am example code more
14609         cut-and-paste friendly.
14610
14611 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14612
14613         * tests/test-net_if.c: New file.
14614         * modules/net_if-tests: New file.
14615
14616 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14617
14618         pthread: add pthread_spin_destroy
14619         * lib/pthread.in.h (pthread_spin_destroy): New function.
14620
14621 2010-09-19  Bruno Haible  <bruno@clisp.org>
14622
14623         gnulib-tool: Fix --help output.
14624         * gnulib-tool (func_usage): Fix help message.
14625         Reported by Reuben Thomas <rrt@sc3d.org>.
14626
14627 2010-09-18  Jim Meyering  <meyering@redhat.com>
14628
14629         maint.mk: avoid unexpanded \n in two diagnostics
14630         * top/maint.mk (sc_prohibit_always_true_header_tests):
14631         Don't use a literal \n in a halt=... assignment.  It would not be
14632         expanded, and the two \n bytes would appear in the diagnostic output
14633         rather than the desired newline.  Use halt=$$(printf ... instead.
14634         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14635
14636 2010-09-18  Bruno Haible  <bruno@clisp.org>
14637
14638         netinet_in: Doc tweak.
14639         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14640         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14641
14642 2010-09-18  Jim Meyering  <meyering@redhat.com>
14643
14644         init.sh: correct an outdated comment
14645         * tests/init.sh (create_exe_shims_):  s/function/alias/
14646
14647         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14648         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14649         a file named "*.exe" is removed between the glob expansion and the
14650         processing of that oddly named file.
14651
14652 2010-09-17  Eric Blake  <eblake@redhat.com>
14653
14654         mirbsd: add some more support
14655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14656         in BSD family.
14657         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14658         devices as OpenBSD.
14659         * m4/host-os.m4 (mirbsd): Add MirBSD.
14660
14661         tests: fix unportable assumption on sys/wait.h
14662         * tests/test-sys_wait.c (main): Relax test.
14663         * tests/test-stdlib.c (main): Likewise.
14664
14665         init.sh: accomodate directory with no .exes
14666         * tests/init.sh: Accomodate directory containing only scripts.
14667
14668         tests: avoid compiler warning
14669         * tests/test-stdlib.c (main): Use the variable.
14670
14671         fdutimens, fdutimensat: update signature, again
14672         * lib/utimens.h (gl_futimens): Delete, and move signature...
14673         (fdutimens): ...here.
14674         (fdutimensat): Rearrange signature.
14675         (lutimensat): Rename variable for clarity.
14676         * lib/fdutimensat.c (fdutimensat): Update signature.
14677         * lib/utimens.c (fdutimens): Likewise.
14678         (gl_futimens): Delete.
14679         (utimens, lutimens): Update callers.
14680         * lib/futimens.c (futimens): Likewise.
14681         * tests/test-fdutimensat.c: Likewise.
14682         * tests/test-utimens.c: Likewise.
14683         * tests/test-futimens.h: Update comment.
14684         * NEWS: Mention this.
14685         Suggested by Paul Eggert.
14686
14687 2010-09-17  Bruno Haible  <bruno@clisp.org>
14688
14689         Take over the maintenance of some older macros from Autoconf.
14690         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14691         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14692         GNU Autoconf.
14693         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14694         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14695
14696 2010-09-17  Eric Blake  <eblake@redhat.com>
14697
14698         fdutimensat: drop atflag validation
14699         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14700         with valid fd, to close a race scenario where futimens is
14701         unsupported and FILE was replaced by a symlink.
14702         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14703         accordingly.
14704         Suggested by Paul Eggert.
14705
14706 2010-09-16  Bruno Haible  <bruno@clisp.org>
14707
14708         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14709         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14710
14711 2010-09-16  Bruno Haible  <bruno@clisp.org>
14712
14713         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14714         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14715         login_tty exists.
14716         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14717
14718 2010-09-16  Bruno Haible  <bruno@clisp.org>
14719
14720         login_tty: Make the replacement code work on BSD systems.
14721         * lib/login_tty.c: Include <sys/ioctl.h>.
14722         (login_tty): Use ioctl TIOCSCTTY when available.
14723         * modules/login_tty (Depends-on): Add sys_ioctl.
14724         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14725
14726 2010-09-16  Bruno Haible  <bruno@clisp.org>
14727
14728         login_tty: Stricter unit test.
14729         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14730         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14731         and tcgetsid() after login_tty.
14732         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14733
14734 2010-09-16  Bruno Haible  <bruno@clisp.org>
14735
14736         New module 'tcgetsid'.
14737         * lib/tcgetsid.c: New file.
14738         * m4/tcgetsid.m4: New file.
14739         * modules/tcgetsid: New file.
14740         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14741         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14742         GNULIB_TCGETSID, HAVE_TCGETSID.
14743         * lib/termios.in.h: Include <sys/types.h>.
14744         (tcgetsid): New declaration.
14745         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14746         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14747         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14748         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14749
14750 2010-09-16  Bruno Haible  <bruno@clisp.org>
14751
14752         Tests for module 'termios'.
14753         * modules/termios-c++-tests: New file.
14754         * modules/termios-tests: New file.
14755         * tests/test-termios-c++.cc: New file.
14756         * tests/test-termios.c: New file.
14757
14758         New module 'termios'.
14759         * modules/termios: New file.
14760         * lib/termios.in.h: New file.
14761         * m4/termios_h.m4: New file.
14762         * doc/posix-headers/termios.texi: Mention the new module.
14763
14764 2010-09-16  Eric Blake  <eblake@redhat.com>
14765
14766         fdutimensat: add an atflag parameter
14767         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14768         * lib/utimens.h (fdutimensat): Update prototype.
14769         * tests/test-fdutimensat.c: Adjust test to match.
14770         * NEWS: Document the change.
14771         Suggested by Paul Eggert.
14772
14773 2010-09-16  Bruno Haible  <bruno@clisp.org>
14774
14775         Fix typos in comments.
14776         * lib/striconveh.h: Fix typo in comment.
14777         * lib/login_tty.c (login_tty): Likewise.
14778
14779 2010-09-15  Bruno Haible  <bruno@clisp.org>
14780
14781         stdlib: clarify MirBSD WEXITSTATUS bug
14782         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14783         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14784
14785 2010-09-15  Eric Blake  <eblake@redhat.com>
14786
14787         stdlib: work around MirBSD WEXITSTATUS bug
14788         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14789         * modules/stdlib (Depends-on): Add sys_wait.
14790         * tests/test-sys_wait.c (main): Enhance test.
14791         * tests/test-stdlib.c (main): Likewise.
14792         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14793
14794         docs: mention MacOS issue with WEXITSTATUS(constant)
14795         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14796         issue.
14797         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14798
14799         strnlen: add tests
14800         * modules/strnlen-tests: New file.
14801         * tests/test-strnlen.c: Likewise.
14802
14803 2010-09-14  Bruno Haible  <bruno@clisp.org>
14804
14805         unistr/base: Avoid link errors when module 'libunistring' is also used.
14806         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14807         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14808         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14809         Declare also when HAVE_LIBUNISTRING is set.
14810         Reported by Pádraig Brady <P@draigbrady.com>.
14811
14812 2010-09-14  Eric Blake  <eblake@redhat.com>
14813
14814         test-rawmemchr: make more robust
14815         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14816         (Depends-on, configure.ac): Add needed prerequisites to use it.
14817         * modules/memchr-tests (Files, Depends-on, configure.ac):
14818         Likewise, to avoid implicit reliance on memchr module prereqs.
14819         * tests/test-memchr.c (main): Ensure proper masking.
14820         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14821         reads.
14822
14823         memchr: detect glibc Alpha bug
14824         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14825         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14826         Alpha.
14827         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14828         * tests/test-memchr.c (main): Enhance test.
14829         Reported by Nelson H. F. Beebe.
14830
14831 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14832
14833         fts, getcwd, glob: audit for dirfd returning -1
14834         * lib/fts.c (opendir): Remove #define; no longer used.
14835         (opendirat): New arg PDIR_FD.  All callers changed.
14836         (fts_build, _opendir2): Use new opendirat to avoid the need for
14837         dirfd, or for checking whether dirfd returns a negative value.
14838         Don't use opendir; always use openat followed by fdopendir.
14839         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14840         it.
14841         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14842         returns -1 here.
14843         * modules/fts (Depends-on): Remove dirfd.
14844         * modules/getcwd (Depends-on): Likewise.
14845
14846 2010-09-13  Eric Blake  <eblake@redhat.com>
14847
14848         float: fix broken MirBSD header
14849         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14850         * doc/posix-headers/float.texi (float.h): Document it.
14851
14852 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14853
14854         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14855         * lib/fts.c (opendirat): New arg extra_flags.
14856         (__opendir2): Use it to avoid following symlinks when opening
14857         a directory, if symlinks are not supposed to be followed.  See
14858         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14859
14860         fdopendir: preserve argument fd before returning
14861         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14862         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14863         (fdopendir): Use them, arranging for FD to be open to the same
14864         directory that it was when it started.  (It might be temporarily
14865         closed while fdopendir is running, so this not thread- or
14866         signal-safe.)  Be careful to do the right thing even when file
14867         descriptors are scarce and dup fails with errno == EMFILE.  See
14868         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14869
14870 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14871
14872         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14873         * NEWS: Document change.
14874         * m4/regex.m4: Disable test for regoff_t size.
14875
14876 2010-09-13  Jim Meyering  <meyering@redhat.com>
14877
14878         fts: don't operate on an invalid file descriptor after failed dup
14879         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14880         negative file descriptor.
14881
14882 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14883
14884         savedir: add streamsavedir, deprecate fdsavedir
14885         * NEWS: Mention deprecation of fdsavedir.
14886         * lib/savedir.c (streamsavedir): New extern function, whose name
14887         ends in "savedir" to be consistent with the others.  This differs
14888         from savedirstream in that it doesn't close its argument.  The
14889         next version of GNU tar will use this instead of fdsavedir, to
14890         avoid some race conditions and conserve file descriptors.
14891         (savedirstream): Reimplement as a wrapper around streamsavedir.
14892         (fdsavedir): Add a comment deprecating this function.  As far as
14893         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14894         * lib/savedir.h (streamsavedir): New decl.
14895         (fdsavedir): Add a comment deprecating this.
14896
14897 2010-09-10  Bruno Haible  <bruno@clisp.org>
14898
14899         langinfo: Fix last commit.
14900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14901         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14903
14904 2010-09-10  Bruno Haible  <bruno@clisp.org>
14905
14906         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14907         * lib/progreloc.c (O_EXEC): Define fallback.
14908
14909 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14910
14911         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14912         * NEWS: Document recent changes to fcntl-h.
14913         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14914         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14915         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14916         Similarly for O_SEARCH; this last was already true, but not documented.
14917         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14918         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14919         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14920         Likewise.
14921         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14922         is zero, not whether it is defined.
14923         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14924         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14925         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14926
14927 2010-09-10  Bruno Haible  <bruno@clisp.org>
14928
14929         langinfo, nl_langinfo: Fix for IRIX 5.3.
14930         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14931         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14932         HAVE_LANGINFO_YESEXPR.
14933         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14934         HAVE_LANGINFO_YESEXPR.
14935         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14936         HAVE_LANGINFO_T_FMT_AMPM is 0.
14937         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14938         HAVE_LANGINFO_YESEXPR is 0.
14939         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14940         NOEXPR.
14941         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14942         * doc/posix-functions/nl_langinfo.texi: Likewise.
14943         Reported by Eric Blake.
14944
14945 2010-09-10  Bruno Haible  <bruno@clisp.org>
14946
14947         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14948         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14949         on FreeBSD 8.0 and OpenBSD 4.6.
14950         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14951         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14952         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14953         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14954         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14955         ac_includes_default.
14956         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14957
14958 2010-09-09  Eric Blake  <eblake@redhat.com>
14959
14960         strsignal: work around NetBSD bug
14961         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14962         * lib/string.in.h (includes): Likewise.
14963         * doc/posix-functions/strsignal.texi (strsignal): Document the
14964         bug.
14965         Reported by Nelson H. F. Beebe.
14966
14967         gnulib-tool: work with NetBSD /bin/sh
14968         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14969         (func_get_description, func_get_comment, func_get_status)
14970         (func_get_notice, func_get_applicability, func_get_filelist)
14971         (func_get_dependencies, func_get_autoconf_early_snippet)
14972         (func_get_autoconf_snippet, func_get_automake_snippet)
14973         (func_get_include_directive, func_get_link_directive)
14974         (func_get_license, func_get_maintainer, func_import): Avoid
14975         shell syntax errors from parsing syntax extensions.
14976
14977 2010-09-09  Bruno Haible  <bruno@clisp.org>
14978
14979         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14980         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14981         a reliable way to determine whether the 'alias' command works.
14982
14983 2010-09-08  Jim Meyering  <meyering@redhat.com>
14984
14985         init.sh: penalize a set-x-impaired shell; don't disqualify it
14986         * tests/init.sh: Too many shells corrupt application stderr when
14987         you set -x, so we can't afford to disqualify them, since at least
14988         on Irix-6.5, that would disqualify all bourne shells.
14989         Instead, use a two-pass approach.
14990         On the first pass, try to find a shell that meets the stricter
14991         condition that set -x does not corrupt stderr.
14992         If no shell meets the stricter condition, retest each candidate
14993         shell, but without that extra condition.  Finally, when
14994         VERBOSE=yes is requested and set -x might cause trouble, simply
14995         issue a warning and refrain from enabling debug output.
14996
14997 2010-09-08  Eric Blake  <eblake@redhat.com>
14998
14999         unsetenv: fix OpenBSD bug
15000         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15001         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15002         documentation.
15003         Reported by Jim Meyering.
15004
15005         strtod: work around IRIX 6.5 bug
15006         * lib/strtod.c (strtod): Reparse number on shorter string if
15007         exponent parse was invalid.
15008         * tests/test-strtod.c (main): Add check for "0x1p 2".
15009         Reported by Tom G. Christensen.
15010
15011         getopt: optimize previous patch
15012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15013         empty variable.  Speed up awk script.
15014         Reported by Paolo Bonzini.
15015
15016 2010-09-08  Jim Meyering  <meyering@redhat.com>
15017
15018         test.sh: disqualify shells for which set -x corrupts stderr
15019         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15020         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15021         appear in stderr output.  For example, this command:
15022             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15023         prints "P=1" on those two systems:
15024
15025 2010-09-08  Bruno Haible  <bruno@clisp.org>
15026
15027         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15028         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15029         commands, because some shells ignore redirections when there is an
15030         error in the command lookup.
15031         Reported by Eric Blake.
15032
15033 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15034
15035         * lib/regex.h: Fix a mention of `regex_compile' (should be
15036         `re_compile_pattern').
15037         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15038         (re_set_registers): Correct name of parameter in comment.
15039
15040         * doc/regex.texi: Add documentation for missing syntax flags.
15041         Remove commented-out documentation of defunct syntax option
15042         RE_NO_EMPTY_ALTS.
15043         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15044         Add documentation of re_set_registers.
15045         Document trick to re-use a pattern buffer by setting fastmap manually.
15046         Update documentation of struct re_pattern_buffer per public members.
15047         Uncomment documentation of equivalence class operators and
15048         collating symbol operators, since they are now implemented,
15049         Explain leftmost-longest matching in relation to alternatives.
15050         Tidy documentation of substring matching.
15051         Remove POSIX documentation, which is done better in
15052         glibc, and refer the reader there. Keep BSD API documentation, as
15053         that is not readily available elsewhere.
15054
15055 2010-09-07  Eric Blake  <eblake@redhat.com>
15056
15057         getopt: handle POSIXLY_CORRECT set but not exported
15058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15059         export state of POSIXLY_CORRECT, due to bash set -o posix.
15060         Reported by Dustin J. Mitchell.
15061
15062 2010-09-05  Bruno Haible  <bruno@clisp.org>
15063
15064         gnulib-tool: Highlight the changed options.
15065         * gnulib-tool (func_usage): Display the --import, --add-import,
15066         --remove-import explanations in bold font.
15067
15068 2010-09-06  Karl Berry  <karl@gnu.org>
15069
15070         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15071
15072 2010-09-05  Bruno Haible  <bruno@clisp.org>
15073
15074         uniwidth/width: Update comment.
15075         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15076         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15077
15078 2010-09-05  Bruno Haible  <bruno@clisp.org>
15079
15080         isinf, isnan: Relax license.
15081         * modules/isinf (License): Change from GPL to LGPL, with consent from
15082         Ben Pfaff.
15083         * modules/isnan (License): Likewise.
15084         Requested by Ludovic Courtès.
15085
15086 2010-09-04  Bruno Haible  <bruno@clisp.org>
15087
15088         gnulib-tool: Help migration from --import to --add-import or --update.
15089         * gnulib-tool: Emit a verbose error message when --import is used
15090         without any module name.
15091
15092 2010-09-04  Bruno Haible  <bruno@clisp.org>
15093
15094         Update doc about gnulib-tool.
15095         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15096         'gnulib-tool --update' in more detail.
15097         Reported by Eric Blake.
15098
15099 2010-09-04  Bruno Haible  <bruno@clisp.org>
15100
15101         gnulib-tool: Change --import. New options --add/remove-import.
15102         * gnulib-tool: New options --add-import, --remove-import.
15103         (func_usage): Document them.
15104         (have_associative): Define always.
15105         (func_import): In import mode, don't merge the specified settings with
15106         the cached settings. Implement remove-import mode.
15107         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15108         Explain when to use them versus --import.
15109         (Simple update): Use --add-import instead of --import.
15110         * NEWS: Mention the change.
15111
15112 2010-09-04  Bruno Haible  <bruno@clisp.org>
15113
15114         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15115         separate gnulib.mk.
15116
15117 2010-09-04  Bruno Haible  <bruno@clisp.org>
15118
15119         gnulib-tool: Don't talk about CVS any more.
15120         * gnulib-tool (func_usage, func_import): Write "version control"
15121         instead of CVS.
15122
15123 2010-09-04  Jim Meyering  <meyering@redhat.com>
15124
15125         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15126         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15127         false positives (whose names may be ill-chosen) when searching
15128         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15129         would cause a false-positive.
15130
15131         avoid coreutils "make distcheck" failure
15132         Coreutils tests with an absolute build directory name that contains
15133         a space.  Not quoting this directory name caused a failure.
15134         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15135         * tests/test-vc-list-files-cvs.sh: Likewise.
15136
15137 2010-09-04  Bruno Haible  <bruno@clisp.org>
15138
15139         gnulib-tool: Avoid error when run in a package without Makefile.am.
15140         * gnulib-tool: When collecting the m4dirs in a package that does not
15141         have a Makefile.am, eliminate those directories that contain no
15142         gnulib-cache.m4. Fix expression that counts these directories.
15143
15144 2010-09-04  Bruno Haible  <bruno@clisp.org>
15145
15146         update-copyright test: Improve output when perl is missing or too old.
15147         * tests/test-update-copyright.sh: Move test of Perl version down after
15148         the test whether Perl exists. Provide an explanation relating Perl's
15149         error message to Automake's SKIP: message.
15150
15151 2010-09-04  Bruno Haible  <bruno@clisp.org>
15152
15153         Don't augment PATH in TESTS_ENVIRONMENT.
15154         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15155         set abs_aux_dir instead of augmenting PATH.
15156         * modules/vc-list-files-tests (Makefile.am): Likewise.
15157         * tests/test-update-copyright.sh: Augment PATH here.
15158         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15159         path_prepend_.
15160         * tests/test-vc-list-files-git.sh: Likewise.
15161
15162 2010-09-04  Jim Meyering  <meyering@redhat.com>
15163
15164         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15165         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15166
15167 2010-09-04  Bruno Haible  <bruno@clisp.org>
15168
15169         strdup: Fix compilation error in C++ mode.
15170         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15171         the macro.
15172
15173 2010-09-04  Bruno Haible  <bruno@clisp.org>
15174
15175         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15176         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15177         macro into a function.
15178         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15179
15180 2010-09-04  Bruno Haible  <bruno@clisp.org>
15181
15182         Set PATH_SEPARATOR the same way autoconf does.
15183         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15184         the value of PATH_SEPARATOR the same way autoconf-generated configure
15185         scripts do.
15186         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15187         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15188
15189 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15190
15191         Set PATH_SEPARATOR the same way autoconf does.
15192         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15193         the same way autoconf-generated configure scripts do.
15194         * posix-modules: Likewise.
15195
15196 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15197
15198         hash: fix safe_hasher const typo
15199         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15200         const; otherwise, there is a type error later.
15201
15202 2010-09-02  Jim Meyering  <meyering@redhat.com>
15203
15204         test-update-copyright.sh: require perl 5.8.0
15205         * tests/test-update-copyright.sh: Require 5.8.0,
15206         which Tom G. Christensen has confirmed is adequate,
15207         while 5.6.1 is not.
15208
15209 2010-09-02  Eric Blake  <eblake@redhat.com>
15210
15211         tests: init.sh improvements for re-exec'ing with zsh
15212         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15213         -vx through shell re-exec.
15214         Reported by Tom G. Christensen.
15215
15216         wctype: fix typo in previous commit
15217         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15218         Reported by Ludovic Courtès.
15219
15220 2010-09-02  Jim Meyering  <meyering@redhat.com>
15221
15222         test-update-copyright.sh: skip test if Perl is too old
15223         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15224         Reported by Tom G. Christensen.
15225
15226 2010-09-02  Bruno Haible  <bruno@clisp.org>
15227
15228         wctype: Avoid compilation error on IRIX 6.5.30.
15229         * lib/wctype.in.h (iswblank): Declare with a replacement if
15230         REPLACE_ISWBLANK is set.
15231         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15232         declared. Set REPLACE_ISWBLANK.
15233         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15234         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15235         * doc/posix-headers/wctype.texi: Likewise.
15236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15237
15238 2010-09-01  Bruno Haible  <bruno@clisp.org>
15239
15240         New module 'socketlib'.
15241         * modules/socketlib: New file.
15242         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15243         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15244         * modules/sockets (Depends-on): Add socketlib.
15245         Suggested by Sam Steingold <sds@gnu.org>.
15246
15247 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15248
15249         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15250
15251         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15252         when one needs search access to a directory but not read access.
15253         On systems where it is available, it works in some cases where
15254         O_RDONLY does not, namely on directories that are searchable but
15255         not readable, and which need only to be searchable.  If O_SEARCH
15256         is not available, fall back to the traditional method of using
15257         O_RDONLY.
15258
15259         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15260         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15261         when opening a directory that needs only to be searchable.
15262         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15263         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15264         * lib/openat-proc.c (openat_proc_name): Likewise.
15265         * lib/openat.c (openat_needs_fchdir): Likewise.
15266         * lib/save-cwd.c (save_cwd): Likewise.
15267         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15268
15269 2010-08-28  Bruno Haible  <bruno@clisp.org>
15270
15271         New module 'host-cpu-c-abi'.
15272         * modules/host-cpu-c-abi: New file.
15273         * m4/host-cpu-c-abi.m4: New file, based on part of
15274         clisp/src/m4/general.m4.
15275         Requested by Sam Steingold <sds@gnu.org>.
15276
15277 2010-08-31  Eric Blake  <eblake@redhat.com>
15278         and Jim Meyering  <meyering@redhat.com>
15279
15280         hash: factor, and guard against misbehaving hasher function
15281         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15282         of table->hasher's return value.  Also protect against a hash value
15283         so large that adding it to table->bucket results in a NULL pointer.
15284         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15285         Use it in place of open-coded check-and-abort.
15286
15287 2010-08-30  Bruno Haible  <bruno@clisp.org>
15288
15289         hash: silence spurious clang warning
15290         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15291         Reported by Eric Blake.
15292
15293 2010-08-30  Eric Blake  <eblake@redhat.com>
15294
15295         strstr, memmem, strcasestr: avoid leaked shell message
15296         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15297         FreeBSD.
15298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15300
15301         tests: silence clang warning
15302         * tests/test-malloca.c (do_allocation): Avoid dead store.
15303
15304 2010-08-29  Bruno Haible  <bruno@clisp.org>
15305
15306         gettext: Fix recent mistake.
15307         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15308
15309 2010-08-29  Bruno Haible  <bruno@clisp.org>
15310
15311         selinux-h: Offer a --without-selinux option.
15312         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15313         --without-selinux was specified, skip all tests and define
15314         HAVE_SELINUX_SELINUX_H to 0.
15315         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15316         set LIB_SELINUX to empty.
15317         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15318         gl_LIBSELINUX. If --without-selinux was specified, replace
15319         selinux/context.h.
15320         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15321
15322 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15323             Bruno Haible  <bruno@clisp.org>
15324
15325         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15326         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15327         of HAVE_REALLOC.
15328         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15329         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15330         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15331         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15332
15333 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15334             Bruno Haible  <bruno@clisp.org>
15335
15336         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15337         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15338         HAVE_CALLOC.
15339         * lib/xmalloc.c: Update accordingly.
15340         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15341         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15342         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15343
15344 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15345             Bruno Haible  <bruno@clisp.org>
15346
15347         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15348         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15349         HAVE_MALLOC.
15350         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15351         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15352         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15353
15354 2010-08-29  Bruno Haible  <bruno@clisp.org>
15355
15356         Update modules list.
15357         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15358         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15359         (String handling <string.h>): Add astrxfrm.
15360         (File system functions): Add readlinkat.
15361
15362 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15363
15364         Tests for module 'realloc-gnu'.
15365         * modules/realloc-gnu-tests: New file.
15366         * tests/test-realloc-gnu.c: New file.
15367
15368         Tests for module 'calloc-gnu'.
15369         * modules/calloc-gnu-tests: New file.
15370         * tests/test-calloc-gnu.c: New file.
15371
15372         Tests for module 'malloc-gnu'.
15373         * modules/malloc-gnu-tests: New file.
15374         * tests/test-malloc-gnu.c: New file.
15375
15376 2010-08-28  Bruno Haible  <bruno@clisp.org>
15377
15378         Rename module 'realloc' -> 'realloc-gnu'.
15379         * modules/realloc-gnu: New file, copied from modules/realloc.
15380         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15381         obsolete.
15382         * modules/mgetgroups (Depends-on): Update.
15383         * doc/posix-functions/realloc.texi: Update.
15384         * NEWS: Mention the change.
15385
15386         Rename module 'calloc' -> 'calloc-gnu'.
15387         * modules/calloc-gnu: New file, copied from modules/calloc.
15388         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15389         obsolete.
15390         * doc/posix-functions/calloc.texi: Update.
15391         * NEWS: Mention the change.
15392
15393         Rename module 'malloc' -> 'malloc-gnu'.
15394         * modules/malloc-gnu: New file, copied from modules/malloc.
15395         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15396         obsolete.
15397         * modules/argp (Depends-on): Update.
15398         * modules/regex (Depends-on): Update.
15399         * doc/posix-functions/malloc.texi: Update.
15400         * NEWS: Mention the change.
15401
15402 2010-08-28  Eric Blake  <eblake@redhat.com>
15403
15404         pread, pwrite: add missing dependency
15405         * modules/pread (Depends-on): Add extensions.
15406         * modules/pwrite (Depends-on): Likewise.
15407
15408 2010-08-28  Bruno Haible  <bruno@clisp.org>
15409
15410         unistr/u*-strchr: Fix tests dependencies.
15411         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15412         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15413         Reported by Ian Beckwith <ianb@erislabs.net>.
15414
15415 2010-08-28  Bruno Haible  <bruno@clisp.org>
15416
15417         read-file: Don't occupy too much unused memory.
15418         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15419
15420 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15421             Eric Blake  <eblake@redhat.com>
15422             Bruno Haible  <bruno@clisp.org>
15423
15424         read-file: Avoid memory reallocations with regular files.
15425         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15426         (fread_file): With regular files, use the remaining length as the
15427         initial buffer size.  Check against overflow.
15428         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15429         sys_stat.
15430
15431 2010-08-28  Bruno Haible  <bruno@clisp.org>
15432
15433         ftello: Relax license.
15434         * modules/ftello (License): Relax to LGPLv2+.
15435         Reported by Eric Blake.
15436
15437 2010-08-28  Bruno Haible  <bruno@clisp.org>
15438
15439         Avoid relocwrapper link errors due to gnulib replacement functions.
15440         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15441         function.
15442         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15443
15444 2010-08-28  Bruno Haible  <bruno@clisp.org>
15445
15446         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15447         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15448         defined.
15449         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15450         Suggested by Eric Blake.
15451
15452 2010-08-28  Bruno Haible  <bruno@clisp.org>
15453
15454         sys_socket, netdb: Ensure socklen_t gets defined.
15455         * modules/sys_socket (Depends-on): Add socklen.
15456         * modules/netdb (Depends-on): Likewise.
15457         * modules/getaddrinfo (Depends-on): Remove socklen.
15458         * modules/getsockopt (Depends-on): Likewise.
15459         * modules/setsockopt (Depends-on): Likewise.
15460         * tests/test-sys_socket.c: Check that socklen_t is defined.
15461         * tests/test-netdb.c: Likewise.
15462         * m4/socklen.m4: Update comments.
15463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15464
15465 2010-08-27  Eric Blake  <eblake@redhat.com>
15466
15467         login_tty: add missing dependency
15468         * modules/login_tty (Depends-on): Add pty.
15469
15470 2010-08-26  Eric Blake  <eblake@redhat.com>
15471
15472         lib-symbol-versions: fix m4 quoting
15473         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15474         format for AC_LINK_IFELSE.
15475
15476         glob: fix compile test
15477         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15478
15479         btowc: fix missing file
15480         * modules/btowc (Files): Also ship locale-fr.m4.
15481
15482         lseek: fix link test
15483         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15484         AC_LINK_IFELSE.
15485
15486         include_next: silence autoconf 2.68 warning
15487         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15488         AC_COMPILE_IFELSE as special.
15489         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15490         autoconf < 2.68.
15491
15492         acl: fix compilation test
15493         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15494         AC_COMPILE_IFELSE.
15495
15496 2010-08-26  Bruno Haible  <bruno@clisp.org>
15497
15498         Modernize AC_TRY_RUN invocations.
15499         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15500         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15501         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15502         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15503         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15504         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15505         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15507         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15508         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15509         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15510         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15511         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15512         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15514         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15515         gl_MBRLEN_NUL_RETVAL): Likewise.
15516         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15517         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15518         Likewise.
15519         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15520         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15521         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15522         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15523         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15524         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15525         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15526         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15527         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15528         Likewise.
15529         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15530         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15531         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15532         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15533         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15534         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15535         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15536         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15537         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15539
15540 2010-08-26  Bruno Haible  <bruno@clisp.org>
15541
15542         Modernize AC_TRY_LINK invocations.
15543         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15544         AC_TRY_LINK.
15545         * m4/argp.m4 (gl_ARGP): Likewise.
15546         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15547         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15548         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15549         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15550         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15551         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15552         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15553         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15554         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15555         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15556         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15557         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15558         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15559         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15560         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15561         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15562         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15563         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15564         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15565         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15566         Likewise.
15567         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15568         Likewise.
15569         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15570         Likewise.
15571         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15573         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15574         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15575         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15576         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15577         * m4/servent.m4 (gl_SERVENT): Likewise.
15578         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15579         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15580         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15581         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15582         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15583         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15584         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15585         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15586         * modules/tsearch-tests (configure.ac): Likewise.
15587
15588 2010-08-26  Bruno Haible  <bruno@clisp.org>
15589
15590         Modernize AC_TRY_COMPILE invocations.
15591         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15592         AC_TRY_COMPILE.
15593         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15594         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15595         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15596         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15597         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15598         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15599         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15600         * m4/lock.m4 (gl_LOCK): Likewise.
15601         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15602         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15603         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15604         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15605         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15606         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15607         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15608         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15609         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15610         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15611         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15612         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15613         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15614         extraneous semicolon.
15615
15616 2010-08-26  Jim Meyering  <meyering@redhat.com>
15617
15618         stat-time: relax license LGPL
15619         * modules/stat-time (License): Change from GPL to LGPL,
15620         with consent from all contributors, for use in libguile.
15621         Requested by Ludovic Courtès.
15622
15623 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15624
15625         poll: return immediately on POLLHUP.
15626         * lib/poll.c (poll): Always set timeout before wait_timeout is
15627         computed.
15628
15629 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15630
15631         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15632         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15633         rmdir ("dir/.//"), unlinkat.
15634
15635 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         stdbool: avoid spurious failure with modern xlc
15638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15639
15640 2010-08-24  Bruno Haible  <bruno@clisp.org>
15641
15642         getloadavg: simplify code
15643         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15644         gl_have_func. Update comments.
15645
15646 2010-08-24  Eric Blake  <eblake@redhat.com>
15647
15648         getloadavg: don't define SVR4 on cygwin
15649         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15650         only define SVR4 when -lkvm is required.
15651         Reported by Yaakov Selkowitz.
15652
15653 2010-08-24  Bruno Haible  <bruno@clisp.org>
15654
15655         priv-set: fix comment
15656         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15657
15658 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15659
15660         priv-set: fix comments
15661         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15662         to match code, as suggested by David Bartley in:
15663         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15664
15665 2010-08-23  Eric Blake  <eblake@redhat.com>
15666
15667         stdbool: avoid rejecting clang
15668         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15669         * tests/test-stdbool.c: Enable more tests if using the system
15670         <stdbool.h> instead of the gnulib replacement.
15671         (main): Move xlc bug test to a runtime test for all compilers.
15672         Reported by Anders Kaseorg.
15673
15674         argz: fix shell quoting issue
15675         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15676         Reported by Charles Wilson.
15677
15678 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15679             Erik Faye-Lund <kusmabite@gmail.com>
15680
15681         poll, select: handle ERROR_BROKEN_PIPE.
15682         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15683         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15684         * lib/select.c (win32_compute_revents): Do not mark a pipe
15685         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15686
15687 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15688
15689         fts: allow compilation with C++
15690         * lib/fts_.h: Specify extern "C" linkage with C++.
15691
15692 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15693
15694         Fix gnulib-tool sed script de-commentation for AIX sed.
15695         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15696         sed.
15697
15698 2010-08-17  Eric Blake  <eblake@redhat.com>
15699
15700         test-stddef: test for (some) offsetof bugs
15701         * tests/test-stddef.c: Enhance test to ensure correct type of
15702         offsetof.
15703         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15704         that we are not fixing at this time.
15705
15706 2010-08-15  Bruno Haible  <bruno@clisp.org>
15707
15708         stpncpy: Allow stpncpy to be defined as a macro.
15709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15710         if it's already correctly declared.
15711         * lib/string.in.h (stpncpy): Undefine before redefining.
15712         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15713
15714 2010-08-14  Bruno Haible  <bruno@clisp.org>
15715
15716         Rename module 'memxfrm' to 'amemxfrm'.
15717         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15718         (amemxfrm): Renamed from memxfrm.
15719         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15720         (amemxfrm): Renamed from memxfrm.
15721         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15722         * NEWS: Mention the change.
15723         * MODULES.html.sh (String handling <string.h>): Update.
15724         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15725         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15726         * lib/unicase/u16-casexfrm.c: Likewise.
15727         * lib/unicase/u32-casexfrm.c: Likewise.
15728         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15729         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15730         * lib/uninorm/u16-normxfrm.c: Likewise.
15731         * lib/uninorm/u32-normxfrm.c: Likewise.
15732         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15733         memxfrm.
15734         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15735         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15736         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15737         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15738         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15739         Suggested by Paul Eggert.
15740
15741 2010-08-14  Bruno Haible  <bruno@clisp.org>
15742
15743         Tests for module 'astrxfrm'.
15744         * modules/astrxfrm-tests: New file.
15745         * tests/test-astrxfrm.c: New file.
15746
15747         New module 'astrxfrm'.
15748         * lib/astrxfrm.h: New file.
15749         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15750         * modules/astrxfrm: New file.
15751
15752 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15753
15754         regex: Tweak doc.
15755         * doc/regex.texi (Overview): Don't mention regex.c.
15756         (GNU Regular Expression Compiling): Likewise.
15757         (Match-end-of-line Operator): Mention 'not_eol'.
15758
15759 2010-08-14  Brian Gough  <bjg@gnu.org>
15760             Bruno Haible  <bruno@clisp.org>
15761
15762         git-merge-changelog: add doc relating to use with bzr and hg.
15763         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15764
15765 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15766
15767         pthread: fix pthread.h creation for srcdir != builddir
15768         * modules/pthread (Makefile.am): Fix the rule to work also in a
15769         non-srcdir build.
15770
15771 2010-08-13  Karl Berry  <karl@gnu.org>
15772
15773         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15774         * doc/posix-*/*: force line break before @url of POSIX
15775         specifications.
15776         Suggested by Werner Lemberg.
15777
15778 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15779
15780         strtod: fix const diagnostic
15781         * lib/strtod.c (strtod): Don't assign const char * to char *,
15782         as this elicits a warning from GCC when warnings are enabled.
15783
15784 2010-08-10  Pádraig Brady <P@draigbrady.com>
15785         and Eric Blake  <eblake@redhat.com>
15786
15787         copy-acl: ignore ENOTSUP on HP-UX
15788         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15789         so that it is available for HP-UX.
15790         * lib/copy-acl.c (qcopy_acl): Use it.
15791         Reported by Patrick M. Callahan.
15792
15793 2010-08-10  Eric Blake  <eblake@redhat.com>
15794
15795         open, chown: relax license
15796         * modules/open (License): Change to LGPLv2+, with consent by all
15797         authors, for use in augeas.
15798         * modules/chown (License): Likewise.
15799         * modules/lchown (Likewise): Likewise.
15800         Requested by Adam Stokes.
15801
15802 2010-08-09  Karl Berry  <karl@gnu.org>
15803
15804         * build-aux/ar-lib: new file, import from Automake.
15805         * config/srclist.txt: autocheck for updates.
15806
15807 2010-08-09  Eric Blake  <eblake@redhat.com>
15808
15809         readlinkat: adjust client modules
15810         * modules/areadlinkat (Depends-on): Use readlinkat, not
15811         symlinkat.
15812         * modules/areadlinkat-with-size (Depends-on): Likewise.
15813
15814         mknod: be more vocal about danger of running tests as root
15815         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15816         root, since that is just asking for problems.
15817         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15818
15819         readlinkat: split into its own module
15820         * modules/symlinkat: Split readlinkat...
15821         * modules/readlinkat: ...into separate module.
15822         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15823         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15824         * lib/symlinkat.c (readlinkat): Move...
15825         * lib/readlinkat.c: ...into new file.
15826         * modules/symlinkat-tests: Split readlinkat test...
15827         * modules/readlinkat-tests: ...into separate module.
15828         * tests/test-symlinkat.c: Split...
15829         * tests/test-readlinkat.c: ...into new file.
15830         * NEWS: Document the split.
15831         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15832         * lib/unistd.in.h (readlinkat): Likewise.
15833         Suggested by Bruno Haible.
15834
15835 2010-08-08  Bruno Haible  <bruno@clisp.org>
15836
15837         memxfrm: Speed up.
15838         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15839         that usually only one call to strxfrm is necessary for each string
15840         part.
15841         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15842
15843 2010-08-07  Karl Berry  <karl@gnu.org>
15844
15845         * doc/posix-headers/limits.texi,
15846         * doc/posix-functions/malloc.texi,
15847         * doc/posix-functions/strsignal.texi: missing @item.
15848         * doc/ld-version-script.texi: spurious leading i.
15849         * doc/regex.texi (Interval Operators): no commas inside @var.
15850
15851 2010-08-01  Bruno Haible  <bruno@clisp.org>
15852
15853         Integrate the regex documentation.
15854         * doc/gnulib.texi: Define 'cn' index.
15855         (Regular expressions): New a chapter that includes regex.texi and
15856         regexprops-generic.texi.
15857         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15858         syntax.
15859
15860         Whitespace cleanup.
15861         * doc/regex.texi: Remove trailing spaces.
15862
15863         Add regex documentation.
15864         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15865         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15866         Written by Kathy A. Hargreaves and Karl Berry.
15867
15868 2010-08-01  Bruno Haible  <bruno@clisp.org>
15869
15870         link: Update documentation.
15871         * doc/posix-functions/link.texi: Update regarding Solaris.
15872
15873 2010-07-31  Bruno Haible  <bruno@clisp.org>
15874
15875         Update modules list.
15876         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15877         (String handling <string.h>): Add memcmp2, memxfrm.
15878         (Container data structures): Add xlist, xsublist, xoset.
15879         (Core language properties): Add alignof, unused-parameter.
15880         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15881         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15882         (Unibyte characters <ctype.h>): New section.
15883         (String handling <string.h>): New section.
15884         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15885         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15886         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15887         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15888         tan, tanh, tanl, y0, y1, yn.
15889         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15890         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15891         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15892         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15893         unlockpt, vdprintf, vdprintf-posix.
15894         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15895         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15896         xconcat-filename.
15897         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15898         getdtablesize, pipe2, pipe2-safer.
15899         (Security): New section.
15900         (Networking functions): Add accept4.
15901         (Signal handling): Add sigpipe.
15902         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15903         mbmemcasecoll.
15904         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15905         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15906         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15907         pipe-filter-ii.
15908         (Misc): Add argp-version-etc, login_tty, parse-duration.
15909
15910 2010-07-31  Bruno Haible  <bruno@clisp.org>
15911
15912         Improve doc in MODULES.html.
15913         * modules/linkat (Description): Add the word "function".
15914         * modules/mkfifo (Description): Likewise.
15915         * modules/mknod (Description): Likewise.
15916         * modules/remove (Description): Likewise.
15917         * modules/renameat (Description): Likewise.
15918         * modules/stat (Description): Likewise.
15919         * modules/symlink (Description): Likewise.
15920         * modules/unlink (Description): Likewise.
15921
15922 2010-07-31  Bruno Haible  <bruno@clisp.org>
15923
15924         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15925         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15926         option --enable/disable-c++ instead of --enable/disable-cxx.
15927         * NEWS: Mention the change.
15928
15929 2010-07-31  Bruno Haible  <bruno@clisp.org>
15930
15931         readlink, areadlink: Relax test a bit.
15932         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15933         alternative to ENOTDIR.
15934         * tests/test-areadlink.h (test_areadlink): Likewise.
15935         Reported by Rainer Tammer.
15936
15937 2010-07-31  Bruno Haible  <bruno@clisp.org>
15938
15939         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15940         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15941         character, perform the search using U_STRCHR.
15942         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15943         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15944         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15945         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15946         Suggested by Paolo Bonzini.
15947
15948 2010-07-31  Bruno Haible  <bruno@clisp.org>
15949
15950         unistr/u*-strstr: Fix dependencies.
15951         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15952         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15953         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15954
15955 2010-07-31  Bruno Haible  <bruno@clisp.org>
15956
15957         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15958         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15959         the beginning of the loop.
15960         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15961         cases in 'switch' statement.
15962
15963         unistr/u8-strchr: Fix several bugs.
15964         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15965         the string. When not found, return NULL, not a pointer near the end.
15966
15967         More tests for unistr/u8-strchr.
15968         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15969         that the function does not read past the first occurrence of the byte
15970         being searched.
15971         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15972         * tests/unistr/test-u16-strchr.c (main): New function.
15973         * tests/unistr/test-u32-strchr.c (main): New function.
15974
15975 2010-07-31  Bruno Haible  <bruno@clisp.org>
15976
15977         posix-modules: Ignore backup files of documentation files.
15978         * posix-modules: grep only through files named *.texi.
15979
15980 2010-07-31  Bruno Haible  <bruno@clisp.org>
15981
15982         symlinkat: Fix documentation.
15983         * doc/posix-functions/readlinkat.texi: Fix module name.
15984
15985 2010-07-31  Bruno Haible  <bruno@clisp.org>
15986
15987         fchownat: Replace also when chown has the trailing slash bug.
15988         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15989         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15990         introduced on 2010-04-10.
15991         Reported by Rainer Tammer.
15992
15993 2010-07-31  Bruno Haible  <bruno@clisp.org>
15994
15995         linkat: Work around AIX 7.1 bug.
15996         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15997         whether linkat handles trailing slash correctly. If not, replace linkat
15998         and define LINKAT_TRAILING_SLASH_BUG.
15999         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16000         check whether (fd1,file1) points to a directory if file1 or file2 ends
16001         in a slash. Code taken from lib/link.c.
16002         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16003         Reported by Rainer Tammer.
16004
16005 2010-07-31  Bruno Haible  <bruno@clisp.org>
16006
16007         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16008         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16009         This disables an xlc optimization that was causing wrong test results.
16010         Reported by Rainer Tammer.
16011
16012 2010-07-31  Bruno Haible  <bruno@clisp.org>
16013
16014         iconv: Work around AIX 6.1..7.1 bug.
16015         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16016         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16017         cross-compiling, guess no on all versions of AIX.
16018         Reported by Rainer Tammer.
16019
16020 2010-07-31  Bruno Haible  <bruno@clisp.org>
16021
16022         readlink: Relax test a bit.
16023         * tests/test-readlink.h (test_readlink): Allow different errno value
16024         when readlink is called with a file name that ends in / and refers to
16025         a file.
16026         Suggested by Eric Blake.
16027         Reported by Rainer Tammer.
16028
16029 2010-07-31  Bruno Haible  <bruno@clisp.org>
16030
16031         copysign: Does not require -lm on glibc systems.
16032         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16033         gl_COMMON_DOUBLE_MATHFUNC.
16034         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16035
16036 2010-07-31  Bruno Haible  <bruno@clisp.org>
16037
16038         duplocale: Work around AIX 7.1 bug.
16039         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16040         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16041         * lib/duplocale.c (rpl_duplocale): Update comment.
16042         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16043         Reported by Rainer Tammer.
16044
16045 2010-07-30  Bruno Haible  <bruno@clisp.org>
16046
16047         dirfd: Avoid link error on AIX 7.1.
16048         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16049         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16050         exist, set REPLACE_DIRFD.
16051         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16052         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16053         * doc/posix-functions/dirfd.texi: Update.
16054         Reported by Rainer Tammer.
16055
16056 2010-07-30  Eric Blake  <eblake@redhat.com>
16057
16058         strtod: next round of AIX fixes
16059         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16060         exponent.
16061         * tests/test-strtod.c (main): Enhance tests.
16062         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16063         Reported by Rainer Tammer.
16064
16065         futimens: fix configure check
16066         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16067         Reported by Bruno Haible.
16068
16069 2010-07-30  Bruno Haible  <bruno@clisp.org>
16070
16071         getline: Update regarding AIX.
16072         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16073         Reported by Rainer Tammer.
16074
16075 2010-07-30  Bruno Haible  <bruno@clisp.org>
16076
16077         wcwidth: Drop replacement on AIX 7.
16078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16079         AIX 7.
16080         Reported by Rainer Tammer.
16081
16082 2010-07-30  Bruno Haible  <bruno@clisp.org>
16083
16084         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16086         a 'char *'.
16087         Reported by Rainer Tammer.
16088
16089 2010-07-30  Bruno Haible  <bruno@clisp.org>
16090
16091         unlink: Update regarding AIX.
16092         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16093         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16094         Reported by Rainer Tammer.
16095
16096 2010-07-30  Bruno Haible  <bruno@clisp.org>
16097
16098         symlink: Update regarding AIX.
16099         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16100         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16101         Reported by Rainer Tammer.
16102
16103 2010-07-30  Bruno Haible  <bruno@clisp.org>
16104
16105         strndup: Update regarding AIX.
16106         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16107         AIX 7.
16108         Reported by Rainer Tammer.
16109
16110 2010-07-30  Bruno Haible  <bruno@clisp.org>
16111
16112         stat: Update regarding AIX.
16113         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16114         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16115         Reported by Rainer Tammer.
16116
16117 2010-07-30  Bruno Haible  <bruno@clisp.org>
16118
16119         truncl: Fix autoconf test.
16120         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16121         whether truncl works.
16122         Reported by Rainer Tammer.
16123
16124 2010-07-30  Bruno Haible  <bruno@clisp.org>
16125
16126         round: Update regarding AIX.
16127         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16128         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16129         Reported by Rainer Tammer.
16130
16131 2010-07-30  Bruno Haible  <bruno@clisp.org>
16132
16133         rename: Update regarding AIX.
16134         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16135         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16136         Reported by Rainer Tammer.
16137
16138 2010-07-30  Bruno Haible  <bruno@clisp.org>
16139
16140         printf.m4: Update regarding AIX.
16141         * m4/printf.m4: Update comments regarding AIX.
16142         Reported by Rainer Tammer.
16143
16144 2010-07-30  Bruno Haible  <bruno@clisp.org>
16145
16146         iconv: Update regarding AIX.
16147         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16148         AIX 7.
16149         Reported by Rainer Tammer.
16150
16151 2010-07-30  Bruno Haible  <bruno@clisp.org>
16152
16153         getopt: Update regarding AIX.
16154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16155         no on AIX.
16156         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16157         Reported by Rainer Tammer.
16158
16159 2010-07-30  Bruno Haible  <bruno@clisp.org>
16160
16161         ldexpl; Update regarding AIX.
16162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16163         on AIX 7.
16164         Reported by Rainer Tammer.
16165
16166 2010-07-30  Bruno Haible  <bruno@clisp.org>
16167
16168         frexpl: Update regarding AIX.
16169         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16170         on AIX 7.
16171         Reported by Rainer Tammer.
16172
16173 2010-07-30  Bruno Haible  <bruno@clisp.org>
16174
16175         open, fopen: Update regarding AIX.
16176         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16177         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16178         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16179         * doc/posix-functions/fopen.texi: Likewise.
16180         Reported by Rainer Tammer.
16181
16182 2010-07-30  Bruno Haible  <bruno@clisp.org>
16183
16184         chown: Update doc regarding AIX.
16185         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16186         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16187         Reported by Rainer Tammer.
16188
16189 2010-07-30  Eric Blake  <eblake@redhat.com>
16190
16191         strtod: fix bug in replacement function on AIX
16192         * lib/strtod.c (strtod): Special case broken "0x" parse in
16193         underlying strtod.
16194         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16195         * doc/posix-functions/strtod.texi (strtod): Likewise.
16196         Reported by Rainer Tammer.
16197
16198 2010-07-30  Bruno Haible  <bruno@clisp.org>
16199
16200         mbrlen: Fix cross-compilation guess for AIX.
16201         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16202         guess. Leftover from 2008-12-22.
16203
16204 2010-07-30  Bruno Haible  <bruno@clisp.org>
16205
16206         mbrtowc: Fix cross-compilation guess for AIX.
16207         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16208         guess. Leftover from 2008-12-21.
16209
16210 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16211
16212         init.sh: work around trap limitation of some shells
16213         * tests/init.sh (setup_): Move exit trap outside of shell function.
16214
16215 2010-07-29  Eric Blake  <eblake@redhat.com>
16216
16217         strtod: aid debugging
16218         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16219         understanding why strtod is rejected.
16220
16221 2010-07-28  Bruno Haible  <bruno@clisp.org>
16222
16223         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16224         * lib/unistr/u8-chr.c: Include <string.h>.
16225         * tests/unistr/test-u8-chr.c: Likewise.
16226         * tests/unistr/test-u16-chr.c: Likewise.
16227         * tests/unistr/test-u32-chr.c: Likewise.
16228         * tests/unistr/test-u8-strchr.c: Likewise.
16229         * tests/unistr/test-u16-strchr.c: Likewise.
16230         * tests/unistr/test-u32-strchr.c: Likewise.
16231         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16232         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16233         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16234         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16235
16236 2010-07-28  Bruno Haible  <bruno@clisp.org>
16237
16238         Use spaces for indentation, not tabs.
16239         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16240
16241 2010-07-27  Bruno Haible  <bruno@clisp.org>
16242
16243         mbspcasecmp: Fix function specification.
16244         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16245         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16246         Reported by Eric Blake <eblake@redhat.com>.
16247
16248 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16249
16250         timespec: use cast and not conditional, as truncation isn't possible
16251         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16252         instead of a conditional.  Comment about the situation in more detail.
16253         This undoes most of the 2009-10-29 patch.
16254
16255 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16256
16257         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16258         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16259         * lib/unistr/u8-strchr.c: Likewise.
16260         * modules/unistr/u8-chr: Depend on memchr.
16261
16262         unistr/u*-strchr: add tests
16263         * modules/unistr/u8-strchr-tests: New file.
16264         * modules/unistr/u16-strchr-tests: New file.
16265         * modules/unistr/u32-strchr-tests: New file.
16266         * tests/unistr/test-strchr.h: New file.
16267         * tests/unistr/test-u8-strchr.c: New file.
16268         * tests/unistr/test-u16-strchr.c: New file.
16269         * tests/unistr/test-u32-strchr.c: New file.
16270
16271         unistr/u*-chr: test multibyte sequences more
16272         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16273         test vector.
16274         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16275         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16276         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16277
16278         unistr/u*-chr: test multibyte sequences
16279         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16280
16281         unistr/u*-chr: prepare for multibyte tests
16282         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16283         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16284         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16285         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16286         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16287         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16288
16289 2010-07-18  Bruno Haible  <bruno@clisp.org>
16290
16291         unistr/u8-strchr: Optimize non-ASCII argument case.
16292         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16293         because the first byte often matches anyway.
16294         Reported by Pádraig Brady <P@draigbrady.com>.
16295
16296 2010-07-15  Karl Berry  <karl@gnu.org>
16297
16298         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16299
16300 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16301
16302         getcwd: on Solaris, work better if ancestors are inaccessible
16303         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16304         buffer and size, try again with a large buffer.  This works better
16305         on Solaris, since its getcwd succeeds even if the path to the root
16306         is inaccessible, and this is helpful in common cases such as .zfs
16307         hidden directories.  Problem reported by J Chapman Flack in
16308         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16309         Use system getcwd if it's declared, not merely if it's partly
16310         working; use the partly-working test only to avoid needless effort
16311         if the system getcwd fails.
16312         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16313         comment that was already obsolete and is now even more obsolete.
16314         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16315         now might call strdup.
16316
16317 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16318
16319         pthread: Add enough so that coreutils/src/sort.c compiles.
16320         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16321         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16322         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16323         Include <sys/types.h>, in case it defines pthread_t.
16324         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16325         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16326         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16327         (pthread_rwlockattr_t, pthread_spinlock_t):
16328         New typedefs, if HAVE_PTHREAD_T is not defined.
16329         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16330         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16331         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16332         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16333         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16334         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16335         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16336         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16337         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16338         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16339         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16340         New macros.
16341         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16342         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16343         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16344         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16345         (pthread_spin_unlock): New dummy functions.
16346         (pthread_create): Return EAGAIN; don't set errno.
16347         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16348         require AC_C_INLINE.
16349         * modules/pthread (Depends-on): Add sched, time.
16350         (pthread.h): Use AM_V_GEN.
16351
16352 2010-07-13  Bruno Haible  <bruno@clisp.org>
16353
16354         striconveh: Don't malloc memory if the result buffer is sufficient.
16355         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16356         buffer if its size is sufficient.
16357         Reported by Ludovic Courtès <ludo@gnu.org>.
16358
16359 2010-07-13  Bruno Haible  <bruno@clisp.org>
16360
16361         strtod: Add safety check.
16362         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16363
16364 2010-07-12  Bruno Haible  <bruno@clisp.org>
16365
16366         Unify tests that set gl_cv_func_ldexpl_no_libm.
16367         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16368         gl_FUNC_LDEXPL.
16369         (gl_FUNC_LDEXPL): Invoke it.
16370         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16371
16372 2010-07-12  Bruno Haible  <bruno@clisp.org>
16373
16374         Unify tests that set gl_cv_func_ldexp_no_libm.
16375         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16376         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16377         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16378         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16379         * modules/strtod (Files): Add m4/ldexp.m4.
16380
16381 2010-07-12  Bruno Haible  <bruno@clisp.org>
16382
16383         Unify tests that set gl_cv_func_frexpl_no_libm.
16384         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16385         gl_FUNC_FREXPL_NO_LIBM.
16386         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16388
16389 2010-07-12  Bruno Haible  <bruno@clisp.org>
16390
16391         Unify tests that set gl_cv_func_frexp_no_libm.
16392         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16393         gl_FUNC_FREXP_NO_LIBM.
16394         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16395         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16396
16397 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16398
16399         memcoll: clarify sizes versus lengths, document better, and tweak perf
16400         * lib/memcoll.c (strcoll_loop, memcoll0):
16401         Improve quality of descriptive comments.  Name variables
16402         consistently as to whether they are lengths (which do not include
16403         terminating null) versus sizes (which do).
16404         * lib/xmemcoll.c (xmemcoll0): Likewise.
16405         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16406         returned when s1size == 0; this is easier to compile and saves
16407         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16408
16409 2010-07-12  Bruno Haible  <bruno@clisp.org>
16410
16411         Tests for module '_Exit'.
16412         * modules/_Exit-tests: New file.
16413         * tests/test-_Exit.sh: New file.
16414         * tests/test-_Exit.c: New file.
16415
16416         New module '_Exit'.
16417         * lib/stdlib.in.h (__attribute__): New macro.
16418         (_Exit): New declaration.
16419         * lib/_Exit.c: New file.
16420         * m4/_Exit.m4: New file.
16421         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16422         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16423         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16424         * modules/_Exit: New file.
16425         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16426         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16427
16428 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16429
16430         strtod: make it more-accurate typically, and don't require libm
16431         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16432         Include limits.h.  Don't include string.h.
16433         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16434         (locale_isspace): New function, so that no casts are needed to
16435         check whether *s is a space.
16436         (ldexp): Provide an unused dummy if not available.
16437         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16438         (strtod): Use them.  This implementation prefers to use the
16439         underlying strtod if available, falling back on our own code
16440         only to fix known bugs.  This is more likely to produce an
16441         accurate result.  Also, it avoids the use of libm functions.
16442         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16443         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16444         was absent, but it caused a test failure with coreutils.
16445         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16446         with libm.
16447         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16448         * modules/strtod-tests (Makefile.am): Likewise.
16449
16450 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16451             Bruno Haible  <bruno@clisp.org>
16452
16453         unistr/u8-strchr: Optimize ASCII argument case.
16454         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16455
16456 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         (x)memcoll: minor tweaks
16459         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16460         is after the type that it qualifies.
16461         (memcoll0): Likewise.
16462         * lib/memcoll.h (memcoll0): Likewise.
16463         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16464         * lib/xmemcoll.h (xmemcoll0): Likewise.
16465         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16466         differs from memcoll in that the NUL byte is part of the argument.
16467         Omit the abort-checks, as performance is a real issue here.  Plus,
16468         the checks were wrong anyway (an off-by-one error).  Omit local
16469         variable 'diff', as it's a bit clearer that way.
16470         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16471         no longer needed.
16472
16473 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16474
16475         (x)memcoll: speedup when input is known to be NUL delimited
16476         * lib/memcoll.c: Include stdlib.
16477         (memcoll0): New function.
16478         (strcoll_loop): New function, refactored for use in both memcoll
16479         and memcoll0.
16480         * lib/memcoll.h (memcoll0): Add prototype.
16481         * lib/xmemcoll.c (xmemcoll0): New function.
16482         (collate_error): New function, refactored for use in both xmemcoll
16483         and xmemcoll0.
16484         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16485         * m4/memcoll.m4: add inline invocation.
16486
16487 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16488
16489         * build-aux/bootstrap: Remove any local translations
16490         from the translation project synchronization directory,
16491         so that local only translations are not distributed.
16492
16493 2010-07-04  Bruno Haible  <bruno@clisp.org>
16494
16495         fsusage: Clarify which code applies to which platforms.
16496         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16497         platform.
16498         * lib/fsusage.c (get_fs_usage): Likewise.
16499
16500 2010-07-04  Bruno Haible  <bruno@clisp.org>
16501
16502         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16503         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16504         Reported by Martin Lambers <marlam@marlam.de>.
16505
16506 2010-07-04  Jim Meyering  <meyering@redhat.com>
16507
16508         hash: once again explicitly disallow insertion of NULL
16509         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16510         inserting a NULL pointer cannot work with these functions.
16511         Add a comment with details.
16512         This reverts part of the 2010-07-01 commit, 5bef1a35
16513         "hash: extend module to deal with non-pointer keys".
16514
16515 2010-07-01  Bruno Haible  <bruno@clisp.org>
16516
16517         stdbool: Update doc.
16518         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16519         Info from Christian Weisgerber <naddy@mips.inka.de>.
16520
16521 2010-07-01  Jim Meyering  <meyering@redhat.com>
16522
16523         hash: extend module to deal with non-pointer keys
16524         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16525         but that allows insertion of non-pointer entries.
16526         Do not disallow an ENTRY value of NULL.
16527         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16528         * lib/hash.h (hash_insert0): Declare.
16529
16530 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16531
16532         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16533         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16534         not present (i.e. with autoconf 2.59 and when using gettextize, not
16535         gnulib), require AC_GNU_SOURCE instead.
16536
16537 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16538
16539         idpriv-drop: Fix tests.
16540         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16541         not to the test-idpriv-droptemp program.
16542
16543 2010-06-29  Bruno Haible  <bruno@clisp.org>
16544
16545         string: Fix syntax error with g++ 2.96.
16546         * lib/string.in.h (__pure__): Remove definition.
16547         (_GL_ATTRIBUTE_PURE): New macro.
16548         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16549         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16550         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16551
16552 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16553
16554         unitypes: Fix bug introduced on 2010-05-18.
16555         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16556
16557 2010-06-22  Eric Blake  <eblake@redhat.com>
16558
16559         memmem: slight optimization
16560         * lib/str-two-way.h (critical_factorization): Update comments.
16561         Reduce work during factorization phase.
16562         Reported by Carlos Bueno <carlos@bueno.org>.
16563
16564 2010-06-21  Bruno Haible  <bruno@clisp.org>
16565
16566         Fix HAVE_CALLOC_POSIX misnomer.
16567         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16568         !HAVE_CALLOC_POSIX.
16569         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16570         HAVE_CALLOC_POSIX.
16571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16572         instead of HAVE_CALLOC_POSIX.
16573         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16574         HAVE_CALLOC_POSIX.
16575
16576         Use modern idiom for calloc() replacement.
16577         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16578         AC_FUNC_CALLOC.
16579         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16580         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16581         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16582         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16583         (gl_REPLACE_CALLOC): New macro.
16584
16585 2010-06-21  Bruno Haible  <bruno@clisp.org>
16586
16587         Fix HAVE_REALLOC_POSIX misnomer.
16588         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16589         !HAVE_REALLOC_POSIX.
16590         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16591         HAVE_REALLOC_POSIX.
16592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16593         instead of HAVE_REALLOC_POSIX.
16594         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16595         HAVE_REALLOC_POSIX.
16596
16597         Use modern idiom for realloc() replacement.
16598         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16599         AC_FUNC_REALLOC.
16600         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16601         Autoconf's AC_FUNC_REALLOC.
16602         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16603         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16604         (gl_REPLACE_REALLOC): New macro.
16605         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16606
16607 2010-06-21  Bruno Haible  <bruno@clisp.org>
16608
16609         Fix HAVE_MALLOC_POSIX misnomer.
16610         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16611         !HAVE_MALLOC_POSIX.
16612         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16613         HAVE_MALLOC_POSIX.
16614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16615         instead of HAVE_MALLOC_POSIX.
16616         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16617         HAVE_MALLOC_POSIX.
16618
16619         Use modern idiom for malloc() replacement.
16620         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16621         AC_FUNC_MALLOC.
16622         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16623         Autoconf's AC_FUNC_MALLOC.
16624         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16625         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16626         (gl_REPLACE_MALLOC): New macro.
16627         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16628
16629 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16630
16631         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16632         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16633         This macro takes 3 arguments, not 4.
16634
16635 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16636
16637         ipv6: fix detection under mingw
16638         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16639         in6_addr.
16640
16641 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16642
16643         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16644         that strtod() works when cross-compiling to a glibc version known
16645         to work.
16646
16647 2010-06-15  Bruno Haible  <bruno@clisp.org>
16648
16649         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16650
16651 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16652
16653         select: Correct timeout.
16654         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16655
16656 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16657
16658         git-version-gen: init shell var to avoid env var influence
16659         * build-aux/git-version-gen (v): Init shell var to empty.
16660
16661 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16662
16663         priv-set: Don't assume that priv.h exists merely because getppriv does.
16664         See Jan Andersen's bug report about AIX 5L in
16665         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16666         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16667         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16668         * lib/priv-set.h: Likewise.
16669         * tests/test-priv-set.c: Likewise.
16670
16671 2010-06-13  Bruno Haible  <bruno@clisp.org>
16672
16673         relocatable: Make it easier to test whether to install wrappers.
16674         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16675         RELOCATABLE_VIA_WRAPPER.
16676
16677 2010-06-13  Bruno Haible  <bruno@clisp.org>
16678
16679         gnulib-tool: Display specified modules and dependencies differently.
16680         * gnulib-tool (func_show_module_list): New function.
16681         (func_import, func_create_testdir): Invoke it.
16682         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16683
16684 2010-06-13  Bruno Haible  <bruno@clisp.org>
16685
16686         gnulib-tool: Align code of func_import and func_create_testdir.
16687         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16688         specified_modules.
16689
16690 2010-06-12  Jim Meyering  <meyering@redhat.com>
16691
16692         test-inttostr: avoid spurious failure on Solaris 9
16693         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16694         to accept "%ju".  Reported by Bruno Haible.
16695
16696 2010-06-11  Jim Meyering  <meyering@redhat.com>
16697
16698         test-sys_socket: mark variables as used more readably
16699         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16700         as "used" explicitly via (void) statement casts.  This is more
16701         readable than using them in an artificial return expression.
16702         Suggestion from Bruno Haible.
16703
16704 2010-06-11  Bruno Haible  <bruno@clisp.org>
16705
16706         Avoid some more warnings from "gcc -Wwrite-strings".
16707         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16708         to 'const char *'.
16709         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16710         * tests/test-c-strcasestr.c (main): Likewise.
16711         * tests/test-mbscasestr1.c (main): Likewise.
16712         * tests/test-mbscasestr2.c (main): Likewise.
16713         * tests/test-memmem.c (main): Likewise.
16714         * tests/test-strstr.c (main): Likewise.
16715         * tests/test-strcasestr.c (main): Likewise.
16716
16717 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16718
16719         init.sh: change framework_failure_ to fail with status 99, not 1
16720         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16721         automake's parallel-tests rule that this is an unexpected failure,
16722         even if the test is listed in XFAIL_TESTS.
16723
16724 2010-06-11  Jim Meyering  <meyering@redhat.com>
16725
16726         test-inttostr: avoid warnings about 4-6KB literal strings
16727         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16728         Include "macros.h", for its definition of ASSERT.
16729         (CK): s/assert/ASSERT/
16730         * modules/inttostr-tests (Files): Add macros.h.
16731
16732         init.sh: don't use $ME_ or skip_ before they are defined
16733         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16734         their first uses.  Also hoist their companions: warn_, fail_,
16735         framework_failure_, $stderr_fileno.  Prompted by a patch from
16736         Stefano Lattarini.
16737
16738         test-sys_socket: avoid set-but-not-used warnings from gcc
16739         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16740         avoid warning about set-but-not-used variables.
16741
16742         test-xvasprintf: avoid 'const' discard warnings
16743         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16744         "const" when assigning from literal strings.
16745         (test_xasprintf): Add "void" in function argument list to placate
16746         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16747
16748         tests: avoid compilation warnings in argmatch and exclude tests...
16749         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16750         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16751         Since it always exits, declare with the "noreturn" attribute.
16752         * tests/test-argmatch.c: Likewise.
16753
16754         tests: avoid 'const' discard warnings in mbsstr tests
16755         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16756         * tests/test-mbsstr2.c (main): Likewise.
16757
16758         test-verify: avoid warning from gcc's -Wmissing-declarations
16759         * tests/test-verify.c (function): Declare to be static.
16760
16761         test-inttostr.c: include <string.h> for use of strcmp
16762         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16763
16764         test-linkat: avoid failed assertion on "other" architectures
16765         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16766         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16767         sparc: https://bugs.launchpad.net/bugs/591968
16768
16769 2010-06-11  Jim Meyering  <meyering@redhat.com>
16770
16771         printf.m4: avoid autoconf's "Expanded Before Required" warning
16772         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16773         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16774         autoconf warning.
16775
16776 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16777
16778         Replacement header templates are now named with ".in", not "_".
16779         * doc/gnulib-intro.texi: Correct.
16780
16781 2010-06-10  Jim Meyering  <meyering@redhat.com>
16782
16783         inttostr-tests: depend on snprintf, not snprintf-posix
16784         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16785         snprintf-posix, to avoid this aclocal failure:
16786           missing file gnulib-tests/vasnprintf.c
16787           configure.ac:45: error: expected source file, required through \
16788           AC_LIBSOURCES, not found
16789
16790 2010-06-10  Jim Meyering  <meyering@redhat.com>
16791
16792         inttostr: add a new function, inttostr, and tests
16793         The namesake function was not available.  The existence of the
16794         template file, inttostr.c makes its addition nontrivial.
16795         * lib/anytostr.c: Rename from inttostr.c.
16796         (anytostr): Rename from inttostr.
16797         * lib/inttostr.c: New file.
16798         * modules/inttostr (Files): Add anytostr.c.
16799         (Makefile.am): Set lib_SOURCES instead of ...
16800         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16801         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16802         * lib/offtostr.c: Likewise.
16803         * lib/uinttostr.c: Likewise.
16804         * lib/umaxtostr.c: Likewise.
16805         * modules/inttostr-tests: New file.
16806         * tests/test-inttostr.c: New file.  Test these functions.
16807
16808 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16809             Bruno Haible  <bruno@clisp.org>
16810
16811         Add "Extending Gnulib" chapter to manual.
16812         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16813         chapter.
16814         (Extending Gnulib): New chapter.
16815         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16816         chapter.
16817
16818 2010-06-09  Bruno Haible  <bruno@clisp.org>
16819
16820         Avoid relocwrapper link errors due to gnulib replacement functions.
16821         * lib/areadlink.c: Use the system's malloc, realloc functions.
16822         (areadlink): Set errno to ENOMEM explicitly.
16823         * modules/areadlink (Depends-on): Remove malloc-posix.
16824         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16825
16826 2010-06-09  Bruno Haible  <bruno@clisp.org>
16827
16828         Avoid relocwrapper link errors due to gnulib replacement functions.
16829         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16830         * lib/malloca.c: Likewise.
16831         * lib/relocatable.c: Likewise.
16832         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16833         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16834         * lib/setenv.c: Use the system's malloc, realloc functions.
16835         * lib/strerror.c: Use the system's sprintf function.
16836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16837
16838 2010-06-04  Bruno Haible  <bruno@clisp.org>
16839
16840         Prefer documented low-level autoconf macro names.
16841         * m4/lib-link.m4: Use m4_translit instead of translit.
16842         * m4/environ.m4: Likewise.
16843         * m4/mathfunc.m4: Likewise.
16844         * m4/onceonly.m4: Likewise.
16845         * m4/stdint.m4: Likewise.
16846         Suggested by Eric Blake.
16847
16848 2010-06-04  Martin Lambers  <marlam@marlam.de>
16849             Bruno Haible  <bruno@clisp.org>
16850
16851         havelib: Allow library names with '+' characters.
16852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16853         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16854
16855 2010-06-09  Bruno Haible  <bruno@clisp.org>
16856
16857         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16858         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16859         realloc failed.
16860
16861 2010-06-08  Peter Simons  <simons@cryp.to>
16862
16863         maint.mk: make the news-check rule more configurable
16864         * top/maint.mk (news-check-lines-spec): New variable.
16865         (news-check): Use "sed -n 1,10p" in place of "head".
16866
16867 2010-06-07  Jim Meyering  <meyering@redhat.com>
16868
16869         do-release-commit-and-tag: fix typo in --help
16870         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16871
16872         regex: avoid new dead-code warning with gcc-4.6.0
16873         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16874         if-block containing a while-loop.  It's been unused for at least
16875         5 years.
16876
16877 2010-06-05  Bruno Haible  <bruno@clisp.org>
16878
16879         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16880         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16881
16882 2010-06-04  Bruno Haible  <bruno@clisp.org>
16883
16884         Update to GNU gettext 0.18.1.
16885         * modules/gettext (configure.ac): Require gettext infrastructure from
16886         version 0.18.1.
16887
16888 2010-06-03  Bruno Haible  <bruno@clisp.org>
16889
16890         Don't use AC_LIBOBJ with file names in subdirectories.
16891         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16892         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16893         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16894         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16895         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16896         gl_LIBUNISTRING_LIBSOURCE.
16897         (Makefile.am): Augment lib_SOURCES here, conditionally.
16898         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16899
16900 2010-06-03  Bruno Haible  <bruno@clisp.org>
16901
16902         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16903         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16904         expansion does not end with a newline.
16905         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16906         unnecessary newline.
16907
16908 2010-06-03  Bruno Haible  <bruno@clisp.org>
16909
16910         Reduce dependencies.
16911         * tests/test-quotearg.h: New file, extracted from
16912         tests/test-quotearg.c.
16913         * tests/test-quotearg-simple.c: New file, extracted from
16914         tests/test-quotearg.c.
16915         * tests/test-quotearg.c: Don't include <ctype.h>.
16916         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16917         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16918         use_quote_double_quotes, use_quotearg_colon): Moved to
16919         tests/test-quotearg.h.
16920         (results_g, flag_results, custom_quotes, custom_results): Moved
16921         to tests/test-quotearg-simple.c.
16922         (main): Moved the part that does not depend on gettext to
16923         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16924         performed.
16925         * modules/quotearg-simple: New file.
16926         * modules/quotearg-simple-tests: New file.
16927         * modules/quotearg (Depends-on): Add quotearg-simple.
16928         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16929         (Files): Add tests/test-quotearg.h.
16930         Reported by Paolo Bonzini.
16931
16932 2010-06-03  Bruno Haible  <bruno@clisp.org>
16933
16934         Reduce dependencies.
16935         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16936
16937 2010-06-03  Bruno Haible  <bruno@clisp.org>
16938
16939         time: Undefine more broken macros.
16940         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16941         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16942         Reported by Eric Blake.
16943
16944 2010-06-03  Bruno Haible  <bruno@clisp.org>
16945
16946         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16947         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16948         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16949         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16950         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16951         Reported by Ludovic Courtès <ludo@gnu.org>.
16952
16953 2010-06-02  Eric Blake  <eblake@redhat.com>
16954
16955         time: work with mingw + pthreads-win32 library
16956         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16957         if timespec is defined only in pthread.h.
16958         * modules/time (Makefile.am): Substitute it.
16959         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16960         <pthread.h>, when needed.
16961         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16962         from the library.
16963
16964 2010-05-31  Bruno Haible  <bruno@clisp.org>
16965
16966         Avoid expanding two macros in the wrong order.
16967         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16968         gl_LIBUNISTRING if it is defined.
16969         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16970         autoconf >= 2.64.
16971         Reported by Ludovic Courtès <ludo@gnu.org>.
16972
16973 2010-05-27  Jim Meyering  <meyering@redhat.com>
16974
16975         maint.mk: also prohibit "#undef" of always-defined symbols
16976         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16977         Allow more than one space before the symbol name.
16978         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16979         the regexp uses alternation.
16980
16981 2010-05-26  Eric Blake  <eblake@redhat.com>
16982
16983         maint.mk: avoid echo -e
16984         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16985         Convert all uses of echo -* to printf.
16986         Reported by Matthias Bolte.
16987
16988 2010-05-25  Bruno Haible  <bruno@clisp.org>
16989
16990         Update to GNU gettext 0.18, part 2.
16991         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16992         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16993
16994 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16995
16996         Add missing include in test-pwrite.c.
16997         * tests/test-pwrite.c: Include string.h, for strcmp.
16998
16999 2010-05-24  Bruno Haible  <bruno@clisp.org>
17000
17001         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17002
17003 2010-05-24  Bruno Haible  <bruno@clisp.org>
17004
17005         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17006         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17007         iconveh_error argument.
17008         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17009         U_STRCONV_TO_LOCALE.
17010         * lib/unistr/u16-strcoll.c: Likewise.
17011         * lib/unistr/u32-strcoll.c: Likewise.
17012         * modules/unistr/u8-strcoll (Depends-on): Add
17013         uniconv/u8-strconv-to-enc, localcharset. Remove
17014         uniconv/u8-strconv-to-locale.
17015         (configure.ac): Bump version number.
17016         * modules/unistr/u16-strcoll (Depends-on): Add
17017         uniconv/u16-strconv-to-enc, localcharset. Remove
17018         uniconv/u16-strconv-to-locale.
17019         (configure.ac): Bump version number.
17020         * modules/unistr/u32-strcoll (Depends-on): Add
17021         uniconv/u32-strconv-to-enc, localcharset. Remove
17022         uniconv/u32-strconv-to-locale.
17023         (configure.ac): Bump version number.
17024
17025 2010-05-24  Bruno Haible  <bruno@clisp.org>
17026
17027         Avoid a test failure on NetBSD 5.0.
17028         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17029         an iconv() bug.
17030
17031 2010-05-24  Bruno Haible  <bruno@clisp.org>
17032
17033         Adjust #include directive style.
17034         * modules/regex (Includes): Recommend to write <regex.h>.
17035
17036 2010-05-24  Bruno Haible  <bruno@clisp.org>
17037
17038         regex: Don't require alloca.
17039         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17040         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17041         only inside if (0).
17042
17043 2010-05-23  Jim Meyering  <meyering@redhat.com>
17044
17045         test-renameat.c: include <sys/stat.h>
17046         * tests/test-renameat.c: Include <sys/stat.h>; required for
17047         definition of S_IS* macros.
17048
17049 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17050
17051         Update maintainer documentation for 'relocatable-prog' module.
17052         * doc/relocatable-maint.texi: Update.
17053         Comments by Bruno Haible.
17054
17055 2010-05-23  Bruno Haible  <bruno@clisp.org>
17056
17057         git-merge-changelog: Enable --split-merged-entry by default.
17058         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17059         (usage): Don't mention this option any more.
17060         Reported by Ralf Wildenhues.
17061
17062 2010-05-23  Jim Meyering  <meyering@redhat.com>
17063
17064         test-pwrite: do not leave behind a test file named "out"
17065         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17066         The trivial-looking use of init.sh is really necessary.
17067         It ensures that the temporary file, "out", is created in
17068         a temporary directory, and removed upon termination.
17069         * tests/test-pwrite.sh: Re-add file.
17070         * modules/pwrite-tests: Reference it.
17071
17072 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17073
17074         Fix output redirection buglet in init.sh.
17075         * tests/init.sh: Fix redirection of stderr.
17076
17077 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17078
17079         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17080
17081 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17082
17083         * modules/valgrind-tests: New file.
17084         * m4/valgrind-tests.m4: New file.
17085         * doc/valgrind-tests.texi: New file.
17086         * doc/gnulib.texi (Running self-tests under valgrind): New
17087         section.
17088
17089 2010-05-19  Bruno Haible  <bruno@clisp.org>
17090
17091         Clean up dead code in recent commit.
17092         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17093         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17094         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17095         Suggested by Paolo Bonzini.
17096
17097 2010-05-19  Bruno Haible  <bruno@clisp.org>
17098
17099         Avoid valgrind error reports from libunistring.
17100         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17101         * modules/libunistring (Files): Add it.
17102         * modules/libunistring-optional (Files): Likewise.
17103
17104 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17105             Bruno Haible  <bruno@clisp.org>
17106
17107         New module 'libunistring-optional'.
17108         * modules/libunistring-optional: New file.
17109         * m4/libunistring-base.m4: New file.
17110         * m4/libunistring-optional.m4: New file.
17111         * lib/unicase.in.h: Renamed from lib/unicase.h.
17112         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17113         * lib/unictype.in.h: Renamed from lib/unictype.h.
17114         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17115         * lib/uniname.in.h: Renamed from lib/uniname.h.
17116         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17117         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17118         * lib/unistr.in.h: Renamed from lib/unistr.h.
17119         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17120         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17121         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17122         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17123         gl_LIBUNISTRING. If the library was found, determine the installed
17124         version and set LIBUNISTRING_VERSION.
17125         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17126         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17127         handle a configuration option --with-included-libunistring.
17128         * modules/libunistring (Files): Add m4/absolute-header.m4.
17129         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17130         Add m4/libunistring-base.m4.
17131         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17132         (Makefile.am): Build unicase.h from unicase.in.h.
17133         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17134         Add m4/libunistring-base.m4.
17135         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17136         (Makefile.am): Build uniconv.h from uniconv.in.h.
17137         * modules/unictype/base (Files): Use unictype.in.h instead of
17138         unictype.h. Add m4/libunistring-base.m4.
17139         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17140         (Makefile.am): Build unictype.h from unictype.in.h.
17141         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17142         Add m4/libunistring-base.m4.
17143         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17144         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17145         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17146         Add m4/libunistring-base.m4.
17147         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17148         (Makefile.am): Build uniname.h from uniname.in.h.
17149         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17150         Add m4/libunistring-base.m4.
17151         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17152         (Makefile.am): Build uninorm.h from uninorm.in.h.
17153         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17154         unistdio.h. Add m4/libunistring-base.m4.
17155         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17156         (Makefile.am): Build unistdio.h from unistdio.in.h.
17157         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17158         Add m4/libunistring-base.m4.
17159         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17160         (Makefile.am): Build unistr.h from unistr.in.h.
17161         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17162         Add m4/libunistring-base.m4.
17163         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17164         (Makefile.am): Build unitypes.h from unitypes.in.h.
17165         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17166         Add m4/libunistring-base.m4.
17167         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17168         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17169         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17170         uniwidth.h. Add m4/libunistring-base.m4.
17171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17172         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17173         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17174         instead of augmenting lib_SOURCES.
17175         * modules/unicase/empty-suffix-context: Likewise.
17176         * modules/unicase/locale-language: Likewise.
17177         * modules/unicase/tolower: Likewise.
17178         * modules/unicase/totitle: Likewise.
17179         * modules/unicase/toupper: Likewise.
17180         * modules/unicase/u8-casecmp: Likewise.
17181         * modules/unicase/u8-casecoll: Likewise.
17182         * modules/unicase/u8-casefold: Likewise.
17183         * modules/unicase/u8-casexfrm: Likewise.
17184         * modules/unicase/u8-ct-casefold: Likewise.
17185         * modules/unicase/u8-ct-tolower: Likewise.
17186         * modules/unicase/u8-ct-totitle: Likewise.
17187         * modules/unicase/u8-ct-toupper: Likewise.
17188         * modules/unicase/u8-is-cased: Likewise.
17189         * modules/unicase/u8-is-casefolded: Likewise.
17190         * modules/unicase/u8-is-lowercase: Likewise.
17191         * modules/unicase/u8-is-titlecase: Likewise.
17192         * modules/unicase/u8-is-uppercase: Likewise.
17193         * modules/unicase/u8-prefix-context: Likewise.
17194         * modules/unicase/u8-suffix-context: Likewise.
17195         * modules/unicase/u8-tolower: Likewise.
17196         * modules/unicase/u8-totitle: Likewise.
17197         * modules/unicase/u8-toupper: Likewise.
17198         * modules/unicase/u16-casecmp: Likewise.
17199         * modules/unicase/u16-casecoll: Likewise.
17200         * modules/unicase/u16-casefold: Likewise.
17201         * modules/unicase/u16-casexfrm: Likewise.
17202         * modules/unicase/u16-ct-casefold: Likewise.
17203         * modules/unicase/u16-ct-tolower: Likewise.
17204         * modules/unicase/u16-ct-totitle: Likewise.
17205         * modules/unicase/u16-ct-toupper: Likewise.
17206         * modules/unicase/u16-is-cased: Likewise.
17207         * modules/unicase/u16-is-casefolded: Likewise.
17208         * modules/unicase/u16-is-lowercase: Likewise.
17209         * modules/unicase/u16-is-titlecase: Likewise.
17210         * modules/unicase/u16-is-uppercase: Likewise.
17211         * modules/unicase/u16-prefix-context: Likewise.
17212         * modules/unicase/u16-suffix-context: Likewise.
17213         * modules/unicase/u16-tolower: Likewise.
17214         * modules/unicase/u16-totitle: Likewise.
17215         * modules/unicase/u16-toupper: Likewise.
17216         * modules/unicase/u32-casecmp: Likewise.
17217         * modules/unicase/u32-casecoll: Likewise.
17218         * modules/unicase/u32-casefold: Likewise.
17219         * modules/unicase/u32-casexfrm: Likewise.
17220         * modules/unicase/u32-ct-casefold: Likewise.
17221         * modules/unicase/u32-ct-tolower: Likewise.
17222         * modules/unicase/u32-ct-totitle: Likewise.
17223         * modules/unicase/u32-ct-toupper: Likewise.
17224         * modules/unicase/u32-is-cased: Likewise.
17225         * modules/unicase/u32-is-casefolded: Likewise.
17226         * modules/unicase/u32-is-lowercase: Likewise.
17227         * modules/unicase/u32-is-titlecase: Likewise.
17228         * modules/unicase/u32-is-uppercase: Likewise.
17229         * modules/unicase/u32-prefix-context: Likewise.
17230         * modules/unicase/u32-suffix-context: Likewise.
17231         * modules/unicase/u32-tolower: Likewise.
17232         * modules/unicase/u32-totitle: Likewise.
17233         * modules/unicase/u32-toupper: Likewise.
17234         * modules/unicase/ulc-casecmp: Likewise.
17235         * modules/unicase/ulc-casecoll: Likewise.
17236         * modules/unicase/ulc-casexfrm: Likewise.
17237         * modules/uniconv/u8-conv-from-enc: Likewise.
17238         * modules/uniconv/u8-conv-to-enc: Likewise.
17239         * modules/uniconv/u8-strconv-from-enc: Likewise.
17240         * modules/uniconv/u8-strconv-from-locale: Likewise.
17241         * modules/uniconv/u8-strconv-to-enc: Likewise.
17242         * modules/uniconv/u8-strconv-to-locale: Likewise.
17243         * modules/uniconv/u16-conv-from-enc: Likewise.
17244         * modules/uniconv/u16-conv-to-enc: Likewise.
17245         * modules/uniconv/u16-strconv-from-enc: Likewise.
17246         * modules/uniconv/u16-strconv-from-locale: Likewise.
17247         * modules/uniconv/u16-strconv-to-enc: Likewise.
17248         * modules/uniconv/u16-strconv-to-locale: Likewise.
17249         * modules/uniconv/u32-conv-from-enc: Likewise.
17250         * modules/uniconv/u32-conv-to-enc: Likewise.
17251         * modules/uniconv/u32-strconv-from-enc: Likewise.
17252         * modules/uniconv/u32-strconv-from-locale: Likewise.
17253         * modules/uniconv/u32-strconv-to-enc: Likewise.
17254         * modules/uniconv/u32-strconv-to-locale: Likewise.
17255         * modules/unictype/bidicategory-byname: Likewise.
17256         * modules/unictype/bidicategory-name: Likewise.
17257         * modules/unictype/bidicategory-of: Likewise.
17258         * modules/unictype/bidicategory-test: Likewise.
17259         * modules/unictype/block-list: Likewise.
17260         * modules/unictype/block-test: Likewise.
17261         * modules/unictype/category-C: Likewise.
17262         * modules/unictype/category-Cc: Likewise.
17263         * modules/unictype/category-Cf: Likewise.
17264         * modules/unictype/category-Cn: Likewise.
17265         * modules/unictype/category-Co: Likewise.
17266         * modules/unictype/category-Cs: Likewise.
17267         * modules/unictype/category-L: Likewise.
17268         * modules/unictype/category-Ll: Likewise.
17269         * modules/unictype/category-Lm: Likewise.
17270         * modules/unictype/category-Lo: Likewise.
17271         * modules/unictype/category-Lt: Likewise.
17272         * modules/unictype/category-Lu: Likewise.
17273         * modules/unictype/category-M: Likewise.
17274         * modules/unictype/category-Mc: Likewise.
17275         * modules/unictype/category-Me: Likewise.
17276         * modules/unictype/category-Mn: Likewise.
17277         * modules/unictype/category-N: Likewise.
17278         * modules/unictype/category-Nd: Likewise.
17279         * modules/unictype/category-Nl: Likewise.
17280         * modules/unictype/category-No: Likewise.
17281         * modules/unictype/category-P: Likewise.
17282         * modules/unictype/category-Pc: Likewise.
17283         * modules/unictype/category-Pd: Likewise.
17284         * modules/unictype/category-Pe: Likewise.
17285         * modules/unictype/category-Pf: Likewise.
17286         * modules/unictype/category-Pi: Likewise.
17287         * modules/unictype/category-Po: Likewise.
17288         * modules/unictype/category-Ps: Likewise.
17289         * modules/unictype/category-S: Likewise.
17290         * modules/unictype/category-Sc: Likewise.
17291         * modules/unictype/category-Sk: Likewise.
17292         * modules/unictype/category-Sm: Likewise.
17293         * modules/unictype/category-So: Likewise.
17294         * modules/unictype/category-Z: Likewise.
17295         * modules/unictype/category-Zl: Likewise.
17296         * modules/unictype/category-Zp: Likewise.
17297         * modules/unictype/category-Zs: Likewise.
17298         * modules/unictype/category-and: Likewise.
17299         * modules/unictype/category-and-not: Likewise.
17300         * modules/unictype/category-byname: Likewise.
17301         * modules/unictype/category-name: Likewise.
17302         * modules/unictype/category-none: Likewise.
17303         * modules/unictype/category-of: Likewise.
17304         * modules/unictype/category-or: Likewise.
17305         * modules/unictype/category-test: Likewise.
17306         * modules/unictype/combining-class: Likewise.
17307         * modules/unictype/ctype-alnum: Likewise.
17308         * modules/unictype/ctype-alpha: Likewise.
17309         * modules/unictype/ctype-blank: Likewise.
17310         * modules/unictype/ctype-cntrl: Likewise.
17311         * modules/unictype/ctype-digit: Likewise.
17312         * modules/unictype/ctype-graph: Likewise.
17313         * modules/unictype/ctype-lower: Likewise.
17314         * modules/unictype/ctype-print: Likewise.
17315         * modules/unictype/ctype-punct: Likewise.
17316         * modules/unictype/ctype-space: Likewise.
17317         * modules/unictype/ctype-upper: Likewise.
17318         * modules/unictype/ctype-xdigit: Likewise.
17319         * modules/unictype/decimal-digit: Likewise.
17320         * modules/unictype/digit: Likewise.
17321         * modules/unictype/mirror: Likewise.
17322         * modules/unictype/numeric: Likewise.
17323         * modules/unictype/property-alphabetic: Likewise.
17324         * modules/unictype/property-ascii-hex-digit: Likewise.
17325         * modules/unictype/property-bidi-arabic-digit: Likewise.
17326         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17327         * modules/unictype/property-bidi-block-separator: Likewise.
17328         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17329         * modules/unictype/property-bidi-common-separator: Likewise.
17330         * modules/unictype/property-bidi-control: Likewise.
17331         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17332         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17333         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17334         * modules/unictype/property-bidi-european-digit: Likewise.
17335         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17336         * modules/unictype/property-bidi-left-to-right: Likewise.
17337         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17338         * modules/unictype/property-bidi-other-neutral: Likewise.
17339         * modules/unictype/property-bidi-pdf: Likewise.
17340         * modules/unictype/property-bidi-segment-separator: Likewise.
17341         * modules/unictype/property-bidi-whitespace: Likewise.
17342         * modules/unictype/property-byname: Likewise.
17343         * modules/unictype/property-combining: Likewise.
17344         * modules/unictype/property-composite: Likewise.
17345         * modules/unictype/property-currency-symbol: Likewise.
17346         * modules/unictype/property-dash: Likewise.
17347         * modules/unictype/property-decimal-digit: Likewise.
17348         * modules/unictype/property-default-ignorable-code-point: Likewise.
17349         * modules/unictype/property-deprecated: Likewise.
17350         * modules/unictype/property-diacritic: Likewise.
17351         * modules/unictype/property-extender: Likewise.
17352         * modules/unictype/property-format-control: Likewise.
17353         * modules/unictype/property-grapheme-base: Likewise.
17354         * modules/unictype/property-grapheme-extend: Likewise.
17355         * modules/unictype/property-grapheme-link: Likewise.
17356         * modules/unictype/property-hex-digit: Likewise.
17357         * modules/unictype/property-hyphen: Likewise.
17358         * modules/unictype/property-id-continue: Likewise.
17359         * modules/unictype/property-id-start: Likewise.
17360         * modules/unictype/property-ideographic: Likewise.
17361         * modules/unictype/property-ids-binary-operator: Likewise.
17362         * modules/unictype/property-ids-trinary-operator: Likewise.
17363         * modules/unictype/property-ignorable-control: Likewise.
17364         * modules/unictype/property-iso-control: Likewise.
17365         * modules/unictype/property-join-control: Likewise.
17366         * modules/unictype/property-left-of-pair: Likewise.
17367         * modules/unictype/property-line-separator: Likewise.
17368         * modules/unictype/property-logical-order-exception: Likewise.
17369         * modules/unictype/property-lowercase: Likewise.
17370         * modules/unictype/property-math: Likewise.
17371         * modules/unictype/property-non-break: Likewise.
17372         * modules/unictype/property-not-a-character: Likewise.
17373         * modules/unictype/property-numeric: Likewise.
17374         * modules/unictype/property-other-alphabetic: Likewise.
17375         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17376         * modules/unictype/property-other-grapheme-extend: Likewise.
17377         * modules/unictype/property-other-id-continue: Likewise.
17378         * modules/unictype/property-other-id-start: Likewise.
17379         * modules/unictype/property-other-lowercase: Likewise.
17380         * modules/unictype/property-other-math: Likewise.
17381         * modules/unictype/property-other-uppercase: Likewise.
17382         * modules/unictype/property-paired-punctuation: Likewise.
17383         * modules/unictype/property-paragraph-separator: Likewise.
17384         * modules/unictype/property-pattern-syntax: Likewise.
17385         * modules/unictype/property-pattern-white-space: Likewise.
17386         * modules/unictype/property-private-use: Likewise.
17387         * modules/unictype/property-punctuation: Likewise.
17388         * modules/unictype/property-quotation-mark: Likewise.
17389         * modules/unictype/property-radical: Likewise.
17390         * modules/unictype/property-sentence-terminal: Likewise.
17391         * modules/unictype/property-soft-dotted: Likewise.
17392         * modules/unictype/property-space: Likewise.
17393         * modules/unictype/property-terminal-punctuation: Likewise.
17394         * modules/unictype/property-test: Likewise.
17395         * modules/unictype/property-titlecase: Likewise.
17396         * modules/unictype/property-unassigned-code-value: Likewise.
17397         * modules/unictype/property-unified-ideograph: Likewise.
17398         * modules/unictype/property-uppercase: Likewise.
17399         * modules/unictype/property-variation-selector: Likewise.
17400         * modules/unictype/property-white-space: Likewise.
17401         * modules/unictype/property-xid-continue: Likewise.
17402         * modules/unictype/property-xid-start: Likewise.
17403         * modules/unictype/property-zero-width: Likewise.
17404         * modules/unictype/scripts: Likewise.
17405         * modules/unictype/syntax-c-ident: Likewise.
17406         * modules/unictype/syntax-c-whitespace: Likewise.
17407         * modules/unictype/syntax-java-ident: Likewise.
17408         * modules/unictype/syntax-java-whitespace: Likewise.
17409         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17410         * modules/unilbrk/u8-width-linebreaks: Likewise.
17411         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17412         * modules/unilbrk/u16-width-linebreaks: Likewise.
17413         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17414         * modules/unilbrk/u32-width-linebreaks: Likewise.
17415         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17416         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17417         * modules/uniname/uniname: Likewise.
17418         * modules/uninorm/canonical-decomposition: Likewise.
17419         * modules/uninorm/composition: Likewise.
17420         * modules/uninorm/decomposing-form: Likewise.
17421         * modules/uninorm/decomposition: Likewise.
17422         * modules/uninorm/filter: Likewise.
17423         * modules/uninorm/nfc: Likewise.
17424         * modules/uninorm/nfd: Likewise.
17425         * modules/uninorm/nfkc: Likewise.
17426         * modules/uninorm/nfkd: Likewise.
17427         * modules/uninorm/u8-normalize: Likewise.
17428         * modules/uninorm/u8-normcmp: Likewise.
17429         * modules/uninorm/u8-normcoll: Likewise.
17430         * modules/uninorm/u8-normxfrm: Likewise.
17431         * modules/uninorm/u16-normalize: Likewise.
17432         * modules/uninorm/u16-normcmp: Likewise.
17433         * modules/uninorm/u16-normcoll: Likewise.
17434         * modules/uninorm/u16-normxfrm: Likewise.
17435         * modules/uninorm/u32-normalize: Likewise.
17436         * modules/uninorm/u32-normcmp: Likewise.
17437         * modules/uninorm/u32-normcoll: Likewise.
17438         * modules/uninorm/u32-normxfrm: Likewise.
17439         * modules/unistdio/u8-asnprintf: Likewise.
17440         * modules/unistdio/u8-asprintf: Likewise.
17441         * modules/unistdio/u8-snprintf: Likewise.
17442         * modules/unistdio/u8-sprintf: Likewise.
17443         * modules/unistdio/u8-u8-asnprintf: Likewise.
17444         * modules/unistdio/u8-u8-asprintf: Likewise.
17445         * modules/unistdio/u8-u8-snprintf: Likewise.
17446         * modules/unistdio/u8-u8-sprintf: Likewise.
17447         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17448         * modules/unistdio/u8-u8-vasprintf: Likewise.
17449         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17450         * modules/unistdio/u8-u8-vsprintf: Likewise.
17451         * modules/unistdio/u8-vasnprintf: Likewise.
17452         * modules/unistdio/u8-vasprintf: Likewise.
17453         * modules/unistdio/u8-vsnprintf: Likewise.
17454         * modules/unistdio/u8-vsprintf: Likewise.
17455         * modules/unistdio/u16-asnprintf: Likewise.
17456         * modules/unistdio/u16-asprintf: Likewise.
17457         * modules/unistdio/u16-snprintf: Likewise.
17458         * modules/unistdio/u16-sprintf: Likewise.
17459         * modules/unistdio/u16-u16-asnprintf: Likewise.
17460         * modules/unistdio/u16-u16-asprintf: Likewise.
17461         * modules/unistdio/u16-u16-snprintf: Likewise.
17462         * modules/unistdio/u16-u16-sprintf: Likewise.
17463         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17464         * modules/unistdio/u16-u16-vasprintf: Likewise.
17465         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17466         * modules/unistdio/u16-u16-vsprintf: Likewise.
17467         * modules/unistdio/u16-vasnprintf: Likewise.
17468         * modules/unistdio/u16-vasprintf: Likewise.
17469         * modules/unistdio/u16-vsnprintf: Likewise.
17470         * modules/unistdio/u16-vsprintf: Likewise.
17471         * modules/unistdio/u32-asnprintf: Likewise.
17472         * modules/unistdio/u32-asprintf: Likewise.
17473         * modules/unistdio/u32-snprintf: Likewise.
17474         * modules/unistdio/u32-sprintf: Likewise.
17475         * modules/unistdio/u32-u32-asnprintf: Likewise.
17476         * modules/unistdio/u32-u32-asprintf: Likewise.
17477         * modules/unistdio/u32-u32-snprintf: Likewise.
17478         * modules/unistdio/u32-u32-sprintf: Likewise.
17479         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17480         * modules/unistdio/u32-u32-vasprintf: Likewise.
17481         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17482         * modules/unistdio/u32-u32-vsprintf: Likewise.
17483         * modules/unistdio/u32-vasnprintf: Likewise.
17484         * modules/unistdio/u32-vasprintf: Likewise.
17485         * modules/unistdio/u32-vsnprintf: Likewise.
17486         * modules/unistdio/u32-vsprintf: Likewise.
17487         * modules/unistdio/ulc-asnprintf: Likewise.
17488         * modules/unistdio/ulc-asprintf: Likewise.
17489         * modules/unistdio/ulc-fprintf: Likewise.
17490         * modules/unistdio/ulc-snprintf: Likewise.
17491         * modules/unistdio/ulc-sprintf: Likewise.
17492         * modules/unistdio/ulc-vasnprintf: Likewise.
17493         * modules/unistdio/ulc-vasprintf: Likewise.
17494         * modules/unistdio/ulc-vfprintf: Likewise.
17495         * modules/unistdio/ulc-vsnprintf: Likewise.
17496         * modules/unistdio/ulc-vsprintf: Likewise.
17497         * modules/unistr/u8-check: Likewise.
17498         * modules/unistr/u8-chr: Likewise.
17499         * modules/unistr/u8-cmp: Likewise.
17500         * modules/unistr/u8-cmp2: Likewise.
17501         * modules/unistr/u8-cpy: Likewise.
17502         * modules/unistr/u8-cpy-alloc: Likewise.
17503         * modules/unistr/u8-endswith: Likewise.
17504         * modules/unistr/u8-mblen: Likewise.
17505         * modules/unistr/u8-mbsnlen: Likewise.
17506         * modules/unistr/u8-mbtouc: Likewise.
17507         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17508         * modules/unistr/u8-mbtoucr: Likewise.
17509         * modules/unistr/u8-move: Likewise.
17510         * modules/unistr/u8-next: Likewise.
17511         * modules/unistr/u8-prev: Likewise.
17512         * modules/unistr/u8-set: Likewise.
17513         * modules/unistr/u8-startswith: Likewise.
17514         * modules/unistr/u8-stpcpy: Likewise.
17515         * modules/unistr/u8-stpncpy: Likewise.
17516         * modules/unistr/u8-strcat: Likewise.
17517         * modules/unistr/u8-strchr: Likewise.
17518         * modules/unistr/u8-strcmp: Likewise.
17519         * modules/unistr/u8-strcoll: Likewise.
17520         * modules/unistr/u8-strcpy: Likewise.
17521         * modules/unistr/u8-strcspn: Likewise.
17522         * modules/unistr/u8-strdup: Likewise.
17523         * modules/unistr/u8-strlen: Likewise.
17524         * modules/unistr/u8-strmblen: Likewise.
17525         * modules/unistr/u8-strmbtouc: Likewise.
17526         * modules/unistr/u8-strncat: Likewise.
17527         * modules/unistr/u8-strncmp: Likewise.
17528         * modules/unistr/u8-strncpy: Likewise.
17529         * modules/unistr/u8-strnlen: Likewise.
17530         * modules/unistr/u8-strpbrk: Likewise.
17531         * modules/unistr/u8-strrchr: Likewise.
17532         * modules/unistr/u8-strspn: Likewise.
17533         * modules/unistr/u8-strstr: Likewise.
17534         * modules/unistr/u8-strtok: Likewise.
17535         * modules/unistr/u8-to-u16: Likewise.
17536         * modules/unistr/u8-to-u32: Likewise.
17537         * modules/unistr/u8-uctomb: Likewise.
17538         * modules/unistr/u16-check: Likewise.
17539         * modules/unistr/u16-chr: Likewise.
17540         * modules/unistr/u16-cmp: Likewise.
17541         * modules/unistr/u16-cmp2: Likewise.
17542         * modules/unistr/u16-cpy: Likewise.
17543         * modules/unistr/u16-cpy-alloc: Likewise.
17544         * modules/unistr/u16-endswith: Likewise.
17545         * modules/unistr/u16-mblen: Likewise.
17546         * modules/unistr/u16-mbsnlen: Likewise.
17547         * modules/unistr/u16-mbtouc: Likewise.
17548         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17549         * modules/unistr/u16-mbtoucr: Likewise.
17550         * modules/unistr/u16-move: Likewise.
17551         * modules/unistr/u16-next: Likewise.
17552         * modules/unistr/u16-prev: Likewise.
17553         * modules/unistr/u16-set: Likewise.
17554         * modules/unistr/u16-startswith: Likewise.
17555         * modules/unistr/u16-stpcpy: Likewise.
17556         * modules/unistr/u16-stpncpy: Likewise.
17557         * modules/unistr/u16-strcat: Likewise.
17558         * modules/unistr/u16-strchr: Likewise.
17559         * modules/unistr/u16-strcmp: Likewise.
17560         * modules/unistr/u16-strcoll: Likewise.
17561         * modules/unistr/u16-strcpy: Likewise.
17562         * modules/unistr/u16-strcspn: Likewise.
17563         * modules/unistr/u16-strdup: Likewise.
17564         * modules/unistr/u16-strlen: Likewise.
17565         * modules/unistr/u16-strmblen: Likewise.
17566         * modules/unistr/u16-strmbtouc: Likewise.
17567         * modules/unistr/u16-strncat: Likewise.
17568         * modules/unistr/u16-strncmp: Likewise.
17569         * modules/unistr/u16-strncpy: Likewise.
17570         * modules/unistr/u16-strnlen: Likewise.
17571         * modules/unistr/u16-strpbrk: Likewise.
17572         * modules/unistr/u16-strrchr: Likewise.
17573         * modules/unistr/u16-strspn: Likewise.
17574         * modules/unistr/u16-strstr: Likewise.
17575         * modules/unistr/u16-strtok: Likewise.
17576         * modules/unistr/u16-to-u32: Likewise.
17577         * modules/unistr/u16-to-u8: Likewise.
17578         * modules/unistr/u16-uctomb: Likewise.
17579         * modules/unistr/u32-check: Likewise.
17580         * modules/unistr/u32-chr: Likewise.
17581         * modules/unistr/u32-cmp: Likewise.
17582         * modules/unistr/u32-cmp2: Likewise.
17583         * modules/unistr/u32-cpy: Likewise.
17584         * modules/unistr/u32-cpy-alloc: Likewise.
17585         * modules/unistr/u32-endswith: Likewise.
17586         * modules/unistr/u32-mblen: Likewise.
17587         * modules/unistr/u32-mbsnlen: Likewise.
17588         * modules/unistr/u32-mbtouc: Likewise.
17589         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17590         * modules/unistr/u32-mbtoucr: Likewise.
17591         * modules/unistr/u32-move: Likewise.
17592         * modules/unistr/u32-next: Likewise.
17593         * modules/unistr/u32-prev: Likewise.
17594         * modules/unistr/u32-set: Likewise.
17595         * modules/unistr/u32-startswith: Likewise.
17596         * modules/unistr/u32-stpcpy: Likewise.
17597         * modules/unistr/u32-stpncpy: Likewise.
17598         * modules/unistr/u32-strcat: Likewise.
17599         * modules/unistr/u32-strchr: Likewise.
17600         * modules/unistr/u32-strcmp: Likewise.
17601         * modules/unistr/u32-strcoll: Likewise.
17602         * modules/unistr/u32-strcpy: Likewise.
17603         * modules/unistr/u32-strcspn: Likewise.
17604         * modules/unistr/u32-strdup: Likewise.
17605         * modules/unistr/u32-strlen: Likewise.
17606         * modules/unistr/u32-strmblen: Likewise.
17607         * modules/unistr/u32-strmbtouc: Likewise.
17608         * modules/unistr/u32-strncat: Likewise.
17609         * modules/unistr/u32-strncmp: Likewise.
17610         * modules/unistr/u32-strncpy: Likewise.
17611         * modules/unistr/u32-strnlen: Likewise.
17612         * modules/unistr/u32-strpbrk: Likewise.
17613         * modules/unistr/u32-strrchr: Likewise.
17614         * modules/unistr/u32-strspn: Likewise.
17615         * modules/unistr/u32-strstr: Likewise.
17616         * modules/unistr/u32-strtok: Likewise.
17617         * modules/unistr/u32-to-u16: Likewise.
17618         * modules/unistr/u32-to-u8: Likewise.
17619         * modules/unistr/u32-uctomb: Likewise.
17620         * modules/uniwbrk/u8-wordbreaks: Likewise.
17621         * modules/uniwbrk/u16-wordbreaks: Likewise.
17622         * modules/uniwbrk/u32-wordbreaks: Likewise.
17623         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17624         * modules/uniwbrk/wordbreak-property: Likewise.
17625         * modules/uniwidth/u8-strwidth: Likewise.
17626         * modules/uniwidth/u8-width: Likewise.
17627         * modules/uniwidth/u16-strwidth: Likewise.
17628         * modules/uniwidth/u16-width: Likewise.
17629         * modules/uniwidth/u32-strwidth: Likewise.
17630         * modules/uniwidth/u32-width: Likewise.
17631         * modules/uniwidth/width: Likewise.
17632         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17633         with $(LIBUNISTRING).
17634         * modules/unicase/ignorable-tests: Likewise.
17635         * modules/unicase/locale-language-tests: Likewise.
17636         * modules/unicase/tolower-tests: Likewise.
17637         * modules/unicase/totitle-tests: Likewise.
17638         * modules/unicase/toupper-tests: Likewise.
17639         * modules/unicase/u8-casecmp-tests: Likewise.
17640         * modules/unicase/u8-casecoll-tests: Likewise.
17641         * modules/unicase/u8-casefold-tests: Likewise.
17642         * modules/unicase/u8-is-cased-tests: Likewise.
17643         * modules/unicase/u8-is-casefolded-tests: Likewise.
17644         * modules/unicase/u8-is-lowercase-tests: Likewise.
17645         * modules/unicase/u8-is-titlecase-tests: Likewise.
17646         * modules/unicase/u8-is-uppercase-tests: Likewise.
17647         * modules/unicase/u8-tolower-tests: Likewise.
17648         * modules/unicase/u8-totitle-tests: Likewise.
17649         * modules/unicase/u8-toupper-tests: Likewise.
17650         * modules/unicase/u16-casecmp-tests: Likewise.
17651         * modules/unicase/u16-casecoll-tests: Likewise.
17652         * modules/unicase/u16-casefold-tests: Likewise.
17653         * modules/unicase/u16-is-cased-tests: Likewise.
17654         * modules/unicase/u16-is-casefolded-tests: Likewise.
17655         * modules/unicase/u16-is-lowercase-tests: Likewise.
17656         * modules/unicase/u16-is-titlecase-tests: Likewise.
17657         * modules/unicase/u16-is-uppercase-tests: Likewise.
17658         * modules/unicase/u16-tolower-tests: Likewise.
17659         * modules/unicase/u16-totitle-tests: Likewise.
17660         * modules/unicase/u16-toupper-tests: Likewise.
17661         * modules/unicase/u32-casecmp-tests: Likewise.
17662         * modules/unicase/u32-casecoll-tests: Likewise.
17663         * modules/unicase/u32-casefold-tests: Likewise.
17664         * modules/unicase/u32-is-cased-tests: Likewise.
17665         * modules/unicase/u32-is-casefolded-tests: Likewise.
17666         * modules/unicase/u32-is-lowercase-tests: Likewise.
17667         * modules/unicase/u32-is-titlecase-tests: Likewise.
17668         * modules/unicase/u32-is-uppercase-tests: Likewise.
17669         * modules/unicase/u32-tolower-tests: Likewise.
17670         * modules/unicase/u32-totitle-tests: Likewise.
17671         * modules/unicase/u32-toupper-tests: Likewise.
17672         * modules/unicase/ulc-casecmp-tests: Likewise.
17673         * modules/unicase/ulc-casecoll-tests: Likewise.
17674         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17675         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17676         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17677         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17678         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17679         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17680         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17681         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17682         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17683         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17684         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17685         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17686         * modules/unictype/bidicategory-byname-tests: Likewise.
17687         * modules/unictype/bidicategory-name-tests: Likewise.
17688         * modules/unictype/bidicategory-of-tests: Likewise.
17689         * modules/unictype/bidicategory-test-tests: Likewise.
17690         * modules/unictype/block-list-tests: Likewise.
17691         * modules/unictype/block-of-tests: Likewise.
17692         * modules/unictype/block-test-tests: Likewise.
17693         * modules/unictype/category-C-tests: Likewise.
17694         * modules/unictype/category-Cc-tests: Likewise.
17695         * modules/unictype/category-Cf-tests: Likewise.
17696         * modules/unictype/category-Cn-tests: Likewise.
17697         * modules/unictype/category-Co-tests: Likewise.
17698         * modules/unictype/category-Cs-tests: Likewise.
17699         * modules/unictype/category-L-tests: Likewise.
17700         * modules/unictype/category-Ll-tests: Likewise.
17701         * modules/unictype/category-Lm-tests: Likewise.
17702         * modules/unictype/category-Lo-tests: Likewise.
17703         * modules/unictype/category-Lt-tests: Likewise.
17704         * modules/unictype/category-Lu-tests: Likewise.
17705         * modules/unictype/category-M-tests: Likewise.
17706         * modules/unictype/category-Mc-tests: Likewise.
17707         * modules/unictype/category-Me-tests: Likewise.
17708         * modules/unictype/category-Mn-tests: Likewise.
17709         * modules/unictype/category-N-tests: Likewise.
17710         * modules/unictype/category-Nd-tests: Likewise.
17711         * modules/unictype/category-Nl-tests: Likewise.
17712         * modules/unictype/category-No-tests: Likewise.
17713         * modules/unictype/category-P-tests: Likewise.
17714         * modules/unictype/category-Pc-tests: Likewise.
17715         * modules/unictype/category-Pd-tests: Likewise.
17716         * modules/unictype/category-Pe-tests: Likewise.
17717         * modules/unictype/category-Pf-tests: Likewise.
17718         * modules/unictype/category-Pi-tests: Likewise.
17719         * modules/unictype/category-Po-tests: Likewise.
17720         * modules/unictype/category-Ps-tests: Likewise.
17721         * modules/unictype/category-S-tests: Likewise.
17722         * modules/unictype/category-Sc-tests: Likewise.
17723         * modules/unictype/category-Sk-tests: Likewise.
17724         * modules/unictype/category-Sm-tests: Likewise.
17725         * modules/unictype/category-So-tests: Likewise.
17726         * modules/unictype/category-Z-tests: Likewise.
17727         * modules/unictype/category-Zl-tests: Likewise.
17728         * modules/unictype/category-Zp-tests: Likewise.
17729         * modules/unictype/category-Zs-tests: Likewise.
17730         * modules/unictype/category-and-not-tests: Likewise.
17731         * modules/unictype/category-and-tests: Likewise.
17732         * modules/unictype/category-byname-tests: Likewise.
17733         * modules/unictype/category-name-tests: Likewise.
17734         * modules/unictype/category-none-tests: Likewise.
17735         * modules/unictype/category-of-tests: Likewise.
17736         * modules/unictype/category-or-tests: Likewise.
17737         * modules/unictype/category-test-withtable-tests: Likewise.
17738         * modules/unictype/combining-class-tests: Likewise.
17739         * modules/unictype/ctype-alnum-tests: Likewise.
17740         * modules/unictype/ctype-alpha-tests: Likewise.
17741         * modules/unictype/ctype-blank-tests: Likewise.
17742         * modules/unictype/ctype-cntrl-tests: Likewise.
17743         * modules/unictype/ctype-digit-tests: Likewise.
17744         * modules/unictype/ctype-graph-tests: Likewise.
17745         * modules/unictype/ctype-lower-tests: Likewise.
17746         * modules/unictype/ctype-print-tests: Likewise.
17747         * modules/unictype/ctype-punct-tests: Likewise.
17748         * modules/unictype/ctype-space-tests: Likewise.
17749         * modules/unictype/ctype-upper-tests: Likewise.
17750         * modules/unictype/ctype-xdigit-tests: Likewise.
17751         * modules/unictype/decimal-digit-tests: Likewise.
17752         * modules/unictype/digit-tests: Likewise.
17753         * modules/unictype/mirror-tests: Likewise.
17754         * modules/unictype/numeric-tests: Likewise.
17755         * modules/unictype/property-alphabetic-tests: Likewise.
17756         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17757         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17758         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17759         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17760         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17761         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17762         * modules/unictype/property-bidi-control-tests: Likewise.
17763         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17764         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17765         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17766         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17767         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17768         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17769         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17770         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17771         * modules/unictype/property-bidi-pdf-tests: Likewise.
17772         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17773         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17774         * modules/unictype/property-byname-tests: Likewise.
17775         * modules/unictype/property-combining-tests: Likewise.
17776         * modules/unictype/property-composite-tests: Likewise.
17777         * modules/unictype/property-currency-symbol-tests: Likewise.
17778         * modules/unictype/property-dash-tests: Likewise.
17779         * modules/unictype/property-decimal-digit-tests: Likewise.
17780         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17781         * modules/unictype/property-deprecated-tests: Likewise.
17782         * modules/unictype/property-diacritic-tests: Likewise.
17783         * modules/unictype/property-extender-tests: Likewise.
17784         * modules/unictype/property-format-control-tests: Likewise.
17785         * modules/unictype/property-grapheme-base-tests: Likewise.
17786         * modules/unictype/property-grapheme-extend-tests: Likewise.
17787         * modules/unictype/property-grapheme-link-tests: Likewise.
17788         * modules/unictype/property-hex-digit-tests: Likewise.
17789         * modules/unictype/property-hyphen-tests: Likewise.
17790         * modules/unictype/property-id-continue-tests: Likewise.
17791         * modules/unictype/property-id-start-tests: Likewise.
17792         * modules/unictype/property-ideographic-tests: Likewise.
17793         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17794         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17795         * modules/unictype/property-ignorable-control-tests: Likewise.
17796         * modules/unictype/property-iso-control-tests: Likewise.
17797         * modules/unictype/property-join-control-tests: Likewise.
17798         * modules/unictype/property-left-of-pair-tests: Likewise.
17799         * modules/unictype/property-line-separator-tests: Likewise.
17800         * modules/unictype/property-logical-order-exception-tests: Likewise.
17801         * modules/unictype/property-lowercase-tests: Likewise.
17802         * modules/unictype/property-math-tests: Likewise.
17803         * modules/unictype/property-non-break-tests: Likewise.
17804         * modules/unictype/property-not-a-character-tests: Likewise.
17805         * modules/unictype/property-numeric-tests: Likewise.
17806         * modules/unictype/property-other-alphabetic-tests: Likewise.
17807         * modules/unictype/property-other-default-ignorable-code-point-tests:
17808         Likewise.
17809         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17810         * modules/unictype/property-other-id-continue-tests: Likewise.
17811         * modules/unictype/property-other-id-start-tests: Likewise.
17812         * modules/unictype/property-other-lowercase-tests: Likewise.
17813         * modules/unictype/property-other-math-tests: Likewise.
17814         * modules/unictype/property-other-uppercase-tests: Likewise.
17815         * modules/unictype/property-paired-punctuation-tests: Likewise.
17816         * modules/unictype/property-paragraph-separator-tests: Likewise.
17817         * modules/unictype/property-pattern-syntax-tests: Likewise.
17818         * modules/unictype/property-pattern-white-space-tests: Likewise.
17819         * modules/unictype/property-private-use-tests: Likewise.
17820         * modules/unictype/property-punctuation-tests: Likewise.
17821         * modules/unictype/property-quotation-mark-tests: Likewise.
17822         * modules/unictype/property-radical-tests: Likewise.
17823         * modules/unictype/property-sentence-terminal-tests: Likewise.
17824         * modules/unictype/property-soft-dotted-tests: Likewise.
17825         * modules/unictype/property-space-tests: Likewise.
17826         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17827         * modules/unictype/property-test-tests: Likewise.
17828         * modules/unictype/property-titlecase-tests: Likewise.
17829         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17830         * modules/unictype/property-unified-ideograph-tests: Likewise.
17831         * modules/unictype/property-uppercase-tests: Likewise.
17832         * modules/unictype/property-variation-selector-tests: Likewise.
17833         * modules/unictype/property-white-space-tests: Likewise.
17834         * modules/unictype/property-xid-continue-tests: Likewise.
17835         * modules/unictype/property-xid-start-tests: Likewise.
17836         * modules/unictype/property-zero-width-tests: Likewise.
17837         * modules/unictype/scripts-tests: Likewise.
17838         * modules/unictype/syntax-c-ident-tests: Likewise.
17839         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17840         * modules/unictype/syntax-java-ident-tests: Likewise.
17841         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17842         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17843         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17844         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17845         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17846         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17847         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17848         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17849         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17850         * modules/uniname/uniname-tests: Likewise.
17851         * modules/uninorm/canonical-decomposition-tests: Likewise.
17852         * modules/uninorm/compat-decomposition-tests: Likewise.
17853         * modules/uninorm/composition-tests: Likewise.
17854         * modules/uninorm/decomposing-form-tests: Likewise.
17855         * modules/uninorm/decomposition-tests: Likewise.
17856         * modules/uninorm/filter-tests: Likewise.
17857         * modules/uninorm/nfc-tests: Likewise.
17858         * modules/uninorm/nfd-tests: Likewise.
17859         * modules/uninorm/nfkc-tests: Likewise.
17860         * modules/uninorm/nfkd-tests: Likewise.
17861         * modules/uninorm/u8-normcmp-tests: Likewise.
17862         * modules/uninorm/u8-normcoll-tests: Likewise.
17863         * modules/uninorm/u16-normcmp-tests: Likewise.
17864         * modules/uninorm/u16-normcoll-tests: Likewise.
17865         * modules/uninorm/u32-normcmp-tests: Likewise.
17866         * modules/uninorm/u32-normcoll-tests: Likewise.
17867         * modules/unistdio/u8-asnprintf-tests: Likewise.
17868         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17869         * modules/unistdio/u8-vasprintf-tests: Likewise.
17870         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17871         * modules/unistdio/u8-vsprintf-tests: Likewise.
17872         * modules/unistdio/u16-asnprintf-tests: Likewise.
17873         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17874         * modules/unistdio/u16-vasprintf-tests: Likewise.
17875         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17876         * modules/unistdio/u16-vsprintf-tests: Likewise.
17877         * modules/unistdio/u32-asnprintf-tests: Likewise.
17878         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17879         * modules/unistdio/u32-vasprintf-tests: Likewise.
17880         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17881         * modules/unistdio/u32-vsprintf-tests: Likewise.
17882         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17883         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17884         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17885         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17886         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17887         * modules/unistr/u8-check-tests: Likewise.
17888         * modules/unistr/u8-chr-tests: Likewise.
17889         * modules/unistr/u8-cmp-tests: Likewise.
17890         * modules/unistr/u8-cmp2-tests: Likewise.
17891         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17892         * modules/unistr/u8-cpy-tests: Likewise.
17893         * modules/unistr/u8-mblen-tests: Likewise.
17894         * modules/unistr/u8-mbsnlen-tests: Likewise.
17895         * modules/unistr/u8-mbtouc-tests: Likewise.
17896         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17897         * modules/unistr/u8-mbtoucr-tests: Likewise.
17898         * modules/unistr/u8-move-tests: Likewise.
17899         * modules/unistr/u8-next-tests: Likewise.
17900         * modules/unistr/u8-prev-tests: Likewise.
17901         * modules/unistr/u8-set-tests: Likewise.
17902         * modules/unistr/u8-stpcpy-tests: Likewise.
17903         * modules/unistr/u8-stpncpy-tests: Likewise.
17904         * modules/unistr/u8-strcat-tests: Likewise.
17905         * modules/unistr/u8-strcmp-tests: Likewise.
17906         * modules/unistr/u8-strcoll-tests: Likewise.
17907         * modules/unistr/u8-strcpy-tests: Likewise.
17908         * modules/unistr/u8-strdup-tests: Likewise.
17909         * modules/unistr/u8-strlen-tests: Likewise.
17910         * modules/unistr/u8-strmblen-tests: Likewise.
17911         * modules/unistr/u8-strmbtouc-tests: Likewise.
17912         * modules/unistr/u8-strncat-tests: Likewise.
17913         * modules/unistr/u8-strncmp-tests: Likewise.
17914         * modules/unistr/u8-strncpy-tests: Likewise.
17915         * modules/unistr/u8-strnlen-tests: Likewise.
17916         * modules/unistr/u8-to-u16-tests: Likewise.
17917         * modules/unistr/u8-to-u32-tests: Likewise.
17918         * modules/unistr/u8-uctomb-tests: Likewise.
17919         * modules/unistr/u16-check-tests: Likewise.
17920         * modules/unistr/u16-chr-tests: Likewise.
17921         * modules/unistr/u16-cmp-tests: Likewise.
17922         * modules/unistr/u16-cmp2-tests: Likewise.
17923         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17924         * modules/unistr/u16-cpy-tests: Likewise.
17925         * modules/unistr/u16-mblen-tests: Likewise.
17926         * modules/unistr/u16-mbsnlen-tests: Likewise.
17927         * modules/unistr/u16-mbtouc-tests: Likewise.
17928         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17929         * modules/unistr/u16-mbtoucr-tests: Likewise.
17930         * modules/unistr/u16-move-tests: Likewise.
17931         * modules/unistr/u16-next-tests: Likewise.
17932         * modules/unistr/u16-prev-tests: Likewise.
17933         * modules/unistr/u16-set-tests: Likewise.
17934         * modules/unistr/u16-stpcpy-tests: Likewise.
17935         * modules/unistr/u16-stpncpy-tests: Likewise.
17936         * modules/unistr/u16-strcat-tests: Likewise.
17937         * modules/unistr/u16-strcmp-tests: Likewise.
17938         * modules/unistr/u16-strcoll-tests: Likewise.
17939         * modules/unistr/u16-strcpy-tests: Likewise.
17940         * modules/unistr/u16-strdup-tests: Likewise.
17941         * modules/unistr/u16-strlen-tests: Likewise.
17942         * modules/unistr/u16-strmblen-tests: Likewise.
17943         * modules/unistr/u16-strmbtouc-tests: Likewise.
17944         * modules/unistr/u16-strncat-tests: Likewise.
17945         * modules/unistr/u16-strncmp-tests: Likewise.
17946         * modules/unistr/u16-strncpy-tests: Likewise.
17947         * modules/unistr/u16-strnlen-tests: Likewise.
17948         * modules/unistr/u16-to-u32-tests: Likewise.
17949         * modules/unistr/u16-to-u8-tests: Likewise.
17950         * modules/unistr/u16-uctomb-tests: Likewise.
17951         * modules/unistr/u32-check-tests: Likewise.
17952         * modules/unistr/u32-chr-tests: Likewise.
17953         * modules/unistr/u32-cmp-tests: Likewise.
17954         * modules/unistr/u32-cmp2-tests: Likewise.
17955         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17956         * modules/unistr/u32-cpy-tests: Likewise.
17957         * modules/unistr/u32-mblen-tests: Likewise.
17958         * modules/unistr/u32-mbsnlen-tests: Likewise.
17959         * modules/unistr/u32-mbtouc-tests: Likewise.
17960         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17961         * modules/unistr/u32-mbtoucr-tests: Likewise.
17962         * modules/unistr/u32-move-tests: Likewise.
17963         * modules/unistr/u32-next-tests: Likewise.
17964         * modules/unistr/u32-prev-tests: Likewise.
17965         * modules/unistr/u32-set-tests: Likewise.
17966         * modules/unistr/u32-stpcpy-tests: Likewise.
17967         * modules/unistr/u32-stpncpy-tests: Likewise.
17968         * modules/unistr/u32-strcat-tests: Likewise.
17969         * modules/unistr/u32-strcmp-tests: Likewise.
17970         * modules/unistr/u32-strcoll-tests: Likewise.
17971         * modules/unistr/u32-strcpy-tests: Likewise.
17972         * modules/unistr/u32-strdup-tests: Likewise.
17973         * modules/unistr/u32-strlen-tests: Likewise.
17974         * modules/unistr/u32-strmblen-tests: Likewise.
17975         * modules/unistr/u32-strmbtouc-tests: Likewise.
17976         * modules/unistr/u32-strncat-tests: Likewise.
17977         * modules/unistr/u32-strncmp-tests: Likewise.
17978         * modules/unistr/u32-strncpy-tests: Likewise.
17979         * modules/unistr/u32-strnlen-tests: Likewise.
17980         * modules/unistr/u32-to-u16-tests: Likewise.
17981         * modules/unistr/u32-to-u8-tests: Likewise.
17982         * modules/unistr/u32-uctomb-tests: Likewise.
17983         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17984         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17985         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17986         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17987         * modules/uniwidth/u8-strwidth-tests: Likewise.
17988         * modules/uniwidth/u8-width-tests: Likewise.
17989         * modules/uniwidth/u16-strwidth-tests: Likewise.
17990         * modules/uniwidth/u16-width-tests: Likewise.
17991         * modules/uniwidth/u32-strwidth-tests: Likewise.
17992         * modules/uniwidth/u32-width-tests: Likewise.
17993         * modules/uniwidth/width-tests: Likewise.
17994
17995 2010-05-18  Richard Jones  <rjones@redhat.com>
17996
17997         doc: users.txt: list hivex
17998         * users.txt: Add hivex.
17999
18000 2010-05-18  Richard Jones  <rjones@redhat.com>
18001
18002         doc: users.txt: list febootstrap
18003         * users.txt: Add febootstrap.
18004
18005 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18006
18007         bootstrap: fix an error when gnulib is not used as a git submodule
18008         * build-aux/bootstrap (gnulib_path): If its length is zero then
18009         assign "gnulib" to it.
18010         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18011
18012 2010-05-16  Bruno Haible  <bruno@clisp.org>
18013
18014         Avoid autoconf warnings about AM_ICONV.
18015         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18016         2.64.
18017
18018 2010-05-16  Bruno Haible  <bruno@clisp.org>
18019
18020         absolute-header: Make the macro usable in more situations.
18021         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18022         from gl_ABSOLUTE_HEADER.
18023         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18024
18025 2010-05-16  James Youngman  <jay@gnu.org>
18026
18027         doc: update users.txt
18028         * users.txt: Add CSSC.
18029
18030 2010-05-16  Jim Meyering  <meyering@redhat.com>
18031
18032         init.sh: fix an error in the previous change; add more comments
18033         * tests/init.sh: Compare exit code in loop against 9, not 2.
18034         Patch by Bruno Haible.
18035         Make the two tests more similar by adding an empty "then" clause.
18036         Add comments.
18037
18038         init.sh: avoid unnecessary shell re-exec
18039         * tests/init.sh: Improve the re-exec-required check to first test the
18040         current shell.  If it passes the test, do not search for a shell that
18041         does pass, and do not re-exec.  This test is particularly contorted to
18042         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18043         of $(...) evokes a syntax error and causes immediate shell exit with
18044         status 2.  Bruno Haible reported that the re-exec made it impossible
18045         to single-step through any init.sh-using script.
18046
18047 2010-05-16  Bruno Haible  <bruno@clisp.org>
18048
18049         Fix collision between gnulib's and libintl's printf replacements.
18050         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18051         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18052         (printf): When using GNU C, map the __printf__ function to rpl_printf
18053         via __asm__. When not using GNU C, define rpl_printf instead of
18054         __printf__.
18055         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18056         commit.
18057         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18058         commit.
18059         * m4/asm-underscore.m4: New file.
18060         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18061         * modules/stdio (Files): Add m4/asm-underscore.m4.
18062         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18063         Reported by Ben Pfaff.
18064
18065 2010-05-16  Bruno Haible  <bruno@clisp.org>
18066
18067         verify: Avoid skipping the test on openSUSE 11.0.
18068         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18069
18070 2010-05-13  Bruno Haible  <bruno@clisp.org>
18071
18072         Avoid useless warnings from G++.
18073         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18074         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18075         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18076
18077 2010-05-11  Jim Meyering  <meyering@redhat.com>
18078
18079         maint.mk: tweak preceding change
18080         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18081         regexps tighter by anchoring at EOL, and make the new group "shy"
18082         for slightly decreased overhead.
18083
18084 2010-05-11  Eric Blake  <eblake@redhat.com>
18085
18086         maint.mk: gnulib doesn't guarantee NSIG
18087         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18088
18089 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18090
18091         test-pwrite.c: Remove unused variable declaration.
18092         * tests/test-pwrite.c (main): Remove read_buf declaration.
18093
18094         Remove useless test-pwrite.sh file.
18095         * tests/test-pwrite.sh: Delete file.
18096         * modules/pwrite-tests: Remove references.
18097         Reported by Bruno Haible.
18098
18099 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18100
18101         init.sh: fix a typo
18102         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18103
18104 2010-05-10  Jim Meyering  <meyering@redhat.com>
18105
18106         maint.mk: avoid using a temporary file in the always-defined-macros check
18107         * top/maint.mk (.re-defmac): Remove rule.
18108         (gl_trap_): Remove definition.
18109         (sc_prohibit_always-defined_macros): Rewrite not to create and
18110         depend on a temporary file.  Instead, depend on GNU grep's ability
18111         to read a list of regular expressions from stdin when given "-f -".
18112
18113 2010-05-09  Bruno Haible  <bruno@clisp.org>
18114
18115         Update to GNU gettext 0.18, part 1.
18116         * m4/gettext.m4: Update to GNU gettext 0.18.
18117         * m4/intl.m4: Likewise.
18118         * m4/po.m4: Likewise.
18119         * modules/gettext (Files): Add m4/fcntl-o.m4.
18120         (configure.ac): Require gettext infrastructure from version 0.18.
18121
18122 2010-05-09  Jim Meyering  <meyering@redhat.com>
18123
18124         init.sh: enable MALLOC_PERTURB_
18125         * tests/init.sh: Enable glibc's malloc-perturbing option.
18126
18127         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18128         With my recent change in init.sh from the two-line form:
18129             -#   : ${srcdir=.}
18130             -#   . "$srcdir/init.sh"; path_prepend_ .
18131             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18132         I noticed that using the one-line form would cause this test
18133         to fail with a false-positive, or to stop working altogether,
18134         depending on whether help-version changed or all the tests did.
18135         * top/maint.mk (_hv_regex): Remove this definition.
18136         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18137         (_hv_regex_strong): Use a stronger regex to check for conformance.
18138         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18139         Give a separate diagnostic for lack of conforming use.
18140
18141         maint.mk: prohibit definition of symbols defined by gnulib
18142         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18143         definition of symbols defined by gnulib.
18144
18145 2010-05-09  Bruno Haible  <bruno@clisp.org>
18146
18147         acl: Avoid test failure on Cygwin-hosted mingw.
18148         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18149
18150 2010-05-09  Bruno Haible  <bruno@clisp.org>
18151
18152         error: Use system's fcntl function.
18153         * lib/error.c (fcntl): Undefine.
18154
18155 2010-05-09  Jim Meyering  <meyering@redhat.com>
18156
18157         verify: adjust formatting to be more consistent
18158         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18159         argument-list '('s, and after one comma.
18160
18161 2010-05-09  Bruno Haible  <bruno@clisp.org>
18162
18163         error: More reliable output on mingw.
18164         * lib/error.c: Include <windows.h>.
18165         (is_open): New function.
18166         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18167         defined.
18168
18169 2010-05-09  Bruno Haible  <bruno@clisp.org>
18170
18171         vasnprintf: Fix syntax errors in libintl build on mingw.
18172         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18173         pad_ourselves and prec_ourselves after use.
18174
18175 2010-05-08  Bruno Haible  <bruno@clisp.org>
18176
18177         * lib/config.charset: Update comments for Cygwin 1.7.
18178         * lib/localcharset.c: Likewise.
18179
18180 2010-05-07  Jim Meyering  <meyering@redhat.com>
18181
18182         init.sh: improve comments
18183         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18184         . "${srcdir=.}/init.sh"; path_prepend_ .
18185         Add a note about path_prepend_ and the alternative of using
18186         TESTS_ENVIRONMENT.
18187
18188 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18189
18190         exclude: Unescape hashed patterns in wildcard mode.
18191         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18192         to the hash list.
18193         * tests/test-exclude8.sh: New test case.
18194         * modules/exclude-tests: Add new test.
18195
18196 2010-05-05  Eric Blake  <eblake@redhat.com>
18197
18198         verify: automate tests
18199         * modules/verify-tests: New module.
18200         * tests/test-verify.sh: New file.
18201         * tests/test-verify.c: Guard each negative test with a unique id.
18202         Also avoid warning about unused left hand of comma expressions.
18203
18204 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18205
18206         Further improvements to verify.h, suggested by Eric Blake.
18207         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18208         the GL_* versions, to avoid collision with OpenGL.
18209         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18210         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18211         than testing merely whether it's defined.
18212
18213         Modify verify.h to pacify gcc -Wredundant_decls.
18214         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18215         These use the prefix "GL_" since they're likely to be useful elsewhere.
18216         We may need to break them out into a different .h file.
18217         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18218         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18219         of verify_function__.
18220
18221 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18222
18223         Tests for module pwrite.
18224         * modules/pwrite-tests: New file.
18225         * tests/test-pwrite.sh: New file.
18226         * tests/test-pwrite.c: New file.
18227
18228         New module pwrite.
18229         * lib/unistd.in.h (pwrite): New declaration.
18230         * lib/pwrite.c: New file, from glibc with modifications.
18231         * m4/pwrite.m4: New file.
18232         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18233         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18234         REPLACE_PWRITE.
18235         * modules/pwrite: New file.
18236         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18237         REPLACE_PWRITE.
18238         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18239         * doc/posix-functions/pwrite.texi: Mention the new module.
18240
18241 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18242
18243         pread: Update documentation.
18244         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18245
18246 2010-05-04  Eric Blake  <eblake@redhat.com>
18247
18248         docs: update cygwin progress
18249         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18250         this bug.
18251         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18252         Added in cygwin 1.7.2.
18253         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18254         Likewise.
18255         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18256         Likewise.
18257         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18258         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18259         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18260         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18261         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18262         Mention nproc module.
18263         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18264         bug in cygwin 1.7.5 addition.
18265         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18266         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18267         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18268         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18269         1.7.5.
18270         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18271         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18272         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18273         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18274         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18275         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18276         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18277         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18278         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18279         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18280         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18281         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18282         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18283         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18284         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18285         Likewise.
18286         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18287         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18288         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18289         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18290         Likewise.
18291         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18292         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18293         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18294         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18295         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18296         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18297         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18298         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18299         Likewise.
18300         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18301         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18302         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18303         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18304         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18305         Likewise.
18306         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18307         Likewise.
18308         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18309         Likewise.
18310         * doc/glibc-functions/xdrrec_endofrecord.texi
18311         (xdrrec_endofrecord): Likewise.
18312         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18313         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18314         Likewise.
18315         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18316         Likewise.
18317
18318 2010-05-04  Jim Meyering  <meyering@redhat.com>
18319
18320         gendocs.sh: make its "-s FILE" option more useful
18321         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18322         $PACKAGE to reflect the probably-different basename of "FILE".
18323
18324 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18325
18326         bootstrap: don't ignore download_po_files failure
18327         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18328         failure.
18329
18330 2010-05-03  Jim Meyering  <meyering@redhat.com>
18331
18332         maint.mk: allow to pass options to gendocs.sh
18333         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18334         (gendocs_options_): New overridable variable.
18335
18336         gnu-web-doc-update: don't ignore configure or build failure
18337         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18338
18339         announce-gen: backslash-escape '@'s in --help output
18340         * build-aux/announce-gen: Fix syntax errors.
18341
18342         maint.mk, announce-gen: allow project-specific announcement mail headers
18343         * top/maint.mk (translation_project_): Define default.
18344         (announcement_Cc_, announcement_mail_headers_): Likewise.
18345         (announcement): Invoke announce-gen with new --mail-headers option.
18346         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18347
18348         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18349         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18350         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18351         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18352         line in the "err2" output file when running "make check" in verbose
18353         mode (i.e., with set -x enabled).
18354
18355 2010-05-03  Bruno Haible  <bruno@clisp.org>
18356
18357         wctob: Fix for weird platforms.
18358         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18359         argument value.
18360
18361 2010-05-03  Jim Meyering  <meyering@redhat.com>
18362
18363         maint.mk: prohibit unwarranted use of <strings.h>
18364         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18365         strings.h in a file that does not also use strcasecmp, strncasecmp,
18366         ffs or ffsll.
18367
18368         maint.mk: remove obsolete comments
18369         * top/maint.mk: Remove stale, commented-out rules.
18370
18371 2010-05-02  Bruno Haible  <bruno@clisp.org>
18372
18373         wcwidth: Declare also when it's aliased.
18374         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18375         macro.
18376
18377 2010-05-02  Bruno Haible  <bruno@clisp.org>
18378
18379         Fix regression from 2010-04-25.
18380         * gnulib-tool (func_modules_transitive_closure): Check the status of
18381         all modules, not only of the tests that are of the form foo-tests where
18382         foo is a module.
18383
18384 2010-05-02  Bruno Haible  <bruno@clisp.org>
18385
18386         wctob: Work around nasty Cygwin 1.7.2 bug.
18387         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18388         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18389
18390 2010-05-01  Bruno Haible  <bruno@clisp.org>
18391
18392         fpurge: Sharper test.
18393         * tests/test-fpurge.c (main): Add one more ftell check.
18394         * modules/fpurge-tests (Depends-on): Add ftell.
18395         Suggested by Eric Blake.
18396
18397 2010-05-01  Bruno Haible  <bruno@clisp.org>
18398
18399         ftello: Another test.
18400         * tests/test-ftello3.c: New file.
18401         * modules/ftello-tests (Files): Add it.
18402         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18403         MOSTLYCLEANFILES.
18404
18405         ftell: Another test.
18406         * tests/test-ftell3.c: New file.
18407         * modules/ftell-tests (Files): Add it.
18408         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18409         MOSTLYCLEANFILES.
18410
18411 2010-05-01  Bruno Haible  <bruno@clisp.org>
18412
18413         ftell, ftello: Work around Solaris bug.
18414         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18415         * lib/ftello.c: Include stdio-impl.h.
18416         (ftello): On Solaris, when _IOWRT is set, compute the result without
18417         looking at _IOREAD.
18418         * modules/ftello (Files): Add lib/stdio-impl.h.
18419         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18420         * doc/posix-functions/ftello.texi: Likewise.
18421         Reported by Eric Blake.
18422
18423 2010-05-01  Bruno Haible  <bruno@clisp.org>
18424
18425         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18426         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18427         the _IOWRT flag is also set.
18428
18429 2010-05-01  Bruno Haible  <bruno@clisp.org>
18430
18431         Fix doc about a HP-UX stdio bug.
18432         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18433         * doc/posix-functions/ftello.texi: Likewise.
18434
18435 2010-05-01  Bruno Haible  <bruno@clisp.org>
18436
18437         lseek test: Fix failure on Solaris.
18438         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18439         output.
18440
18441 2010-04-30  Jim Meyering  <meyering@redhat.com>
18442
18443         bootstrap: don't ignore failure to generate po*/Makevars
18444         * build-aux/bootstrap (with_gettext): Don't ignore failure
18445         to create po/Makevars or runtime-po/Makevars.
18446
18447 2010-04-29  Eric Blake  <eblake@redhat.com>
18448
18449         headers: relax license to LGPLv2+
18450         * modules/fcntl-h (License): Relax license.
18451         * modules/getopt-posix (License): Likewise.
18452         * modules/locale (License): Likewise.
18453         * modules/math (License): Likewise.
18454         * modules/pty (License): Likewise.
18455         * modules/sched (License): Likewise.
18456         * modules/search (License): Likewise.
18457         * modules/spawn (License): Likewise.
18458         * modules/stdarg (License): Likewise.
18459         * modules/sysexits (License): Likewise.
18460
18461 2010-04-29  Jim Meyering  <meyering@redhat.com>
18462
18463         inttypes: relax license to LGPLv2+
18464         * modules/inttypes (License): Relax license.
18465
18466 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18467
18468         * top/maint.mk (indent): Run twice to produce idempotent results.
18469
18470 2010-04-28  Bruno Haible  <bruno@clisp.org>
18471
18472         getdate: Generate getdate.c in the source directory.
18473         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18474         MOSTLYCLEANFILES.
18475         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18476
18477 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18478
18479         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18480         is not declared as a const *; avoid warnings in that case.
18481
18482 2010-04-28  Eric Blake  <eblake@redhat.com>
18483
18484         canonicalize-lgpl: avoid compiler warning
18485         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18486         declaration' / 'extraneous semicolon' warning with some compilers.
18487         Reported by Andreas Gruenbacher.
18488
18489 2010-04-28  Jim Meyering  <meyering@redhat.com>
18490
18491         init.sh: ensure a more reliable exit status when exiting via trap
18492         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18493         Inspired by patches from Dmitry V. Levin.
18494         Also trap on signal 3 (SIGQUIT).
18495
18496 2010-04-27  Bruno Haible  <bruno@clisp.org>
18497
18498         Update doc about utimes().
18499         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18500         'utimens' module.
18501         Reported by Andreas Gruenbacher <agruen@suse.de>.
18502
18503 2010-04-27  Eric Blake  <eblake@redhat.com>
18504
18505         full-read, full-write: relax license
18506         * modules/full-read (License): Drop to LGPLv2+.
18507         * modules/full-write (License): Likewise.
18508         * modules/safe-read (License): Likewise.
18509         * modules/safe-write (License): Likewise.
18510
18511         pthread: mention library for linking
18512         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18513
18514 2010-04-27  Jim Meyering  <meyering@redhat.com>
18515
18516         maint.mk: fix a bug introduced in last change
18517         * top/maint.mk (gl_assured_headers_): Now that all names are on
18518         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18519         is not anchored to end of word, it should be adequate.
18520
18521         maint.mk: avoid side-effect in latest syntax-check
18522         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18523         to run commands via $(shell...), and hence to incur cost only when
18524         the new rule is actually run.
18525
18526         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18527         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18528         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18529         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18530         (gl_assured_headers_, az_, AZ_): Define.
18531         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18532
18533 2010-04-26  Jim Meyering  <jim@meyering.net>
18534             Bruno Haible  <bruno@clisp.org>
18535
18536         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18537         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18538         Prompted by an exchange with Gilles Espinasse.
18539
18540 2010-04-26  Jim Meyering  <meyering@redhat.com>
18541
18542         git-version-gen: aesthetic tweak
18543         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18544         so that the command remains on a single line.
18545
18546 2010-04-26  Eric Blake  <eblake@redhat.com>
18547
18548         git-version-gen: allow use on EBCDIC hosts
18549         * build-aux/git-version-gen (dirty): Use literal rather than tying
18550         ourselves to ascii.
18551         Reported by Steve Goetze.
18552
18553 2010-04-25  Bruno Haible  <bruno@clisp.org>
18554
18555         netdb: Add support for GNULIB_POSIXCHECK.
18556         * lib/netdb.in.h: Include warn-on-use.h.
18557         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18558         functions are used when GNULIB_POSIXCHECK is defined and the
18559         getaddrinfo module is not in use.
18560         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18561         freeaddrinfo, gai_strerror, getnameinfo are declared.
18562         * modules/netdb (Depends-on): Add warn-on-use.
18563         (Makefile.am): Include warn-on-use.h in netdb.h.
18564
18565 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18566
18567         build: avoid "make check" failure without .git/ directory
18568         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18569         there is no .git/ directory.
18570
18571 2010-04-25  Bruno Haible  <bruno@clisp.org>
18572
18573         ptsname: Fix misuse of ttyname_r.
18574         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18575         of errno.
18576
18577 2010-04-25  Bruno Haible  <bruno@clisp.org>
18578
18579         ttyname_r: Make it work on Solaris 10.
18580         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18581         if the system function has the POSIX declaration. Test whether the
18582         function fails if the buffer is less than 128 bytes large.
18583         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18584         system's ttyname_r function. Provide a reasonably large buffer.
18585         * modules/ttyname_r (Depends-on): Add extensions.
18586         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18587
18588 2010-04-25  Bruno Haible  <bruno@clisp.org>
18589
18590         Use the 'extensions' module for some more functions on Solaris.
18591         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18592         module.
18593         * doc/posix-functions/ctime_r.texi: Likewise.
18594         * doc/posix-functions/getgrgid_r.texi: Likewise.
18595         * doc/posix-functions/getgrnam_r.texi: Likewise.
18596         * doc/posix-functions/getpwnam_r.texi: Likewise.
18597         * doc/posix-functions/getpwuid_r.texi: Likewise.
18598         * doc/posix-functions/readdir_r.texi: Likewise.
18599         * doc/posix-functions/sigwait.texi: Likewise.
18600         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18601         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18602
18603 2010-04-25  Bruno Haible  <bruno@clisp.org>
18604
18605         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18606         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18607         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18608         * lib/ttyname_r.c: Include <limits.h>.
18609         (ttyname_r): Define using the system's ttyname_r function, if it exists
18610         and not on Solaris.
18611         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18612         set.
18613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18614         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18615         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18616         Reported by Simon Josefsson.
18617
18618 2010-04-25  Bruno Haible  <bruno@clisp.org>
18619
18620         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18621         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18622         * doc/posix-functions/ctime_r.texi: Likewise.
18623         * doc/posix-functions/getgrgid_r.texi: Likewise.
18624         * doc/posix-functions/getgrnam_r.texi: Likewise.
18625         * doc/posix-functions/getlogin_r.texi: Likewise.
18626         * doc/posix-functions/getpwnam_r.texi: Likewise.
18627         * doc/posix-functions/getpwuid_r.texi: Likewise.
18628         * doc/posix-functions/readdir_r.texi: Likewise.
18629         * doc/posix-functions/sigwait.texi: Likewise.
18630         * doc/posix-functions/ttyname_r.texi: Likewise.
18631         Reported by Simon Josefsson.
18632
18633 2010-04-25  Bruno Haible  <bruno@clisp.org>
18634
18635         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18636         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18637         also to --create-testdir.
18638         (func_acceptable): Don't consider the status of *-tests modules here.
18639         (func_modules_transitive_closure): Consider it here, before including a
18640         test module.
18641         (func_import, func_create_testdir): Set inc_all_direct_tests,
18642         inc_all_indirect_tests.
18643         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18644         --create-testdir and --create-megatestdir.
18645
18646 2010-04-25  Bruno Haible  <bruno@clisp.org>
18647
18648         gnulib-tool: Add --without-*-tests options.
18649         * gnulib-tool (func_usage): Document the --without-*-tests options.
18650         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18651         excl_unportable_tests): New variables.
18652         Fail if they are specified with --import or --update.
18653         (func_acceptable): Respect the excl_*_tests variables.
18654         (func_import): Set the excl_*_tests variables to empty.
18655
18656 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18657             Bruno Haible  <bruno@clisp.org>
18658
18659         Work around a MacOS X 10.4 bug with openpty.
18660         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18661         * tests/test-openpty.c (main): Close the master side explicitly.
18662
18663 2010-04-25  Bruno Haible  <bruno@clisp.org>
18664
18665         strnlen: Fix a C++ test error on MacOS X and Solaris.
18666         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18667         the function is not declared.
18668         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18669         Simon Josefsson.
18670
18671 2010-04-24  Bruno Haible  <bruno@clisp.org>
18672
18673         Avoid a gcc warning.
18674         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18675         of correct type for %08lx directive.
18676         Reported by Eric Blake.
18677
18678 2010-04-24  Bruno Haible  <bruno@clisp.org>
18679
18680         vasnprintf: Correct errno value in case of out-of-memory.
18681         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18682         or sprintf. Use the errno value from SNPRINTF or sprintf.
18683         Reported by Ian Beckwith <ianb@erislabs.net>.
18684
18685 2010-04-24  Bruno Haible  <bruno@clisp.org>
18686
18687         ansi-c++-opt: Find correct compiler when cross-compiling.
18688         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18689         AC_CHECK_PROGS.
18690         Reported by Simon Josefsson.
18691
18692 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18693
18694         vc-list-files: Add support for subversion
18695         * build-aux/vc-list-files: Use "svn list" to generate the list of
18696         files controlled by subversion.
18697
18698 2010-04-23  Jim Meyering  <meyering@redhat.com>
18699
18700         vc-list-files tests: convert to use init.sh
18701         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18702         path_prepend_.
18703         Use Exit, not exit.
18704         Use skip_ rather than open coding it.
18705         Remove trap set-up and compare definitions.
18706         * tests/test-vc-list-files-git.sh: Likewise.
18707         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18708
18709 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18710
18711         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18712         backup files.
18713
18714 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18715
18716         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18717
18718 2010-04-20  Eric Blake  <eblake@redhat.com>
18719
18720         tests: be robust to ignored SIGPIPE
18721         * tests/test-select-in.sh: Consume all output.
18722         * tests/test-lseek.sh: Check correct exit status, while avoiding
18723         EPIPE.
18724
18725 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18726             Bruno Haible  <bruno@clisp.org>
18727
18728         visibility: Don't use -fvisibility if it leads to a warning.
18729         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18730         yes, don't pretend that visibility works if it leads to a warning.
18731         Reported by Mike Gran <spk121@yahoo.com>.
18732
18733 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18734
18735         * build-aux/bootstrap: Use "git -h" for testing for supported options
18736         instead of "git --help".  The short-form option only shows a summary,
18737         and doesn't layout the full man page.  Grep for the full option name
18738         in the summary, too.
18739
18740 2010-04-19  Bruno Haible  <bruno@clisp.org>
18741
18742         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18744         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18745         mention of RELOCATABLE_STRIP.
18746         Reported by Sylvain Beucler <beuc@beuc.net>.
18747
18748 2010-04-19  Bruno Haible  <bruno@clisp.org>
18749
18750         * lib/diffseq.h: Fix typo in comment.
18751         Reported by Eric Blake.
18752
18753 2010-04-19  Bruno Haible  <bruno@clisp.org>
18754
18755         ioctl: Move autoconf macro to a .m4 file.
18756         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18757         * modules/ioctl (Files): Add it.
18758         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18759         Reported by Ian Beckwith <ianb@erislabs.net>.
18760
18761 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18762             Bruno Haible  <bruno@clisp.org>
18763
18764         diffseq: Accommodate use-case with abstract arrays.
18765         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18766         is not defined.
18767         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18768         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18769
18770 2010-04-18  Bruno Haible  <bruno@clisp.org>
18771
18772         * doc/posix-headers/stdbool.texi: More precise wording.
18773
18774 2010-04-17  Jim Meyering  <meyering@redhat.com>
18775
18776         maint.mk: use gnu-style indentation in an embedded perl script
18777         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18778         Rename variable: s/two/last_two_bytes/
18779
18780 2010-04-16  Eric Blake  <eblake@redhat.com>
18781
18782         test-stdbool: skip test that fails with Solaris CC
18783         * tests/test-stdbool.c (f): Skip test that causes compilation
18784         error under buggy C++ compiler.
18785         * lib/stdbool.in.h: Document the limitation.
18786         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18787
18788         setenv: allow compilation with C++
18789         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18790         register keyword.
18791
18792         stdint: allow test to pass with C++
18793         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18794
18795         getopt: allow compilation with C++
18796         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18797         struct.
18798         * lib/getopt.c (_getopt_internal_r): Use correct type.
18799         Reported by Dagobert Michelson, via Joel E. Denny.
18800
18801 2010-04-16  Bruno Haible  <bruno@clisp.org>
18802
18803         Override netdb.h always.
18804         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18805         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18806         Reported by Ludovic Courtès <ludo@gnu.org>.
18807
18808 2010-04-15  Bruno Haible  <bruno@clisp.org>
18809
18810         openpty: Fix mistake from 2010-03-21.
18811         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18812         Reported by Simon Josefsson.
18813
18814 2010-04-15  Eric Blake  <eblake@redhat.com>
18815
18816         test-forkpty: fix expected signature
18817         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18818         Reported by Simon Josefsson.
18819
18820 2010-04-15  Jim Meyering  <meyering@redhat.com>
18821
18822         maint.mk: texinfo_suffix_re_: correct the default regexp
18823         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18824
18825         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18826         make it configurable via texinfo_suffix_re_.
18827
18828 2010-04-14  Eric Blake  <eblake@redhat.com>
18829
18830         strtok_r: relax license to LGPLv2+
18831         * modules/strtok_r (License): Relax license.
18832         Reported by Matthias Bolte.
18833
18834 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18835
18836         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18837         version 1.4.4 by default instead of requiring the libgcrypt
18838         version used during build.  This makes it possible to use the
18839         application with older but still binary compatible libgcrypt
18840         versions.
18841
18842 2010-04-13  Eric Blake  <eblake@redhat.com>
18843
18844         getopt-gnu: match recent glibc fixes and posix ruling
18845         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18846         '+' handling, when requesting extensions.
18847         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18848         'W;' handling.
18849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18850         * doc/posix-functions/getopt.texi (getopt): Document this.
18851         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18852         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18853         Likewise.
18854
18855         getopt: merge bug fixes from glibc
18856         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18857         diagnostics.  Honor '+:' correctly.  Reject ';'.
18858
18859         getopt-posix: detect MacOS bug
18860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18861         optind when missing a required argument.
18862         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18863         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18864         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18865         Likewise.
18866
18867         getopt-posix: avoid spurious failure on Solaris
18868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18869         an indicator that setting optind=1 is sufficient for reset.
18870
18871         getopt-posix: avoid spurious failure on FreeBSD
18872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18873         in POSIX mode, since the m4 test uses it.
18874
18875         gnulib-tool: silence warning on BSD sh
18876         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18877
18878 2010-04-13  Jim Meyering  <meyering@redhat.com>
18879
18880         doc: users.txt: GNU patch now uses gnulib
18881         * users.txt: Add patch.
18882
18883 2010-04-12  Jim Meyering  <meyering@redhat.com>
18884
18885         maint.mk: generate more concise timing data for syntax-check rules
18886         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18887         " done" from each line that reports a syntax-check test duration.
18888
18889 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18890
18891         git-version-gen: use "git update-index..." rather than "git status"
18892         * build-aux/git-version-gen: Use git update-index --refresh, not
18893         "git status".  With some versions of git, "git status" would fail
18894         to update the index and result in an unwarranted "-dirty" suffix.
18895
18896 2010-04-11  Jim Meyering  <meyering@redhat.com>
18897
18898         openat: correct formatting (no semantic change)
18899         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18900         Suggested by Bruno Haible.
18901
18902 2010-04-11  Bruno Haible  <bruno@clisp.org>
18903
18904         Stricter declaration checking in testdirs.
18905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18906         If for_tests is true, augment AM_CPPFLAGS to define
18907         GNULIB_STRICT_CHECKING.
18908         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18909         GNULIB_STRICT_CHECKING is defined, verify that the function is
18910         declared.
18911
18912 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18913             Bruno Haible  <bruno@clisp.org>
18914
18915         libunistring: Improve configure output.
18916         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18917         Don't say "consider installing GNU libunistring" when checking again
18918         with libiconv.
18919
18920 2010-04-11  Bruno Haible  <bruno@clisp.org>
18921
18922         libunistring: Correct value of $LTLIBUNISTRING.
18923         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18924         correct the value of $LTLIBUNISTRING.
18925
18926 2010-04-11  Bruno Haible  <bruno@clisp.org>
18927
18928         havelib: Add static libraries to LIBS in the right order.
18929         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18930         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18931
18932 2010-04-11  Bruno Haible  <bruno@clisp.org>
18933
18934         libunistring: Detect libunistring also when it depends on libiconv.
18935         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18936         the second AC_LIB_HAVE_LINKFLAGS invocation.
18937
18938 2010-04-11  James Youngman  <jay@gnu.org>
18939
18940         close-stream: declare local scalars to be "const"
18941         * lib/close-stream.c (close_stream): Make boolean variables const
18942         to document the fact that we set but do not change them.
18943
18944 2010-04-11  Bruno Haible  <bruno@clisp.org>
18945
18946         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18947
18948 2010-04-11  Jim Meyering  <meyering@redhat.com>
18949
18950         maint.mk: don't include dist-check.mk
18951         * top/maint.mk: Remove bogus include directive.
18952
18953         maint.mk: improve empty-line-at-EOF check
18954         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18955         solution, rather than tail+Perl-based one.  The latter would read
18956         a few kilobytes from the end of each file, and did not handle empty
18957         files properly.
18958
18959         maint.mk: print the elapsed time for each syntax-check rule
18960         * top/maint.mk (sc_m_rules_): Save start time in a file.
18961         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18962         (local-check): Interpose the .z rules
18963
18964 2010-04-11  Jim Meyering  <meyering@redhat.com>
18965
18966         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18967         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18968         empty file with one that ends in an empty line.
18969
18970 2010-04-10  Bruno Haible  <bruno@clisp.org>
18971
18972         mkdir: Make it work on mingw64.
18973         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18974         * lib/mkdir.c: Update comment.
18975         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
18976
18977 2010-04-10  Bruno Haible  <bruno@clisp.org>
18978
18979         Don't override improved macro from newer autoconf.
18980         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18981         autoconf >= 2.62.
18982         Reported by Joel E. Denny <jdenny@clemson.edu>.
18983
18984 2010-04-10  Jim Meyering  <meyering@redhat.com>
18985
18986         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18987         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18988
18989         maint.mk: correct a diagnostic
18990         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18991         in diagnostic; now use $prohibit.
18992
18993 2010-04-10  Bruno Haible  <address@hidden>
18994
18995         fchownat: Fix a C++ test error on Solaris 8.
18996         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18997         the function does not exist.
18998
18999 2010-04-10  Bruno Haible  <bruno@clisp.org>
19000
19001         vasnprintf: Add more tests.
19002         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19003         (test_function): Test converting an invalid wide string.
19004
19005         vasnprintf: Correct handling of unconvertible wide string arguments.
19006         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19007         VASNPRINTF.
19008         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19009         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19010         smaller than the expected maximum need for the directive. Set errno to
19011         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19012         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19014         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19015         * modules/vasnprintf (Files): Add m4/printf.m4.
19016         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19017
19018 2010-04-10  Bruno Haible  <bruno@clisp.org>
19019
19020         vasnprintf: Fix crash in %ls directive.
19021         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19022         string is passed as argument to %ls, with no precision and no width.
19023         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19024
19025 2010-04-10  Bruno Haible  <bruno@clisp.org>
19026
19027         vasnprintf: Fix multiple test failures on mingw.
19028         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19029         _snprintf, or snwprintf, not _snwprintf.
19030
19031 2010-04-10  Bruno Haible  <bruno@clisp.org>
19032
19033         write: Fix a C++ test error on mingw.
19034         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19035
19036 2010-04-10  Bruno Haible  <bruno@clisp.org>
19037
19038         vasnprintf test: Reduce code duplication.
19039         * tests/test-vasnprintf.c (test_function): New function, extracted from
19040         test_vasnprintf.
19041         (test_vasnprintf, test_asnprintf): Invoke it.
19042
19043 2010-04-10  Bruno Haible  <bruno@clisp.org>
19044
19045         strnlen: Fix warning in C++ mode on MacOS X.
19046         * lib/string.in.h (strnlen): Use the modern idiom.
19047         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19048         defining strnlen as a macro already in <config.h>.
19049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19050         REPLACE_STRNLEN.
19051         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19052         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19053
19054 2010-04-08  James Youngman  <jay@gnu.org>
19055
19056         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19057         the example.
19058
19059 2010-04-09  Jim Meyering  <meyering@redhat.com>
19060
19061         maint.mk: print better diagnostic when there is no $(_hv_file)
19062         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19063         announce that when $(_hv_file) (aka help-version) does not exist.
19064
19065         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19066         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19067         not try to interpret its random input bytes.  Jarno Rajahalme reported
19068         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19069         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19070         (mktempd_): Likewise, just in case.
19071
19072         ftruncate: add two years to projected module removal date: 2012
19073         * m4/ftruncate.m4: Adjust comments.
19074
19075         ftruncate: mark module as obsolete; even MinGW provides it, now
19076         * modules/ftruncate (Status): Obsolete.
19077         (Notice): Say that.
19078         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19079         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19080
19081 2010-04-08  Bruno Haible  <bruno@clisp.org>
19082
19083         Fix side effects from tests-related modules.
19084         * modules/dprintf-posix (Comment): New section.
19085         * modules/fprintf-posix (Comment): Likewise.
19086         * modules/obstack-printf-posix (Comment): Likewise.
19087         * modules/printf-posix (Comment): Likewise.
19088         * modules/snprintf-posix (Comment): Likewise.
19089         * modules/sprintf-posix (Comment): Likewise.
19090         * modules/vasnprintf-posix (Comment): Likewise.
19091         * modules/vasprintf-posix (Comment): Likewise.
19092         * modules/vdprintf-posix (Comment): Likewise.
19093         * modules/vfprintf-posix (Comment): Likewise.
19094         * modules/vprintf-posix (Comment): Likewise.
19095         * modules/vsnprintf-posix (Comment): Likewise.
19096         * modules/vsprintf-posix (Comment): Likewise.
19097         * modules/xprintf-posix (Comment): Likewise.
19098         * modules/xvasprintf-posix (Comment): Likewise.
19099         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19100         * modules/floorf-tests (Depends-on): Likewise.
19101         * modules/round-tests (Depends-on): Likewise.
19102         * modules/roundf-tests (Depends-on): Likewise.
19103         * modules/trunc-tests (Depends-on): Likewise.
19104         * modules/truncf-tests (Depends-on): Likewise.
19105         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19106         'fprintf-posix' module is not present.
19107         * tests/test-floorf2.c (check): Likewise.
19108         * tests/test-trunc2.c (check): Likewise.
19109         * tests/test-truncf2.c (check): Likewise.
19110         * tests/test-round2.c (equal): Likewise.
19111         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19112
19113 2010-04-07  Karl Berry  <karl@gnu.org>
19114
19115         * config/srclist.txt,
19116         * config/srclistvars.sh,
19117         * config/srclist-update: doc fixes.
19118
19119 2010-04-07  Jim Meyering  <meyering@redhat.com>
19120
19121         maint.mk: add a PATH crosschecking syntax-check rule
19122         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19123         Useful if you use a test like the one in help-version (coreutils,
19124         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19125         printed by prog --version.
19126
19127 2010-04-06  Bruno Haible  <bruno@clisp.org>
19128
19129         Fix link error on mingw.
19130         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19131         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19132
19133 2010-04-06  Bruno Haible  <bruno@clisp.org>
19134
19135         Assume rmdir exists.
19136         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19137
19138 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19139
19140         doc: update users.txt
19141         * users.txt: Add gcal.
19142
19143 2010-04-06  Jim Meyering  <meyering@redhat.com>
19144
19145         init.sh: simply unset TMPDIR rather than risking env -i
19146         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19147         although it probably works fine on all Unix-based systems, some
19148         systems (Cygwin?) cannot tolerate a totally cleared environment.
19149         Suggestion from Eric Blake.
19150
19151 2010-04-06  Jim Meyering  <meyering@redhat.com>
19152
19153         init.sh: portability fix: use env's POSIX-specified -i option not -u
19154         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19155         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19156
19157 2010-04-05  Bruno Haible  <bruno@clisp.org>
19158
19159         btowc: Work around Cygwin 1.7.2 bug.
19160         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19161         does not map NUL to 0.
19162         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19163
19164 2010-04-05  Bruno Haible  <bruno@clisp.org>
19165
19166         Make the multithread modules work on Cygwin 1.7.2.
19167         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19168         imported symbols can be declared weak, so that it returns "no" on
19169         Cygwin 1.7.2.
19170
19171 2010-04-05  Bruno Haible  <bruno@clisp.org>
19172
19173         Use the module 'strncat'.
19174         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19175
19176         Tests for module 'strncat'.
19177         * modules/strncat-tests: New file.
19178         * tests/test-strncat.c: New file.
19179
19180         New module 'strncat'.
19181         * lib/string.in.h (strncat): New declaration.
19182         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19183         * m4/strncat.m4: New file, based on m4/memchr.m4.
19184         * modules/strncat: New file.
19185         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19186         is declared.
19187         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19188         REPLACE_STRNCAT.
19189         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19190         REPLACE_STRNCAT.
19191         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19192         module.
19193         * tests/test-string-c++.cc: Check signature of strncat.
19194
19195 2010-04-05  Jim Meyering  <meyering@redhat.com>
19196
19197         xstrtoumax-tests: convert to use init.sh
19198         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19199         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19200         Use Exit, not exit.
19201         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19202
19203         xstrtoimax-tests: convert to use init.sh
19204         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19205         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19206         Use Exit, not exit.
19207         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19208
19209 2010-04-05  Bruno Haible  <bruno@clisp.org>
19210
19211         sys_socket: Avoid #define replacements in C++ mode.
19212         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19213         warning to the function if possible, rather than #defining the symbol
19214         to a dysfunctional alias.
19215
19216 2010-04-05  Bruno Haible  <bruno@clisp.org>
19217
19218         fseeko: Fix C++ test error on mingw.
19219         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19220         gl_FUNC_FSEEKO.
19221         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19222         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19223         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19224         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19225
19226 2010-04-05  Bruno Haible  <bruno@clisp.org>
19227
19228         duplocale: Improve test output.
19229         * tests/test-duplocale.c (main): Print reason for skipped test.
19230
19231 2010-04-05  Bruno Haible  <bruno@clisp.org>
19232
19233         Assume rmdir exists.
19234         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19235         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19236
19237 2010-04-05  Bruno Haible  <bruno@clisp.org>
19238
19239         Fix link error on Solaris 8 with cc.
19240         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19241
19242 2010-04-05  Bruno Haible  <bruno@clisp.org>
19243
19244         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19245         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19246
19247 2010-04-05  Bruno Haible  <bruno@clisp.org>
19248
19249         vasprintf: Update documentation.
19250         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19251
19252 2010-04-05  Bruno Haible  <bruno@clisp.org>
19253
19254         ptsname: Improve test.
19255         * tests/test-ptsname.c (main): Also try the various master names of BSD
19256         systems.
19257
19258 2010-04-05  Bruno Haible  <bruno@clisp.org>
19259
19260         memchr: Avoid a possible C++ test error.
19261         * lib/string.in.h (memchr): Provide declaration if function is missing.
19262         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19263         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19265         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19266
19267 2010-04-05  Bruno Haible  <bruno@clisp.org>
19268
19269         strtok_r: Improve idiom.
19270         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19271         AC_LIBOBJ is used.
19272
19273 2010-04-05  Bruno Haible  <bruno@clisp.org>
19274
19275         strdup: Improve idiom.
19276         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19277         AC_LIBOBJ is used.
19278         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19279         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19280         when AC_LIBOBJ is used.
19281
19282 2010-04-05  Bruno Haible  <bruno@clisp.org>
19283
19284         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19285         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19286         don't set REPLACE_MBSINIT to 1.
19287         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19288         don't set REPLACE_MBRTOWC to 1.
19289         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19290         exist, don't set REPLACE_MBSRTOWCS to 1.
19291         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19292         exist, don't set REPLACE_MBSNRTOWCS to 1.
19293         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19294         don't set REPLACE_WCRTOMB to 1.
19295         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19296         exist, don't set REPLACE_WCSRTOMBS to 1.
19297         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19298         exist, don't set REPLACE_WCSNRTOMBS to 1.
19299
19300 2010-04-05  Bruno Haible  <bruno@clisp.org>
19301
19302         ldexpl: Improve idiom.
19303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19304         make sure to set HAVE_DECL_LDEXPL to 0.
19305
19306 2010-04-05  Jim Meyering  <meyering@redhat.com>
19307
19308         xstrtol-tests: convert to use init.sh
19309         * modules/xstrtol-tests (Files): Add tests/init.sh.
19310         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19311         Use Exit, not exit.
19312         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19313
19314         atexit-tests: convert to use init.sh
19315         * modules/atexit-tests (Files): Add tests/init.sh.
19316         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19317         Use Exit, not exit.
19318         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19319
19320         init.sh: fix typo
19321         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19322
19323         init.sh: make it easier for a test script to write to the tty, ...
19324         when using automake's parallel-tests mode.
19325         * tests/init.sh (stderr_fileno_): Define overridable variable.
19326         (warn_): New function, to use it.
19327         (fail_, skip_, framework_failure_): Use warn_.
19328
19329 2010-04-04  Bruno Haible  <bruno@clisp.org>
19330
19331         btowc: Avoid warning.
19332         * lib/btowc.c: Include <stdlib.h>.
19333         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19334
19335 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19336             Bruno Haible  <bruno@clisp.org>
19337
19338         wchar: Port to NetBSD 1.5.
19339         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19340         * lib/wctype.in.h (WEOF): Likewise.
19341
19342 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19343             Bruno Haible  <bruno@clisp.org>
19344
19345         Port extended stdio to NetBSD 1.5.
19346         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19347         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19348         older.
19349
19350 2010-04-04  Bruno Haible  <bruno@clisp.org>
19351
19352         string: Remove unused substitution.
19353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19354         HAVE_DECL_STRERROR.
19355         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19356
19357 2010-04-04  Bruno Haible  <bruno@clisp.org>
19358
19359         strtod: Avoid a possible C++ test error.
19360         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19361         set REPLACE_STRTOD.
19362
19363 2010-04-04  Bruno Haible  <bruno@clisp.org>
19364
19365         strerror: Update documentation.
19366         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19367
19368 2010-04-04  Bruno Haible  <bruno@clisp.org>
19369
19370         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19371         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19372         _GL_CXXALIAS_SYS_CAST.
19373
19374 2010-04-04  Bruno Haible  <bruno@clisp.org>
19375
19376         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19377         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19378         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19379         REPLACE_FREXPL to 1.
19380         * doc/posix-functions/frexpl.texi: Update documentation.
19381
19382 2010-04-04  Bruno Haible  <bruno@clisp.org>
19383
19384         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19385         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19386
19387 2010-04-04  Bruno Haible  <bruno@clisp.org>
19388
19389         Implement nanosleep for native Windows.
19390         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19391
19392 2010-04-04  Bruno Haible  <bruno@clisp.org>
19393
19394         math: Fix some C++ test errors on Solaris 8.
19395         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19396
19397 2010-04-04  Bruno Haible  <bruno@clisp.org>
19398
19399         math: Fix some C++ test errors on Cygwin.
19400         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19401         truncl): Provide declaration if the system does not have it.
19402         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19403         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19404         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19405         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19406         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19407         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19408         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19409         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19410         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19411         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19412         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19413         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19414         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19415         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19416         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19417         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19419         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19420         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19421         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19422         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19423         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19424
19425 2010-04-04  Bruno Haible  <bruno@clisp.org>
19426
19427         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19428         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19429         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19430         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19431         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19432         * m4/isinf.m4 (gl_ISINF): Likewise.
19433         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19434
19435 2010-04-04  Bruno Haible  <bruno@clisp.org>
19436
19437         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19438         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19439
19440 2010-04-04  Bruno Haible  <bruno@clisp.org>
19441
19442         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19443         * modules/tmpfile (configure.ac): Update.
19444
19445         tmpfile: Fix C++ test error on mingw.
19446         * lib/stdio.in.h (tmpfile): New declaration.
19447         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19448         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19449         * modules/tmpfile (Depends-on): Add stdio.
19450         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19451         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19452         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19453         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19454         REPLACE_TMPFILE.
19455         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19456
19457 2010-04-04  Bruno Haible  <bruno@clisp.org>
19458
19459         ioctl: Fix C++ test error on mingw.
19460         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19461         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19462         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19463
19464 2010-04-03  Bruno Haible  <bruno@clisp.org>
19465
19466         wcwidth: Fix C++ test error on mingw.
19467         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19469         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19470
19471 2010-04-03  Bruno Haible  <bruno@clisp.org>
19472
19473         nanosleep: Fix C++ test error on mingw.
19474         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19475         * lib/time.in.h (nanosleep): Use modern idiom.
19476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19477         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19478         REPLACE_NANOSLEEP to 1.
19479         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19480         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19481
19482 2010-04-03  Bruno Haible  <bruno@clisp.org>
19483
19484         strptime: Fix C++ test error on mingw.
19485         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19486         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19487         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19488         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19489         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19490         not REPLACE_STRPTIME.
19491         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19492         REPLACE_STRPTIME.
19493
19494 2010-04-03  Bruno Haible  <bruno@clisp.org>
19495
19496         timegm: Fix C++ test error on mingw.
19497         * lib/time.in.h (timegm): Use modern idiom.
19498         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19499         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19500         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19501         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19502
19503 2010-04-03  Bruno Haible  <bruno@clisp.org>
19504
19505         timegm: Assume declaration if function exists.
19506         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19507         if it exists. Don't clobber ac_cv_func_timegm.
19508
19509 2010-04-03  Bruno Haible  <bruno@clisp.org>
19510
19511         time_r: Fix C++ test error on mingw.
19512         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19513         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19514         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19515         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19516         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19517
19518 2010-04-03  Bruno Haible  <bruno@clisp.org>
19519
19520         time_r: Minor updates.
19521         * modules/time_r (Description): Mention the provided functions.
19522         * lib/time_r.c: Don't include <string.h>.
19523         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19524         * doc/posix-functions/localtime_r.texi: Likewise.
19525
19526 2010-04-03  Bruno Haible  <bruno@clisp.org>
19527
19528         time: Fix regression introduced on 2010-03-08.
19529         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19530         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19531
19532 2010-04-03  Jim Meyering  <meyering@redhat.com>
19533
19534         maint.mk: don't silently disable project-specific syntax-check rules
19535         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19536         that they need to convert their project-specific syntax-check rules
19537         to use the new _sc_search_regexp.
19538
19539 2010-04-03  Bruno Haible  <bruno@clisp.org>
19540
19541         fchdir: Fix regression introduced on 2010-03-08.
19542         * lib/unistd.in.h (fchdir): Fix declaration.
19543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19545         REPLACE_FCHDIR.
19546         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19547         REPLACE_FCHDIR.
19548
19549 2010-04-03  Bruno Haible  <bruno@clisp.org>
19550
19551         getpagesize: Fix C++ test error on mingw.
19552         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19553         system does not declare the function.
19554         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19555         declared.
19556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19557         HAVE_DECL_GETPAGESIZE.
19558         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19559
19560 2010-04-03  Bruno Haible  <bruno@clisp.org>
19561
19562         stdio: Make C++ tests work on mingw.
19563         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19564         does not declare the function.
19565
19566 2010-04-03  Bruno Haible  <bruno@clisp.org>
19567
19568         ftello: Fix C++ test error on mingw.
19569         * lib/stdio.in.h (ftello): Use modern idiom.
19570         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19571         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19572         is missing and that it needs to be replaced.
19573         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19575         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19576
19577 2010-04-03  Bruno Haible  <bruno@clisp.org>
19578
19579         fseeko: Fix C++ test error on mingw.
19580         * lib/stdio.in.h (fseeko): Use modern idiom.
19581         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19583         is missing and that it needs to be replaced.
19584         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19586         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19587
19588 2010-04-03  Bruno Haible  <bruno@clisp.org>
19589
19590         mkstemp: Fix C++ test error on mingw.
19591         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19593         function is missing and that it needs to be replaced.
19594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19595         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19596
19597 2010-04-03  Bruno Haible  <bruno@clisp.org>
19598
19599         stpncpy: Fix C++ test error on mingw.
19600         * lib/string.in.h (stpncpy): Use modern idiom.
19601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19602         function is missing and that it needs to be replaced.
19603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19604         REPLACE_STPNCPY.
19605         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19606
19607 2010-04-03  Bruno Haible  <bruno@clisp.org>
19608
19609         sys_stat: Fix C++ test error on mingw.
19610         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19611         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19612
19613 2010-04-03  Bruno Haible  <bruno@clisp.org>
19614
19615         pty: Update doc.
19616         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19617
19618 2010-04-03  Bruno Haible  <bruno@clisp.org>
19619
19620         unistd: Fix C++ test error on mingw.
19621         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19622
19623 2010-04-03  Bruno Haible  <bruno@clisp.org>
19624
19625         Update doc regarding mingw.
19626         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19627         * doc/glibc-functions/login_tty.texi: Likewise.
19628         * doc/glibc-functions/forkpty.texi: Likewise.
19629
19630 2010-04-03  Bruno Haible  <bruno@clisp.org>
19631
19632         stdlib: Avoid compilation failure of c-strtold on mingw.
19633         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19634
19635 2010-04-03  Bruno Haible  <bruno@clisp.org>
19636
19637         locale: Make C++ tests work on Cygwin and mingw.
19638         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19639         cannot provide the function.
19640         Reported by Simon Josefsson.
19641
19642 2010-04-03  Bruno Haible  <bruno@clisp.org>
19643
19644         localename: Port to MacOS X 10.6.
19645         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19646         memory layout of the locales in MacOS X 10.6 as well.
19647         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19648
19649 2010-04-02  Bruno Haible  <bruno@clisp.org>
19650
19651         gnulib-tool: Ensure that long-running tests are executed last.
19652         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19653         running tests after the one for the other tests.
19654
19655 2010-04-02  Bruno Haible  <bruno@clisp.org>
19656
19657         gnulib-tool: Ensure the tests in the main directory are executed first.
19658         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19659         start with the current directory.
19660
19661 2010-04-02  Bruno Haible  <bruno@clisp.org>
19662
19663         Tests for module 'havelib', moved here from GNU gettext.
19664         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19665         modifications.
19666         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19667         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19668         with modifications.
19669         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19670         modifications.
19671         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19672         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19673         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19674         with modifications.
19675         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19676         with modifications.
19677         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19678         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19679         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19680         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19681         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19682         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19683         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19684         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19685         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19686         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19687         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19688         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19689         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19690         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19691         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19692         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19693         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19694         with modifications.
19695         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19696         with modifications.
19697         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19698         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19699         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19700         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19701         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19702         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19703         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19704         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19705         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19706         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19707         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19708         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19709         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19710         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19711         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19712         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19713         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19714         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19715         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19716         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19717         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19718         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19719         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19720         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19721         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19722         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19723         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19724         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19725         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19726         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19727         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19728         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19729         * tests/havelib/rpathx/rpathx.c: New file, from
19730         gettext/autoconf-lib-link.
19731         * tests/havelib/rpathx/Makefile.am: New file, from
19732         gettext/autoconf-lib-link.
19733         * tests/havelib/rpathx/configure.ac: New file, from
19734         gettext/autoconf-lib-link with modifications.
19735         * tests/havelib/rpathy/rpathy.c: New file, from
19736         gettext/autoconf-lib-link.
19737         * tests/havelib/rpathy/Makefile.am: New file, from
19738         gettext/autoconf-lib-link.
19739         * tests/havelib/rpathy/configure.ac: New file, from
19740         gettext/autoconf-lib-link with modifications.
19741         * tests/havelib/rpathz/rpathz.c: New file, from
19742         gettext/autoconf-lib-link.
19743         * tests/havelib/rpathz/Makefile.am: New file, from
19744         gettext/autoconf-lib-link.
19745         * tests/havelib/rpathz/configure.ac: New file, from
19746         gettext/autoconf-lib-link with modifications.
19747         * tests/havelib/rpathlx/usex.c: New file, from
19748         gettext/autoconf-lib-link.
19749         * tests/havelib/rpathlx/Makefile.am: New file, from
19750         gettext/autoconf-lib-link.
19751         * tests/havelib/rpathlx/configure.ac: New file, from
19752         gettext/autoconf-lib-link with modifications.
19753         * tests/havelib/rpathly/usey.c: New file, from
19754         gettext/autoconf-lib-link.
19755         * tests/havelib/rpathly/Makefile.am: New file, from
19756         gettext/autoconf-lib-link.
19757         * tests/havelib/rpathly/configure.ac: New file, from
19758         gettext/autoconf-lib-link with modifications.
19759         * tests/havelib/rpathlz/usez.c: New file, from
19760         gettext/autoconf-lib-link.
19761         * tests/havelib/rpathlz/Makefile.am: New file, from
19762         gettext/autoconf-lib-link.
19763         * tests/havelib/rpathlz/configure.ac: New file, from
19764         gettext/autoconf-lib-link with modifications.
19765         * tests/havelib/rpathlyx/usey.c: New file, from
19766         gettext/autoconf-lib-link.
19767         * tests/havelib/rpathlyx/Makefile.am: New file, from
19768         gettext/autoconf-lib-link.
19769         * tests/havelib/rpathlyx/configure.ac: New file, from
19770         gettext/autoconf-lib-link with modifications.
19771         * tests/havelib/rpathlzyx/usez.c: New file, from
19772         gettext/autoconf-lib-link.
19773         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19774         gettext/autoconf-lib-link.
19775         * tests/havelib/rpathlzyx/configure.ac: New file, from
19776         gettext/autoconf-lib-link with modifications.
19777         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19778         with modifications.
19779
19780 2010-04-02  Bruno Haible  <bruno@clisp.org>
19781
19782         gnulib-tool: Create distributed built sources also for the tests.
19783         * gnulib-tool (func_create_testdir): Also generate distributed built
19784         sources in the tests directory.
19785
19786 2010-04-02  Bruno Haible  <bruno@clisp.org>
19787
19788         gnulib-tool: Obey user's environment variables.
19789         * gnulib-tool (func_create_testdir): When creating built sources,
19790         respect the environment variables for autoconf, automake, etc. given by
19791         the user.
19792
19793 2010-04-02  Bruno Haible  <bruno@clisp.org>
19794
19795         gnulib-tool: Provide the value of --m4-base to modules.
19796         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19797         of gl_m4_base.
19798
19799 2010-04-02  Eric Blake  <eblake@redhat.com>
19800
19801         maint.mk: fix some fallout
19802         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19803         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19804
19805 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19806
19807         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19808         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19809         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19810         (sc_cast_of_x_alloc_return_value): Likewise.
19811         (sc_cast_of_alloca_return_value): Likewise.
19812         (sc_space_tab): Likewise.
19813         (sc_prohibit_atoi_atof): Likewise.
19814         (sc_prohibit_magic_number_exit): Likewise.
19815         (sc_error_exit_success): Likewise.
19816         (sc_file_system): Likewise.
19817         (sc_prohibit_have_config_h): Likewise.
19818         (sc_require_config_h): Likewise.
19819         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19820         (sc_obsolete_symbols): Likewise.
19821         (sc_changelog): Likewise.
19822         (sc_program_name): Likewise.
19823         (sc_the_the): Likewise.
19824         (sc_trailing_blank): Likewise.
19825         (sc_two_space_separator_in_usage): Likewise.
19826         (sc_useless_cpp_parens): Likewise.
19827         (sc_GPL_version): Likewise.
19828         (sc_GFDL_version): Likewise.
19829         (sc_texinfo_acronym): Likewise.
19830         (sc_prohibit_cvs_keyword): Likewise.
19831         (sc_prohibit_stat_st_blocks): Likewise.
19832         (sc_prohibit_S_IS_definition): Likewise.
19833         (sc_redundant_const): Likewise.
19834         (sc_makefile_TAB_only_indentation): Likewise.
19835         (sc_m4_quote_check): Likewise.
19836         (sc_makefile_path_separator_check): Likewise.
19837         (sc_copyright_check): Likewise.
19838         (sc_Wundef_boolean): Likewise.
19839         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19840
19841         maint.mk: match 0 or more whitespace-before-function-call '('
19842         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19843         that have zero or two-and-more spaces between the function name
19844         and the open parenthesis.
19845         (sc_error_message_warn_fatal): Likewise.
19846         (sc_error_message_uppercase): Likewise.
19847         (sc_error_message_period): Likewise.
19848
19849 2010-03-31  Eric Blake  <eblake@redhat.com>
19850
19851         maint.mk: check for [ as well as test
19852         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19853         Based on a libvirt report by Matthias Bolte.
19854
19855         gnumakefile: don't squelch _version output
19856         * top/GNUmakefile (_version): Create one-shot dependency rather
19857         than using $(shell) when version must be regenerated.
19858         (_autoreconf): Run verbosely, by default.
19859
19860         sys_time: avoid compiler warnings
19861         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19862         unconditional, fixing regression from 2010-03-29.
19863         Reported by Simon Josefsson.
19864
19865 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19866
19867         maint.mk: s/_header_without_use/_sc_header_without_use/
19868         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19869         (sc_prohibit_assert_without_use): Use the new name.
19870         (sc_prohibit_close_stream_without_use): Likewise.
19871         (sc_prohibit_getopt_without_use): Likewise.
19872         (sc_prohibit_quotearg_without_use): Likewise.
19873         (sc_prohibit_quote_without_use): Likewise.
19874         (sc_prohibit_long_options_without_use): Likewise.
19875         (sc_prohibit_inttostr_without_use): Likewise.
19876         (sc_prohibit_ignore_value_without_use): Likewise.
19877         (sc_prohibit_error_without_use): Likewise.
19878         (sc_prohibit_xalloc_without_use): Likewise.
19879         (sc_prohibit_hash_without_use): Likewise.
19880         (sc_prohibit_hash_pjw_without_use): Likewise.
19881         (sc_prohibit_safe_read_without_use): Likewise.
19882         (sc_prohibit_argmatch_without_use): Likewise.
19883         (sc_prohibit_canonicalize_without_use): Likewise.
19884         (sc_prohibit_root_dev_ino_without_use): Likewise.
19885         (sc_prohibit_openat_without_use): Likewise.
19886         (sc_prohibit_c_ctype_without_use): Likewise.
19887         (sc_prohibit_signal_without_use): Likewise.
19888         (sc_prohibit_intprops_without_use): Likewise.
19889
19890 2010-03-30  Eric Blake  <eblake@redhat.com>
19891
19892         maint: improve module indicators
19893         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19894         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19895         columns, and avoid extra macro expansion.
19896
19897         fdopendir: work around FreeBSD bug
19898         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19900         * modules/dirent (Makefile.am): Substitute it.
19901         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19902         declaration.
19903         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19904         fix.
19905         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19906
19907 2010-03-29  Bruno Haible  <bruno@clisp.org>
19908
19909         Emit #pragma system_header after the inclusion guard, not before.
19910         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19911         guard that spans the entire file, not before. This enables an
19912         optimization in GCC's preprocessor.
19913         * lib/ctype.in.h: Likewise.
19914         * lib/dirent.in.h: Likewise.
19915         * lib/errno.in.h: Likewise.
19916         * lib/float.in.h: Likewise.
19917         * lib/getopt.in.h: Likewise.
19918         * lib/iconv.in.h: Likewise.
19919         * lib/langinfo.in.h: Likewise.
19920         * lib/locale.in.h: Likewise.
19921         * lib/math.in.h: Likewise.
19922         * lib/netdb.in.h: Likewise.
19923         * lib/netinet_in.in.h: Likewise.
19924         * lib/pty.in.h: Likewise.
19925         * lib/sched.in.h: Likewise.
19926         * lib/se-selinux.in.h: Likewise.
19927         * lib/search.in.h: Likewise.
19928         * lib/spawn.in.h: Likewise.
19929         * lib/stdarg.in.h: Likewise.
19930         * lib/stdint.in.h: Likewise.
19931         * lib/string.in.h: Likewise.
19932         * lib/strings.in.h: Likewise.
19933         * lib/sys_file.in.h: Likewise.
19934         * lib/sys_ioctl.in.h: Likewise.
19935         * lib/sys_time.in.h: Likewise.
19936         * lib/sys_times.in.h: Likewise.
19937         * lib/sys_utsname.in.h: Likewise.
19938         * lib/sys_wait.in.h: Likewise.
19939         * lib/sysexits.in.h: Likewise.
19940         * lib/wctype.in.h: Likewise.
19941
19942 2010-03-28  James Youngman  <jay@gnu.org>
19943
19944         save-cwd: don't leak a file descriptor when the caller execs.
19945         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19946         saved file descriptor.
19947         * modules/save-cwd (Depends-on): Depend on cloexec.
19948
19949 2010-03-29  Bruno Haible  <bruno@clisp.org>
19950
19951         Remove vestiges of fts-lgpl module.
19952         * lib/fts_.h: Assume GNULIB_FTS is 1.
19953         * lib/fts.c: Likewise.
19954         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19955
19956 2010-03-28  Bruno Haible  <bruno@clisp.org>
19957
19958         Fix definition of tests witness macro.
19959         * gnulib-tool (func_import): Fix definition of witness macro.
19960
19961 2010-03-28  Bruno Haible  <bruno@clisp.org>
19962
19963         Fix ioctl's protoype on glibc systems.
19964         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19965         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19966         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19967         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19968         signature. If not, arrange to replace the ioctl function.
19969         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19970         REPLACE_IOCTL.
19971         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19972         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19973         Reported by Ludovic Courtès <ludo@gnu.org>.
19974
19975 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19976
19977         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19978         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19979         made it so grep -r --include=GLOB* ... did not work.
19980
19981 2010-03-26  Jim Meyering  <meyering@redhat.com>
19982             Eric Blake  <eblake@redhat.com>
19983
19984         maint.mk: prohibit use of test's -o and -a operators
19985         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19986
19987 2010-03-28  Bruno Haible  <bruno@clisp.org>
19988
19989         Remove unused GNULIB_XYZ macro definitions.
19990         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19991         invocation.
19992
19993 2010-03-28  Bruno Haible  <bruno@clisp.org>
19994
19995         Mark privileged tests modules.
19996         * modules/idpriv-drop-tests (Status): New section.
19997         * modules/idpriv-droptemp-tests (Status): New section.
19998
19999 2010-03-28  Bruno Haible  <bruno@clisp.org>
20000
20001         Split C++ tests into separate tests modules.
20002         * modules/dirent-c++-tests: New file, extracted from
20003         modules/dirent-tests.
20004         * modules/dirent-tests: Depend on it.
20005         * modules/fcntl-h-c++-tests: New file, extracted from
20006         modules/fcntl-h-tests.
20007         * modules/fcntl-h-tests: Depend on it.
20008         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20009         * modules/glob-tests: Depend on it.
20010         * modules/iconv-h-c++-tests: New file, extracted from
20011         modules/iconv-h-tests.
20012         * modules/iconv-h-tests: Depend on it.
20013         * modules/langinfo-c++-tests: New file, extracted from
20014         modules/langinfo-tests.
20015         * modules/langinfo-tests: Depend on it.
20016         * modules/locale-c++-tests: New file, extracted from
20017         modules/locale-tests.
20018         * modules/locale-tests: Depend on it.
20019         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20020         * modules/math-tests: Depend on it.
20021         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20022         * modules/pty-tests: Depend on it.
20023         * modules/search-c++-tests: New file, extracted from
20024         modules/search-tests.
20025         * modules/search-tests: Depend on it.
20026         * modules/signal-c++-tests: New file, extracted from
20027         modules/signal-tests.
20028         * modules/signal-tests: Depend on it.
20029         * modules/spawn-c++-tests: New file, extracted from
20030         modules/spawn-tests.
20031         * modules/spawn-tests: Depend on it.
20032         * modules/stdio-c++-tests: New file, extracted from
20033         modules/stdio-tests.
20034         * modules/stdio-tests: Depend on it.
20035         * modules/stdlib-c++-tests: New file, extracted from
20036         modules/stdlib-tests.
20037         * modules/stdlib-tests: Depend on it.
20038         * modules/string-c++-tests: New file, extracted from
20039         modules/string-tests.
20040         * modules/string-tests: Depend on it.
20041         * modules/sys_ioctl-c++-tests: New file, extracted from
20042         modules/sys_ioctl-tests.
20043         * modules/sys_ioctl-tests: Depend on it.
20044         * modules/sys_select-c++-tests: New file, extracted from
20045         modules/sys_select-tests.
20046         * modules/sys_select-tests: Depend on it.
20047         * modules/sys_socket-c++-tests: New file, extracted from
20048         modules/sys_socket-tests.
20049         * modules/sys_socket-tests: Depend on it.
20050         * modules/sys_stat-c++-tests: New file, extracted from
20051         modules/sys_stat-tests.
20052         * modules/sys_stat-tests: Depend on it.
20053         * modules/sys_time-c++-tests: New file, extracted from
20054         modules/sys_time-tests.
20055         * modules/sys_time-tests: Depend on it.
20056         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20057         * modules/time-tests: Depend on it.
20058         * modules/unistd-c++-tests: New file, extracted from
20059         modules/unistd-tests.
20060         * modules/unistd-tests: Depend on it.
20061         * modules/wchar-c++-tests: New file, extracted from
20062         modules/wchar-tests.
20063         * modules/wchar-tests: Depend on it.
20064         * modules/wctype-c++-tests: New file, extracted from
20065         modules/wctype-tests.
20066         * modules/wctype-tests: Depend on it.
20067         Reported by Simon Josefsson.
20068
20069 2010-03-28  Bruno Haible  <bruno@clisp.org>
20070
20071         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20072         * gnulib-tool (func_exists_module): New function, extracted from
20073         func_verify_module.
20074         (func_verify_module): Use it.
20075         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20076         'foo' only if 'foo' exists.
20077         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20078         module.
20079
20080 2010-03-28  Bruno Haible  <bruno@clisp.org>
20081
20082         gnulib-tool: Add support for special categories of tests.
20083         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20084         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20085         (func_usage): Document them.
20086         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20087         inc_unportable_tests, inc_all_tests): New variables.
20088         (func_acceptable): Consider these variables.
20089         (func_modules_transitive_closure): Make it work when the 'Status' field
20090         consists of multiple words.
20091         (func_import): Store and restore the values of inc_cxx_tests,
20092         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20093         inc_all_tests in gnulib-comp.m4.
20094         (func_create_testdir): Set inc_all_tests to true.
20095         * doc/gnulib.texi (Extra tests modules): New section.
20096         Suggested by Jim Meyering.
20097
20098 2010-03-28  Bruno Haible  <bruno@clisp.org>
20099
20100         ansi-c++-opt: Allow turning off the C++ build by default.
20101         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20102         gl_CXX_CHOICE_DEFAULT_NO is defined.
20103         Requested by Eric Blake.
20104
20105 2010-03-28  Bruno Haible  <bruno@clisp.org>
20106
20107         unistd: Avoid #define replacements in C++ mode.
20108         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20109         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20110         setsockopt, shutdown, select): In C++, attach a warning to the function
20111         if possible, rather than #defining the symbol to a dysfunctional alias.
20112         Reported by John W. Eaton <jwe@gnu.org>.
20113
20114 2010-03-28  Bruno Haible  <bruno@clisp.org>
20115
20116         Fix link errors on mingw.
20117         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20118         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20119         $(LIBSOCKET).
20120         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20121         $(LIBSOCKET).
20122
20123 2010-03-28  Bruno Haible  <bruno@clisp.org>
20124             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20125
20126         lib-ignore: Determine different options for different compilers.
20127         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20128         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20129         Add comments.
20130         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20131         * NEWS: Mention the change.
20132
20133 2010-03-27  Bruno Haible  <bruno@clisp.org>
20134
20135         Remove unused GNULIB_XYZ macro definitions.
20136         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20137         * modules/fseek (configure.ac): Likewise.
20138         * modules/ioctl (configure.ac): Likewise.
20139         * modules/open (configure.ac): Likewise.
20140         * modules/stdlib-safer (configure.ac): Likewise.
20141
20142 2010-03-27  Bruno Haible  <bruno@clisp.org>
20143
20144         Add a remark about certain modules.
20145         * modules/malloc (Comment): New section.
20146         * modules/realloc (Comment): Likewise.
20147         * modules/sigpipe (Comment): Likewise.
20148
20149 2010-03-27  Bruno Haible  <bruno@clisp.org>
20150
20151         Resolve conflict between the two kinds of module indicators.
20152         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20153         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20154         * modules/canonicalize (configure.ac): Invoke
20155         gl_MODULE_INDICATOR_FOR_TESTS.
20156         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20157         GNULIB_XYZ.
20158         * tests/test-dirent-c++.cc: Likewise.
20159         * tests/test-dirent-safer.c: Likewise.
20160         * tests/test-dup2.c: Likewise.
20161         * tests/test-fchdir.c: Likewise.
20162         * tests/test-fcntl-h-c++.cc: Likewise.
20163         * tests/test-getopt.c: Likewise.
20164         * tests/test-getopt.h: Likewise.
20165         * tests/test-langinfo-c++.cc: Likewise.
20166         * tests/test-locale-c++.cc: Likewise.
20167         * tests/test-math-c++.cc: Likewise.
20168         * tests/test-pty-c++.cc: Likewise.
20169         * tests/test-search-c++.cc: Likewise.
20170         * tests/test-signal-c++.cc: Likewise.
20171         * tests/test-spawn-c++.cc: Likewise.
20172         * tests/test-stdio-c++.cc: Likewise.
20173         * tests/test-stdlib-c++.cc: Likewise.
20174         * tests/test-string-c++.cc: Likewise.
20175         * tests/test-sys_ioctl-c++.cc: Likewise.
20176         * tests/test-sys_select-c++.cc: Likewise.
20177         * tests/test-sys_socket-c++.cc: Likewise.
20178         * tests/test-sys_stat-c++.cc: Likewise.
20179         * tests/test-sys_time-c++.cc: Likewise.
20180         * tests/test-time-c++.cc: Likewise.
20181         * tests/test-unistd-c++.cc: Likewise.
20182         * tests/test-wchar-c++.cc: Likewise.
20183         * tests/uninorm/test-u8-nfc.c: Likewise.
20184         * tests/uninorm/test-u8-nfd.c: Likewise.
20185         * tests/uninorm/test-u8-nfkc.c: Likewise.
20186         * tests/uninorm/test-u8-nfkd.c: Likewise.
20187         * tests/uninorm/test-u16-nfc.c: Likewise.
20188         * tests/uninorm/test-u16-nfd.c: Likewise.
20189         * tests/uninorm/test-u16-nfkc.c: Likewise.
20190         * tests/uninorm/test-u16-nfkd.c: Likewise.
20191         * tests/uninorm/test-u32-nfc.c: Likewise.
20192         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20193         * tests/uninorm/test-u32-nfd.c: Likewise.
20194         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20195         * tests/uninorm/test-u32-nfkc.c: Likewise.
20196         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20197         * tests/uninorm/test-u32-nfkd.c: Likewise.
20198         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20199         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20200
20201 2010-03-27  Bruno Haible  <bruno@clisp.org>
20202
20203         Distinguish two kinds of module indicators.
20204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20205         gl_MODULE_INDICATOR.
20206         (gl_MODULE_INDICATOR): New macro.
20207         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20208         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20209         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20210         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20211         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20212         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20213         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20214         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20215         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20216         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20217         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20218         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20220         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20221         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20222         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20223         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20224         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20225         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20226         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20227         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20228         * modules/cloexec (configure.ac): Likewise.
20229         * modules/getopt-gnu (configure.ac): Likewise.
20230         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20231         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20232         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20233         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20234
20235 2010-03-27  Bruno Haible  <bruno@clisp.org>
20236
20237         New module description field 'Comment'.
20238         * gnulib-tool: New option --extract-comment.
20239         (func_usage): Document it.
20240         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20241         (func_get_comment): New function.
20242         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20243
20244 2010-03-27  Bruno Haible  <bruno@clisp.org>
20245
20246         Addendum to 2010-02-07 commit.
20247         * gnulib-tool (func_usage): Document --extract-applicability option.
20248
20249 2010-03-27  Bruno Haible  <bruno@clisp.org>
20250
20251         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20252         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20253         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20254         rather than link errors.
20255
20256 2010-03-27  Bruno Haible  <bruno@clisp.org>
20257
20258         Avoid side effects from tests-related modules on the compilation of lib.
20259         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20260         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20261         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20262         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20263         macro.
20264         (func_import): Define a witness macro. Assign it a value that depends
20265         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20266         tests-related modules.
20267         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20268         Reported by Jim Meyering.
20269
20270 2010-03-27  Bruno Haible  <bruno@clisp.org>
20271
20272         Factorize common .m4 code.
20273         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20274         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20275         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20276         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20277         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20278         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20279         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20280         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20281         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20282         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20283         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20284         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20285         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20286         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20287         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20288         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20289         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20290         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20292         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20293         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20295         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20297         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20298         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20299         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20300         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20301         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20302         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20303         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20304         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20305
20306 2010-03-27  Bruno Haible  <bruno@clisp.org>
20307
20308         Fix a compilation error on Cygwin with g++ >= 4.3.
20309         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20310         if it is undefined or if we alias it to chmod.
20311         (lstat): Don't warn about the use of this function if it is undefined
20312         or if we alias it to stat.
20313         Reported by Simon Josefsson.
20314
20315 2010-03-27  Bruno Haible  <bruno@clisp.org>
20316
20317         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20318         * modules/getlogin (configure.ac): Update.
20319
20320         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20321         * modules/getlogin_r (configure.ac): Update.
20322
20323         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20325         * modules/inet_ntop (configure.ac): Update.
20326
20327         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20328         * modules/inet_pton (configure.ac): Update.
20329
20330         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20331         * modules/mbslen (configure.ac): Update.
20332
20333         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20334         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20335         * modules/forkpty (configure.ac): Update.
20336         * modules/openpty (configure.ac): Update.
20337
20338 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20339
20340         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20341         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20342
20343 2010-03-25  Eric Blake  <eblake@redhat.com>
20344
20345         maint: use pragma consistently across replacement headers
20346         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20347         * lib/dirent.in.h (system_header): Likewise.
20348         * lib/errno.in.h (system_header): Likewise.
20349         * lib/float.in.h (system_header): Likewise.
20350         * lib/getopt.in.h (system_header): Likewise.
20351         * lib/iconv.in.h (system_header): Likewise.
20352         * lib/inttypes.in.h (system_header): Likewise.
20353         * lib/langinfo.in.h (system_header): Likewise.
20354         * lib/locale.in.h (system_header): Likewise.
20355         * lib/math.in.h (system_header): Likewise.
20356         * lib/netdb.in.h (system_header): Likewise.
20357         * lib/netinet_in.in.h (system_header): Likewise.
20358         * lib/pty.in.h (system_header): Likewise.
20359         * lib/sched.in.h (system_header): Likewise.
20360         * lib/se-selinux.in.h (system_header): Likewise.
20361         * lib/search.in.h (system_header): Likewise.
20362         * lib/spawn.in.h (system_header): Likewise.
20363         * lib/stdarg.in.h (system_header): Likewise.
20364         * lib/stdint.in.h (system_header): Likewise.
20365         * lib/string.in.h (system_header): Likewise.
20366         * lib/strings.in.h (system_header): Likewise.
20367         * lib/sys_file.in.h (system_header): Likewise.
20368         * lib/sys_ioctl.in.h (system_header): Likewise.
20369         * lib/sys_socket.in.h (system_header): Likewise.
20370         * lib/sys_times.in.h (system_header): Likewise.
20371         * lib/sys_utsname.in.h (system_header): Likewise.
20372         * lib/sys_wait.in.h (system_header): Likewise.
20373         * lib/sysexits.in.h (system_header): Likewise.
20374         * lib/unistd.in.h (system_header): Likewise.
20375         * lib/wctype.in.h (system_header): Likewise.
20376
20377         arpa/inet: fix mingw compilation warning
20378         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20379         Reported by Matthew Bolte.
20380
20381 2010-03-25  Bruno Haible  <bruno@clisp.org>
20382
20383         Avoid collision between gnulib wrapper and libintl wrapper.
20384         * lib/printf.c (printf): Don't define if a printf wrapper is already
20385         defined in intl/printf.c.
20386         Reported by Michel Boaventura <michel@michelboaventura.com>.
20387
20388 2010-03-25  Bruno Haible  <bruno@clisp.org>
20389
20390         Use ANSI C.
20391         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20392
20393 2010-03-25  Bruno Haible  <bruno@clisp.org>
20394
20395         Minor formatting changes.
20396         * lib/acosl.c: Insert space before function argument list.
20397         * lib/argz.c: Likewise.
20398         * lib/asinl.c: Likewise.
20399         * lib/expl.c: Likewise.
20400         * lib/gen-uni-tables.c: Likewise.
20401         * lib/gettext.h: Likewise.
20402         * lib/glthread/lock.h: Likewise.
20403         * lib/tanl.c: Likewise.
20404         * lib/uniname/uniname.c: Likewise.
20405         * tests/test-idpriv-drop.c: Likewise.
20406         * tests/test-idpriv-droptemp.c: Likewise.
20407         * tests/test-lock.c: Likewise.
20408         * tests/test-tls.c: Likewise.
20409         * lib/argp-help.c: Insert space before function-like macro argument
20410         list.
20411         * lib/memcmp.c: Likewise.
20412         * tests/test-base64.c: Likewise.
20413         * lib/localename.c: Insert space before sizeof's argument list.
20414         * lib/safe-alloc.h: Likewise.
20415         * lib/file-set.h: Insert space before macro argument list.
20416         * tests/test-argp.c: Likewise.
20417         * lib/argp-namefrob.h: Insert space before function parameter list.
20418         * lib/getaddrinfo.c: Likewise.
20419         * lib/netdb.in.h: Likewise.
20420         * lib/parse-duration.h: Likewise.
20421         * lib/parse-duration.c: Likewise.
20422         * lib/poll.c: Likewise.
20423         * lib/select.c: Likewise.
20424         * lib/trim.h: Likewise.
20425         * tests/test-usleep.c: Likewise.
20426         * lib/ldexpl.c: Insert space before function parameter list and before
20427         function argument list.
20428         * lib/logl.c: Likewise.
20429         * lib/sqrtl.c: Likewise.
20430         * lib/trim.c: Likewise.
20431         * lib/cosl.c: Use GNU style indentation. Insert space before function
20432         argument list.
20433         * lib/sinl.c: Likewise.
20434         * lib/tsearch.c: Insert space after 'for'.
20435         Reported by Jim Meyering.
20436
20437 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20438
20439         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20440         config header before grepping, as it's not present before
20441         autoreconf/configure are run.  Reported by Simon Josefsson.
20442
20443 2010-03-23  Bruno Haible  <bruno@clisp.org>
20444
20445         pt_chown: Make it work with automake < 1.11.
20446         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20447         Reported by Simon Josefsson.
20448
20449 2010-03-23  Bruno Haible  <bruno@clisp.org>
20450
20451         pt_chown: Don't depend on GPLed modules.
20452         * lib/pt_chown.c: Don't include idpriv.h.
20453         (main): Don't drop privileges.
20454         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20455         Reported by Simon Josefsson.
20456
20457 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20458
20459         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20460         suggestions from karl@freefriends.org (Karl Berry).
20461
20462 2010-03-22  Eric Blake  <eblake@redhat.com>
20463
20464         gethostname: further tweaks
20465         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20466         are overriding gethostname.
20467         Suggested by Bruno Haible.
20468
20469 2010-03-21  Bruno Haible  <bruno@clisp.org>
20470
20471         Fix comments.
20472         * lib/forkpty.c (rpl_forkpty): Fix comment.
20473         * lib/openpty.c (rpl_openpty): Likewise.
20474         Reported by Eric Blake.
20475
20476 2010-03-22  Eric Blake  <eblake@redhat.com>
20477
20478         gethostname: fix build on mingw
20479         * lib/unistd.in.h (includes): Work around fact that mingw
20480         <winsock2.h> re-includes <unistd.h>, by avoiding any
20481         redeclarations if we are being included by <winsock2.h>.
20482         Reported by Matthias Bolte.
20483
20484 2010-03-21  Bruno Haible  <bruno@clisp.org>
20485
20486         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20487         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20488         modifications.
20489         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20490         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20491         provide the replacement.
20492         * modules/forkpty (Depends-on): Add openpty, login_tty.
20493         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20494         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20495         * doc/glibc-functions/forkpty.texi: More supported platforms.
20496         * config/srclist.txt: Add forkpty.c (commented).
20497
20498 2010-03-21  Bruno Haible  <bruno@clisp.org>
20499
20500         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20501         (Makefile.am): Verify that PTY_LIB is defined.
20502
20503         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20504
20505 2010-03-21  Bruno Haible  <bruno@clisp.org>
20506
20507         Tests for module 'login_tty'.
20508         * modules/login_tty-tests: New file.
20509         * tests/test-login_tty.c: New file.
20510
20511         New module 'login_tty'.
20512         * lib/login_tty.c: New file.
20513         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20514         * modules/login_tty: New file.
20515         * doc/glibc-functions/login_tty.texi: Mention the new module.
20516
20517 2010-03-21  Bruno Haible  <bruno@clisp.org>
20518
20519         login_tty: Documentation.
20520         * doc/glibc-functions/login_tty.texi: New file.
20521         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20522
20523 2010-03-21  Bruno Haible  <bruno@clisp.org>
20524
20525         pty: Consistent macro naming.
20526         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20527         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20528         * modules/pty (configure.ac): Update.
20529
20530 2010-03-21  Bruno Haible  <bruno@clisp.org>
20531
20532         Tests for openpty: Make stricter.
20533         * tests/test-openpty.c (main): Add test of canonical processing and
20534         erase.
20535         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20536
20537         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20538         * lib/openpty.c (openpty): New replacement function.
20539         * lib/pty.in.h: Include <termios.h>.
20540         (openpty): Update declaration. Add comments.
20541         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20542         is not declared, arrange to provide the replacement. Check for _getpty
20543         and posix_openpt.
20544         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20545         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20546         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20547         * modules/pty-tests (test_pty_c___LDADD): New variable.
20548         * doc/glibc-functions/openpty.texi: More supported platforms.
20549
20550 2010-03-21  Bruno Haible  <bruno@clisp.org>
20551
20552         setenv: Tweaks.
20553         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20554         the test program.
20555         * doc/posix-functions/setenv.texi: Update platforms list.
20556
20557 2010-03-21  Bruno Haible  <bruno@clisp.org>
20558
20559         New module 'unlockpt'.
20560         * lib/unlockpt.c: New file, from glibc with modifications.
20561         * m4/unlockpt.m4: New file.
20562         * modules/unlockpt: New file.
20563         * lib/stdlib.in.h (unlockpt): New declaration.
20564         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20565         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20566         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20567         HAVE_UNLOCKPT.
20568         * doc/posix-functions/unlockpt.texi: Mention the new module.
20569         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20570         * config/srclist.txt: Add unlockpt.c (commented).
20571
20572 2010-03-21  Jim Meyering  <meyering@redhat.com>
20573
20574         maint.mk: prohibit inclusion of "intprops.h" without use
20575         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20576
20577 2010-03-21  Bruno Haible  <bruno@clisp.org>
20578
20579         New module 'grantpt'.
20580         * lib/grantpt.c: New file, from glibc with modifications.
20581         * m4/grantpt.m4: New file.
20582         * modules/grantpt: New file.
20583         * lib/stdlib.in.h (grantpt): New declaration.
20584         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20585         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20586         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20587         HAVE_GRANTPT.
20588         * doc/posix-functions/grantpt.texi: Mention the new module.
20589         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20590         * config/srclist.txt: Add grantpt.c (commented).
20591
20592 2010-03-21  Bruno Haible  <bruno@clisp.org>
20593
20594         New module 'pt_chown'.
20595         * lib/pt_chown.c: New file, from glibc with modifications.
20596         * lib/pty-private.h: New file, from glibc with modifications.
20597         * modules/pt_chown: New file.
20598         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20599
20600 2010-03-21  Bruno Haible  <bruno@clisp.org>
20601
20602         Tests for module 'ptsname'.
20603         * modules/ptsname-tests: New file.
20604         * tests/test-ptsname.c: New file.
20605
20606         New module 'ptsname'.
20607         * lib/ptsname.c: New file, from glibc with modifications.
20608         * m4/ptsname.m4: New file.
20609         * modules/ptsname: New file.
20610         * lib/stdlib.in.h (ptsname): New declaration.
20611         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20612         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20613         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20614         HAVE_PTSNAME.
20615         * doc/posix-functions/ptsname.texi: Mention the new module.
20616         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20617         * config/srclist.txt: Add ptsname.c (commented).
20618
20619 2010-03-21  Bruno Haible  <bruno@clisp.org>
20620
20621         Tests for module 'ttyname_r'.
20622         * modules/ttyname_r-tests: New file.
20623         * tests/test-ttyname_r.c: New file.
20624
20625         New module 'ttyname_r'.
20626         * lib/ttyname_r.c: New file.
20627         * m4/ttyname_r.m4: New file.
20628         * modules/ttyname_r: New file.
20629         * lib/unistd.in.h (ttyname_r): New declaration.
20630         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20631         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20632         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20633         HAVE_TTYNAME_R.
20634         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20635         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20636
20637 2010-03-20  Bruno Haible  <bruno@clisp.org>
20638
20639         signal: Undefine macro definitions in C++ mode.
20640         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20641         sigfillset): Undefine macro definitions from the system header in C++
20642         mode.
20643         Reported by John W. Eaton <jwe@gnu.org>.
20644
20645 2010-03-20  Bruno Haible  <bruno@clisp.org>
20646
20647         Ensure no #include statements inside extern "C" { ... }.
20648         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20649         contain #include statements.
20650         * lib/time.in.h: Likewise.
20651
20652 2010-03-20  Bruno Haible  <bruno@clisp.org>
20653
20654         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20655         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20656         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20657         Reported by John W. Eaton <jwe@gnu.org>.
20658
20659 2010-03-20  Bruno Haible  <bruno@clisp.org>
20660
20661         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20662         Reported by Jim Meyering.
20663
20664 2010-03-20  Bruno Haible  <bruno@clisp.org>
20665
20666         pipe: Set errno upon failure.
20667         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20668         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20669         errno value in error message.
20670
20671 2010-03-20  Bruno Haible  <bruno@clisp.org>
20672             Jim Meyering  <meyering@redhat.com>
20673
20674         lchown: Avoid "unused variable" warning.
20675         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20676
20677 2010-03-20  Bruno Haible  <bruno@clisp.org>
20678
20679         Work around unlink() bug on MacOS X 10.5.6.
20680         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20681         attempting to unlink a parent directory.
20682         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20683         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20684         activate for the replacement function.
20685         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20686
20687 2010-03-20  Bruno Haible  <bruno@clisp.org>
20688
20689         Fix link errors on Solaris 8.
20690         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20691         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20692
20693 2010-03-19  Jim Meyering  <meyering@redhat.com>
20694
20695         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20696         The _LIBC implementation of build_range_exp correctly honors the
20697         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20698         However, the non-_LIBC implementation would ignore that syntax-bit
20699         flag and return REG_ERANGE unconditionally.
20700         This change makes it honor that flag.
20701         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20702         Make two pointer parameters "const".
20703         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20704         (parse_bracket_exp): Update caller.
20705
20706         regex.m4: correct the reversed range endpoint ([b-a]) test
20707         * m4/regex.m4: When requiring that [b-a] evoke failure,
20708         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20709         test pass once again for x86-based systems.
20710
20711 2010-03-19  Bruno Haible  <bruno@clisp.org>
20712
20713         scandir: Fix link error on Solaris 8.
20714         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20715         macros.
20716
20717 2010-03-19  Bruno Haible  <bruno@clisp.org>
20718
20719         getusershell: Fix documentation.
20720         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20721         module.
20722         * doc/glibc-functions/setusershell.texi: Likewise.
20723
20724         getusershell: Provide declaration, missing on Solaris 9.
20725         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20726         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20727         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20728         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20730         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20731         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20732         HAVE_GETUSERSHELL.
20733         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20734
20735 2010-03-19  Bruno Haible  <bruno@clisp.org>
20736
20737         wctype: Provide iswblank function.
20738         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20739         exists and is fine.
20740         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20741         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20742         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20743         * doc/posix-functions/iswblank.texi: Update.
20744
20745 2010-03-19  Bruno Haible  <bruno@clisp.org>
20746
20747         Tests of module 'pty' in C++ mode.
20748         * modules/pty-tests: New file.
20749         * tests/test-pty-c++.cc: New file.
20750         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20751
20752 2010-03-19  Eric Blake  <eblake@redhat.com>
20753
20754         logb: fix documentation
20755         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20756         1.5 declaration bug.
20757
20758         forkpty, openpty: prefer glibc's const-safe prototype
20759         * lib/forkpty.c (rpl_forkpty): New file.
20760         * lib/openpty.c (rpl_openpty): Likewise.
20761         * modules/forkpty (Files): Distribute it.
20762         * modules/openpty (Files): Likewise.
20763         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20764         check...
20765         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20766         replacement for for non-const BSD signature.
20767         * modules/pty (Makefile.am): Substitute witnesses.
20768         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20769         * tests/test-forkpty.c: Update signature check.
20770         * tests/test-openpty.c: Likewise.
20771         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20772         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20773
20774         forkpty, openpty: split functions into new modules
20775         * modules/pty (Makefile.am): Substitute new witnesses.
20776         (Libraries): Move library detection...
20777         * modules/forkpty: ...into new module.
20778         * modules/openpty: Another new module.
20779         * modules/pty-tests: Rename and split...
20780         * modules/forkpty-tests: ...to this...
20781         * modules/openpty-tests: ...and this.
20782         * tests/test-pty.c: Rename and split...
20783         * tests/test-forkpty.c: ...to this...
20784         * tests/test-openpty.c: ...and this.
20785         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20786         (gl_PTY): Split library searching...
20787         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20788         (gl_FORKPTY, gl_OPENPTY): New macros.
20789         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20790         * NEWS: Mention the split.
20791         * MODULES.html.sh (Misc): Document the modules.
20792         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20793         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20794
20795         pty: improve replacement header
20796         * lib/pty.in.h: New file.
20797         * modules/pty (Files): Ship it.
20798         (Makefile.am): Always build replacement.
20799         * m4/pty.m4: Rename...
20800         * m4/pty_h.m4: ...to this.
20801         (gl_PTY): Modernize setting of witness macros; update check of
20802         forkpty to take proper advantage of cache.
20803         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20804
20805         getopt: avoid compiler warning
20806         * lib/getopt.c (attribute_hidden): Remove unused macro.
20807
20808 2010-03-18  Bruno Haible  <bruno@clisp.org>
20809
20810         Fix link errors on Solaris 8.
20811         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20812         * modules/search-tests (test_search_c___LDADD): Likewise.
20813         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20814         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20815         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20816         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20817         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20818         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20819         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20820
20821 2010-03-18  Bruno Haible  <bruno@clisp.org>
20822
20823         Fix bug introduced on 2010-03-14.
20824         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20825         (gl_SPAWN_H): Require it.
20826         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20827         Reported by Simon Josefsson.
20828
20829 2010-03-18  Bruno Haible  <bruno@clisp.org>
20830
20831         Fix typo introduced on 2009-12-31.
20832         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20833         posix_spawn_file_actions_adddup2.
20834
20835 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20836         and Eric Blake  <eblake@redhat.com>
20837
20838         test-vc-list-files-git: make more robust
20839         * tests/test-vc-list-files-git.sh: Unset problematic environment
20840         variables.  Chain commands together.
20841
20842 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20843
20844         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20845         `AC_CHECK_DECL' invocation.
20846
20847 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20848
20849         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20850         appears before executable statements. Suggested by Petr Sumbera
20851         <Petr.Sumbera@Sun.COM>.
20852
20853 2010-03-14  Bruno Haible  <bruno@clisp.org>
20854
20855         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20856         portability problems. Instead use a simpler test.
20857         (main): Check that invalid arguments are rejected only on Linux.
20858
20859 2010-03-14  Bruno Haible  <bruno@clisp.org>
20860
20861         Fix bug introduced on 2009-12-31.
20862         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20863         gl_PREREQ_SYS_H_WINSOCK2 always.
20864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20865         SYS_SOCKET_H variable.
20866         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20867         Update comments.
20868         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20869         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20870         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20871         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20872         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20873
20874 2010-03-14  Bruno Haible  <bruno@clisp.org>
20875
20876         Fix values returned by sinl, cosl.
20877         * lib/trigl.h: Add specification comments.
20878         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20879         that combines the values from the precomputed table with the values of
20880         the Chebyshev polynomials.
20881
20882 2010-03-14  Bruno Haible  <bruno@clisp.org>
20883
20884         Fix compilation error when modules 'posix_spawn[p]' are not used.
20885         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20886         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20887
20888 2010-03-14  Bruno Haible  <bruno@clisp.org>
20889
20890         Fix compilation error on mingw when module 'time_r' is not used.
20891         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20892         is 1.
20893         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20894         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20895         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20896         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20897
20898 2010-03-14  Bruno Haible  <bruno@clisp.org>
20899
20900         Fix compilation error with Sun C.
20901         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20902         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20903         instead of GCC specific ULONG_LONG_MAX.
20904         * lib/xstrtoll.c: Likewise.
20905         * lib/xstrtoull.c: Likewise.
20906
20907 2010-03-13  Bruno Haible  <bruno@clisp.org>
20908
20909         Allow the user to disable C++ code and tests.
20910         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20911         (gl_PROG_ANSI_CXX): Require it.
20912
20913 2010-03-13  Bruno Haible  <bruno@clisp.org>
20914
20915         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20916         cases.
20917
20918 2010-03-13  Bruno Haible  <bruno@clisp.org>
20919
20920         Test that gnulib does not break the standard C++ headers.
20921         * tests/test-locale-c++2.cc: New file.
20922         * modules/locale-tests (Files): Add it.
20923         (Makefile.am): Compile it for test-locale-c++.
20924         * tests/test-math-c++2.cc: New file.
20925         * modules/math-tests (Files): Add it.
20926         (Makefile.am): Compile it for test-math-c++.
20927         * tests/test-signal-c++2.cc: New file.
20928         * modules/signal-tests (Files): Add it.
20929         (Makefile.am): Compile it for test-signal-c++.
20930         * tests/test-stdio-c++2.cc: New file.
20931         * modules/stdio-tests (Files): Add it.
20932         (Makefile.am): Compile it for test-stdio-c++.
20933         * tests/test-stdlib-c++2.cc: New file.
20934         * modules/stdlib-tests (Files): Add it.
20935         (Makefile.am): Compile it for test-stdlib-c++.
20936         * tests/test-string-c++2.cc: New file.
20937         * modules/string-tests (Files): Add it.
20938         (Makefile.am): Compile it for test-string-c++.
20939         * tests/test-time-c++2.cc: New file.
20940         * modules/time-tests (Files): Add it.
20941         (Makefile.am): Compile it for test-time-c++.
20942         Reported by John W. Eaton <jwe@gnu.org>.
20943
20944 2010-03-13  Bruno Haible  <bruno@clisp.org>
20945
20946         * gnulib-tool (func_usage): Clarify which options are available for
20947         --create-testdir and --create-megatestdir.
20948
20949 2010-03-13  Bruno Haible  <bruno@clisp.org>
20950
20951         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20952         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20953         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20954         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20955         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20956         when appropriate.
20957         Reported by Jim Meyering.
20958
20959 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20960
20961         * gnulib-tool (func_import): Explain origin of code.
20962
20963 2010-03-12  Bruno Haible  <bruno@clisp.org>
20964
20965         Fix problem with automake's definition of CXXLINK.
20966         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20967         Reported by Simon Josefsson and Ludovic Courtès.
20968
20969 2010-03-12  Bruno Haible  <bruno@clisp.org>
20970
20971         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20972         stable releases.
20973
20974 2010-03-11  Bruno Haible  <bruno@clisp.org>
20975
20976         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20977         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20978         whether the system provides one variant or multiple variants of the
20979         function.
20980         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20981         C++ compilers.
20982         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20983         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20984         Reported by Jim Meyering.
20985
20986 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20987
20988         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20989
20990 2010-03-08  Bruno Haible  <bruno@clisp.org>
20991
20992         gnulib-tool: Add support for --libtool in --create-testdir.
20993         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20994         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20995
20996 2010-03-08  Eric Blake  <eblake@redhat.com>
20997
20998         gnulib-tool.texi: mention possibility of git submodule
20999         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21000         submodules.
21001         * doc/.gitignore: Ignore another generated file.
21002
21003 2010-03-08  Karl Berry  <karl@gnu.org>
21004
21005         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21006         of committing gnulib files while skipping others.
21007
21008 2010-03-07  Bruno Haible  <bruno@clisp.org>
21009
21010         Tests of module 'wctype' in C++ mode.
21011         * tests/test-wctype-c++.cc: New file.
21012         * modules/wctype-tests (Files): Add it and tests/signature.h.
21013         (Depends-on): Add ansi-c++-opt.
21014         (Makefile.am): Arrange to compile and run test-wctype-c++.
21015
21016         Tests of module 'wchar' in C++ mode.
21017         * tests/test-wchar-c++.cc: New file.
21018         * modules/wchar-tests (Files): Add it and tests/signature.h.
21019         (Depends-on): Add ansi-c++-opt.
21020         (Makefile.am): Arrange to compile and run test-wchar-c++.
21021         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21022         gl_MODULE_INDICATOR.
21023
21024         Tests of module 'unistd' in C++ mode.
21025         * tests/test-unistd-c++.cc: New file.
21026         * modules/unistd-tests (Files): Add it and tests/signature.h.
21027         (Depends-on): Add ansi-c++-opt.
21028         (Makefile.am): Arrange to compile and run test-unistd-c++.
21029         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21030         gl_MODULE_INDICATOR.
21031
21032         Tests of module 'time' in C++ mode.
21033         * tests/test-time-c++.cc: New file.
21034         * modules/time-tests (Files): Add it and tests/signature.h.
21035         (Depends-on): Add ansi-c++-opt.
21036         (Makefile.am): Arrange to compile and run test-time-c++.
21037         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21038
21039         Tests of module 'sys_time' in C++ mode.
21040         * tests/test-sys_time-c++.cc: New file.
21041         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21042         (Depends-on): Add ansi-c++-opt.
21043         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21044         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21045         gl_MODULE_INDICATOR.
21046
21047         Tests of module 'sys_stat' in C++ mode.
21048         * tests/test-sys_stat-c++.cc: New file.
21049         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21050         (Depends-on): Add ansi-c++-opt.
21051         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21052         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21053         gl_MODULE_INDICATOR.
21054
21055         Tests of module 'sys_socket' in C++ mode.
21056         * tests/test-sys_socket-c++.cc: New file.
21057         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21058         (Depends-on): Add ansi-c++-opt.
21059         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21060         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21061         gl_MODULE_INDICATOR.
21062
21063         Tests of module 'sys_select' in C++ mode.
21064         * tests/test-sys_select-c++.cc: New file.
21065         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21066         (Depends-on): Add ansi-c++-opt.
21067         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21068         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21069         gl_MODULE_INDICATOR.
21070
21071         Tests of module 'sys_ioctl' in C++ mode.
21072         * tests/test-sys_ioctl-c++.cc: New file.
21073         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21074         (Depends-on): Add ansi-c++-opt.
21075         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21076         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21077         gl_MODULE_INDICATOR.
21078
21079         Tests of module 'string' in C++ mode.
21080         * tests/test-string-c++.cc: New file.
21081         * modules/string-tests (Files): Add it and tests/signature.h.
21082         (Depends-on): Add ansi-c++-opt.
21083         (Makefile.am): Arrange to compile and run test-string-c++.
21084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21085         gl_MODULE_INDICATOR.
21086
21087         Tests of module 'stdlib' in C++ mode.
21088         * tests/test-stdlib-c++.cc: New file.
21089         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21090         (Depends-on): Add ansi-c++-opt.
21091         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21092         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21093         gl_MODULE_INDICATOR.
21094
21095         Tests of module 'stdio' in C++ mode.
21096         * tests/test-stdio-c++.cc: New file.
21097         * modules/stdio-tests (Files): Add it and tests/signature.h.
21098         (Depends-on): Add ansi-c++-opt.
21099         (Makefile.am): Arrange to compile and run test-stdio-c++.
21100         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21101         gl_MODULE_INDICATOR.
21102
21103         Tests of module 'spawn' in C++ mode.
21104         * tests/test-spawn-c++.cc: New file.
21105         * modules/spawn-tests (Files): Add it and tests/signature.h.
21106         (Depends-on): Add ansi-c++-opt.
21107         (Makefile.am): Arrange to compile and run test-spawn-c++.
21108         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21109         gl_MODULE_INDICATOR.
21110
21111         Tests of module 'signal' in C++ mode.
21112         * tests/test-signal-c++.cc: New file.
21113         * modules/signal-tests (Files): Add it and tests/signature.h.
21114         (Depends-on): Add ansi-c++-opt.
21115         (Makefile.am): Arrange to compile and run test-signal-c++.
21116         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21117         gl_MODULE_INDICATOR.
21118
21119         Tests of module 'search' in C++ mode.
21120         * tests/test-search-c++.cc: New file.
21121         * modules/search-tests (Files): Add it and tests/signature.h.
21122         (Depends-on): Add ansi-c++-opt.
21123         (Makefile.am): Arrange to compile and run test-search-c++.
21124         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21125         gl_MODULE_INDICATOR.
21126
21127         Tests of module 'math' in C++ mode.
21128         * tests/test-math-c++.cc: New file.
21129         * modules/math-tests (Files): Add it and tests/signature.h.
21130         (Depends-on): Add ansi-c++-opt.
21131         (Makefile.am): Arrange to compile and run test-math-c++.
21132         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21133
21134         Tests of module 'locale' in C++ mode.
21135         * tests/test-locale-c++.cc: New file.
21136         * modules/locale-tests (Files): Add it and tests/signature.h.
21137         (Depends-on): Add ansi-c++-opt.
21138         (Makefile.am): Arrange to compile and run test-locale-c++.
21139         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21140         gl_MODULE_INDICATOR.
21141
21142         Tests of module 'langinfo' in C++ mode.
21143         * tests/test-langinfo-c++.cc: New file.
21144         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21145         (Depends-on): Add ansi-c++-opt.
21146         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21147         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21148         gl_MODULE_INDICATOR.
21149
21150         Tests of module 'iconv-h' in C++ mode.
21151         * tests/test-iconv-h-c++.cc: New file.
21152         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21153         (Depends-on): Add ansi-c++-opt.
21154         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21155
21156         Tests of module 'glob' in C++ mode.
21157         * tests/test-glob-c++.cc: New file.
21158         * modules/glob-tests (Files): Add it.
21159         (Depends-on): Add ansi-c++-opt.
21160         (Makefile.am): Arrange to compile and run test-glob-c++.
21161
21162         Tests of module 'fcntl-h' in C++ mode.
21163         * tests/test-fcntl-h-c++.cc: New file.
21164         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21165         (Depends-on): Add ansi-c++-opt.
21166         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21167         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21168         gl_MODULE_INDICATOR.
21169
21170         Tests of module 'dirent' in C++ mode.
21171         * tests/test-dirent-c++.cc: New file.
21172         * modules/dirent-tests (Files): Add it and tests/signature.h.
21173         (Depends-on): Add ansi-c++-opt.
21174         (Makefile.am): Arrange to compile and run test-dirent-c++.
21175         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21176         gl_MODULE_INDICATOR.
21177
21178         New module 'ansi-c++-opt'.
21179         * modules/ansi-c++-opt: New file.
21180         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21181
21182         Document C++ namespace mode.
21183         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21184
21185         wctype: Avoid #define replacements in C++ mode.
21186         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21187         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21188         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21189         In C++, define a namespaced alias symbol.
21190         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21191         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21192         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21193         rule.
21194
21195         wchar: Avoid #define replacements in C++ mode.
21196         * lib/wchar.in.h: Include c++defs.h.
21197         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21198         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21199         symbol.
21200         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21201         * modules/wchar (Depends-on): Add c++defs.
21202         (Makefile.am): Update wchar.h rule.
21203
21204         unistd: Avoid #define replacements in C++ mode.
21205         * lib/unistd.in.h: Include c++defs.h.
21206         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21207         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21208         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21209         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21210         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21211         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21212         symbol.
21213         (environ): Update.
21214         * modules/unistd (Depends-on): Add c++defs.
21215         (Makefile.am): Update unistd.h rule.
21216
21217         time: Avoid #define replacements in C++ mode.
21218         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21219         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21220         define a namespaced alias symbol.
21221         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21222         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21223         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21224         * modules/time (Depends-on): Add c++defs, warn-on-use.
21225         (Makefile.am): Update time.h rule.
21226         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21227         * modules/nanosleep (configure.ac): Likewise.
21228         * modules/strptime (configure.ac): Likewise.
21229         * modules/timegm (configure.ac): Likewise.
21230
21231         sys_time: Avoid #define replacements in C++ mode.
21232         * lib/sys_time.in.h: Include c++defs.h.
21233         (gettimeofday): In C++, define a namespaced alias symbol.
21234         * modules/sys_time (Depends-on): Add c++defs.
21235         (Makefile.am): Update sys/time.h rule.
21236
21237         sys_stat: Avoid #define replacements in C++ mode.
21238         * lib/sys_stat.in.h: Include c++defs.h.
21239         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21240         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21241         namespaced alias symbol.
21242         In C++, define a namespaced alias symbol.
21243         * modules/sys_stat (Depends-on): Add c++defs.
21244         (Makefile.am): Update sys/stat.h rule.
21245
21246         sys_socket: Avoid #define replacements in C++ mode.
21247         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21248         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21249         definitions also when the system has a <sys/socket.h>.
21250         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21251         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21252         In C++, define a namespaced alias symbol.
21253         * modules/sys_socket (Depends-on): Add c++defs.
21254         (Makefile.am): Update sys/socket.h rule.
21255
21256         sys_select: Avoid #define replacements in C++ mode.
21257         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21258         definitions also when the system has a <sys/select.h>.
21259         (select): In C++, define a namespaced alias symbol.
21260         * modules/sys_select (Depends-on): Add c++defs.
21261         (Makefile.am): Update sys/select.h rule.
21262
21263         sys_ioctl: Avoid #define replacements in C++ mode.
21264         * lib/sys_ioctl.in.h: Include c++defs.h.
21265         (ioctl): In C++, define a namespaced alias symbol.
21266         * modules/sys_ioctl (Depends-on): Add c++defs.
21267         (Makefile.am): Update sys/ioctl.h rule.
21268
21269         string: Avoid #define replacements in C++ mode.
21270         * lib/string.in.h: Include c++defs.h.
21271         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21272         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21273         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21274         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21275         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21276         * modules/string (Depends-on): Add c++defs.
21277         (Makefile.am): Update string.h rule.
21278
21279         stdlib: Avoid #define replacements in C++ mode.
21280         * lib/stdlib.in.h: Include c++defs.h.
21281         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21282         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21283         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21284         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21285         symbol.
21286         * modules/stdlib (Depends-on): Add c++defs.
21287         (Makefile.am): Update stdlib.h rule.
21288
21289         stdio: Avoid #define replacements in C++ mode.
21290         * lib/stdio.in.h: Include c++defs.h.
21291         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21292         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21293         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21294         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21295         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21296         namespaced alias symbol.
21297         * modules/stdio (Depends-on): Add c++defs.
21298         (Makefile.am): Update stdio.h rule.
21299
21300         spawn: Avoid #define replacements in C++ mode.
21301         * lib/spawn.in.h: Include c++defs.h.
21302         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21303         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21304         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21305         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21306         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21307         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21308         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21309         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21310         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21311         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21312         In C++, define a namespaced alias symbol.
21313         * modules/spawn (Depends-on): Add c++defs.
21314         (Makefile.am): Update spawn.h rule.
21315
21316         signal: Avoid #define replacements in C++ mode.
21317         * lib/signal.in.h: Include c++defs.h.
21318         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21319         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21320         namespaced alias symbol.
21321         * modules/signal (Depends-on): Add c++defs.
21322         (Makefile.am): Update signal.h rule.
21323
21324         search: Avoid #define replacements in C++ mode.
21325         * lib/search.in.h: Include c++defs.h.
21326         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21327         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21328         symbol.
21329         * modules/search (Depends-on): Add c++defs.
21330         (Makefile.am): Update search.h rule.
21331
21332         math: Avoid #define replacements in C++ mode.
21333         * lib/math.in.h: Include c++defs.h.
21334         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21335         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21336         trunc, truncl): In C++, define a namespaced alias symbol.
21337         * modules/math (Depends-on): Add c++defs.
21338         (Makefile.am): Update math.h rule.
21339
21340         locale: Avoid #define replacements in C++ mode.
21341         * lib/locale.in.h: Include c++defs.h.
21342         (duplocale): In C++, define a namespaced alias symbol.
21343         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21344         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21345         * modules/locale (Depends-on): Add c++defs.
21346         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21347
21348         langinfo: Avoid #define replacements in C++ mode.
21349         * lib/langinfo.in.h: Include c++defs.h.
21350         (nl_langinfo): In C++, define a namespaced alias symbol.
21351         * modules/langinfo (Depends-on): Add c++defs.
21352         (Makefile.am): Update langinfo.h rule.
21353
21354         iconv-h: Avoid #define replacements in C++ mode.
21355         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21356         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21357         symbol.
21358         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21359         whenever iconv is present.
21360         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21361         (Makefile.am): Update iconv.h rule.
21362
21363         glob: Avoid #define replacements in C++ mode.
21364         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21365         (_gl_glob_errfunc_fn): New type.
21366         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21367         symbol.
21368         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21369         (Makefile.am): Update glob.h rule.
21370
21371         fcntl-h: Avoid #define replacements in C++ mode.
21372         * lib/fcntl.in.h: Include c++defs.h.
21373         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21374         * modules/fcntl-h (Depends-on): Add c++defs.
21375         (Makefile.am): Update fcntl.h rule.
21376
21377         dirent: Avoid #define replacements in C++ mode.
21378         * lib/dirent.in.h: Include c++defs.h.
21379         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21380         namespaced alias symbol.
21381         (dirfd): Update declaration.
21382         * modules/dirent (Depends-on): Add c++defs.
21383         (Makefile.am): Update dirent.h rule.
21384
21385         ctype: Make it usable in C++ code.
21386         * lib/ctype.in.h: Include c++defs.h.
21387         (isblank): Declare as extern "C".
21388         * modules/ctype (Depends-on): Add c++defs.
21389         (Makefile.am): Update ctype.h rule.
21390
21391         New module 'c++defs'.
21392         * modules/c++defs: New file.
21393         * build-aux/c++defs.h: New file.
21394         Reported by John W. Eaton <jwe@gnu.org>.
21395
21396 2010-03-07  Bruno Haible  <bruno@clisp.org>
21397
21398         logb: Provide missing declaration for Cygwin.
21399         * lib/math.in.h (logb): New declaration.
21400         * m4/logb.m4: New file.
21401         * modules/logb (Files): Add m4/logb.m4.
21402         (Depends-on): Add math.
21403         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21404         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21406         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21407         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21408
21409 2010-03-07  Bruno Haible  <bruno@clisp.org>
21410
21411         Fix test-cond link error.
21412         * tests/test-cond.c: Include <stdio.h>.
21413
21414 2010-03-07  Bruno Haible  <bruno@clisp.org>
21415
21416         Fix test-dirent-safer link error.
21417         * modules/dirent-safer-tests (Makefile.am): Define
21418         test_dirent_safer_LDADD.
21419
21420 2010-03-07  Bruno Haible  <bruno@clisp.org>
21421
21422         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21423         among default module list.
21424
21425 2010-03-07  Bruno Haible  <bruno@clisp.org>
21426
21427         Fix link error on platforms with GNU libiconv.
21428         * modules/unistr/u8-strcoll-tests (Makefile): Define
21429         test_u8_strcoll_LDADD.
21430         * modules/unistr/u16-strcoll-tests (Makefile): Define
21431         test_u16_strcoll_LDADD.
21432         * modules/unistr/u32-strcoll-tests (Makefile): Define
21433         test_u32_strcoll_LDADD.
21434
21435 2010-03-07  Bruno Haible  <bruno@clisp.org>
21436
21437         Use POSIX declarations for socket functions.
21438         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21439         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21440         rpl_sendto): Change declaration to match POSIX.
21441         * lib/connect.c (rpl_connect): Likewise.
21442         * lib/accept.c (rpl_accept): Likewise.
21443         * lib/bind.c (rpl_bind): Likewise.
21444         * lib/getpeername.c (rpl_getpeername): Likewise.
21445         * lib/getsockname.c (rpl_getsockname): Likewise.
21446         * lib/recv.c (rpl_recv): Likewise.
21447         * lib/send.c (rpl_send): Likewise.
21448         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21449         * lib/sendto.c (rpl_sendto): Likewise.
21450
21451 2010-03-06  Bruno Haible  <bruno@clisp.org>
21452
21453         Clarify access, euidaccess, faccessat.
21454         * doc/posix-functions/faccessat.texi: Mention security problem under
21455         "Other problems", not "Portability problems".
21456         * doc/posix-functions/access.texi: Likewise. Mention a related security
21457         problem.
21458         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21459         * lib/euidaccess.c: Add comments about platforms.
21460         * lib/unistd.in.h (access, euidaccess): Add warnings.
21461
21462 2010-03-07  Bruno Haible  <bruno@clisp.org>
21463
21464         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21465         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21466         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21467         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21468         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21469         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21470         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21471         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21472         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21473         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21474         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21475         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21476         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21477         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21478         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21479         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21480         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21481         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21482         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21483         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21484         Likewise.
21485         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21486         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21487         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21488         Likewise.
21489         * tests/test-spawn.c (main): Make it work when
21490         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21491
21492 2010-03-07  Bruno Haible  <bruno@clisp.org>
21493
21494         Fix incorrect Makefile.am generation in German locale.
21495         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21496         Execute sed command with character range in C locale.
21497
21498 2010-03-06  Bruno Haible  <bruno@clisp.org>
21499
21500         Tests for module 'iconv-h'.
21501         * modules/iconv-h-tests: New file.
21502         * tests/test-iconv-h.c: New file.
21503
21504         New module 'iconv-h'.
21505         * modules/iconv-h: New file.
21506         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21507         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21508         (configure.ac): Remove gl_ICONV_H.
21509         (Makefile.am): Remove rule for iconv.h.
21510
21511 2010-03-06  Bruno Haible  <bruno@clisp.org>
21512
21513         More consistent naming of *.m4 files.
21514         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21515         * modules/wctype (Files): Update.
21516
21517         More consistent naming of *.m4 files.
21518         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21519         * modules/wchar (Files): Update.
21520
21521 2010-03-06  Jim Meyering  <meyering@redhat.com>
21522
21523         euidaccess: relax license to LGPLv2+
21524         * modules/euidaccess (License): Relax to LGPLv2+.
21525
21526 2010-03-06  Bruno Haible  <bruno@clisp.org>
21527
21528         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21529         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21530         (Makefile.am): Augment lib_SOURCES instead.
21531
21532 2010-03-04  Jim Meyering  <meyering@redhat.com>
21533
21534         utime: remove obsolete module
21535         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21536         unnecessary for years, and has been marked as obsolete for 10 months.
21537         * modules/utime: Remove file.
21538         * lib/utime.c: Remove file.
21539         * m4/utime.m4: Remove file.
21540         * m4/utimes-null.m4: Remove file.
21541         * doc/posix-functions/utime.texi (utime): Remove reference to
21542         the module.  Move the sole "fixed by gnulib" item into the
21543         "problems not fixed by Gnulib" list.
21544         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21545
21546 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21547
21548         * modules/exit (License): Relax license to LGPLv2+.
21549         (Status): Mark as obsolete.
21550         * NEWS: Mention deprecated 'exit' module.
21551         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21552         of now obsolete 'exit'.
21553
21554 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21555
21556         fts-lgpl: remove unused module
21557         * modules/fts-lgpl: Remove.
21558         * MODULES.html.sh (func_all_modules): Adjust.
21559         * check-module (find_included_lib_files): Adjust.
21560         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21561
21562 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21563
21564         copy-acl: enhance Solaris ACL error handling
21565         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21566         * lib/set-mode-acl.c (qset_acl): Likewise.
21567
21568 2010-03-02  Bruno Haible  <bruno@clisp.org>
21569
21570         spawn: Don't override the system defined values on FreeBSD 8.
21571         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21572         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21573         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21574         if HAVE_POSIX_SPAWN is 1.
21575         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21576
21577 2010-03-01  Bruno Haible  <bruno@clisp.org>
21578
21579         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21580         regarding Automake.
21581
21582 2010-02-25  Bruno Haible  <bruno@clisp.org>
21583
21584         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21585         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21586         setting, not afterwards.
21587         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21588
21589 2010-02-24  Eric Blake  <eblake@redhat.com>
21590
21591         bootstrap, git-version-gen: use timestamp
21592         * build-aux/git-version-gen (scriptversion): Force UTC.
21593         * build-aux/bootstrap (scriptversion): New variable.
21594
21595         bootstrap: allow older git
21596         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21597         older than 1.6.4.  Requested by the libvirt project.
21598
21599 2010-02-23  Eric Blake  <eblake@redhat.com>
21600
21601         warn-on-use: work with old autoconf
21602         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21603         AS_VAR semantics of autoconf 2.60.
21604         Reported by Bruno Haible.
21605
21606         bootstrap: improve some comments
21607         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21608         clarification comments.
21609
21610         gettimeofday: provide correct function
21611         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21612         when replacement is declared, otherwise provide gettimeofday.
21613         Reported by Michael Goffioul.
21614
21615 2010-02-23  Jim Meyering  <meyering@redhat.com>
21616
21617         lib-ignore: relax license to "unlimited", not LGPLv2+
21618         * modules/lib-ignore (License): Relax to "unlimited".
21619
21620 2010-02-23  Jim Meyering  <meyering@redhat.com>
21621
21622         lib-ignore: relax license to LGPLv2+
21623         * modules/lib-ignore (License): Relax to LGPLv2+.
21624
21625 2010-02-22  Eric Blake  <eblake@redhat.com>
21626
21627         lseek: avoid bash 3.2 broken pipe bug
21628         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21629         warning from bash 3.2.
21630         Reported by Ben Pfaff, with analysis from Bruno Haible.
21631
21632         bootstrap: support non-FSF copyright holder
21633         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21634         bootstrap.conf override of COPYRIGHT_HOLDER.
21635         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21636
21637         bootstrap: interoperate with gettext 0.14.1
21638         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21639
21640         bootstrap: allow for alternate submodule location
21641         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21642         hardcoding submodule location.
21643         (gnulib_mk): Allow direct use of Makefile.am.
21644
21645         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21646         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21647         rather than reconfiguring where the submodule points.
21648
21649         gettimeofday: restore support for platforms that lack function
21650         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21651         replacement if function is missing.
21652         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21653         * modules/sys_time (Makefile.am): Substitute it.
21654         * lib/sys_time.in.h (gettimeofday): Check it.
21655         Reported by Michael Goffioul.
21656
21657 2010-02-21  Bruno Haible  <bruno@clisp.org>
21658
21659         * lib/stdio.in.h (obstack_printf): Fix typo.
21660
21661 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21662
21663         vc-list-files: use bzr ls's -R option
21664         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21665         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21666
21667 2010-02-21  Jim Meyering  <meyering@redhat.com>
21668
21669         init.sh: fix EXEEXT shims to work also for names like test-prog
21670         * tests/init.sh: Re-exec a better shell, when needed.
21671         If the current shell lacks support for posix $(...), an init.sh-using
21672         test will now try to find a shell that supports that.  If EXEEXT is
21673         nonempty, we also require support for hyphen-in-alias-name and shell
21674         substitutions like ${var#glob}.  Failure to find such a shell results
21675         in a skipped test.
21676
21677 2010-02-21  Bruno Haible  <bruno@clisp.org>
21678
21679         Really work around around "broken pipe" error message from bash 3.2.
21680         * gnulib-tool (func_reset_sigpipe): Remove function.
21681         (echo): In bash 3.2, define to a function that uses printf.
21682         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21683
21684 2010-02-20  Bruno Haible  <bruno@clisp.org>
21685
21686         Restore support for automake 1.9.6 with autoconf 2.61.
21687         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21688         Reported by James Youngman <jay@gnu.org>.
21689
21690 2010-02-20  Bruno Haible  <bruno@clisp.org>
21691
21692         Improve *printf warning condition.
21693         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21694         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21695         and the function is overridden due to SIGPIPE emulation.
21696
21697 2010-02-20  Bruno Haible  <bruno@clisp.org>
21698
21699         * lib/stdio.in.h: Tweak comments.
21700
21701 2010-02-19  Bruno Haible  <bruno@clisp.org>
21702
21703         Make it easier to find modules. New gnulib-tool option '--find'.
21704         * gnulib-tool: New option --find.
21705         (func_usage): Document it.
21706         (func_sanitize_modulelist): New function, extracted from
21707         func_all_modules.
21708         (func_all_modules): Invoke it.
21709         * doc/gnulib-tool.texi (Which modules?): New node.
21710
21711 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21712
21713         * lib/sys_select.in.h: Provide select replacement even if
21714         sys/select.h exists on a system, for Interix.
21715
21716 2010-02-18  Jim Meyering  <meyering@redhat.com>
21717
21718         init.sh: don't use $(...) just yet
21719         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21720         to accommodate e.g., Solaris' /bin/sh.
21721
21722 2010-02-17  Bruno Haible  <bruno@clisp.org>
21723
21724         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21725         Reported by Ludovic Courtès <ludo@gnu.org>.
21726
21727 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21728
21729         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21730         linking with -lintl.
21731
21732 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21733
21734         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21735         if not provided by the system's netdb.h.  Reported by
21736         ludo@gnu.org (Ludovic Courtès).
21737
21738 2010-02-15  Jim Meyering  <meyering@redhat.com>
21739
21740         init.sh: improve portability and efficiency
21741         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21742         "dummy" in a for loop.
21743         Use '!', not '^' to select the complement of a character set used
21744         in a "case" statement.
21745         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21746         Suggestions from Eric Blake.
21747
21748         init.sh: automatically accommodate programs with the .exe suffix
21749         Automatically arrange for an invocation of "prog" to execute the
21750         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21751         may use the simpler "prog", yet still work when built on a system
21752         that requires specifying the added suffix.
21753         Do this by constructing a function named "prog" that invokes
21754         "prog.exe" for each .exe file in selected directories.
21755         * tests/init.sh (find_exe_basenames_): New function.
21756         (create_exe_shim_functions_): New function.
21757         (path_prepend_): Use it.
21758
21759         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21760         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21761         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21762
21763 2010-02-14  Jim Meyering  <meyering@redhat.com>
21764
21765         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21766         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21767         (sc_prohibit_hash_pjw_without_use): New rule.
21768
21769         maint.mk: allow the default upload destination dir to be overridden
21770         * top/maint.mk (upload_dest_dir_): Define with a default that
21771         preserves the status quo.
21772         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21773         Reported by Peter Simons.
21774
21775         maint.mk: prohibit inclusion of "hash.h" without_use
21776         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21777
21778 2010-02-10  Jim Meyering  <meyering@redhat.com>
21779
21780         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21781         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21782
21783 2010-02-09  Eric Blake  <ebb9@byu.net>
21784         and Bruno Haible  <bruno@clisp.org>
21785
21786         obstack-printf-posix: ensure declaration
21787         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21788         extracted from gl_FUNC_OBSTACK_PRINTF.
21789         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21790         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21791         Likewise.
21792         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21793         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21794         0.
21795
21796 2010-02-08  Bruno Haible  <bruno@clisp.org>
21797
21798         gnulib-tool: Fix typo in 2010-02-07 commit.
21799         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21800         Reported by Eric Blake.
21801
21802 2010-02-07  Bruno Haible  <bruno@clisp.org>
21803
21804         gnulib-tool: Fix up caching patches.
21805         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21806         option --no-cache. Use associative arrays when supported by the shell.
21807         (sed_comments): New variable.
21808         (modcache): Renamed from do_cache.
21809         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21810         abbreviate unnecessarily.
21811         (have_associative): New variable.
21812         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21813         way also for ksh and zsh.
21814         (func_init_sed_convert_to_cache_statements): New function, extracted
21815         from func_cache_lookup_module. Add support for associative arrays.
21816         Don't set the c_MODULE_cached variable here. Ignore all lines before
21817         the first field header. Remove only the final newline, not all trailing
21818         newlines. Support empty fields correctly. Limit the use of 'eval' to
21819         assignments.
21820         (func_get_description, func_get_status, func_get_notice,
21821         func_get_applicability, func_get_filelist, func_get_dependencies,
21822         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21823         func_get_automake_snippet, func_get_include_directive,
21824         func_get_link_directive, func_get_license, func_get_maintainer):
21825         Update documentation. List the unoptimized code first. Add support for
21826         associative arrays. Limit the use of 'eval' to assignments.
21827         (func_get_applicability): Undo stylistic pessimisations.
21828         (func_get_automake_snippet, func_get_include_directive): Reduce code
21829         duplication.
21830         (func_modules_transitive_closure, func_modules_add_dummy,
21831         func_modules_notice, func_modules_to_filelist, func_add_file,
21832         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21833         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21834         func_create_testdir, func_create_megatestdir): Update documentation.
21835
21836 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21837
21838         * gnulib-tool (func_cache_lookup_module): Store the module name
21839         belonging to the cache variable; error out if two different
21840         module names map to the same cache variable name.
21841
21842 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21843
21844         gnulib-tool: Make caching optional.
21845         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21846         Update matching short versions of --no-changelog.
21847         (func_usage): Update.
21848         (sed_extract_cache_prog): Renamed from ...
21849         (sed_extract_prog): ... this; revert to old extraction script.
21850         (func_get_description, func_get_status)
21851         (func_get_notice, func_get_applicability, func_get_filelist)
21852         (func_get_dependencies, func_get_autoconf_early_snippet)
21853         (func_get_autoconf_snippet, func_get_automake_snippet)
21854         (func_get_include_directive, func_get_link_directive)
21855         (func_get_license, func_get_maintainer): If $do_cache is false,
21856         use old, non-caching extraction scripts.
21857         Suggestion by Bruno Haible.
21858
21859 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21860
21861         gnulib-tool: cache module metainformation.
21862         * gnulib-tool (sed_extract_prog): Match newline before each
21863         header, and rewrite header to a shell variable suffix.
21864         (func_cache_var, func_cache_lookup_module): New functions,
21865         to turn a module name into a cache variable prefix, and to
21866         look up and cache module metainformation.
21867         (func_get_description, func_get_status)
21868         (func_get_notice, func_get_applicability, func_get_filelist)
21869         (func_get_dependencies, func_get_autoconf_early_snippet)
21870         (func_get_autoconf_snippet, func_get_automake_snippet)
21871         (func_get_include_directive, func_get_link_directive)
21872         (func_get_license, func_get_maintainer): Use
21873         func_cache_lookup_module.
21874
21875 2010-02-07  Bruno Haible  <bruno@clisp.org>
21876
21877         fnctl: Fix missing dependency.
21878         * modules/fcntl (Depends-on): Add getdtablesize.
21879         Reported by John W. Eaton <jwe@gnu.org>.
21880
21881 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21882
21883         Argp: fix recognition of short alias options.
21884
21885         * lib/argp-parse.c (convert_options): Fix improper use of
21886         `|' between character values.
21887         * tests/test-argp.c (group1_option): New alias option
21888         --read (-r).
21889         (group1_parser): Special handling for 'r'.
21890         (test15): New test case.
21891         (test_fun): Add test15.
21892         * tests/test-argp-2.sh: Update expected --help and --usage
21893         outputs.
21894
21895 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21896
21897         * tests/test-argp.c: Fix indentation.
21898
21899 2010-02-04  Eric Blake  <ebb9@byu.net>
21900
21901         gettimeofday: expose type of second argument
21902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21903         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21904         * tests/test-gettimeofday.c: Use it to silence warning.
21905         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21906         the issue.
21907
21908 2010-02-03  Jim Meyering  <meyering@redhat.com>
21909
21910         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21911         * lib/regcomp.c (TYPE_SIGNED): Define.
21912         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21913
21914         regcomp.c: avoid a new -Wshadow warning
21915         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21916
21917 2010-02-01  Jim Meyering  <meyering@redhat.com>
21918
21919         removing useless parentheses in cpp #define directives
21920         For motivation, see commit c0221df4, "define STREQ(a,b)
21921         consistently, removing useless parentheses"
21922         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21923         * lib/mountlist.c (MNT_IGNORE): Likewise.
21924         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21925
21926 2010-02-01  Eric Blake  <ebb9@byu.net>
21927
21928         sys_time: use link-warning
21929         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21930         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21931         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21932         * modules/sys_time (Depends-on): Add warn-on-use.
21933         (Makefile.am): Always build replacement.
21934         (configure.ac): Update substitutions.
21935         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21936         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21937         bother with SYS_TIME_H.
21938         * modules/gettimeofday (configure.ac): Declare indicator.
21939         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21940         in use.
21941
21942         closein-tests: silence compiler warning
21943         * tests/test-closein.c (main): Ignore fread result.
21944         * modules/closein-tests (Depends-on): Add ignore-value.
21945
21946         tests: silence warning about system return
21947         * tests/test-areadlink-with-size.c (main): Ignore system result.
21948         * tests/test-areadlink.c (main): Likewise.
21949         * tests/test-areadlinkat-with-size.c (main): Likewise.
21950         * tests/test-areadlinkat.c (main): Likewise.
21951         * tests/test-canonicalize-lgpl.c (main): Likewise.
21952         * tests/test-canonicalize.c (main): Likewise.
21953         * tests/test-chown.c (main): Likewise.
21954         * tests/test-fchownat.c (main): Likewise.
21955         * tests/test-fdutimensat.c (main): Likewise.
21956         * tests/test-fstatat.c (main): Likewise.
21957         * tests/test-futimens.c (main): Likewise.
21958         * tests/test-lchown.c (main): Likewise.
21959         * tests/test-link.c (main): Likewise.
21960         * tests/test-linkat.c (main): Likewise.
21961         * tests/test-lstat.c (main): Likewise.
21962         * tests/test-mkdir.c (main): Likewise.
21963         * tests/test-mkdirat.c (main): Likewise.
21964         * tests/test-mkfifo.c (main): Likewise.
21965         * tests/test-mkfifoat.c (main): Likewise.
21966         * tests/test-mknod.c (main): Likewise.
21967         * tests/test-readlink.c (main): Likewise.
21968         * tests/test-remove.c (main): Likewise.
21969         * tests/test-rename.c (main): Likewise.
21970         * tests/test-renameat.c (main): Likewise.
21971         * tests/test-rmdir.c (main): Likewise.
21972         * tests/test-symlink.c (main): Likewise.
21973         * tests/test-symlinkat.c (main): Likewise.
21974         * tests/test-unlink.c (main): Likewise.
21975         * tests/test-unlinkat.c (main): Likewise.
21976         * tests/test-utimens.c (main): Likewise.
21977         * tests/test-utimensat.c (main): Likewise.
21978         * modules/areadlink-tests (Depends-on): Add ignore-value.
21979         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21980         * modules/areadlinkat-tests (Depends-on): Likewise.
21981         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21982         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21983         * modules/canonicalize-tests (Depends-on): Likewise.
21984         * modules/chown-tests (Depends-on): Likewise.
21985         * modules/fdutimensat-tests (Depends-on): Likewise.
21986         * modules/futimens-tests (Depends-on): Likewise.
21987         * modules/lchown-tests (Depends-on): Likewise.
21988         * modules/link-tests (Depends-on): Likewise.
21989         * modules/linkat-tests (Depends-on): Likewise.
21990         * modules/lstat-tests (Depends-on): Likewise.
21991         * modules/mkdir-tests (Depends-on): Likewise.
21992         * modules/mkfifo-tests (Depends-on): Likewise.
21993         * modules/mkfifoat-tests (Depends-on): Likewise.
21994         * modules/mknod-tests (Depends-on): Likewise.
21995         * modules/openat-tests (Depends-on): Likewise.
21996         * modules/readlink-tests (Depends-on): Likewise.
21997         * modules/remove-tests (Depends-on): Likewise.
21998         * modules/rename-tests (Depends-on): Likewise.
21999         * modules/renameat-tests (Depends-on): Likewise.
22000         * modules/rmdir-tests (Depends-on): Likewise.
22001         * modules/symlink-tests (Depends-on): Likewise.
22002         * modules/symlinkat-tests (Depends-on): Likewise.
22003         * modules/unlink-tests (Depends-on): Likewise.
22004         * modules/utimens-tests (Depends-on): Likewise.
22005         * modules/utimensat-tests (Depends-on): Likewise.
22006
22007 2010-01-31  Bruno Haible  <bruno@clisp.org>
22008
22009         Perform the same test for many <math.h> functions.
22010         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22011         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22012         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22013         of gl_MATHFUNC.
22014         * modules/acos (configure.ac): Likewise.
22015         * modules/asin (configure.ac): Likewise.
22016         * modules/atan (configure.ac): Likewise.
22017         * modules/atan2 (configure.ac): Likewise.
22018         * modules/cbrt (configure.ac): Likewise.
22019         * modules/copysign (configure.ac): Likewise.
22020         * modules/cos (configure.ac): Likewise.
22021         * modules/cosh (configure.ac): Likewise.
22022         * modules/erf (configure.ac): Likewise.
22023         * modules/erfc (configure.ac): Likewise.
22024         * modules/exp (configure.ac): Likewise.
22025         * modules/fmod (configure.ac): Likewise.
22026         * modules/hypot (configure.ac): Likewise.
22027         * modules/j0 (configure.ac): Likewise.
22028         * modules/j1 (configure.ac): Likewise.
22029         * modules/jn (configure.ac): Likewise.
22030         * modules/lgamma (configure.ac): Likewise.
22031         * modules/log (configure.ac): Likewise.
22032         * modules/log10 (configure.ac): Likewise.
22033         * modules/log1p (configure.ac): Likewise.
22034         * modules/pow (configure.ac): Likewise.
22035         * modules/remainder (configure.ac): Likewise.
22036         * modules/sin (configure.ac): Likewise.
22037         * modules/sinh (configure.ac): Likewise.
22038         * modules/tan (configure.ac): Likewise.
22039         * modules/tanh (configure.ac): Likewise.
22040         * modules/y0 (configure.ac): Likewise.
22041         * modules/y1 (configure.ac): Likewise.
22042         * modules/yn (configure.ac): Likewise.
22043         Suggested by Paolo Bonzini.
22044
22045 2010-01-31  Bruno Haible  <bruno@clisp.org>
22046
22047         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22048
22049 2010-01-31  Bruno Haible  <bruno@clisp.org>
22050
22051         Work around getdelim() bug on FreeBSD 8.0.
22052         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22053         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22054         not work.
22055         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22056         is 1.
22057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22058         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22059         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22060         a non-zero size.
22061         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22062
22063 2010-01-31  Bruno Haible  <bruno@clisp.org>
22064
22065         Work around getline() bug on FreeBSD 8.0.
22066         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22067         and a non-zero size.
22068         * tests/test-getline.c (main): Likewise.
22069         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22070         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22071
22072 2010-01-28  Eric Blake  <ebb9@byu.net>
22073
22074         regex: fix build failure
22075         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22076         platforms.
22077
22078 2010-01-28  Jim Meyering  <meyering@redhat.com>
22079
22080         regex: do not ignore memory allocation failure
22081         * lib/regex_internal.c (create_cd_newstate): Detect
22082         re_node_set_init_copy failure.   Extracted from glibc commit
22083         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22084
22085         regex: sync more white-space changes from libc
22086         * lib/regex_internal.c: White-space only changes.
22087         * lib/regexec.c: Likewise.
22088
22089         regex: add many uses of __attribute_warn_unused_result__
22090         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22091         * lib/regexec.c: Likewise.
22092         Extracted from a messy glibc commit.
22093
22094         regcomp.c: spelling and merge-artifact from glibc
22095         * lib/regcomp.c: Merge remainder of glibc's
22096         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22097
22098         regcomp.c: sync white-space changes from glibc
22099         * lib/regcomp.c: Merge to accommodate white space
22100         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22101
22102         regcomp.c: do not ignore internal return values
22103         * lib/regcomp.c: Do not ignore internal return values.
22104         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22105         but without its white-space changes and spelling fixes.
22106
22107         regex_internal.h: define __attribute_warn_unused_result__
22108         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22109
22110         maint: add a syntax-check rule to check for vulnerable Makefile.in
22111         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22112
22113 2010-01-27  Jim Meyering  <meyering@redhat.com>
22114
22115         ncftpput-ftp: clean up spaces
22116         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22117         Remove trailing blanks.
22118
22119 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22120
22121         * build-aux/git-version-gen: Fix copyright statement.
22122         * build-aux/gnupload: Likewise.
22123         * tests/test-arcfour.c: Likewise.
22124         * tests/test-arctwo.c: Likewise.
22125         * tests/test-count-one-bits.c: Likewise.
22126         * tests/test-crc.c: Likewise.
22127         * tests/test-des.c: Likewise.
22128         * tests/test-gc-arcfour.c: Likewise.
22129         * tests/test-gc-arctwo.c: Likewise.
22130         * tests/test-gc-des.c: Likewise.
22131         * tests/test-gc-hmac-md5.c: Likewise.
22132         * tests/test-gc-hmac-sha1.c: Likewise.
22133         * tests/test-gc-md2.c: Likewise.
22134         * tests/test-gc-md4.c: Likewise.
22135         * tests/test-gc-md5.c: Likewise.
22136         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22137         * tests/test-gc-rijndael.c: Likewise.
22138         * tests/test-gc-sha1.c: Likewise.
22139         * tests/test-gc.c: Likewise.
22140         * tests/test-gethostname.c: Likewise.
22141         * tests/test-gettimeofday.c: Likewise.
22142         * tests/test-hash.c: Likewise.
22143         * tests/test-hmac-md5.c: Likewise.
22144         * tests/test-hmac-sha1.c: Likewise.
22145         * tests/test-md2.c: Likewise.
22146         * tests/test-md4.c: Likewise.
22147         * tests/test-md5.c: Likewise.
22148         * tests/test-memchr.c: Likewise.
22149         * tests/test-memchr2.c: Likewise.
22150         * tests/test-memcmp.c: Likewise.
22151         * tests/test-memmem.c: Likewise.
22152         * tests/test-memrchr.c: Likewise.
22153         * tests/test-rawmemchr.c: Likewise.
22154         * tests/test-read-file.c: Likewise.
22155         * tests/test-rijndael.c: Likewise.
22156         * tests/test-sockets.c: Likewise.
22157         * tests/test-strchrnul.c: Likewise.
22158         * tests/test-strstr.c: Likewise.
22159         * tests/test-strtod.c: Likewise.
22160         * build-aux/ncftpput-ftp: Likewise.
22161
22162 2010-01-26  Eric Blake  <ebb9@byu.net>
22163
22164         ignore-value: update recommended header name
22165         * modules/ignore-value (Include): Only use <> for headers that
22166         exist in glibc.
22167
22168 2010-01-26  Jim Meyering  <meyering@redhat.com>
22169
22170         test-userspec.c: avoid compiler warnings
22171         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22172         and "initialization discards qualifiers..." warnings.
22173         Put the first "uid" in its own scope, and make char* members "const".
22174
22175 2010-01-25  Bruno Haible  <bruno@clisp.org>
22176
22177         gnulib-tool: Make warning diagnostics consistent.
22178         * gnulib-tool (func_warning): New function.
22179         Use it everywhere where gnulib-tool produces output to stderr and it is
22180         not a fatal error.
22181
22182 2010-01-25  Bruno Haible  <bruno@clisp.org>
22183
22184         Fix test dependencies.
22185         * modules/xstrtol-tests (Depends-on): Add inttypes.
22186         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22187
22188 2010-01-25 Pádraig Brady <P@draigBrady.com>
22189
22190         syntax-check: detect incorrect boolean macro values in config.h
22191         * modules/maintainer-makefile (configure.ac): Parameterize the location
22192         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22193         The logic is from Eric Blake and the location indicated by Jim Meyering.
22194         Note the more natural CONFIG_HEADER name is prohibited by automake
22195         for backwards compatibility reasons.
22196         * top/maint.mk (sc_Wundef_boolean): New rule.
22197
22198 2010-01-25  Jim Meyering  <meyering@redhat.com>
22199
22200         bootstrap: detect MacOS 10.6's shasum, too
22201         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22202         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22203
22204 2010-01-23  Jim Meyering  <meyering@redhat.com>
22205
22206         xstrtoll: new module
22207         * modules/xstrtoll: New file.
22208         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22209         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22210         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22211         ./configure fails if you use this module and lack "long long".
22212         * modules/xstrtoll-tests: New module.
22213         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22214         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22215         new init.sh-based test framework.
22216
22217 2010-01-24  Bruno Haible  <bruno@clisp.org>
22218
22219         Tests for module 'yn'.
22220         * modules/yn-tests: New file.
22221         * tests/test-yn.c: New file.
22222
22223         Tests for module 'y1'.
22224         * modules/y1-tests: New file.
22225         * tests/test-y1.c: New file.
22226
22227         Tests for module 'y0'.
22228         * modules/y0-tests: New file.
22229         * tests/test-y0.c: New file.
22230
22231         Tests for module 'tanh'.
22232         * modules/tanh-tests: New file.
22233         * tests/test-tanh.c: New file.
22234
22235         Tests for module 'tan'.
22236         * modules/tan-tests: New file.
22237         * tests/test-tan.c: New file.
22238
22239         Tests for module 'sqrt'.
22240         * modules/sqrt-tests: New file.
22241         * tests/test-sqrt.c: New file.
22242
22243         Tests for module 'sinh'.
22244         * modules/sinh-tests: New file.
22245         * tests/test-sinh.c: New file.
22246
22247         Tests for module 'sin'.
22248         * modules/sin-tests: New file.
22249         * tests/test-sin.c: New file.
22250
22251         Tests for module 'rint'.
22252         * modules/rint-tests: New file.
22253         * tests/test-rint.c: New file.
22254
22255         Tests for module 'remainder'.
22256         * modules/remainder-tests: New file.
22257         * tests/test-remainder.c: New file.
22258
22259         Tests for module 'pow'.
22260         * modules/pow-tests: New file.
22261         * tests/test-pow.c: New file.
22262
22263         Tests for module 'nextafter'.
22264         * modules/nextafter-tests: New file.
22265         * tests/test-nextafter.c: New file.
22266
22267         Tests for module 'modf'.
22268         * modules/modf-tests: New file.
22269         * tests/test-modf.c: New file.
22270
22271         Tests for module 'logb'.
22272         * modules/logb-tests: New file.
22273         * tests/test-logb.c: New file.
22274
22275         Tests for module 'log1p'.
22276         * modules/log1p-tests: New file.
22277         * tests/test-log1p.c: New file.
22278
22279         Tests for module 'log10'.
22280         * modules/log10-tests: New file.
22281         * tests/test-log10.c: New file.
22282
22283         Tests for module 'log'.
22284         * modules/log-tests: New file.
22285         * tests/test-log.c: New file.
22286
22287         Tests for module 'lgamma'.
22288         * modules/lgamma-tests: New file.
22289         * tests/test-lgamma.c: New file.
22290
22291         Tests for module 'ldexp'.
22292         * modules/ldexp-tests: New file.
22293         * tests/test-ldexp.c: New file.
22294
22295         Tests for module 'jn'.
22296         * modules/jn-tests: New file.
22297         * tests/test-jn.c: New file.
22298
22299         Tests for module 'j1'.
22300         * modules/j1-tests: New file.
22301         * tests/test-j1.c: New file.
22302
22303         Tests for module 'j0'.
22304         * modules/j0-tests: New file.
22305         * tests/test-j0.c: New file.
22306
22307         Tests for module 'hypot'.
22308         * modules/hypot-tests: New file.
22309         * tests/test-hypot.c: New file.
22310
22311         Tests for module 'fmod'.
22312         * modules/fmod-tests: New file.
22313         * tests/test-fmod.c: New file.
22314
22315         Tests for module 'fabs'.
22316         * modules/fabs-tests: New file.
22317         * tests/test-fabs.c: New file.
22318
22319         Tests for module 'exp'.
22320         * modules/exp-tests: New file.
22321         * tests/test-exp.c: New file.
22322
22323         Tests for module 'erfc'.
22324         * modules/erfc-tests: New file.
22325         * tests/test-erfc.c: New file.
22326
22327         Tests for module 'erf'.
22328         * modules/erf-tests: New file.
22329         * tests/test-erf.c: New file.
22330
22331         Tests for module 'cosh'.
22332         * modules/cosh-tests: New file.
22333         * tests/test-cosh.c: New file.
22334
22335         Tests for module 'cos'.
22336         * modules/cos-tests: New file.
22337         * tests/test-cos.c: New file.
22338
22339         Tests for module 'copysign'.
22340         * modules/copysign-tests: New file.
22341         * tests/test-copysign.c: New file.
22342
22343         Tests for module 'cbrt'.
22344         * modules/cbrt-tests: New file.
22345         * tests/test-cbrt.c: New file.
22346
22347         Tests for module 'atan2'.
22348         * modules/atan2-tests: New file.
22349         * tests/test-atan2.c: New file.
22350
22351         Tests for module 'atan'.
22352         * modules/atan-tests: New file.
22353         * tests/test-atan.c: New file.
22354
22355         Tests for module 'asin'.
22356         * modules/asin-tests: New file.
22357         * tests/test-asin.c: New file.
22358
22359         Tests for module 'acos'.
22360         * modules/acos-tests: New file.
22361         * tests/test-acos.c: New file.
22362
22363 2010-01-24  Bruno Haible  <bruno@clisp.org>
22364
22365         Fix tests for common <math.h> functions.
22366         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22367         code snippet that references the function pointer, rather than merely
22368         calling the function. Substitute the FUNC_LIBM variable.
22369         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22370         * modules/acos (configure.ac): Likewise.
22371         * modules/asin (configure.ac): Likewise.
22372         * modules/atan (configure.ac): Likewise.
22373         * modules/atan2 (configure.ac): Likewise.
22374         * modules/cbrt (configure.ac): Likewise.
22375         * modules/copysign (configure.ac): Likewise.
22376         * modules/cos (configure.ac): Likewise.
22377         * modules/cosh (configure.ac): Likewise.
22378         * modules/erf (configure.ac): Likewise.
22379         * modules/erfc (configure.ac): Likewise.
22380         * modules/exp (configure.ac): Likewise.
22381         * modules/fabs (configure.ac): Likewise.
22382         * modules/fmod (configure.ac): Likewise.
22383         * modules/hypot (configure.ac): Likewise.
22384         * modules/j0 (configure.ac): Likewise.
22385         * modules/j1 (configure.ac): Likewise.
22386         * modules/jn (configure.ac): Likewise.
22387         * modules/ldexp (configure.ac): Likewise.
22388         * modules/lgamma (configure.ac): Likewise.
22389         * modules/log (configure.ac): Likewise.
22390         * modules/log10 (configure.ac): Likewise.
22391         * modules/log1p (configure.ac): Likewise.
22392         * modules/logb (configure.ac): Likewise.
22393         * modules/modf (configure.ac): Likewise.
22394         * modules/nextafter (configure.ac): Likewise.
22395         * modules/pow (configure.ac): Likewise.
22396         * modules/remainder (configure.ac): Likewise.
22397         * modules/rint (configure.ac): Likewise.
22398         * modules/sin (configure.ac): Likewise.
22399         * modules/sinh (configure.ac): Likewise.
22400         * modules/tan (configure.ac): Likewise.
22401         * modules/tanh (configure.ac): Likewise.
22402         * modules/y0 (configure.ac): Likewise.
22403         * modules/y1 (configure.ac): Likewise.
22404         * modules/yn (configure.ac): Likewise.
22405
22406 2010-01-24  Bruno Haible  <bruno@clisp.org>
22407
22408         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22409         * tests/test-acosl.c (x): New variable.
22410         (main): Store argument in x and fetch it from x.
22411         * tests/test-asinl.c (x): New variable.
22412         (main): Store argument in x and fetch it from x.
22413         * tests/test-atanl.c (x): New variable.
22414         (main): Store argument in x and fetch it from x.
22415         * tests/test-cosl.c (x): New variable.
22416         (main): Store argument in x and fetch it from x.
22417         * tests/test-expl.c (x): New variable.
22418         (main): Store argument in x and fetch it from x.
22419         * tests/test-logl.c (x): New variable.
22420         (main): Store argument in x and fetch it from x.
22421         * tests/test-sinl.c (x): New variable.
22422         (main): Store argument in x and fetch it from x.
22423         * tests/test-sqrtl.c (x): New variable.
22424         (main): Store argument in x and fetch it from x.
22425         * tests/test-tanl.c (x): New variable.
22426         (main): Store argument in x and fetch it from x.
22427
22428 2010-01-24  Bruno Haible  <bruno@clisp.org>
22429
22430         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22431         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22432         assignments to the initial TESTS_ENVIRONMENT.
22433         * doc/gnulib.texi (Unit test modules): Document it.
22434         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22435         TESTS_ENVIRONMENT.
22436         * modules/btowc-tests (Makefile.am): Likewise.
22437         * modules/c-stack-tests (Makefile.am): Likewise.
22438         * modules/c-strcase-tests (Makefile.am): Likewise.
22439         * modules/copy-file-tests (Makefile.am): Likewise.
22440         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22441         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22442         * modules/mbrtowc-tests (Makefile.am): Likewise.
22443         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22444         * modules/mbscasestr-tests (Makefile.am): Likewise.
22445         * modules/mbschr-tests (Makefile.am): Likewise.
22446         * modules/mbscspn-tests (Makefile.am): Likewise.
22447         * modules/mbsinit-tests (Makefile.am): Likewise.
22448         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22449         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22450         * modules/mbspbrk-tests (Makefile.am): Likewise.
22451         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22452         * modules/mbsrchr-tests (Makefile.am): Likewise.
22453         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22454         * modules/mbsspn-tests (Makefile.am): Likewise.
22455         * modules/mbsstr-tests (Makefile.am): Likewise.
22456         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22457         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22458         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22459         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22460         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22461         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22462         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22463         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22464         * modules/wcrtomb-tests (Makefile.am): Likewise.
22465         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22466         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22467         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22468         assignments from TESTS_ENVIRONMENT.
22469         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22470         augmentation.
22471         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22472         * modules/atexit-tests (Makefile.am): Likewise.
22473         * modules/binary-io-tests (Makefile.am): Likewise.
22474         * modules/closein-tests (Makefile.am): Likewise.
22475         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22476         * modules/exclude-tests (Makefile.am): Likewise.
22477         * modules/fflush-tests (Makefile.am): Likewise.
22478         * modules/fpending-tests (Makefile.am): Likewise.
22479         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22480         * modules/freadahead-tests (Makefile.am): Likewise.
22481         * modules/freadptr-tests (Makefile.am): Likewise.
22482         * modules/freadseek-tests (Makefile.am): Likewise.
22483         * modules/fseek-tests (Makefile.am): Likewise.
22484         * modules/fseeko-tests (Makefile.am): Likewise.
22485         * modules/ftell-tests (Makefile.am): Likewise.
22486         * modules/ftello-tests (Makefile.am): Likewise.
22487         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22488         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22489         * modules/lseek-tests (Makefile.am): Likewise.
22490         * modules/parse-duration-tests (Makefile.am): Likewise.
22491         * modules/perror-tests (Makefile.am): Likewise.
22492         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22493         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22494         * modules/pipe-tests (Makefile.am): Likewise.
22495         * modules/pread-tests (Makefile.am): Likewise.
22496         * modules/printf-posix-tests (Makefile.am): Likewise.
22497         * modules/select-tests (Makefile.am): Likewise.
22498         * modules/sigpipe-tests (Makefile.am): Likewise.
22499         * modules/tsearch-tests (Makefile.am): Likewise.
22500         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22501         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22502         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22503         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22504         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22505         * modules/version-etc-tests (Makefile.am): Likewise.
22506         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22507         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22508         * modules/xalloc-die-tests (Makefile.am): Likewise.
22509         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22510         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22511         * modules/xstrtol-tests (Makefile.am): Likewise.
22512         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22513         * modules/yesno-tests (Makefile.am): Likewise.
22514         Suggested by Jim Meyering.
22515
22516 2010-01-24  Bruno Haible  <bruno@clisp.org>
22517
22518         More documentation.
22519         * doc/gnulib.texi (Writing modules): New chapter.
22520         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22521         the new chapter.
22522
22523 2010-01-24  Jim Meyering  <meyering@redhat.com>
22524
22525         maint.mk: do not prepend "./" after filtering
22526         * top/maint.mk (_prepend_srcdir_prefix): New variable
22527         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22528         "./" when $(srcdir) is ".".
22529
22530         define STREQ(a,b) consistently, removing useless parentheses
22531         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22532         since the only risk is that "a" or "b" contains an unparenthesized
22533         comma, but if either did that, STREQ would have 3 or more arguments.
22534         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22535         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22536         * lib/hash-triple.c (STREQ): Likewise.
22537         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22538         * lib/getugroups.c (STREQ): Likewise.
22539
22540 2010-01-23  Jim Meyering  <meyering@redhat.com>
22541
22542         maint.mk: fix syntax-check in a non-srcdir build directory
22543         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22544         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22545
22546 2010-01-22  Jim Meyering  <meyering@redhat.com>
22547
22548         userspec: add unit tests
22549         * tests/test-userspec.c: New file.
22550         * modules/userspec-tests: Likewise.
22551
22552 2010-01-21  Jim Meyering  <meyering@redhat.com>
22553
22554         maint.mk: handle source file names containing "." robustly
22555         * top/maint.mk (_dot_escaped_srcdir): Define.
22556         (VC_LIST): Use it in LHS of sed substitution.
22557
22558 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22559
22560         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22561         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22562         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22563         from a non-srcdir build.
22564
22565 2010-01-20  Eric Blake  <ebb9@byu.net>
22566
22567         warn-on-use: use instead of link-warning
22568         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22569         * modules/unistd (Depends-on, Makefile.am): Likewise.
22570         * modules/arpa_inet (Depends-on): Replace link-warning with
22571         warn-on-use.
22572         (Makefile.am): Update rules accordingly.
22573         * modules/ctype (Depends-on, Makefile.am): Likewise.
22574         * modules/dirent (Depends-on, Makefile.am): Likewise.
22575         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22576         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22577         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22578         * modules/locale (Depends-on, Makefile.am): Likewise.
22579         * modules/math (Depends-on, Makefile.am): Likewise.
22580         * modules/search (Depends-on, Makefile.am): Likewise.
22581         * modules/signal (Depends-on, Makefile.am): Likewise.
22582         * modules/spawn (Depends-on, Makefile.am): Likewise.
22583         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22584         * modules/string (Depends-on, Makefile.am): Likewise.
22585         * modules/strings (Depends-on, Makefile.am): Likewise.
22586         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22587         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22588         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22589         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22590         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22591         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22592         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22593         * modules/wchar (Depends-on, Makefile.am): Likewise.
22594         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22595         should be poisoned.
22596         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22597         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22598         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22599         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22600         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22601         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22602         * m4/math_h.m4 (gl_MATH_H): Likewise.
22603         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22604         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22605         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22606         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22607         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22608         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22609         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22610         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22611         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22615         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22616         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22617         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22618         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22619         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22620         GL_LINK_WARNING.
22621         * lib/ctype.in.h: Likewise.
22622         * lib/dirent.in.h: Likewise.
22623         * lib/fcntl.in.h: Likewise.
22624         * lib/inttypes.in.h: Likewise.
22625         * lib/langinfo.in.h: Likewise.
22626         * lib/locale.in.h: Likewise.
22627         * lib/math.in.h: Likewise.
22628         * lib/search.in.h: Likewise.
22629         * lib/signal.in.h: Likewise.
22630         * lib/spawn.in.h: Likewise.
22631         * lib/stdio.in.h: Likewise.
22632         * lib/stdlib.in.h: Likewise.
22633         * lib/string.in.h: Likewise.
22634         * lib/strings.in.h: Likewise.
22635         * lib/sys_file.in.h: Likewise.
22636         * lib/sys_ioctl.in.h: Likewise.
22637         * lib/sys_select.in.h: Likewise.
22638         * lib/sys_socket.in.h: Likewise.
22639         * lib/sys_stat.in.h: Likewise.
22640         * lib/sys_times.in.h: Likewise.
22641         * lib/sys_utsname.in.h: Likewise.
22642         * lib/unistd.in.h: Likewise.
22643         * lib/wchar.in.h: Likewise.
22644
22645 2010-01-20  Bruno Haible  <bruno@clisp.org>
22646
22647         Avoid duplicate -lm.
22648         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22649         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22650         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22651         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22652         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22653         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22654         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22655         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22656         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22657         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22658         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22659         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22660         Reported by Paolo Bonzini.
22661
22662 2010-01-19  Bruno Haible  <bruno@clisp.org>
22663
22664         langinfo, nl_langinfo: Relicense under LGPLv2+.
22665         * modules/langinfo (License): Change to LGPLv2+.
22666         * modules/nl_langinfo (License): Likewise.
22667         Patch by David Lutterkort <lutter@redhat.com>.
22668
22669 2010-01-19  Bruno Haible  <bruno@clisp.org>
22670
22671         Avoid compilation error with cc on OSF/1 5.1.
22672         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22673         statement, not before.
22674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22675
22676 2010-01-18  Bruno Haible  <bruno@clisp.org>
22677
22678         Avoid a link error due to the __printf__ symbol.
22679         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22680         and 2.6.x.
22681         (__format__, __printf__): Remove definitions.
22682         * lib/argp-fmtstream.h: Likewise.
22683         * lib/argp.h: Likewise.
22684         * lib/error.h: Likewise.
22685         * lib/vasnprintf.h: Likewise.
22686         * lib/xprintf.h: Likewise.
22687         * lib/xvasprintf.h: Likewise.
22688         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22689
22690 2010-01-18  Bruno Haible  <bruno@clisp.org>
22691
22692         Tests for module 'tanl'.
22693         * modules/tanl-tests: New file.
22694         * tests/test-tanl.c: New file.
22695
22696         Tests for module 'sqrtl'.
22697         * modules/sqrtl-tests: New file.
22698         * tests/test-sqrtl.c: New file.
22699
22700         Tests for module 'sinl'.
22701         * modules/sinl-tests: New file.
22702         * tests/test-sinl.c: New file.
22703
22704         Tests for module 'logl'.
22705         * modules/logl-tests: New file.
22706         * tests/test-logl.c: New file.
22707
22708         Tests for module 'expl'.
22709         * modules/expl-tests: New file.
22710         * tests/test-expl.c: New file.
22711
22712         Tests for module 'cosl'.
22713         * modules/cosl-tests: New file.
22714         * tests/test-cosl.c: New file.
22715
22716         Tests for module 'atanl'.
22717         * modules/atanl-tests: New file.
22718         * tests/test-atanl.c: New file.
22719
22720         Tests for module 'asinl'.
22721         * modules/asinl-tests: New file.
22722         * tests/test-asinl.c: New file.
22723
22724         Tests for module 'acosl'.
22725         * modules/acosl-tests: New file.
22726         * tests/test-acosl.c: New file.
22727
22728         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22729         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22730         tanl): Use the standard gnulib idiom.
22731         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22732         * lib/sinl.c: Likewise.
22733         * lib/tanl.c: Don't include trigl.c.
22734         (kernel_tanl): Make static.
22735         * lib/sincosl.c: Include trigl.h first.
22736         * lib/trigl.c: Likewise.
22737         * m4/acosl.m4: New file.
22738         * m4/asinl.m4: New file.
22739         * m4/atanl.m4: New file.
22740         * m4/cosl.m4: New file.
22741         * m4/expl.m4: New file.
22742         * m4/logl.m4: New file.
22743         * m4/sinl.m4: New file.
22744         * m4/sqrtl.m4: New file.
22745         * m4/tanl.m4: New file.
22746         * m4/mathl.m4: Remove file.
22747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22748         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22749         Don't initialize GNULIB_MATHL.
22750         * modules/acosl: New file.
22751         * modules/asinl: New file.
22752         * modules/atanl: New file.
22753         * modules/cosl: New file.
22754         * modules/expl: New file.
22755         * modules/logl: New file.
22756         * modules/sinl: New file.
22757         * modules/sqrtl: New file.
22758         * modules/tanl: New file.
22759         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22760         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22761         substitute GNULIB_MATHL.
22762         * modules/mathl: Rewritten.
22763         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22764         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22765         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22766         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22767         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22768         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22769         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22770         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22771         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22772
22773 2010-01-18  Bruno Haible  <bruno@clisp.org>
22774
22775         sqrt: Make gl_FUNC_SQRT requirable.
22776         * m4/sqrt.m4: New file.
22777         * modules/sqrt (Files): Add it.
22778         (configure.ac): Invoke gl_FUNC_SQRT.
22779
22780 2010-01-18  Bruno Haible  <bruno@clisp.org>
22781
22782         New modules for common <math.h> functions.
22783         * m4/mathfunc.m4: New file.
22784         * modules/acos: New file.
22785         * modules/asin: New file.
22786         * modules/atan: New file.
22787         * modules/atan2: New file.
22788         * modules/cbrt: New file.
22789         * modules/copysign: New file.
22790         * modules/cos: New file.
22791         * modules/cosh: New file.
22792         * modules/erf: New file.
22793         * modules/erfc: New file.
22794         * modules/exp: New file.
22795         * modules/fabs: New file.
22796         * modules/fmod: New file.
22797         * modules/hypot: New file.
22798         * modules/j0: New file.
22799         * modules/j1: New file.
22800         * modules/jn: New file.
22801         * modules/ldexp: New file.
22802         * modules/lgamma: New file.
22803         * modules/log: New file.
22804         * modules/log10: New file.
22805         * modules/log1p: New file.
22806         * modules/logb: New file.
22807         * modules/modf: New file.
22808         * modules/nextafter: New file.
22809         * modules/pow: New file.
22810         * modules/remainder: New file.
22811         * modules/rint: New file.
22812         * modules/sin: New file.
22813         * modules/sinh: New file.
22814         * modules/sqrt: New file.
22815         * modules/tan: New file.
22816         * modules/tanh: New file.
22817         * modules/y0: New file.
22818         * modules/y1: New file.
22819         * modules/yn: New file.
22820         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22821         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22822         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22823         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22824         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22825         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22826         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22827         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22828         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22829         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22830         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22831         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22832         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22833         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22834         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22835         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22836         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22837         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22838         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22839         * doc/posix-functions/log.texi: Mention the 'log' module.
22840         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22841         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22842         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22843         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22844         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22845         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22846         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22847         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22848         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22849         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22850         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22851         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22852         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22853         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22854         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22855         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22856
22857 2010-01-18  Jim Meyering  <meyering@redhat.com>
22858
22859         ignore-value: relax license to LGPLv2+
22860         * modules/ignore-value (License): Relax to LGPLv2+.
22861
22862         getdate: don't leak when TZ contains two or more '"'s
22863         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22864         double quote in TZ after the first one.
22865
22866         readtokens: do not leak internal token_lengths buffer
22867         * lib/readtokens.c (readtokens): Free the local, lengths,
22868         when the supplied "token_lengths" parameter is NULL.
22869
22870 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22871
22872         Fix a couple of missing LIBTHREAD link failures on AIX.
22873         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22874         $(LIBTHREAD).
22875         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22876
22877         Link test-poll against INET_PTON_LIB.
22878         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22879         for inet_pton on Solaris 10.
22880
22881 2010-01-17  Bruno Haible  <bruno@clisp.org>
22882
22883         unistdio/*-sprintf: Fix typo in module description.
22884         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22885         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22886         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22887         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22888         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22889         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22890         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22892
22893 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22894
22895         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22896         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22897         variables in shell case patterns, for AIX and HP-UX ksh.
22898
22899         Split large sed scripts, for HP-UX sed.
22900         * modules/stdio: Split sed scripts around 50 sed commands,
22901         to avoid HP-UX limit of 99 commands, in the near future.
22902         * modules/string: Likewise.
22903         * modules/unistd: Likewise.
22904
22905         gnulib-tool: avoid writing in the current directory.
22906         * gnulib-tool (func_emit_lib_Makefile_am)
22907         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22908         not in the current directory, so concurrent gnulib-tool
22909         instances do not interfere.
22910
22911 2010-01-16  Jim Meyering  <meyering@redhat.com>
22912
22913         doc: update users.txt
22914         * users.txt: Add grep.
22915         (diffutils, gzip): Update URLs.
22916
22917 2010-01-12  Bruno Haible  <bruno@clisp.org>
22918
22919         posix_spawn: Avoid test failure on Cygwin.
22920         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22921         characters.
22922         Reported by Simon Josefsson.
22923
22924 2010-01-12  Bruno Haible  <bruno@clisp.org>
22925
22926         * tests/test-cond.c (main): When skipping the test, show the reason.
22927
22928 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22929
22930         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22931
22932 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22933
22934         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22935         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22936
22937 2010-01-12  Eric Blake  <ebb9@byu.net>
22938
22939         build: guarantee AS_VAR_IF
22940         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22941         (gl_AS_VAR_IF): Move...
22942         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22943         Reported by Simon Josefsson.
22944
22945 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22946
22947         * lib/stdio.in.h: Fix typo.
22948
22949 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22950
22951         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22952         libgpg-error.
22953
22954 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22955
22956         * tests/test-xalloc-die.sh: Use $EXEEXT.
22957
22958 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22959             Bruno Haible  <bruno@clisp.org>
22960
22961         getlogin, getlogin_r: Avoid test failure.
22962         * tests/test-getlogin.c: Include <stdio.h>.
22963         (main): Skip the test when the function fails because stdin is not a
22964         tty.
22965         * tests/test-getlogin_r.c: Include <stdio.h>.
22966         (main): Skip the test when the function fails because stdin is not a
22967         tty.
22968
22969 2010-01-11  Eric Blake  <ebb9@byu.net>
22970
22971         tests: avoid more large file warnings
22972         * tests/test-fflush.c: Avoid warning about ftell use.
22973         * tests/test-fseek.c: Avoid warning about fseek use.
22974
22975 2010-01-10  Bruno Haible  <bruno@clisp.org>
22976
22977         nproc: Work better on Linux when /proc and /sys are not mounted.
22978         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22979         as lower bound when, on glibc/Linux systems,
22980         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22981         Suggested by Pádraig Brady <P@draigbrady.com>.
22982         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22983
22984         nproc: Refactor.
22985         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22986         extracted from num_processors.
22987         (num_processors): Call it.
22988
22989 2010-01-11  Jim Meyering  <meyering@redhat.com>
22990
22991         utimecmp: avoid new warning from upcoming gcc-4.5.0
22992         * lib/utimecmp.c (BILLION): Define using #define rather than an
22993         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22994
22995 2010-01-11  Eric Blake  <ebb9@byu.net>
22996
22997         math: add portability warnings for classification macros
22998         * modules/math (Depends-on): Add warn-on-use.
22999         (Makefile.am): Provide new substitutions.
23000         * m4/math_h.m4 (gl_MATH_H): Require inline.
23001         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23002         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23003         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23004         implement warnings.
23005
23006         unistd: warn on use of environ without module
23007         * modules/unistd (Depends-on): Add warn-on-use.
23008         (Makefile.am): Provide new substitutions.
23009         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23010         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23011
23012         stdio: warn on suspicious uses
23013         * modules/stdio (Depends-on): Add warn-on-use.
23014         (Makefile.am): Provide new substitutions.
23015         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23016         fseeko.
23017         * lib/stdio.in.h (gets): Always warn on use.
23018         (fseek, ftell): Adjust when warnings are issued, and honor
23019         _GL_NO_LARGE_FILES as a way to silence the warning.
23020         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23021         any warning about large file offsets.
23022         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23023         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23024         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23025         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23026         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23027         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23028         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23029         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23030
23031         warn-on-use: new module
23032         * modules/warn-on-use: New file.
23033         * build-aux/warn-on-use.h: Likewise.
23034         * m4/warn-on-use.m4: Likewise.
23035         * MODULES.html.sh (Support for building): Mention it.
23036
23037 2010-01-10  Bruno Haible  <bruno@clisp.org>
23038
23039         Tests for module 'unistr/u32-strdup'.
23040         * modules/unistr/u32-strdup-tests: New file.
23041         * tests/unistr/test-u32-strdup.c: New file.
23042
23043         Tests for module 'unistr/u16-strdup'.
23044         * modules/unistr/u16-strdup-tests: New file.
23045         * tests/unistr/test-u16-strdup.c: New file.
23046
23047         Tests for module 'unistr/u8-strdup'.
23048         * modules/unistr/u8-strdup-tests: New file.
23049         * tests/unistr/test-u8-strdup.c: New file.
23050         * tests/unistr/test-strdup.h: New file.
23051
23052         Tests for module 'unistr/u32-strncmp'.
23053         * modules/unistr/u32-strncmp-tests: New file.
23054         * tests/unistr/test-u32-strncmp.c: New file.
23055
23056         Tests for module 'unistr/u16-strncmp'.
23057         * modules/unistr/u16-strncmp-tests: New file.
23058         * tests/unistr/test-u16-strncmp.c: New file.
23059
23060         Tests for module 'unistr/u8-strncmp'.
23061         * modules/unistr/u8-strncmp-tests: New file.
23062         * tests/unistr/test-u8-strncmp.c: New file.
23063         * tests/unistr/test-strncmp.h: New file.
23064
23065         Tests for module 'unistr/u32-strcoll'.
23066         * modules/unistr/u32-strcoll-tests: New file.
23067         * tests/unistr/test-u32-strcoll.c: New file.
23068
23069         Tests for module 'unistr/u16-strcoll'.
23070         * modules/unistr/u16-strcoll-tests: New file.
23071         * tests/unistr/test-u16-strcoll.c: New file.
23072
23073         Tests for module 'unistr/u8-strcoll'.
23074         * modules/unistr/u8-strcoll-tests: New file.
23075         * tests/unistr/test-u8-strcoll.c: New file.
23076
23077         Tests for module 'unistr/u32-strcmp'.
23078         * modules/unistr/u32-strcmp-tests: New file.
23079         * tests/unistr/test-u32-strcmp.c: New file.
23080         * tests/unistr/test-u32-strcmp.h: New file.
23081
23082         Tests for module 'unistr/u16-strcmp'.
23083         * modules/unistr/u16-strcmp-tests: New file.
23084         * tests/unistr/test-u16-strcmp.c: New file.
23085         * tests/unistr/test-u16-strcmp.h: New file.
23086
23087         Tests for module 'unistr/u8-strcmp'.
23088         * modules/unistr/u8-strcmp-tests: New file.
23089         * tests/unistr/test-u8-strcmp.c: New file.
23090         * tests/unistr/test-u8-strcmp.h: New file.
23091         * tests/unistr/test-strcmp.h: New file.
23092
23093         Tests for module 'unistr/u32-strncat'.
23094         * modules/unistr/u32-strncat-tests: New file.
23095         * tests/unistr/test-u32-strncat.c: New file.
23096
23097         Tests for module 'unistr/u16-strncat'.
23098         * modules/unistr/u16-strncat-tests: New file.
23099         * tests/unistr/test-u16-strncat.c: New file.
23100
23101         Tests for module 'unistr/u8-strncat'.
23102         * modules/unistr/u8-strncat-tests: New file.
23103         * tests/unistr/test-u8-strncat.c: New file.
23104         * tests/unistr/test-strncat.h: New file.
23105
23106         Tests for module 'unistr/u32-strcat'.
23107         * modules/unistr/u32-strcat-tests: New file.
23108         * tests/unistr/test-u32-strcat.c: New file.
23109
23110         Tests for module 'unistr/u16-strcat'.
23111         * modules/unistr/u16-strcat-tests: New file.
23112         * tests/unistr/test-u16-strcat.c: New file.
23113
23114         Tests for module 'unistr/u8-strcat'.
23115         * modules/unistr/u8-strcat-tests: New file.
23116         * tests/unistr/test-u8-strcat.c: New file.
23117         * tests/unistr/test-strcat.h: New file.
23118
23119         Tests for module 'unistr/u32-stpncpy'.
23120         * modules/unistr/u32-stpncpy-tests: New file.
23121         * tests/unistr/test-u32-stpncpy.c: New file.
23122
23123         Tests for module 'unistr/u16-stpncpy'.
23124         * modules/unistr/u16-stpncpy-tests: New file.
23125         * tests/unistr/test-u16-stpncpy.c: New file.
23126
23127         Tests for module 'unistr/u8-stpncpy'.
23128         * modules/unistr/u8-stpncpy-tests: New file.
23129         * tests/unistr/test-u8-stpncpy.c: New file.
23130         * tests/unistr/test-stpncpy.h: New file.
23131
23132         Tests for module 'unistr/u32-strncpy'.
23133         * modules/unistr/u32-strncpy-tests: New file.
23134         * tests/unistr/test-u32-strncpy.c: New file.
23135
23136         Tests for module 'unistr/u16-strncpy'.
23137         * modules/unistr/u16-strncpy-tests: New file.
23138         * tests/unistr/test-u16-strncpy.c: New file.
23139
23140         Tests for module 'unistr/u8-strncpy'.
23141         * modules/unistr/u8-strncpy-tests: New file.
23142         * tests/unistr/test-u8-strncpy.c: New file.
23143         * tests/unistr/test-strncpy.h: New file.
23144
23145         Tests for module 'unistr/u32-stpcpy'.
23146         * modules/unistr/u32-stpcpy-tests: New file.
23147         * tests/unistr/test-u32-stpcpy.c: New file.
23148
23149         Tests for module 'unistr/u16-stpcpy'.
23150         * modules/unistr/u16-stpcpy-tests: New file.
23151         * tests/unistr/test-u16-stpcpy.c: New file.
23152
23153         Tests for module 'unistr/u8-stpcpy'.
23154         * modules/unistr/u8-stpcpy-tests: New file.
23155         * tests/unistr/test-u8-stpcpy.c: New file.
23156         * tests/unistr/test-stpcpy.h: New file.
23157
23158         Tests for module 'unistr/u32-strcpy'.
23159         * modules/unistr/u32-strcpy-tests: New file.
23160         * tests/unistr/test-u32-strcpy.c: New file.
23161
23162         Tests for module 'unistr/u16-strcpy'.
23163         * modules/unistr/u16-strcpy-tests: New file.
23164         * tests/unistr/test-u16-strcpy.c: New file.
23165
23166         Tests for module 'unistr/u8-strcpy'.
23167         * modules/unistr/u8-strcpy-tests: New file.
23168         * tests/unistr/test-u8-strcpy.c: New file.
23169         * tests/unistr/test-strcpy.h: New file.
23170
23171         Tests for module 'unistr/u32-strnlen'.
23172         * modules/unistr/u32-strnlen-tests: New file.
23173         * tests/unistr/test-u32-strnlen.c: New file.
23174
23175         Tests for module 'unistr/u16-strnlen'.
23176         * modules/unistr/u16-strnlen-tests: New file.
23177         * tests/unistr/test-u16-strnlen.c: New file.
23178
23179         Tests for module 'unistr/u8-strnlen'.
23180         * modules/unistr/u8-strnlen-tests: New file.
23181         * tests/unistr/test-u8-strnlen.c: New file.
23182         * tests/unistr/test-strnlen.h: New file.
23183
23184         Tests for module 'unistr/u32-strlen'.
23185         * modules/unistr/u32-strlen-tests: New file.
23186         * tests/unistr/test-u32-strlen.c: New file.
23187
23188         Tests for module 'unistr/u16-strlen'.
23189         * modules/unistr/u16-strlen-tests: New file.
23190         * tests/unistr/test-u16-strlen.c: New file.
23191
23192         Tests for module 'unistr/u8-strlen'.
23193         * modules/unistr/u8-strlen-tests: New file.
23194         * tests/unistr/test-u8-strlen.c: New file.
23195
23196         Tests for module 'unistr/u32-prev'.
23197         * modules/unistr/u32-prev-tests: New file.
23198         * tests/unistr/test-u32-prev.c: New file.
23199
23200         Tests for module 'unistr/u16-prev'.
23201         * modules/unistr/u16-prev-tests: New file.
23202         * tests/unistr/test-u16-prev.c: New file.
23203
23204         Tests for module 'unistr/u8-prev'.
23205         * modules/unistr/u8-prev-tests: New file.
23206         * tests/unistr/test-u8-prev.c: New file.
23207
23208         Tests for module 'unistr/u32-next'.
23209         * modules/unistr/u32-next-tests: New file.
23210         * tests/unistr/test-u32-next.c: New file.
23211
23212         Tests for module 'unistr/u16-next'.
23213         * modules/unistr/u16-next-tests: New file.
23214         * tests/unistr/test-u16-next.c: New file.
23215
23216         Tests for module 'unistr/u8-next'.
23217         * modules/unistr/u8-next-tests: New file.
23218         * tests/unistr/test-u8-next.c: New file.
23219
23220         Tests for module 'unistr/u32-strmbtouc'.
23221         * modules/unistr/u32-strmbtouc-tests: New file.
23222         * tests/unistr/test-u32-strmbtouc.c: New file.
23223
23224         Tests for module 'unistr/u16-strmbtouc'.
23225         * modules/unistr/u16-strmbtouc-tests: New file.
23226         * tests/unistr/test-u16-strmbtouc.c: New file.
23227
23228         Tests for module 'unistr/u8-strmbtouc'.
23229         * modules/unistr/u8-strmbtouc-tests: New file.
23230         * tests/unistr/test-u8-strmbtouc.c: New file.
23231
23232         Tests for module 'unistr/u32-strmblen'.
23233         * modules/unistr/u32-strmblen-tests: New file.
23234         * tests/unistr/test-u32-strmblen.c: New file.
23235
23236         Tests for module 'unistr/u16-strmblen'.
23237         * modules/unistr/u16-strmblen-tests: New file.
23238         * tests/unistr/test-u16-strmblen.c: New file.
23239
23240         Tests for module 'unistr/u8-strmblen'.
23241         * modules/unistr/u8-strmblen-tests: New file.
23242         * tests/unistr/test-u8-strmblen.c: New file.
23243
23244         Tests for module 'unistr/u32-cpy-alloc'.
23245         * modules/unistr/u32-cpy-alloc-tests: New file.
23246         * tests/unistr/test-u32-cpy-alloc.c: New file.
23247
23248         Tests for module 'unistr/u16-cpy-alloc'.
23249         * modules/unistr/u16-cpy-alloc-tests: New file.
23250         * tests/unistr/test-u16-cpy-alloc.c: New file.
23251
23252         Tests for module 'unistr/u8-cpy-alloc'.
23253         * modules/unistr/u8-cpy-alloc-tests: New file.
23254         * tests/unistr/test-u8-cpy-alloc.c: New file.
23255         * tests/unistr/test-cpy-alloc.h: New file.
23256
23257         Tests for module 'unistr/u32-mbsnlen'.
23258         * modules/unistr/u32-mbsnlen-tests: New file.
23259         * tests/unistr/test-u32-mbsnlen.c: New file.
23260
23261         Tests for module 'unistr/u16-mbsnlen'.
23262         * modules/unistr/u16-mbsnlen-tests: New file.
23263         * tests/unistr/test-u16-mbsnlen.c: New file.
23264
23265         Tests for module 'unistr/u8-mbsnlen'.
23266         * modules/unistr/u8-mbsnlen-tests: New file.
23267         * tests/unistr/test-u8-mbsnlen.c: New file.
23268
23269         Tests for module 'unistr/u32-chr'.
23270         * modules/unistr/u32-chr-tests: New file.
23271         * tests/unistr/test-u32-chr.c: New file.
23272
23273         Tests for module 'unistr/u16-chr'.
23274         * modules/unistr/u16-chr-tests: New file.
23275         * tests/unistr/test-u16-chr.c: New file.
23276
23277         Tests for module 'unistr/u8-chr'.
23278         * modules/unistr/u8-chr-tests: New file.
23279         * tests/unistr/test-u8-chr.c: New file.
23280         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23281
23282         Tests for module 'unistr/u32-cmp2'.
23283         * modules/unistr/u32-cmp2-tests: New file.
23284         * tests/unistr/test-u32-cmp2.c: New file.
23285
23286         Tests for module 'unistr/u16-cmp2'.
23287         * modules/unistr/u16-cmp2-tests: New file.
23288         * tests/unistr/test-u16-cmp2.c: New file.
23289
23290         Tests for module 'unistr/u8-cmp2'.
23291         * modules/unistr/u8-cmp2-tests: New file.
23292         * tests/unistr/test-u8-cmp2.c: New file.
23293         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23294
23295         Tests for module 'unistr/u32-cmp'.
23296         * modules/unistr/u32-cmp-tests: New file.
23297         * tests/unistr/test-u32-cmp.c: New file.
23298
23299         Tests for module 'unistr/u16-cmp'.
23300         * modules/unistr/u16-cmp-tests: New file.
23301         * tests/unistr/test-u16-cmp.c: New file.
23302
23303         Tests for module 'unistr/u8-cmp'.
23304         * modules/unistr/u8-cmp-tests: New file.
23305         * tests/unistr/test-u8-cmp.c: New file.
23306         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23307
23308         Tests for module 'unistr/u32-set'.
23309         * modules/unistr/u32-set-tests: New file.
23310         * tests/unistr/test-u32-set.c: New file.
23311
23312         Tests for module 'unistr/u16-set'.
23313         * modules/unistr/u16-set-tests: New file.
23314         * tests/unistr/test-u16-set.c: New file.
23315
23316         Tests for module 'unistr/u8-set'.
23317         * modules/unistr/u8-set-tests: New file.
23318         * tests/unistr/test-u8-set.c: New file.
23319         * tests/unistr/test-set.h: New file.
23320
23321         Tests for module 'unistr/u32-move'.
23322         * modules/unistr/u32-move-tests: New file.
23323         * tests/unistr/test-u32-move.c: New file.
23324
23325         Tests for module 'unistr/u16-move'.
23326         * modules/unistr/u16-move-tests: New file.
23327         * tests/unistr/test-u16-move.c: New file.
23328
23329         Tests for module 'unistr/u8-move'.
23330         * modules/unistr/u8-move-tests: New file.
23331         * tests/unistr/test-u8-move.c: New file.
23332         * tests/unistr/test-move.h: New file.
23333
23334         Tests for module 'unistr/u32-cpy'.
23335         * modules/unistr/u32-cpy-tests: New file.
23336         * tests/unistr/test-u32-cpy.c: New file.
23337
23338         Tests for module 'unistr/u16-cpy'.
23339         * modules/unistr/u16-cpy-tests: New file.
23340         * tests/unistr/test-u16-cpy.c: New file.
23341
23342         Tests for module 'unistr/u8-cpy'.
23343         * modules/unistr/u8-cpy-tests: New file.
23344         * tests/unistr/test-u8-cpy.c: New file.
23345         * tests/unistr/test-cpy.h: New file.
23346
23347 2010-01-09  Bruno Haible  <bruno@clisp.org>
23348
23349         Tests for module 'unistr/u32-uctomb'.
23350         * modules/unistr/u32-uctomb-tests: New file.
23351         * tests/unistr/test-u32-uctomb.c: New file.
23352
23353         Tests for module 'unistr/u16-uctomb'.
23354         * modules/unistr/u16-uctomb-tests: New file.
23355         * tests/unistr/test-u16-uctomb.c: New file.
23356
23357         Tests for module 'unistr/u8-uctomb'.
23358         * modules/unistr/u8-uctomb-tests: New file.
23359         * tests/unistr/test-u8-uctomb.c: New file.
23360
23361         Tests for module 'unistr/u32-mbtoucr'.
23362         * modules/unistr/u32-mbtoucr-tests: New file.
23363         * tests/unistr/test-u32-mbtoucr.c: New file.
23364
23365         Tests for module 'unistr/u16-mbtoucr'.
23366         * modules/unistr/u16-mbtoucr-tests: New file.
23367         * tests/unistr/test-u16-mbtoucr.c: New file.
23368
23369         Tests for module 'unistr/u8-mbtoucr'.
23370         * modules/unistr/u8-mbtoucr-tests: New file.
23371         * tests/unistr/test-u8-mbtoucr.c: New file.
23372
23373         Tests for module 'unistr/u32-mbtouc'.
23374         * modules/unistr/u32-mbtouc-tests: New file.
23375         * tests/unistr/test-u32-mbtouc.c: New file.
23376
23377         Tests for module 'unistr/u16-mbtouc'.
23378         * modules/unistr/u16-mbtouc-tests: New file.
23379         * tests/unistr/test-u16-mbtouc.c: New file.
23380
23381         Tests for module 'unistr/u8-mbtouc'.
23382         * modules/unistr/u8-mbtouc-tests: New file.
23383         * tests/unistr/test-u8-mbtouc.c: New file.
23384
23385         Tests for module 'unistr/u32-mbtouc-unsafe'.
23386         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23387         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23388         * tests/unistr/test-u32-mbtouc.h: New file.
23389
23390         Tests for module 'unistr/u16-mbtouc-unsafe'.
23391         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23392         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23393         * tests/unistr/test-u16-mbtouc.h: New file.
23394
23395         Tests for module 'unistr/u8-mbtouc-unsafe'.
23396         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23397         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23398         * tests/unistr/test-u8-mbtouc.h: New file.
23399
23400         Tests for module 'unistr/u32-mblen'.
23401         * modules/unistr/u32-mblen-tests: New file.
23402         * tests/unistr/test-u32-mblen.c: New file.
23403
23404         Tests for module 'unistr/u16-mblen'.
23405         * modules/unistr/u16-mblen-tests: New file.
23406         * tests/unistr/test-u16-mblen.c: New file.
23407
23408         Tests for module 'unistr/u8-mblen'.
23409         * modules/unistr/u8-mblen-tests: New file.
23410         * tests/unistr/test-u8-mblen.c: New file.
23411
23412         Tests for module 'unistr/u32-to-u16'.
23413         * modules/unistr/u32-to-u16-tests: New file.
23414         * tests/unistr/test-u32-to-u16.c: New file.
23415
23416         Tests for module 'unistr/u32-to-u8'.
23417         * modules/unistr/u32-to-u8-tests: New file.
23418         * tests/unistr/test-u32-to-u8.c: New file.
23419
23420         Tests for module 'unistr/u16-to-u32'.
23421         * modules/unistr/u16-to-u32-tests: New file.
23422         * tests/unistr/test-u16-to-u32.c: New file.
23423
23424         Tests for module 'unistr/u16-to-u8'.
23425         * modules/unistr/u16-to-u8-tests: New file.
23426         * tests/unistr/test-u16-to-u8.c: New file.
23427
23428         Tests for module 'unistr/u8-to-u32'.
23429         * modules/unistr/u8-to-u32-tests: New file.
23430         * tests/unistr/test-u8-to-u32.c: New file.
23431
23432         Tests for module 'unistr/u8-to-u16'.
23433         * modules/unistr/u8-to-u16-tests: New file.
23434         * tests/unistr/test-u8-to-u16.c: New file.
23435
23436         Tests for module 'unistr/u32-check'.
23437         * modules/unistr/u32-check-tests: New file.
23438         * tests/unistr/test-u32-check.c: New file.
23439
23440         Tests for module 'unistr/u16-check'.
23441         * modules/unistr/u16-check-tests: New file.
23442         * tests/unistr/test-u16-check.c: New file.
23443
23444         Tests for module 'unistr/u8-check'.
23445         * modules/unistr/u8-check-tests: New file.
23446         * tests/unistr/test-u8-check.c: New file.
23447
23448         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23449         (category_equals): New function.
23450         (main): Add more tests.
23451         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23452
23453         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23454
23455 2010-01-10  Bruno Haible  <bruno@clisp.org>
23456
23457         unistr/u*-strcoll: Try harder to distinguish different strings.
23458         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23459         compare s1 and s2 to see if they are different.
23460
23461 2010-01-10  Bruno Haible  <bruno@clisp.org>
23462
23463         unistr/u*-stpncpy: Fix the return value.
23464         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23465         description of the return value consistent with stpncpy in glibc.
23466         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23467         written non-NUL unit.
23468
23469 2010-01-10  Bruno Haible  <bruno@clisp.org>
23470
23471         unistr/u*-next: Add missing dependencies.
23472         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23473         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23474         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23475
23476 2010-01-10  Bruno Haible  <bruno@clisp.org>
23477
23478         unistr/u8-mbsnlen: Fix return value for incomplete character.
23479         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23480         u8_mblen.
23481         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23482         Remove unistr/u8-mblen.
23483         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23484         u16_mblen.
23485         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23486         Remove unistr/u16-mblen.
23487
23488 2010-01-10  Bruno Haible  <bruno@clisp.org>
23489
23490         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23491         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23492         Reported by Brian Gough <bjg@gnu.org> and
23493         Chris Clayton <chris2553@googlemail.com> via
23494         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23495
23496 2010-01-09  Bruno Haible  <bruno@clisp.org>
23497
23498         unistr/u16-to-u32: Reject invalid input.
23499         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23500         u16_mbtouc.
23501         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23502         Remove unistr/u16-mbtouc.
23503
23504         unistr/u16-to-u8: Reject invalid input.
23505         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23506         u16_mbtouc.
23507         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23508         Remove unistr/u16-mbtouc.
23509
23510         unistr/u8-to-u32: Reject invalid input.
23511         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23512         u8_mbtouc.
23513         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23514         Remove unistr/u8-mbtouc.
23515
23516         unistr/u8-to-u16: Reject invalid input.
23517         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23518         u8_mbtouc.
23519         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23520         Remove unistr/u8-mbtouc.
23521
23522 2010-01-09  Bruno Haible  <bruno@clisp.org>
23523
23524         Tests for module 'getlogin'.
23525         * modules/getlogin-tests: New file.
23526         * tests/test-getlogin.c: New file.
23527
23528         New module 'getlogin'.
23529         * lib/unistd.in.h (getlogin): New declaration.
23530         * lib/getlogin.c: New file.
23531         * m4/getlogin.m4: New file.
23532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23533         HAVE_GETLOGIN.
23534         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23535         HAVE_GETLOGIN.
23536         * modules/getlogin: New file.
23537         * doc/posix-functions/getlogin.texi: Mention the new module.
23538         Reported by John W. Eaton <jwe@gnu.org>.
23539
23540 2010-01-09  Bruno Haible  <bruno@clisp.org>
23541
23542         getlogin_r: Support for native Windows.
23543         * lib/getlogin_r.c: Include <windows.h>
23544         (getlogin_r): Implement for native Windows.
23545         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23546         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23547         via John W. Eaton <jwe@gnu.org>.
23548
23549 2010-01-09  Bruno Haible  <bruno@clisp.org>
23550
23551         getlogin_r: Small fixes.
23552         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23553         succeeds.
23554         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23555         before testing whether getlogin_r is declared. No need to set
23556         HAVE_DECL_GETLOGIN_R to 1.
23557         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23558
23559 2010-01-09  Bruno Haible  <bruno@clisp.org>
23560
23561         * lib/unistd.in.h (getlogin_r): Add comment.
23562
23563 2010-01-09  Bruno Haible  <bruno@clisp.org>
23564
23565         Tests for module 'getlogin_r'.
23566         * modules/getlogin_r-tests: New file.
23567         * tests/test-getlogin_r.c: New file.
23568
23569 2010-01-09  Jim Meyering  <meyering@redhat.com>
23570
23571         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23572         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23573         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23574
23575 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23576
23577         * lib/dup2.c (rpl_dup2): Improve comment.
23578
23579 2010-01-08  Eric Blake  <ebb9@byu.net>
23580
23581         maint.mk: allow packages to add makefile @@ exceptions
23582         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23583         (sc_makefile_check): Rename...
23584         (sc_makefile_at_at_check): ...to this, and use hook.
23585
23586         dup2: work around mingw bug
23587         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23588         Reported by Simon Josefsson.
23589
23590 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23591
23592         glob: Fix C++ compilation.
23593         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23594         C++.
23595
23596 2010-01-07  Bruno Haible  <bruno@clisp.org>
23597
23598         Fix indentation of wctype.in.h, broken since 2007-01-06.
23599         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23600
23601 2010-01-07  Bruno Haible  <bruno@clisp.org>
23602
23603         mbslen: Avoid collision with system function.
23604         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23605         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23606         * m4/mbslen.m4: New file.
23607         * modules/mbslen (Files): Add it.
23608         (configure.ac): Invoke gl_MBSLEN.
23609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23610         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23611         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23612         via Ian Beckwith <ianb@erislabs.net>.
23613
23614 2010-01-07  Bruno Haible  <bruno@clisp.org>
23615
23616         dirent: Document the last fix.
23617         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23618
23619 2010-01-07  Bruno Haible  <bruno@clisp.org>
23620
23621         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23622         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23623         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23624         va_list are defined.
23625         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23626         Reported by Eric Blake.
23627
23628 2010-01-07  Bruno Haible  <bruno@clisp.org>
23629
23630         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23631         * modules/xlist (Depends-on): Add 'list',
23632         * modules/xoset (Depends-on): Add 'oset'.
23633         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23634
23635 2010-01-07  Bruno Haible  <bruno@clisp.org>
23636
23637         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23638         * doc/posix-functions/strncasecmp.texi: Likewise.
23639
23640 2010-01-07  Bruno Haible  <bruno@clisp.org>
23641
23642         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23643
23644 2010-01-07  John W. Eaton  <jwe@octave.org>
23645
23646         wctype: allow C++ use
23647         * lib/wctype.in.h: Add extern "C" block for C++.
23648
23649 2010-01-06  Eric Blake  <ebb9@byu.net>
23650
23651         maint.mk: detect incorrect GFDL usage
23652         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23653
23654 2010-01-06  Jim Meyering  <meyering@redhat.com>
23655         and Eric Blake  <ebb9@byu.net>
23656
23657         maint.mk: ignore multi-line copyright in NEWS
23658         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23659
23660 2010-01-06  Eric Blake  <ebb9@byu.net>
23661
23662         select: add missing dependency
23663         * modules/select-tests (Depends-on): Move sockets dependency...
23664         * modules/select (Depends-on): ...here.
23665         Reported by Ian Beckwith.
23666
23667         doc: regenerate INSTALL
23668         * doc/INSTALL: Reflect recent autoconf update.
23669         * doc/INSTALL.ISO: Likewise.
23670         * doc/INSTALL.UTF-8: Likewise.
23671
23672         pread: fix compilation on glibc
23673         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23674         Reported by Ralf Wildenhues.
23675
23676         dirent: fix test failure
23677         * lib/dirent.in.h (includes): Guarantee ino_t.
23678         Reported by Ralf Wildenhues.
23679
23680 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23681
23682         linkat, renameat: avoid bad free
23683         * lib/at-func2.c (at_func2): Fix typo.
23684         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23685
23686 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23687
23688         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23689         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23690         to avoid failure of symlink test later.
23691
23692 2010-01-06  Eric Blake  <ebb9@byu.net>
23693
23694         stdio, unistd: guarantee ssize_t
23695         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23696         2008 are exposed when needed.
23697         * lib/stdio.in.h (includes): Likewise.
23698         Reported by Ralf Wildenhues.
23699
23700 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23701
23702         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23703         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23704         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23705
23706 2010-01-06  Jim Meyering  <meyering@redhat.com>
23707
23708         readtokens: this module *does* require xalloc.h
23709         It uses only functions that were omitted by the old syntax-check rule.
23710         * lib/readtokens.c: Include "xalloc.h" once again.
23711         * modules/readtokens (Depends-on): Add xalloc.
23712         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23713
23714 2010-01-05  Eric Blake  <ebb9@byu.net>
23715
23716         maint: support 'make announcement' from a VPATH build
23717         * top/maint.mk (announcement): Look for correct NEWS file.
23718
23719 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23720
23721         utimens (fdutimens): ignore a negative FD, per contract
23722         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23723         when we have a valid file descriptor.  Otherwise, using a brand
23724         new glibc (with just-patched futimens that now fails with EBADF)
23725         would cause this function to fail with ENOSYS.
23726         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23727         See also http://bugzilla.redhat.com/552320.
23728
23729 2010-01-05  Eric Blake  <ebb9@byu.net>
23730
23731         strcase: document what it provides
23732         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23733         gnulib module.
23734         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23735         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23736
23737 2010-01-05  Jim Meyering  <meyering@redhat.com>
23738
23739         maint: remove useless inclusions of "xalloc.h"
23740         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23741         * lib/readtokens.c: Likewise.
23742         * lib/same.c: Likewise.
23743         * modules/getloadavg (Depends-on): Remove xalloc.
23744         * modules/readtokens: Likewise.
23745         * modules/same: Likewise.
23746
23747         maint.mk: include 4 more function names in alloca.h-checking regexp
23748         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23749         regexp.  Before, we would give a false-positive (saying alloca.h
23750         is included unnecessarily) when the only uses involved omitted symbols.
23751
23752         xalloc.h: use consistent formatting
23753         * lib/xalloc.h: Move declarations to start in the first column.
23754
23755 2010-01-05  Eric Blake  <ebb9@byu.net>
23756
23757         mkdir: avoid xalloc
23758         * lib/mkdir.c (includes): Drop unused header.
23759         Reported by John W. Eaton.
23760
23761 2010-01-04  Jim Meyering  <meyering@redhat.com>
23762
23763         nl_langinfo: avoid configure-time syntax error
23764         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23765         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23766         the empty string.  Don't let that provoke a shell syntax error.
23767
23768         regcomp, regexec, fnmatch: avoid array bounds read error
23769         * lib/regcomp.c (build_equiv_class): From glibc:
23770         Use only the low 24 bits of a findidx return value as an index
23771         into the weights array.  Patch by Ulrich Drepper:
23772         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23773         * lib/regexec.c (check_node_accept_bytes): Likewise.
23774         * lib/fnmatch_loop.c (FCT): Likewise.
23775
23776         regcomp: skip collseq lookup when there are no rules
23777         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23778         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23779
23780         regcomp: recognize ill-formed { } expressions
23781         * lib/regcomp.c (parse_dup_op): From glibc:
23782         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23783
23784         regcomp: fix typo in comment
23785         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23786         s/satisfy/satisfies/.
23787
23788         regcomp: sync from glibc: remove dead store
23789         * lib/regcomp.c (duplicate_node_closure): Remove useless
23790         search_duplicated_node call and dead store.
23791
23792         regcomp: sync from glibc; always use nl_langinfo
23793         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23794         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23795         * modules/regex (Depends-on): Add nl_langinfo.
23796
23797 2010-01-04  Eric Blake  <ebb9@byu.net>
23798
23799         fdopendir: fix configure test
23800         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23801
23802 2010-01-01  Bruno Haible  <bruno@clisp.org>
23803
23804         wchar: Remove unused configure check.
23805         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23806
23807 2010-01-01  Eric Blake  <ebb9@byu.net>
23808
23809         headers: make check of system header explicit
23810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23811         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23812         ourselves.
23813         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23815         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23816         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23817         internals.
23818         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23819         missing.
23820         Suggested by Bruno Haible.
23821
23822 2010-01-01  Jim Meyering  <meyering@redhat.com>
23823
23824         ChangeLog: tweak to eliminate unnecessary copyright line
23825         * ChangeLog: Remove a copyright line that was mistakenly updated
23826         by today's update-copyright run.  Reported by Eric Blake.
23827
23828         test-update-copyright: don't let envvar setting cause test failure
23829         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23830
23831 2010-01-01  Bruno Haible  <bruno@clisp.org>
23832
23833         localename: Avoid gcc warning.
23834         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23835         function if it is not used.
23836
23837 2010-01-01  Jim Meyering  <meyering@redhat.com>
23838
23839         update nearly all FSF copyright year lists to include 2010
23840         Use the same procedure as for 2009, outlined in
23841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23842
23843         version-etc: set COPYRIGHT_YEAR to 2010
23844         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23845
23846 2009-12-31  Eric Blake  <ebb9@byu.net>
23847
23848         doc: correct availability of cygwin 1.5.x getopt
23849         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23850         variables.
23851         * doc/posix-functions/opterr.texi (opterr): Likewise.
23852         * doc/posix-functions/optind.texi (optind): Likewise.
23853         * doc/posix-functions/optopt.texi (optopt): Likewise.
23854         * doc/posix-functions/tzname.texi (tzname): Likewise.
23855
23856         openat: update maintainer
23857         * modules/openat (Maintainer): Add myself.
23858
23859         utimens: avoid shadowing warning
23860         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23861         buffers into one, to avoid shadowing, as well as avoiding a
23862         redundant stat.
23863         Reported by Jim Meyering.
23864
23865         test-dup2: avoid compiler warning
23866         * tests/test-dup2.c (is_inheritable): Only define if used.
23867
23868 2010-01-01  Bruno Haible  <bruno@clisp.org>
23869
23870         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23871         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23872         defined, use wctomb instead of wcrtomb.
23873
23874 2010-01-01  Bruno Haible  <bruno@clisp.org>
23875
23876         iconv: Reject native Solaris iconv.
23877         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23878         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23879
23880 2009-12-31  Bruno Haible  <bruno@clisp.org>
23881
23882         * tests/test-signal.c (main): Remove test of 'SIG'.
23883
23884 2009-12-31  Bruno Haible  <bruno@clisp.org>
23885
23886         spawn: Fix incomplete fix.
23887         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23888         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23889         warnings for GNULIB_POSIXCHECK again.
23890         Reported by Eric Blake.
23891
23892 2009-12-31  Bruno Haible  <bruno@clisp.org>
23893
23894         Avoid namespace pollution on glibc systems.
23895         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23896         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23897         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23898         glibc systems.
23899
23900 2009-12-31  Bruno Haible  <bruno@clisp.org>
23901
23902         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23903         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23904         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23905         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23906         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23907         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23908         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23909
23910 2009-12-31  Bruno Haible  <bruno@clisp.org>
23911
23912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23913         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23914         afterwards.
23915
23916 2009-12-31  Bruno Haible  <bruno@clisp.org>
23917
23918         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23919         SYS_UTSNAME_H.
23920
23921 2009-12-31  Bruno Haible  <bruno@clisp.org>
23922
23923         spawn: Fix misapplied patch.
23924         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23925         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23926         warnings for GNULIB_POSIXCHECK.
23927
23928 2009-12-31  Bruno Haible  <bruno@clisp.org>
23929
23930         times: Update after sys_times changed.
23931         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23932         * modules/times (Files): Add it.
23933         (configure.ac): Invoke gl_FUNC_TIMES.
23934
23935 2009-12-31  Bruno Haible  <bruno@clisp.org>
23936
23937         Use AC_C_INLINE where necessary.
23938         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23939         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23941         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23942         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23943         * m4/mbiter.m4 (gl_MBITER): Likewise.
23944         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23945         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23946         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23947         * modules/u64 (configure.ac): Likewise.
23948
23949 2009-12-31  Bruno Haible  <bruno@clisp.org>
23950
23951         Use AC_C_INLINE instead of module 'inline' where possible.
23952         * modules/inline (Description): Clarify purpose.
23953         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23954         * modules/count-one-bits (Depends-on): Remove inline.
23955         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23956         * modules/openat (Depends-on): Remove inline.
23957         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23958         instead of depending on module 'inline'.
23959         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23960         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23961         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23962         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23963         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23964         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23965         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23966         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23967         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23968         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23969         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23970         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23971         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23972         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23973         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23974         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23975         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23976         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23977         Likewise.
23978         * modules/unictype/property-ascii-hex-digit (Depends-on,
23979         configure.ac): Likewise.
23980         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23981         configure.ac): Likewise.
23982         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23983         configure.ac): Likewise.
23984         * modules/unictype/property-bidi-block-separator (Depends-on,
23985         configure.ac): Likewise.
23986         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23987         configure.ac): Likewise.
23988         * modules/unictype/property-bidi-common-separator (Depends-on,
23989         configure.ac): Likewise.
23990         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23991         Likewise.
23992         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23993         configure.ac): Likewise.
23994         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23995         configure.ac): Likewise.
23996         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23997         configure.ac): Likewise.
23998         * modules/unictype/property-bidi-european-digit (Depends-on,
23999         configure.ac): Likewise.
24000         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24001         configure.ac): Likewise.
24002         * modules/unictype/property-bidi-left-to-right (Depends-on,
24003         configure.ac): Likewise.
24004         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24005         configure.ac): Likewise.
24006         * modules/unictype/property-bidi-other-neutral (Depends-on,
24007         configure.ac): Likewise.
24008         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24009         Likewise.
24010         * modules/unictype/property-bidi-segment-separator (Depends-on,
24011         configure.ac): Likewise.
24012         * modules/unictype/property-bidi-whitespace (Depends-on,
24013         configure.ac): Likewise.
24014         * modules/unictype/property-combining (Depends-on, configure.ac):
24015         Likewise.
24016         * modules/unictype/property-composite (Depends-on, configure.ac):
24017         Likewise.
24018         * modules/unictype/property-currency-symbol (Depends-on,
24019         configure.ac): Likewise.
24020         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24021         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24022         Likewise.
24023         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24024         configure.ac): Likewise.
24025         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24026         Likewise.
24027         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24028         Likewise.
24029         * modules/unictype/property-extender (Depends-on, configure.ac):
24030         Likewise.
24031         * modules/unictype/property-format-control (Depends-on, configure.ac):
24032         Likewise.
24033         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24034         Likewise.
24035         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24036         Likewise.
24037         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24038         Likewise.
24039         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24040         Likewise.
24041         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24042         Likewise.
24043         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24044         Likewise.
24045         * modules/unictype/property-id-start (Depends-on, configure.ac):
24046         Likewise.
24047         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24048         Likewise.
24049         * modules/unictype/property-ids-binary-operator (Depends-on,
24050         configure.ac): Likewise.
24051         * modules/unictype/property-ids-trinary-operator (Depends-on,
24052         configure.ac): Likewise.
24053         * modules/unictype/property-ignorable-control (Depends-on,
24054         configure.ac): Likewise.
24055         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24056         Likewise.
24057         * modules/unictype/property-join-control (Depends-on, configure.ac):
24058         Likewise.
24059         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24060         Likewise.
24061         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24062         Likewise.
24063         * modules/unictype/property-logical-order-exception (Depends-on,
24064         configure.ac): Likewise.
24065         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24066         Likewise.
24067         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24068         * modules/unictype/property-non-break (Depends-on, configure.ac):
24069         Likewise.
24070         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24071         Likewise.
24072         * modules/unictype/property-numeric (Depends-on, configure.ac):
24073         Likewise.
24074         * modules/unictype/property-other-alphabetic (Depends-on,
24075         configure.ac): Likewise.
24076         * modules/unictype/property-other-default-ignorable-code-point
24077         (Depends-on, configure.ac): Likewise.
24078         * modules/unictype/property-other-grapheme-extend (Depends-on,
24079         configure.ac): Likewise.
24080         * modules/unictype/property-other-id-continue (Depends-on,
24081         configure.ac): Likewise.
24082         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24083         Likewise.
24084         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24085         Likewise.
24086         * modules/unictype/property-other-math (Depends-on, configure.ac):
24087         Likewise.
24088         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24089         Likewise.
24090         * modules/unictype/property-paired-punctuation (Depends-on,
24091         configure.ac): Likewise.
24092         * modules/unictype/property-paragraph-separator (Depends-on,
24093         configure.ac): Likewise.
24094         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24095         Likewise.
24096         * modules/unictype/property-pattern-white-space (Depends-on,
24097         configure.ac): Likewise.
24098         * modules/unictype/property-private-use (Depends-on, configure.ac):
24099         Likewise.
24100         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24101         Likewise.
24102         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24103         Likewise.
24104         * modules/unictype/property-radical (Depends-on, configure.ac):
24105         Likewise.
24106         * modules/unictype/property-sentence-terminal (Depends-on,
24107         configure.ac): Likewise.
24108         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24109         Likewise.
24110         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24111         * modules/unictype/property-terminal-punctuation (Depends-on,
24112         configure.ac): Likewise.
24113         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24114         Likewise.
24115         * modules/unictype/property-unassigned-code-value (Depends-on,
24116         configure.ac): Likewise.
24117         * modules/unictype/property-unified-ideograph (Depends-on,
24118         configure.ac): Likewise.
24119         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24120         Likewise.
24121         * modules/unictype/property-variation-selector (Depends-on,
24122         configure.ac): Likewise.
24123         * modules/unictype/property-white-space (Depends-on, configure.ac):
24124         Likewise.
24125         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24126         Likewise.
24127         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24128         Likewise.
24129         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24130         Likewise.
24131         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24132         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24133         Likewise.
24134
24135 2009-12-31  Bruno Haible  <bruno@clisp.org>
24136
24137         Remove unnecessary AC_C_INLINE invocation.
24138         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24139         since 2009-08-21.
24140
24141 2009-12-31  Jim Meyering  <meyering@redhat.com>
24142
24143         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24144         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24145         With this change, we can all remove the gpg_key_ID = ... definition
24146         from our respective cfg.mk files.
24147
24148         maint.mk: create announcement template in ~/, not in /tmp
24149         * top/maint.mk (emit_upload_commands): Adjust.
24150         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24151         Remove temporary file, .ci-msg.
24152
24153 2009-12-31  Eric Blake  <ebb9@byu.net>
24154
24155         link-warning: always build headers with link warnings
24156         * modules/arpa_inet (Makefile.am): Always build replacement
24157         header.
24158         * modules/ctype (Makefile.am): Likewise.
24159         * modules/dirent (Makefile.am): Likewise.
24160         * modules/inttypes (Makefile.am): Likewise.
24161         * modules/langinfo (Makefile.am): Likewise.
24162         * modules/locale (Makefile.am): Likewise.
24163         * modules/spawn (Makefile.am): Likewise.
24164         * modules/sys_file (Makefile.am): Likewise.
24165         * modules/sys_ioctl (Makefile.am): Likewise.
24166         * modules/sys_select (Makefile.am): Likewise.
24167         * modules/sys_socket (Makefile.am): Likewise.
24168         * modules/sys_times (Makefile.am): Likewise.
24169         * modules/sys_utsname (Makefile.am): Likewise.
24170         * modules/sys_wait (Makefile.am): Likewise.
24171         * modules/wchar (Makefile.am): Likewise.
24172         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24173         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24174         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24175         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24176         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24177         Likewise.
24178         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24179         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24180         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24181         Likewise.
24182         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24183         Likewise.
24184         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24185         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24186         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24188         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24189         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24190         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24191         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24192         (gl_WCHAR_H_DEFAULTS): Likewise.
24193
24194 2009-12-31  Eric Blake  <ebb9@byu.net>
24195
24196         signal, spawn: use link warnings
24197         * lib/signal.in.h (sigset_t): Make unconditional.
24198         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24199         (sigpending, sigprocmask, sigaction): Add link warnings.
24200         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24201         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24202         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24203         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24204         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24205         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24206         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24207         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24208         (posix_spawn_file_actions_destroy)
24209         (posix_spawn_file_actions_addopen)
24210         (posix_spawn_file_actions_addclose)
24211         (posix_spawn_file_actions_adddup2): Likewise.
24212         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24213         * tests/test-signal.c (main): Enhance test.
24214
24215         spawn: improve wrapper support
24216         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24217         (gl_SPAWN_H_DEFAULTS): New defaults.
24218         * modules/spawn (Makefile.am): Substitute them.
24219         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24220         Only declare if missing or broken.
24221
24222         sys_times, sys_utsname: use include_next
24223         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24224         header.
24225         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24226         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24227         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24228         * modules/sys_times (Depends-on): Add include_next.
24229         (Makefile.am): Substitute additional values.
24230         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24231         * lib/sys_times.in.h (includes): Include native header, if
24232         available.
24233         * lib/sys_utsname.in.h (includes): Likewise.
24234         * tests/test-sys_times.c (main): Enhance test.
24235
24236         fdutimensat: revert prior patch
24237         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24238         utimens.h.
24239         Reported by Bruno Haible.
24240
24241 2009-12-30  Eric Blake  <ebb9@byu.net>
24242
24243         sys_wait: drop link-warning dependency
24244         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24245         link-warning efforts.
24246         * lib/sys_wait.in.h: Likewise.
24247
24248         fdutimensat: remove bogus dependency
24249         * modules/fdutimensat (Depends-on): Drop inline.
24250
24251         unistd: fix typo
24252         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24253
24254 2009-12-30  Bruno Haible  <bruno@clisp.org>
24255
24256         Fix compilation error with Solaris cc.
24257         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24258         * lib/unicase/u16-is-invariant.c: Likewise.
24259         * lib/unicase/u32-is-invariant.c: Likewise.
24260         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24261
24262 2009-12-30  Bruno Haible  <bruno@clisp.org>
24263
24264         Fix test crash.
24265         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24266         locales.
24267         Reported by Simon Josefsson <simon@josefsson.org>.
24268
24269 2009-12-30  Bruno Haible  <bruno@clisp.org>
24270
24271         Fix compilation error on most platforms.
24272         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24273         Reported by Simon Josefsson <simon@josefsson.org>
24274         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24275
24276 2009-12-30  Eric Blake  <ebb9@byu.net>
24277
24278         futimens, utimensat: work around ntfs-3g bug
24279         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24280         a ctime bug is present, and expand workaround to cover ntfs-3g.
24281         * lib/utimens.c (fdutimens, lutimens): Likewise.
24282         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24283         (validate_timespec): Adjust return value.
24284         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24285         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24286         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24287
24288 2009-12-29  Eric Blake  <ebb9@byu.net>
24289
24290         link-warning: make usage consistent
24291         * modules/ctype (Depends-on): Add link-warning.
24292         (Makefile.am): Update rules accordingly.
24293         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24294         * modules/locale (Depends-on, Makefile.am): Likewise.
24295         * modules/sys_file (Makefile.am): Likewise.
24296         * modules/getopt-posix (Makefile.am): Delete unused link warning
24297         efforts.
24298         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24299         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24300         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24301         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24302
24303         stdio: remove unused variables
24304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24305         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24306         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24307
24308         tests: test more substitute headers
24309         * modules/ctype-tests: New file.
24310         * modules/dirent-tests: Likewise.
24311         * modules/spawn-tests: Likewise.
24312         * modules/sys_file-tests: Likewise.
24313         * modules/sys_ioctl-tests: Likewise.
24314         * modules/sys_wait-tests: Likewise.
24315         * tests/test-ctype.c: Likewise.
24316         * tests/test-dirent.c: Likewise.
24317         * tests/test-spawn.c: Likewise.
24318         * tests/test-sys_file.c: Likewise.
24319         * tests/test-sys_ioctl.c: Likewise.
24320         * tests/test-sys_wait.c: Likewise.
24321         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24322         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24323         whether or not flock is in use.
24324
24325         tests: remove License section from module
24326         * modules/arpa_inet-tests: Remove unneeded section.
24327         * modules/byteswap-tests: Likewise.
24328         * modules/ceilf-tests: Likewise.
24329         * modules/ceill-tests: Likewise.
24330         * modules/crypto/des-tests: Likewise.
24331         * modules/crypto/gc-arcfour-tests: Likewise.
24332         * modules/crypto/gc-arctwo-tests: Likewise.
24333         * modules/crypto/gc-des-tests: Likewise.
24334         * modules/crypto/gc-hmac-md5-tests: Likewise.
24335         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24336         * modules/crypto/gc-md2-tests: Likewise.
24337         * modules/crypto/gc-md4-tests: Likewise.
24338         * modules/crypto/gc-md5-tests: Likewise.
24339         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24340         * modules/crypto/gc-rijndael-tests: Likewise.
24341         * modules/crypto/gc-sha1-tests: Likewise.
24342         * modules/crypto/gc-tests: Likewise.
24343         * modules/crypto/md2-tests: Likewise.
24344         * modules/crypto/md4-tests: Likewise.
24345         * modules/fcntl-h-tests: Likewise.
24346         * modules/floorf-tests: Likewise.
24347         * modules/floorl-tests: Likewise.
24348         * modules/frexp-nolibm-tests: Likewise.
24349         * modules/frexp-tests: Likewise.
24350         * modules/frexpl-nolibm-tests: Likewise.
24351         * modules/frexpl-tests: Likewise.
24352         * modules/getaddrinfo-tests: Likewise.
24353         * modules/inttypes-tests: Likewise.
24354         * modules/isfinite-tests: Likewise.
24355         * modules/isinf-tests: Likewise.
24356         * modules/ldexpl-tests: Likewise.
24357         * modules/locale-tests: Likewise.
24358         * modules/math-tests: Likewise.
24359         * modules/netdb-tests: Likewise.
24360         * modules/netinet_in-tests: Likewise.
24361         * modules/printf-frexp-tests: Likewise.
24362         * modules/printf-frexpl-tests: Likewise.
24363         * modules/priv-set-tests: Likewise.
24364         * modules/random_r-tests: Likewise.
24365         * modules/round-tests: Likewise.
24366         * modules/roundf-tests: Likewise.
24367         * modules/roundl-tests: Likewise.
24368         * modules/search-tests: Likewise.
24369         * modules/select-tests: Likewise.
24370         * modules/signal-tests: Likewise.
24371         * modules/stdbool-tests: Likewise.
24372         * modules/stddef-tests: Likewise.
24373         * modules/stdint-tests: Likewise.
24374         * modules/stdio-tests: Likewise.
24375         * modules/stdlib-tests: Likewise.
24376         * modules/string-tests: Likewise.
24377         * modules/strings-tests: Likewise.
24378         * modules/sys_select-tests: Likewise.
24379         * modules/sys_socket-tests: Likewise.
24380         * modules/sys_stat-tests: Likewise.
24381         * modules/sys_time-tests: Likewise.
24382         * modules/sys_utsname-tests: Likewise.
24383         * modules/sysexits-tests: Likewise.
24384         * modules/time-tests: Likewise.
24385         * modules/trunc-tests: Likewise.
24386         * modules/truncf-tests: Likewise.
24387         * modules/truncl-tests: Likewise.
24388         * modules/tsearch-tests: Likewise.
24389         * modules/unistd-tests: Likewise.
24390         * modules/wchar-tests: Likewise.
24391         * modules/wctype-tests: Likewise.
24392
24393         tests: fix license on several tests
24394         * tests/test-des.c: Update to GPLv3+.
24395         * tests/test-flock.c: Likewise.
24396         * tests/test-fsync.c: Likewise.
24397         * tests/test-futimens.h: Likewise.
24398         * tests/test-gc-arcfour.c: Likewise.
24399         * tests/test-gc-arctwo.c: Likewise.
24400         * tests/test-gc-des.c: Likewise.
24401         * tests/test-gc-hmac-md5.c: Likewise.
24402         * tests/test-gc-hmac-sha1.c: Likewise.
24403         * tests/test-gc-md2.c: Likewise.
24404         * tests/test-gc-md4.c: Likewise.
24405         * tests/test-gc-md5.c: Likewise.
24406         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24407         * tests/test-gc-rijndael.c: Likewise.
24408         * tests/test-gc-sha1.c: Likewise.
24409         * tests/test-gc.c: Likewise.
24410         * tests/test-getcwd.c: Likewise.
24411         * tests/test-link.c: Likewise.
24412         * tests/test-link.h: Likewise.
24413         * tests/test-lutimens.h: Likewise.
24414         * tests/test-md2.c: Likewise.
24415         * tests/test-md4.c: Likewise.
24416         * tests/test-mkdir.h: Likewise.
24417         * tests/test-rename.c: Likewise.
24418         * tests/test-rename.h: Likewise.
24419         * tests/test-safe-alloc.c: Likewise.
24420         * tests/test-utimens-common.h: Likewise.
24421         * tests/test-utimens.h: Likewise.
24422
24423         maint: sync license texts
24424         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24425         * doc/gpl-3.0.texi: Revert copyright year update.
24426         * doc/lgpl-3.0.texi: Likewise.
24427
24428 2009-12-29  Jim Meyering  <meyering@redhat.com>
24429
24430         update nearly all FSF copyright year lists to include 2009
24431         The files named by the following are exempted:
24432             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24433               test -f "$dst" && { echo "$dst"; continue; }
24434               test -d "$dst" || continue
24435               echo "$dst"/$(basename "$src")
24436             done > exempt
24437             git ls-files tests/unictype >> exempt
24438         In the remaining files, convert to all-interval notation if
24439         - there is already at least one year interval like 2000-2003
24440         - the file is maintained by me
24441         - the file is in lib/uni*/, where that style already prevails
24442         Otherwise, use update-copyright's default.
24443
24444 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24445         and Eric Blake  <ebb9@byu.net>
24446
24447         tests: don't require debug system() to pass
24448         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24449         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24450         * tests/test-unlink.h (test_unlink_func): Likewise.
24451         * tests/test-fstatat.c (main): ...into callers.
24452         * tests/test-lstat.c (main): Likewise.
24453         * tests/test-rmdir.c (main): Likewise.
24454         * tests/test-unlink.c (main): Likewise.
24455         * tests/test-unlinkat.c (main): Likewise.
24456         * tests/test-areadlink-with-size.c (main): Don't require a
24457         debug-only system call to pass, aiding cross-testing to mingw.
24458         * tests/test-areadlink.c (main): Likewise.
24459         * tests/test-areadlinkat-with-size.c (main): Likewise.
24460         * tests/test-areadlinkat.c (main): Likewise.
24461         * tests/test-canonicalize-lgpl.c (main): Likewise.
24462         * tests/test-canonicalize.c (main): Likewise.
24463         * tests/test-chown.c (main): Likewise.
24464         * tests/test-fchownat.c (main): Likewise.
24465         * tests/test-lchown.c (main): Likewise.
24466         * tests/test-fdutimensat.c (main): Likewise.
24467         * tests/test-futimens.c (main): Likewise.
24468         * tests/test-link.c (main): Likewise.
24469         * tests/test-linkat.c (main): Likewise.
24470         * tests/test-mkdir.c (main): Likewise.
24471         * tests/test-mkdirat.c (main): Likewise.
24472         * tests/test-mkfifo.c (main): Likewise.
24473         * tests/test-mkfifoat.c (main): Likewise.
24474         * tests/test-mknod.c (main): Likewise.
24475         * tests/test-readlink.c (main): Likewise.
24476         * tests/test-remove.c (main): Likewise.
24477         * tests/test-rename.c (main): Likewise.
24478         * tests/test-renameat.c (main): Likewise.
24479         * tests/test-symlink.c (main): Likewise.
24480         * tests/test-symlinkat.c (main): Likewise.
24481         * tests/test-utimens.c (main): Likewise.
24482         * tests/test-utimensat.c (main): Likewise.
24483
24484 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24485
24486         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24487         on $(UNUSED_PARAMETER_H) to avoid build failure.
24488
24489 2009-12-28  Jim Meyering  <meyering@redhat.com>
24490
24491         update-copyright: you may specify a max. line length other than 72
24492         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24493
24494         maint: use consistent FSF copyright line syntax
24495         * lib/posixtm.c: Add missing comma in FSF copyright line.
24496         * lib/posixtm.h: Likewise.
24497         * lib/getugroups.c: Add missing ", Inc.".
24498
24499         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24500         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24501         FSF copyright line.  Remove trailing blanks.
24502
24503 2009-12-28  Eric Blake  <ebb9@byu.net>
24504
24505         test-dup2: reduce dependencies
24506         * modules/cloexec (Configure.ac): Set witness.
24507         * modules/dup2-tests (Depends-on): Drop cloexec.
24508         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24509         not present.
24510         Suggested by Bruno Haible.
24511
24512 2009-12-26  Bruno Haible  <bruno@clisp.org>
24513
24514         Remove an unneeded dependency.
24515         * modules/fseterr (Depends-on): Remove dup2.
24516
24517 2009-12-26  Eric Blake  <ebb9@byu.net>
24518
24519         tests: use macros.h in more places
24520         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24521         (ASSERT_STREAM): Provide default of stderr.
24522         * tests/test-dirent-safer.c: Include macros.h, using alternate
24523         stream for assertions.
24524         * tests/test-dup-safer.c: Likewise.
24525         * tests/test-freopen-safer.c: Likewise.
24526         * tests/test-getopt.c: Likewise.
24527         * tests/test-openat-safer.c: Likewise.
24528         * tests/test-pipe.c: Likewise.
24529         * tests/test-popen-safer.c: Likewise.
24530         * modules/dirent-safer-tests (Files): Include macros.h.
24531         * modules/unistd-safer-tests (Files): Likewise.
24532         * modules/freopen-safer-tests (Files): Likewise.
24533         * modules/getopt-posix-tests (Files): Likewise.
24534         * modules/openat-safer-tests (Files): Likewise.
24535         * modules/pipe-tests (Files): Likewise.
24536
24537 2009-12-26  Bruno Haible  <bruno@clisp.org>
24538
24539         javacomp: Portability fix.
24540         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24541         that it also works on Solaris.
24542
24543 2009-12-26  Bruno Haible  <bruno@clisp.org>
24544
24545         localename: Fix storage allocation of gl_locale_name_thread's result.
24546         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24547         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24548         all platforms that have 'uselocale'.
24549         (gl_locale_name_thread_unsafe): New function, extracted from
24550         gl_locale_name_thread.
24551         (gl_locale_name_thread): Call struniq on all platforms that have
24552         'uselocale'.
24553         * tests/test-localename.c (test_locale_name_thread): Check that the
24554         resulting strings are permanently allocated.
24555         * modules/localename-tests (Depends-on): Add strdup.
24556
24557 2009-12-26  Bruno Haible  <bruno@clisp.org>
24558
24559         * tests/test-localename.c (categories): Fill in the strings.
24560
24561 2009-12-26  Jim Meyering  <meyering@redhat.com>
24562
24563         isdir: complete the removal of m4/isdir.m4
24564         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24565
24566         isdir: clean up, since at least grep still uses it
24567         * lib/isdir.c: Include "isdir.h".
24568         (S_ISDIR): Remove now-unneeded definition.
24569         * modules/isdir (Files): Add lib/isdir.h.
24570         * lib/isdir.h: New file, with declaration.
24571         * m4/isdir.m4: Remove file -- unneeded.
24572
24573 2009-12-25  Bruno Haible  <bruno@clisp.org>
24574
24575         selinux-h: Make generated .h files standalone.
24576         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24577         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24578         * lib/se-selinux.in.h: Likewise.
24579         * modules/selinux-h (Depends-on): Add unused-parameter.
24580         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24581         selinux/selinux.h and selinux/context.h.
24582         Suggested by Eric Blake.
24583
24584 2009-12-25  Bruno Haible  <bruno@clisp.org>
24585
24586         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24587         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24588         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24589         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24590         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24591
24592 2009-12-24  Bruno Haible  <bruno@clisp.org>
24593
24594         openat: Fix warning.
24595         * lib/openat-proc.c: Include <unistd.h>.
24596
24597 2009-12-24  Bruno Haible  <bruno@clisp.org>
24598
24599         New module 'unused-parameter'.
24600         * build-aux/unused-parameter.h: New file, extracted from earlier
24601         gnulib-common.m4.
24602         * modules/unused-parameter: New file.
24603         * lib/unistr.h: Include unused-parameter.h.
24604         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24605         _GL_UNUSED.
24606         * modules/unistr/base (Depends-on): Add unused-parameter.
24607
24608 2009-12-24  Bruno Haible  <bruno@clisp.org>
24609
24610         Add missing dependencies to 'extensions' module.
24611         * m4/extensions.m4: Add comment.
24612         * modules/accept4 (Depends-on): Add extensions.
24613         * modules/dup3 (Depends-on): Likewise.
24614         * modules/fcntl (Depends-on): Likewise.
24615         * modules/futimens (Depends-on): Likewise.
24616         * modules/mknod (Depends-on): Likewise.
24617         * modules/pipe2 (Depends-on): Likewise.
24618         * modules/stat-time (Depends-on): Likewise.
24619         * modules/strcasestr-simple (Depends-on): Likewise.
24620         * modules/strsignal (Depends-on): Likewise.
24621         * modules/utimensat (Depends-on): Likewise.
24622         * modules/localcharset (Depends-on): Likewise. Needed because of
24623         gl_FCNTL_O_FLAGS.
24624         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24625         AC_TYPE_MBSTATE_T.
24626         * modules/wcsnrtombs (Depends-on): Likewise.
24627         * modules/wcsrtombs (Depends-on): Likewise.
24628
24629 2009-12-24  Bruno Haible  <bruno@clisp.org>
24630
24631         binary-io: Avoid gcc warning due to SET_BINARY.
24632         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24633         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24634
24635 2009-12-24  Bruno Haible  <bruno@clisp.org>
24636
24637         Avoid future namespace pollution on glibc systems.
24638         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24639         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24640         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24641         glibc systems.
24642
24643 2009-12-24  Bruno Haible  <bruno@clisp.org>
24644
24645         Refactor common macros used in tests.
24646         * tests/macros.h: New file.
24647         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24648         and/or <stdlib.h>, if appropriate.
24649         (ASSERT, SIZEOF): Remove macros.
24650         * tests/test-areadlink-with-size.c: Likewise.
24651         * tests/test-areadlinkat.c: Likewise.
24652         * tests/test-areadlinkat-with-size.c: Likewise.
24653         * tests/test-argmatch.c: Likewise.
24654         * tests/test-argv-iter.c: Likewise.
24655         * tests/test-array-mergesort.c: Likewise.
24656         * tests/test-array_list.c: Likewise.
24657         * tests/test-array_oset.c: Likewise.
24658         * tests/test-avltree_list.c: Likewise.
24659         * tests/test-avltree_oset.c: Likewise.
24660         * tests/test-avltreehash_list.c: Likewise.
24661         * tests/test-base64.c: Likewise.
24662         * tests/test-binary-io.c: Likewise.
24663         * tests/test-bitrotate.c: Likewise.
24664         * tests/test-btowc.c: Likewise.
24665         * tests/test-byteswap.c: Likewise.
24666         * tests/test-c-ctype.c: Likewise.
24667         * tests/test-c-stack.c: Likewise.
24668         * tests/test-c-strcasecmp.c: Likewise.
24669         * tests/test-c-strcasestr.c: Likewise.
24670         * tests/test-c-strncasecmp.c: Likewise.
24671         * tests/test-c-strstr.c: Likewise.
24672         * tests/test-canonicalize-lgpl.c: Likewise.
24673         * tests/test-canonicalize.c: Likewise.
24674         * tests/test-carray_list.c: Likewise.
24675         * tests/test-ceilf1.c: Likewise.
24676         * tests/test-ceilf2.c: Likewise.
24677         * tests/test-ceill.c: Likewise.
24678         * tests/test-chown.c: Likewise.
24679         * tests/test-cloexec.c: Likewise.
24680         * tests/test-copy-acl.c: Likewise.
24681         * tests/test-copy-file.c: Likewise.
24682         * tests/test-count-one-bits.c: Likewise.
24683         * tests/test-dprintf-posix.c: Likewise.
24684         * tests/test-dup2.c: Likewise.
24685         * tests/test-dup3.c: Likewise.
24686         * tests/test-duplocale.c: Likewise.
24687         * tests/test-fbufmode.c: Likewise.
24688         * tests/test-fchdir.c: Likewise.
24689         * tests/test-fchownat.c: Likewise.
24690         * tests/test-fcntl-safer.c: Likewise.
24691         * tests/test-fcntl.c: Likewise.
24692         * tests/test-fdopendir.c: Likewise.
24693         * tests/test-fdutimensat.c: Likewise.
24694         * tests/test-fflush2.c: Likewise.
24695         * tests/test-file-has-acl.c: Likewise.
24696         * tests/test-filevercmp.c: Likewise.
24697         * tests/test-flock.c: Likewise.
24698         * tests/test-floorf1.c: Likewise.
24699         * tests/test-floorf2.c: Likewise.
24700         * tests/test-floorl.c: Likewise.
24701         * tests/test-fnmatch.c: Likewise.
24702         * tests/test-fopen.h: Likewise.
24703         * tests/test-fpending.c: Likewise.
24704         * tests/test-fprintf-posix.c: Likewise.
24705         * tests/test-fpurge.c: Likewise.
24706         * tests/test-freadable.c: Likewise.
24707         * tests/test-freadahead.c: Likewise.
24708         * tests/test-freading.c: Likewise.
24709         * tests/test-freadptr.c: Likewise.
24710         * tests/test-freadptr2.c: Likewise.
24711         * tests/test-freadseek.c: Likewise.
24712         * tests/test-freopen.c: Likewise.
24713         * tests/test-frexp.c: Likewise.
24714         * tests/test-frexpl.c: Likewise.
24715         * tests/test-fseek.c: Likewise.
24716         * tests/test-fseeko.c: Likewise.
24717         * tests/test-fstatat.c: Likewise.
24718         * tests/test-fstrcmp.c: Likewise.
24719         * tests/test-fsync.c: Likewise.
24720         * tests/test-ftell.c: Likewise.
24721         * tests/test-ftello.c: Likewise.
24722         * tests/test-func.c: Likewise.
24723         * tests/test-futimens.c: Likewise.
24724         * tests/test-fwritable.c: Likewise.
24725         * tests/test-fwriting.c: Likewise.
24726         * tests/test-getcwd.c: Likewise.
24727         * tests/test-getdate.c: Likewise.
24728         * tests/test-getdelim.c: Likewise.
24729         * tests/test-getdtablesize.c: Likewise.
24730         * tests/test-getgroups.c: Likewise.
24731         * tests/test-getline.c: Likewise.
24732         * tests/test-getndelim2.c: Likewise.
24733         * tests/test-glob.c: Likewise.
24734         * tests/test-hash.c: Likewise.
24735         * tests/test-i-ring.c: Likewise.
24736         * tests/test-iconv-utf.c: Likewise.
24737         * tests/test-iconv.c: Likewise.
24738         * tests/test-idpriv-drop.c: Likewise.
24739         * tests/test-idpriv-droptemp.c: Likewise.
24740         * tests/test-inet_ntop.c: Likewise.
24741         * tests/test-inet_pton.c: Likewise.
24742         * tests/test-isblank.c: Likewise.
24743         * tests/test-isfinite.c: Likewise.
24744         * tests/test-isinf.c: Likewise.
24745         * tests/test-isnan.c: Likewise.
24746         * tests/test-isnand.h: Likewise.
24747         * tests/test-isnanf.h: Likewise.
24748         * tests/test-isnanl.h: Likewise.
24749         * tests/test-lchown.c: Likewise.
24750         * tests/test-ldexpl.c: Likewise.
24751         * tests/test-link.c: Likewise.
24752         * tests/test-linkat.c: Likewise.
24753         * tests/test-linked_list.c: Likewise.
24754         * tests/test-linkedhash_list.c: Likewise.
24755         * tests/test-localename.c: Likewise.
24756         * tests/test-lseek.c: Likewise.
24757         * tests/test-lstat.c: Likewise.
24758         * tests/test-mbmemcasecmp.c: Likewise.
24759         * tests/test-mbmemcasecoll.c: Likewise.
24760         * tests/test-mbrtowc.c: Likewise.
24761         * tests/test-mbscasecmp.c: Likewise.
24762         * tests/test-mbscasestr1.c: Likewise.
24763         * tests/test-mbscasestr2.c: Likewise.
24764         * tests/test-mbscasestr3.c: Likewise.
24765         * tests/test-mbscasestr4.c: Likewise.
24766         * tests/test-mbschr.c: Likewise.
24767         * tests/test-mbscspn.c: Likewise.
24768         * tests/test-mbsinit.c: Likewise.
24769         * tests/test-mbsncasecmp.c: Likewise.
24770         * tests/test-mbsnrtowcs.c: Likewise.
24771         * tests/test-mbspbrk.c: Likewise.
24772         * tests/test-mbspcasecmp.c: Likewise.
24773         * tests/test-mbsrchr.c: Likewise.
24774         * tests/test-mbsrtowcs.c: Likewise.
24775         * tests/test-mbsspn.c: Likewise.
24776         * tests/test-mbsstr1.c: Likewise.
24777         * tests/test-mbsstr2.c: Likewise.
24778         * tests/test-mbsstr3.c: Likewise.
24779         * tests/test-memchr.c: Likewise.
24780         * tests/test-memchr2.c: Likewise.
24781         * tests/test-memcmp.c: Likewise.
24782         * tests/test-memmem.c: Likewise.
24783         * tests/test-memrchr.c: Likewise.
24784         * tests/test-mkdir.c: Likewise.
24785         * tests/test-mkdirat.c: Likewise.
24786         * tests/test-mkfifo.c: Likewise.
24787         * tests/test-mkfifoat.c: Likewise.
24788         * tests/test-mknod.c: Likewise.
24789         * tests/test-nanosleep.c: Likewise.
24790         * tests/test-nl_langinfo.c: Likewise.
24791         * tests/test-obstack-printf.c: Likewise.
24792         * tests/test-open.c: Likewise.
24793         * tests/test-openat.c: Likewise.
24794         * tests/test-pipe-filter-gi1.c: Likewise.
24795         * tests/test-pipe-filter-gi2-main.c: Likewise.
24796         * tests/test-pipe-filter-ii1.c: Likewise.
24797         * tests/test-pipe-filter-ii2-main.c: Likewise.
24798         * tests/test-pipe2.c: Likewise.
24799         * tests/test-popen.h: Likewise.
24800         * tests/test-posixtm.c: Likewise.
24801         * tests/test-pread.c: Likewise.
24802         * tests/test-printf-frexp.c: Likewise.
24803         * tests/test-printf-frexpl.c: Likewise.
24804         * tests/test-printf-posix.c: Likewise.
24805         * tests/test-priv-set.c: Likewise.
24806         * tests/test-quotearg.c: Likewise.
24807         * tests/test-random_r.c: Likewise.
24808         * tests/test-rawmemchr.c: Likewise.
24809         * tests/test-rbtree_list.c: Likewise.
24810         * tests/test-rbtree_oset.c: Likewise.
24811         * tests/test-rbtreehash_list.c: Likewise.
24812         * tests/test-readlink.c: Likewise.
24813         * tests/test-remove.c: Likewise.
24814         * tests/test-rename.c: Likewise.
24815         * tests/test-renameat.c: Likewise.
24816         * tests/test-rmdir.c: Likewise.
24817         * tests/test-round1.c: Likewise.
24818         * tests/test-roundf1.c: Likewise.
24819         * tests/test-roundl.c: Likewise.
24820         * tests/test-safe-alloc.c: Likewise.
24821         * tests/test-sameacls.c: Likewise.
24822         * tests/test-set-mode-acl.c: Likewise.
24823         * tests/test-setenv.c: Likewise.
24824         * tests/test-sigaction.c: Likewise.
24825         * tests/test-signbit.c: Likewise.
24826         * tests/test-sleep.c: Likewise.
24827         * tests/test-snprintf-posix.c: Likewise.
24828         * tests/test-snprintf.c: Likewise.
24829         * tests/test-sprintf-posix.c: Likewise.
24830         * tests/test-stat-time.c: Likewise.
24831         * tests/test-stat.c: Likewise.
24832         * tests/test-strcasestr.c: Likewise.
24833         * tests/test-strchrnul.c: Likewise.
24834         * tests/test-strerror.c: Likewise.
24835         * tests/test-striconv.c: Likewise.
24836         * tests/test-striconveh.c: Likewise.
24837         * tests/test-striconveha.c: Likewise.
24838         * tests/test-strsignal.c: Likewise.
24839         * tests/test-strstr.c: Likewise.
24840         * tests/test-strtod.c: Likewise.
24841         * tests/test-strverscmp.c: Likewise.
24842         * tests/test-symlink.c: Likewise.
24843         * tests/test-symlinkat.c: Likewise.
24844         * tests/test-trunc1.c: Likewise.
24845         * tests/test-trunc2.c: Likewise.
24846         * tests/test-truncf1.c: Likewise.
24847         * tests/test-truncf2.c: Likewise.
24848         * tests/test-truncl.c: Likewise.
24849         * tests/test-uname.c: Likewise.
24850         * tests/test-unlink.c: Likewise.
24851         * tests/test-unlinkat.c: Likewise.
24852         * tests/test-unsetenv.c: Likewise.
24853         * tests/test-usleep.c: Likewise.
24854         * tests/test-utimens.c: Likewise.
24855         * tests/test-utimensat.c: Likewise.
24856         * tests/test-vasnprintf-posix.c: Likewise.
24857         * tests/test-vasnprintf-posix2.c: Likewise.
24858         * tests/test-vasnprintf.c: Likewise.
24859         * tests/test-vasprintf-posix.c: Likewise.
24860         * tests/test-vasprintf.c: Likewise.
24861         * tests/test-vdprintf-posix.c: Likewise.
24862         * tests/test-vfprintf-posix.c: Likewise.
24863         * tests/test-vprintf-posix.c: Likewise.
24864         * tests/test-vsnprintf-posix.c: Likewise.
24865         * tests/test-vsnprintf.c: Likewise.
24866         * tests/test-vsprintf-posix.c: Likewise.
24867         * tests/test-wcrtomb.c: Likewise.
24868         * tests/test-wcsnrtombs.c: Likewise.
24869         * tests/test-wcsrtombs.c: Likewise.
24870         * tests/test-wctype.c: Likewise.
24871         * tests/test-wcwidth.c: Likewise.
24872         * tests/test-xfprintf-posix.c: Likewise.
24873         * tests/test-xmemdup0.c: Likewise.
24874         * tests/test-xprintf-posix.c: Likewise.
24875         * tests/test-xvasprintf.c: Likewise.
24876         * tests/unicase/test-locale-language.c: Likewise.
24877         * tests/unicase/test-mapping-part1.h: Likewise.
24878         * tests/unicase/test-predicate-part1.h: Likewise.
24879         * tests/unicase/test-u8-casecmp.c: Likewise.
24880         * tests/unicase/test-u8-casecoll.c: Likewise.
24881         * tests/unicase/test-u8-casefold.c: Likewise.
24882         * tests/unicase/test-u8-is-cased.c: Likewise.
24883         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24884         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24885         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24886         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24887         * tests/unicase/test-u8-tolower.c: Likewise.
24888         * tests/unicase/test-u8-totitle.c: Likewise.
24889         * tests/unicase/test-u8-toupper.c: Likewise.
24890         * tests/unicase/test-u16-casecmp.c: Likewise.
24891         * tests/unicase/test-u16-casecoll.c: Likewise.
24892         * tests/unicase/test-u16-casefold.c: Likewise.
24893         * tests/unicase/test-u16-is-cased.c: Likewise.
24894         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24895         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24896         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24897         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24898         * tests/unicase/test-u16-tolower.c: Likewise.
24899         * tests/unicase/test-u16-totitle.c: Likewise.
24900         * tests/unicase/test-u16-toupper.c: Likewise.
24901         * tests/unicase/test-u32-casecmp.c: Likewise.
24902         * tests/unicase/test-u32-casecoll.c: Likewise.
24903         * tests/unicase/test-u32-casefold.c: Likewise.
24904         * tests/unicase/test-u32-is-cased.c: Likewise.
24905         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24906         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24907         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24908         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24909         * tests/unicase/test-u32-tolower.c: Likewise.
24910         * tests/unicase/test-u32-totitle.c: Likewise.
24911         * tests/unicase/test-u32-toupper.c: Likewise.
24912         * tests/unicase/test-ulc-casecmp.c: Likewise.
24913         * tests/unicase/test-ulc-casecoll.c: Likewise.
24914         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24915         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24916         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24917         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24918         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24919         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24920         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24921         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24922         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24923         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24924         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24925         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24926         * tests/unictype/test-bidi_byname.c: Likewise.
24927         * tests/unictype/test-bidi_name.c: Likewise.
24928         * tests/unictype/test-bidi_of.c: Likewise.
24929         * tests/unictype/test-bidi_test.c: Likewise.
24930         * tests/unictype/test-block_list.c: Likewise.
24931         * tests/unictype/test-block_of.c: Likewise.
24932         * tests/unictype/test-block_test.c: Likewise.
24933         * tests/unictype/test-categ_and.c: Likewise.
24934         * tests/unictype/test-categ_and_not.c: Likewise.
24935         * tests/unictype/test-categ_byname.c: Likewise.
24936         * tests/unictype/test-categ_name.c: Likewise.
24937         * tests/unictype/test-categ_none.c: Likewise.
24938         * tests/unictype/test-categ_of.c: Likewise.
24939         * tests/unictype/test-categ_or.c: Likewise.
24940         * tests/unictype/test-categ_test_withtable.c: Likewise.
24941         * tests/unictype/test-combining.c: Likewise.
24942         * tests/unictype/test-decdigit.c: Likewise.
24943         * tests/unictype/test-digit.c: Likewise.
24944         * tests/unictype/test-mirror.c: Likewise.
24945         * tests/unictype/test-numeric.c: Likewise.
24946         * tests/unictype/test-pr_byname.c: Likewise.
24947         * tests/unictype/test-pr_test.c: Likewise.
24948         * tests/unictype/test-predicate-part1.h: Likewise.
24949         * tests/unictype/test-scripts.c: Likewise.
24950         * tests/unictype/test-sy_c_ident.c: Likewise.
24951         * tests/unictype/test-sy_java_ident.c: Likewise.
24952         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24953         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24954         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24955         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24956         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24957         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24958         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24959         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24960         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24961         * tests/uninorm/test-compat-decomposition.c: Likewise.
24962         * tests/uninorm/test-composition.c: Likewise.
24963         * tests/uninorm/test-decomposing-form.c: Likewise.
24964         * tests/uninorm/test-decomposition.c: Likewise.
24965         * tests/uninorm/test-u8-nfc.c: Likewise.
24966         * tests/uninorm/test-u8-nfd.c: Likewise.
24967         * tests/uninorm/test-u8-nfkc.c: Likewise.
24968         * tests/uninorm/test-u8-nfkd.c: Likewise.
24969         * tests/uninorm/test-u8-normcmp.c: Likewise.
24970         * tests/uninorm/test-u8-normcoll.c: Likewise.
24971         * tests/uninorm/test-u16-nfc.c: Likewise.
24972         * tests/uninorm/test-u16-nfd.c: Likewise.
24973         * tests/uninorm/test-u16-nfkc.c: Likewise.
24974         * tests/uninorm/test-u16-nfkd.c: Likewise.
24975         * tests/uninorm/test-u16-normcmp.c: Likewise.
24976         * tests/uninorm/test-u16-normcoll.c: Likewise.
24977         * tests/uninorm/test-u32-nfc.c: Likewise.
24978         * tests/uninorm/test-u32-nfd.c: Likewise.
24979         * tests/uninorm/test-u32-nfkc.c: Likewise.
24980         * tests/uninorm/test-u32-nfkd.c: Likewise.
24981         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24982         * tests/uninorm/test-u32-normcmp.c: Likewise.
24983         * tests/uninorm/test-u32-normcoll.c: Likewise.
24984         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24985         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24986         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24987         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24988         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24989         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24990         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24991         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24992         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24993         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24994         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24995         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24996         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24997         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24998         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24999         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25000         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25001         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25002         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25003         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25004         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25005         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25006         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25007         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25008         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25009         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25010         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25011         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25012         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25013         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25014         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25015         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25016         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25017         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25018         * tests/uniwidth/test-u8-width.c: Likewise.
25019         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25020         * tests/uniwidth/test-u16-width.c: Likewise.
25021         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25022         * tests/uniwidth/test-u32-width.c: Likewise.
25023         * tests/uniwidth/test-uc_width.c: Likewise.
25024         * tests/uniwidth/test-uc_width2.c: Likewise.
25025         * modules/acl-tests (Files): Add tests/macros.h.
25026         * modules/areadlink-tests (Files): Likewise.
25027         * modules/areadlink-with-size-tests (Files): Likewise.
25028         * modules/areadlinkat-tests (Files): Likewise.
25029         * modules/areadlinkat-with-size-tests (Files): Likewise.
25030         * modules/argmatch-tests (Files): Likewise.
25031         * modules/argv-iter-tests (Files): Likewise.
25032         * modules/array-list-tests (Files): Likewise.
25033         * modules/array-mergesort-tests (Files): Likewise.
25034         * modules/array-oset-tests (Files): Likewise.
25035         * modules/avltree-list-tests (Files): Likewise.
25036         * modules/avltree-oset-tests (Files): Likewise.
25037         * modules/avltreehash-list-tests (Files): Likewise.
25038         * modules/base64-tests (Files): Likewise.
25039         * modules/binary-io-tests (Files): Likewise.
25040         * modules/bitrotate-tests (Files): Likewise.
25041         * modules/btowc-tests (Files): Likewise.
25042         * modules/byteswap-tests (Files): Likewise.
25043         * modules/c-ctype-tests (Files): Likewise.
25044         * modules/c-stack-tests (Files): Likewise.
25045         * modules/c-strcase-tests (Files): Likewise.
25046         * modules/c-strcasestr-tests (Files): Likewise.
25047         * modules/c-strstr-tests (Files): Likewise.
25048         * modules/canonicalize-lgpl-tests (Files): Likewise.
25049         * modules/canonicalize-tests (Files): Likewise.
25050         * modules/carray-list-tests (Files): Likewise.
25051         * modules/ceilf-tests (Files): Likewise.
25052         * modules/ceill-tests (Files): Likewise.
25053         * modules/chown-tests (Files): Likewise.
25054         * modules/cloexec-tests (Files): Likewise.
25055         * modules/copy-file-tests (Files): Likewise.
25056         * modules/count-one-bits-tests (Files): Likewise.
25057         * modules/dprintf-posix-tests (Files): Likewise.
25058         * modules/dup2-tests (Files): Likewise.
25059         * modules/dup3-tests (Files): Likewise.
25060         * modules/duplocale-tests (Files): Likewise.
25061         * modules/fbufmode-tests (Files): Likewise.
25062         * modules/fchdir-tests (Files): Likewise.
25063         * modules/fcntl-safer-tests (Files): Likewise.
25064         * modules/fcntl-tests (Files): Likewise.
25065         * modules/fdopendir-tests (Files): Likewise.
25066         * modules/fdutimensat-tests (Files): Likewise.
25067         * modules/fflush-tests (Files): Likewise.
25068         * modules/filevercmp-tests (Files): Likewise.
25069         * modules/flock-tests (Files): Likewise.
25070         * modules/floorf-tests (Files): Likewise.
25071         * modules/floorl-tests (Files): Likewise.
25072         * modules/fnmatch-tests (Files): Likewise.
25073         * modules/fopen-safer-tests (Files): Likewise.
25074         * modules/fopen-tests (Files): Likewise.
25075         * modules/fpending-tests (Files): Likewise.
25076         * modules/fprintf-posix-tests (Files): Likewise.
25077         * modules/fpurge-tests (Files): Likewise.
25078         * modules/freadable-tests (Files): Likewise.
25079         * modules/freadahead-tests (Files): Likewise.
25080         * modules/freading-tests (Files): Likewise.
25081         * modules/freadptr-tests (Files): Likewise.
25082         * modules/freadseek-tests (Files): Likewise.
25083         * modules/freopen-tests (Files): Likewise.
25084         * modules/frexp-nolibm-tests (Files): Likewise.
25085         * modules/frexp-tests (Files): Likewise.
25086         * modules/frexpl-nolibm-tests (Files): Likewise.
25087         * modules/frexpl-tests (Files): Likewise.
25088         * modules/fseek-tests (Files): Likewise.
25089         * modules/fseeko-tests (Files): Likewise.
25090         * modules/fstrcmp-tests (Files): Likewise.
25091         * modules/fsync-tests (Files): Likewise.
25092         * modules/ftell-tests (Files): Likewise.
25093         * modules/ftello-tests (Files): Likewise.
25094         * modules/func-tests (Files): Likewise.
25095         * modules/futimens-tests (Files): Likewise.
25096         * modules/fwritable-tests (Files): Likewise.
25097         * modules/fwriting-tests (Files): Likewise.
25098         * modules/getcwd-tests (Files): Likewise.
25099         * modules/getdate-tests (Files): Likewise.
25100         * modules/getdelim-tests (Files): Likewise.
25101         * modules/getdtablesize-tests (Files): Likewise.
25102         * modules/getgroups-tests (Files): Likewise.
25103         * modules/getline-tests (Files): Likewise.
25104         * modules/getndelim2-tests (Files): Likewise.
25105         * modules/glob-tests (Files): Likewise.
25106         * modules/hash-tests (Files): Likewise.
25107         * modules/i-ring-tests (Files): Likewise.
25108         * modules/iconv-tests (Files): Likewise.
25109         * modules/iconv_open-utf-tests (Files): Likewise.
25110         * modules/idpriv-drop-tests (Files): Likewise.
25111         * modules/idpriv-droptemp-tests (Files): Likewise.
25112         * modules/inet_ntop-tests (Files): Likewise.
25113         * modules/inet_pton-tests (Files): Likewise.
25114         * modules/isblank-tests (Files): Likewise.
25115         * modules/isfinite-tests (Files): Likewise.
25116         * modules/isinf-tests (Files): Likewise.
25117         * modules/isnan-tests (Files): Likewise.
25118         * modules/isnand-nolibm-tests (Files): Likewise.
25119         * modules/isnand-tests (Files): Likewise.
25120         * modules/isnanf-nolibm-tests (Files): Likewise.
25121         * modules/isnanf-tests (Files): Likewise.
25122         * modules/isnanl-nolibm-tests (Files): Likewise.
25123         * modules/isnanl-tests (Files): Likewise.
25124         * modules/lchown-tests (Files): Likewise.
25125         * modules/ldexpl-tests (Files): Likewise.
25126         * modules/link-tests (Files): Likewise.
25127         * modules/linkat-tests (Files): Likewise.
25128         * modules/linked-list-tests (Files): Likewise.
25129         * modules/linkedhash-list-tests (Files): Likewise.
25130         * modules/localename-tests (Files): Likewise.
25131         * modules/lseek-tests (Files): Likewise.
25132         * modules/lstat-tests (Files): Likewise.
25133         * modules/mbmemcasecmp-tests (Files): Likewise.
25134         * modules/mbmemcasecoll-tests (Files): Likewise.
25135         * modules/mbrtowc-tests (Files): Likewise.
25136         * modules/mbscasecmp-tests (Files): Likewise.
25137         * modules/mbscasestr-tests (Files): Likewise.
25138         * modules/mbschr-tests (Files): Likewise.
25139         * modules/mbscspn-tests (Files): Likewise.
25140         * modules/mbsinit-tests (Files): Likewise.
25141         * modules/mbsncasecmp-tests (Files): Likewise.
25142         * modules/mbsnrtowcs-tests (Files): Likewise.
25143         * modules/mbspbrk-tests (Files): Likewise.
25144         * modules/mbspcasecmp-tests (Files): Likewise.
25145         * modules/mbsrchr-tests (Files): Likewise.
25146         * modules/mbsrtowcs-tests (Files): Likewise.
25147         * modules/mbsspn-tests (Files): Likewise.
25148         * modules/mbsstr-tests (Files): Likewise.
25149         * modules/memchr-tests (Files): Likewise.
25150         * modules/memchr2-tests (Files): Likewise.
25151         * modules/memcmp-tests (Files): Likewise.
25152         * modules/memmem-tests (Files): Likewise.
25153         * modules/memrchr-tests (Files): Likewise.
25154         * modules/mkdir-tests (Files): Likewise.
25155         * modules/mkfifo-tests (Files): Likewise.
25156         * modules/mkfifoat-tests (Files): Likewise.
25157         * modules/mknod-tests (Files): Likewise.
25158         * modules/nanosleep-tests (Files): Likewise.
25159         * modules/nl_langinfo-tests (Files): Likewise.
25160         * modules/obstack-printf-tests (Files): Likewise.
25161         * modules/open-tests (Files): Likewise.
25162         * modules/openat-tests (Files): Likewise.
25163         * modules/pipe-filter-gi-tests (Files): Likewise.
25164         * modules/pipe-filter-ii-tests (Files): Likewise.
25165         * modules/pipe2-tests (Files): Likewise.
25166         * modules/popen-safer-tests (Files): Likewise.
25167         * modules/popen-tests (Files): Likewise.
25168         * modules/posixtm-tests (Files): Likewise.
25169         * modules/pread-tests (Files): Likewise.
25170         * modules/printf-frexp-tests (Files): Likewise.
25171         * modules/printf-frexpl-tests (Files): Likewise.
25172         * modules/printf-posix-tests (Files): Likewise.
25173         * modules/priv-set-tests (Files): Likewise.
25174         * modules/quotearg-tests (Files): Likewise.
25175         * modules/random_r-tests (Files): Likewise.
25176         * modules/rawmemchr-tests (Files): Likewise.
25177         * modules/rbtree-list-tests (Files): Likewise.
25178         * modules/rbtree-oset-tests (Files): Likewise.
25179         * modules/rbtreehash-list-tests (Files): Likewise.
25180         * modules/readlink-tests (Files): Likewise.
25181         * modules/remove-tests (Files): Likewise.
25182         * modules/rename-tests (Files): Likewise.
25183         * modules/renameat-tests (Files): Likewise.
25184         * modules/rmdir-tests (Files): Likewise.
25185         * modules/round-tests (Files): Likewise.
25186         * modules/roundf-tests (Files): Likewise.
25187         * modules/roundl-tests (Files): Likewise.
25188         * modules/safe-alloc-tests (Files): Likewise.
25189         * modules/setenv-tests (Files): Likewise.
25190         * modules/sigaction-tests (Files): Likewise.
25191         * modules/signbit-tests (Files): Likewise.
25192         * modules/sleep-tests (Files): Likewise.
25193         * modules/snprintf-posix-tests (Files): Likewise.
25194         * modules/snprintf-tests (Files): Likewise.
25195         * modules/sprintf-posix-tests (Files): Likewise.
25196         * modules/stat-tests (Files): Likewise.
25197         * modules/stat-time-tests (Files): Likewise.
25198         * modules/strcasestr-tests (Files): Likewise.
25199         * modules/strchrnul-tests (Files): Likewise.
25200         * modules/strerror-tests (Files): Likewise.
25201         * modules/striconv-tests (Files): Likewise.
25202         * modules/striconveh-tests (Files): Likewise.
25203         * modules/striconveha-tests (Files): Likewise.
25204         * modules/strsignal-tests (Files): Likewise.
25205         * modules/strstr-tests (Files): Likewise.
25206         * modules/strtod-tests (Files): Likewise.
25207         * modules/strverscmp-tests (Files): Likewise.
25208         * modules/symlink-tests (Files): Likewise.
25209         * modules/symlinkat-tests (Files): Likewise.
25210         * modules/trunc-tests (Files): Likewise.
25211         * modules/truncf-tests (Files): Likewise.
25212         * modules/truncl-tests (Files): Likewise.
25213         * modules/uname-tests (Files): Likewise.
25214         * modules/unicase/cased-tests (Files): Likewise.
25215         * modules/unicase/ignorable-tests (Files): Likewise.
25216         * modules/unicase/locale-language-tests (Files): Likewise.
25217         * modules/unicase/tolower-tests (Files): Likewise.
25218         * modules/unicase/totitle-tests (Files): Likewise.
25219         * modules/unicase/toupper-tests (Files): Likewise.
25220         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25221         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25222         * modules/unicase/u8-casefold-tests (Files): Likewise.
25223         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25224         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25225         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25226         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25227         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25228         * modules/unicase/u8-tolower-tests (Files): Likewise.
25229         * modules/unicase/u8-totitle-tests (Files): Likewise.
25230         * modules/unicase/u8-toupper-tests (Files): Likewise.
25231         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25232         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25233         * modules/unicase/u16-casefold-tests (Files): Likewise.
25234         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25235         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25236         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25237         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25238         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25239         * modules/unicase/u16-tolower-tests (Files): Likewise.
25240         * modules/unicase/u16-totitle-tests (Files): Likewise.
25241         * modules/unicase/u16-toupper-tests (Files): Likewise.
25242         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25243         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25244         * modules/unicase/u32-casefold-tests (Files): Likewise.
25245         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25246         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25247         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25248         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25249         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25250         * modules/unicase/u32-tolower-tests (Files): Likewise.
25251         * modules/unicase/u32-totitle-tests (Files): Likewise.
25252         * modules/unicase/u32-toupper-tests (Files): Likewise.
25253         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25254         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25255         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25256         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25257         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25258         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25259         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25260         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25261         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25262         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25263         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25264         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25265         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25266         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25267         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25268         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25269         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25270         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25271         * modules/unictype/block-list-tests (Files): Likewise.
25272         * modules/unictype/block-of-tests (Files): Likewise.
25273         * modules/unictype/block-test-tests (Files): Likewise.
25274         * modules/unictype/category-C-tests (Files): Likewise.
25275         * modules/unictype/category-Cc-tests (Files): Likewise.
25276         * modules/unictype/category-Cf-tests (Files): Likewise.
25277         * modules/unictype/category-Cn-tests (Files): Likewise.
25278         * modules/unictype/category-Co-tests (Files): Likewise.
25279         * modules/unictype/category-Cs-tests (Files): Likewise.
25280         * modules/unictype/category-L-tests (Files): Likewise.
25281         * modules/unictype/category-Ll-tests (Files): Likewise.
25282         * modules/unictype/category-Lm-tests (Files): Likewise.
25283         * modules/unictype/category-Lo-tests (Files): Likewise.
25284         * modules/unictype/category-Lt-tests (Files): Likewise.
25285         * modules/unictype/category-Lu-tests (Files): Likewise.
25286         * modules/unictype/category-M-tests (Files): Likewise.
25287         * modules/unictype/category-Mc-tests (Files): Likewise.
25288         * modules/unictype/category-Me-tests (Files): Likewise.
25289         * modules/unictype/category-Mn-tests (Files): Likewise.
25290         * modules/unictype/category-N-tests (Files): Likewise.
25291         * modules/unictype/category-Nd-tests (Files): Likewise.
25292         * modules/unictype/category-Nl-tests (Files): Likewise.
25293         * modules/unictype/category-No-tests (Files): Likewise.
25294         * modules/unictype/category-P-tests (Files): Likewise.
25295         * modules/unictype/category-Pc-tests (Files): Likewise.
25296         * modules/unictype/category-Pd-tests (Files): Likewise.
25297         * modules/unictype/category-Pe-tests (Files): Likewise.
25298         * modules/unictype/category-Pf-tests (Files): Likewise.
25299         * modules/unictype/category-Pi-tests (Files): Likewise.
25300         * modules/unictype/category-Po-tests (Files): Likewise.
25301         * modules/unictype/category-Ps-tests (Files): Likewise.
25302         * modules/unictype/category-S-tests (Files): Likewise.
25303         * modules/unictype/category-Sc-tests (Files): Likewise.
25304         * modules/unictype/category-Sk-tests (Files): Likewise.
25305         * modules/unictype/category-Sm-tests (Files): Likewise.
25306         * modules/unictype/category-So-tests (Files): Likewise.
25307         * modules/unictype/category-Z-tests (Files): Likewise.
25308         * modules/unictype/category-Zl-tests (Files): Likewise.
25309         * modules/unictype/category-Zp-tests (Files): Likewise.
25310         * modules/unictype/category-Zs-tests (Files): Likewise.
25311         * modules/unictype/category-and-not-tests (Files): Likewise.
25312         * modules/unictype/category-and-tests (Files): Likewise.
25313         * modules/unictype/category-byname-tests (Files): Likewise.
25314         * modules/unictype/category-name-tests (Files): Likewise.
25315         * modules/unictype/category-none-tests (Files): Likewise.
25316         * modules/unictype/category-of-tests (Files): Likewise.
25317         * modules/unictype/category-or-tests (Files): Likewise.
25318         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25319         * modules/unictype/combining-class-tests (Files): Likewise.
25320         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25321         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25322         * modules/unictype/ctype-blank-tests (Files): Likewise.
25323         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25324         * modules/unictype/ctype-digit-tests (Files): Likewise.
25325         * modules/unictype/ctype-graph-tests (Files): Likewise.
25326         * modules/unictype/ctype-lower-tests (Files): Likewise.
25327         * modules/unictype/ctype-print-tests (Files): Likewise.
25328         * modules/unictype/ctype-punct-tests (Files): Likewise.
25329         * modules/unictype/ctype-space-tests (Files): Likewise.
25330         * modules/unictype/ctype-upper-tests (Files): Likewise.
25331         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25332         * modules/unictype/decimal-digit-tests (Files): Likewise.
25333         * modules/unictype/digit-tests (Files): Likewise.
25334         * modules/unictype/mirror-tests (Files): Likewise.
25335         * modules/unictype/numeric-tests (Files): Likewise.
25336         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25337         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25338         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25339         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25340         Likewise.
25341         * modules/unictype/property-bidi-block-separator-tests (Files):
25342         Likewise.
25343         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25344         Likewise.
25345         * modules/unictype/property-bidi-common-separator-tests (Files):
25346         Likewise.
25347         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25348         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25349         Likewise.
25350         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25351         Likewise.
25352         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25353         Likewise.
25354         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25355         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25356         Likewise.
25357         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25358         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25359         Likewise.
25360         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25361         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25362         * modules/unictype/property-bidi-segment-separator-tests (Files):
25363         Likewise.
25364         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25365         * modules/unictype/property-byname-tests (Files): Likewise.
25366         * modules/unictype/property-combining-tests (Files): Likewise.
25367         * modules/unictype/property-composite-tests (Files): Likewise.
25368         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25369         * modules/unictype/property-dash-tests (Files): Likewise.
25370         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25371         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25372         Likewise.
25373         * modules/unictype/property-deprecated-tests (Files): Likewise.
25374         * modules/unictype/property-diacritic-tests (Files): Likewise.
25375         * modules/unictype/property-extender-tests (Files): Likewise.
25376         * modules/unictype/property-format-control-tests (Files): Likewise.
25377         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25378         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25379         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25380         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25381         * modules/unictype/property-hyphen-tests (Files): Likewise.
25382         * modules/unictype/property-id-continue-tests (Files): Likewise.
25383         * modules/unictype/property-id-start-tests (Files): Likewise.
25384         * modules/unictype/property-ideographic-tests (Files): Likewise.
25385         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25386         * modules/unictype/property-ids-trinary-operator-tests (Files):
25387         Likewise.
25388         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25389         * modules/unictype/property-iso-control-tests (Files): Likewise.
25390         * modules/unictype/property-join-control-tests (Files): Likewise.
25391         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25392         * modules/unictype/property-line-separator-tests (Files): Likewise.
25393         * modules/unictype/property-logical-order-exception-tests (Files):
25394         Likewise.
25395         * modules/unictype/property-lowercase-tests (Files): Likewise.
25396         * modules/unictype/property-math-tests (Files): Likewise.
25397         * modules/unictype/property-non-break-tests (Files): Likewise.
25398         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25399         * modules/unictype/property-numeric-tests (Files): Likewise.
25400         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25401         * modules/unictype/property-other-default-ignorable-code-point-tests
25402         (Files): Likewise.
25403         * modules/unictype/property-other-grapheme-extend-tests (Files):
25404         Likewise.
25405         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25406         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25407         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25408         * modules/unictype/property-other-math-tests (Files): Likewise.
25409         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25410         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25411         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25412         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25413         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25414         * modules/unictype/property-private-use-tests (Files): Likewise.
25415         * modules/unictype/property-punctuation-tests (Files): Likewise.
25416         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25417         * modules/unictype/property-radical-tests (Files): Likewise.
25418         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25419         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25420         * modules/unictype/property-space-tests (Files): Likewise.
25421         * modules/unictype/property-terminal-punctuation-tests (Files):
25422         Likewise.
25423         * modules/unictype/property-test-tests (Files): Likewise.
25424         * modules/unictype/property-titlecase-tests (Files): Likewise.
25425         * modules/unictype/property-unassigned-code-value-tests (Files):
25426         Likewise.
25427         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25428         * modules/unictype/property-uppercase-tests (Files): Likewise.
25429         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25430         * modules/unictype/property-white-space-tests (Files): Likewise.
25431         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25432         * modules/unictype/property-xid-start-tests (Files): Likewise.
25433         * modules/unictype/property-zero-width-tests (Files): Likewise.
25434         * modules/unictype/scripts-tests (Files): Likewise.
25435         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25436         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25437         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25438         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25439         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25440         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25441         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25442         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25443         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25444         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25445         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25446         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25447         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25448         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25449         * modules/uninorm/composition-tests (Files): Likewise.
25450         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25451         * modules/uninorm/decomposition-tests (Files): Likewise.
25452         * modules/uninorm/filter-tests (Files): Likewise.
25453         * modules/uninorm/nfc-tests (Files): Likewise.
25454         * modules/uninorm/nfd-tests (Files): Likewise.
25455         * modules/uninorm/nfkc-tests (Files): Likewise.
25456         * modules/uninorm/nfkd-tests (Files): Likewise.
25457         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25458         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25459         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25460         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25461         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25462         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25463         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25464         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25465         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25466         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25467         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25468         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25469         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25470         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25471         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25472         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25473         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25474         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25475         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25476         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25477         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25478         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25479         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25480         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25481         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25482         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25483         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25484         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25485         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25486         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25487         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25488         * modules/uniwidth/u8-width-tests (Files): Likewise.
25489         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25490         * modules/uniwidth/u16-width-tests (Files): Likewise.
25491         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25492         * modules/uniwidth/u32-width-tests (Files): Likewise.
25493         * modules/uniwidth/width-tests (Files): Likewise.
25494         * modules/unlink-tests (Files): Likewise.
25495         * modules/unsetenv-tests (Files): Likewise.
25496         * modules/usleep-tests (Files): Likewise.
25497         * modules/utimens-tests (Files): Likewise.
25498         * modules/utimensat-tests (Files): Likewise.
25499         * modules/vasnprintf-posix-tests (Files): Likewise.
25500         * modules/vasnprintf-tests (Files): Likewise.
25501         * modules/vasprintf-posix-tests (Files): Likewise.
25502         * modules/vasprintf-tests (Files): Likewise.
25503         * modules/vdprintf-posix-tests (Files): Likewise.
25504         * modules/vfprintf-posix-tests (Files): Likewise.
25505         * modules/vprintf-posix-tests (Files): Likewise.
25506         * modules/vsnprintf-posix-tests (Files): Likewise.
25507         * modules/vsnprintf-tests (Files): Likewise.
25508         * modules/vsprintf-posix-tests (Files): Likewise.
25509         * modules/wcrtomb-tests (Files): Likewise.
25510         * modules/wcsnrtombs-tests (Files): Likewise.
25511         * modules/wcsrtombs-tests (Files): Likewise.
25512         * modules/wctype-tests (Files): Likewise.
25513         * modules/wcwidth-tests (Files): Likewise.
25514         * modules/xmemdup0-tests (Files): Likewise.
25515         * modules/xprintf-posix-tests (Files): Likewise.
25516         * modules/xvasprintf-tests (Files): Likewise.
25517
25518 2009-12-24  Eric Blake  <ebb9@byu.net>
25519
25520         test-nanosleep: fix typo
25521         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25522         patch.
25523         Reported by Bruno Haible.
25524
25525 2009-12-24  Bruno Haible  <bruno@clisp.org>
25526
25527         Reduce namespace pollution on glibc systems.
25528         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25529         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25530         systems.
25531         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25532         <getopt.h> on glibc systems.
25533         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25534         systems.
25535         * lib/fcntl.c: Include <unistd.h> here instead.
25536
25537 2009-12-24  Bruno Haible  <bruno@clisp.org>
25538
25539         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25540
25541 2009-12-24  Eric Blake  <ebb9@byu.net>
25542
25543         tests: add signature checks
25544         * tests/signature.h (SIGNATURE_CHECK): New file.
25545         * modules/atexit-tests (Files): Use it.
25546         * modules/btowc-tests (Files): Likewise.
25547         * modules/canonicalize-lgpl-tests (Files): Likewise.
25548         * modules/ceilf-tests (Files): Likewise.
25549         * modules/ceill-tests (Files): Likewise.
25550         * modules/chown-tests (Files): Likewise.
25551         * modules/dprintf-posix-tests (Files): Likewise.
25552         * modules/dup2-tests (Files): Likewise.
25553         * modules/dup3-tests (Files): Likewise.
25554         * modules/duplocale-tests (Files): Likewise.
25555         * modules/fchdir-tests (Files): Likewise.
25556         * modules/fcntl-tests (Files): Likewise.
25557         * modules/fdopendir-tests (Files): Likewise.
25558         * modules/fflush-tests (Files): Likewise.
25559         * modules/flock-tests (Files): Likewise.
25560         * modules/floorf-tests (Files): Likewise.
25561         * modules/floorl-tests (Files): Likewise.
25562         * modules/fnmatch-tests (Files): Likewise.
25563         * modules/fopen-tests (Files): Likewise.
25564         * modules/fprintf-posix-tests (Files): Likewise.
25565         * modules/freopen-tests (Files): Likewise.
25566         * modules/frexp-nolibm-tests (Files): Likewise.
25567         * modules/frexp-tests (Files): Likewise.
25568         * modules/frexpl-nolibm-tests (Files): Likewise.
25569         * modules/frexpl-tests (Files): Likewise.
25570         * modules/fseek-tests (Files): Likewise.
25571         * modules/fseeko-tests (Files): Likewise.
25572         * modules/fsync-tests (Files): Likewise.
25573         * modules/ftell-tests (Files): Likewise.
25574         * modules/ftello-tests (Files): Likewise.
25575         * modules/futimens-tests (Files): Likewise.
25576         * modules/getaddrinfo-tests (Files): Likewise.
25577         * modules/getcwd-tests (Files): Likewise.
25578         * modules/getdelim-tests (Files): Likewise.
25579         * modules/getdtablesize-tests (Files): Likewise.
25580         * modules/getgroups-tests (Files): Likewise.
25581         * modules/gethostname-tests (Files): Likewise.
25582         * modules/getline-tests (Files): Likewise.
25583         * modules/getopt-posix-tests (Files): Likewise.
25584         * modules/gettimeofday-tests (Files): Likewise.
25585         * modules/glob-tests (Files): Likewise.
25586         * modules/iconv-tests (Files): Likewise.
25587         * modules/inet_ntop-tests (Files): Likewise.
25588         * modules/inet_pton-tests (Files): Likewise.
25589         * modules/isblank-tests (Files): Likewise.
25590         * modules/lchown-tests (Files): Likewise.
25591         * modules/ldexpl-tests (Files): Likewise.
25592         * modules/link-tests (Files): Likewise.
25593         * modules/linkat-tests (Files): Likewise.
25594         * modules/lseek-tests (Files): Likewise.
25595         * modules/lstat-tests (Files): Likewise.
25596         * modules/mbrtowc-tests (Files): Likewise.
25597         * modules/mbsinit-tests (Files): Likewise.
25598         * modules/mbsnrtowcs-tests (Files): Likewise.
25599         * modules/mbsrtowcs-tests (Files): Likewise.
25600         * modules/memchr-tests (Files): Likewise.
25601         * modules/memcmp-tests (Files): Likewise.
25602         * modules/memmem-tests (Files): Likewise.
25603         * modules/memrchr-tests (Files): Likewise.
25604         * modules/mkdir-tests (Files): Likewise.
25605         * modules/mkfifo-tests (Files): Likewise.
25606         * modules/mkfifoat-tests (Files): Likewise.
25607         * modules/mknod-tests (Files): Likewise.
25608         * modules/nanosleep-tests (Files): Likewise.
25609         * modules/nl_langinfo-tests (Files): Likewise.
25610         * modules/obstack-printf-tests (Files): Likewise.
25611         * modules/open-tests (Files): Likewise.
25612         * modules/openat-tests (Files): Likewise.
25613         * modules/perror-tests (Files): Likewise.
25614         * modules/pipe2-tests (Files): Likewise.
25615         * modules/poll-tests (Files): Likewise.
25616         * modules/popen-tests (Files): Likewise.
25617         * modules/posix_spawn-tests (Files): Likewise.
25618         * modules/posix_spawnp-tests (Files): Likewise.
25619         * modules/pread-tests (Files): Likewise.
25620         * modules/printf-posix-tests (Files): Likewise.
25621         * modules/pty-tests (Files): Likewise.
25622         * modules/random_r-tests (Files): Likewise.
25623         * modules/rawmemchr-tests (Files): Likewise.
25624         * modules/readlink-tests (Files): Likewise.
25625         * modules/remove-tests (Files): Likewise.
25626         * modules/rename-tests (Files): Likewise.
25627         * modules/renameat-tests (Files): Likewise.
25628         * modules/rmdir-tests (Files): Likewise.
25629         * modules/round-tests (Files): Likewise.
25630         * modules/roundf-tests (Files): Likewise.
25631         * modules/roundl-tests (Files): Likewise.
25632         * modules/select-tests (Files): Likewise.
25633         * modules/setenv-tests (Files): Likewise.
25634         * modules/sigaction-tests (Files): Likewise.
25635         * modules/sleep-tests (Files): Likewise.
25636         * modules/snprintf-posix-tests (Files): Likewise.
25637         * modules/snprintf-tests (Files): Likewise.
25638         * modules/sprintf-posix-tests (Files): Likewise.
25639         * modules/stat-tests (Files): Likewise.
25640         * modules/strcasestr-tests (Files): Likewise.
25641         * modules/strchrnul-tests (Files): Likewise.
25642         * modules/strerror-tests (Files): Likewise.
25643         * modules/strsignal-tests (Files): Likewise.
25644         * modules/strstr-tests (Files): Likewise.
25645         * modules/strtod-tests (Files): Likewise.
25646         * modules/strverscmp-tests (Files): Likewise.
25647         * modules/symlink-tests (Files): Likewise.
25648         * modules/symlinkat-tests (Files): Likewise.
25649         * modules/times-tests (Files): Likewise.
25650         * modules/trunc-tests (Files): Likewise.
25651         * modules/truncf-tests (Files): Likewise.
25652         * modules/truncl-tests (Files): Likewise.
25653         * modules/tsearch-tests (Files): Likewise.
25654         * modules/uname-tests (Files): Likewise.
25655         * modules/unlink-tests (Files): Likewise.
25656         * modules/unsetenv-tests (Files): Likewise.
25657         * modules/usleep-tests (Files): Likewise.
25658         * modules/utimensat-tests (Files): Likewise.
25659         * modules/vasprintf-tests (Files): Likewise.
25660         * modules/vdprintf-posix-tests (Files): Likewise.
25661         * modules/vfprintf-posix-tests (Files): Likewise.
25662         * modules/vprintf-posix-tests (Files): Likewise.
25663         * modules/vsnprintf-posix-tests (Files): Likewise.
25664         * modules/vsnprintf-tests (Files): Likewise.
25665         * modules/vsprintf-posix-tests (Files): Likewise.
25666         * modules/wcrtomb-tests (Files): Likewise.
25667         * modules/wcsnrtombs-tests (Files): Likewise.
25668         * modules/wcsrtombs-tests (Files): Likewise.
25669         * modules/wcwidth-tests (Files): Likewise.
25670         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25671         * tests/test-isinf.c (isinf): Likewise.
25672         * tests/test-isnan.c (isnan): Likewise.
25673         * tests/test-signbit.c (signbit): Likewise.
25674         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25675         declaration, either as macro or with correct signature.
25676         (select): Ensure function under test is declared with correct
25677         signature in correct header.
25678         * tests/test-atexit.c (atexit): Likewise.
25679         * tests/test-btowc.c (btowc): Likewise.
25680         * tests/test-canonicalize-lgpl.c (realpath)
25681         (canonicalize_file_name): Likewise.
25682         * tests/test-ceilf1.c (ceilf): Likewise.
25683         * tests/test-ceill.c (ceill): Likewise.
25684         * tests/test-chown.c (chown): Likewise.
25685         * tests/test-dprintf-posix.c (dprintf): Likewise.
25686         * tests/test-dup2.c (dup2): Likewise.
25687         * tests/test-dup3.c (dup3): Likewise.
25688         * tests/test-duplocale.c (duplocale): Likewise.
25689         * tests/test-fchdir.c (fchdir): Likewise.
25690         * tests/test-fchownat.c (fchownat): Likewise.
25691         * tests/test-fcntl.c (fcntl): Likewise.
25692         * tests/test-fdopendir.c (fdopendir): Likewise.
25693         * tests/test-fflush.c (fflush): Likewise.
25694         * tests/test-flock.c (flock): Likewise.
25695         * tests/test-floorf1.c (floorf): Likewise.
25696         * tests/test-floorl.c (floorl): Likewise.
25697         * tests/test-fnmatch.c (fnmatch): Likewise.
25698         * tests/test-fopen.c (fopen): Likewise.
25699         * tests/test-fprintf-posix.c (fprintf): Likewise.
25700         * tests/test-freopen.c (freopen): Likewise.
25701         * tests/test-frexp.c (frexp): Likewise.
25702         * tests/test-frexpl.c (frexpl): Likewise.
25703         * tests/test-fseek.c (fseek): Likewise.
25704         * tests/test-fseeko.c (fseeko): Likewise.
25705         * tests/test-fstatat.c (fstatat): Likewise.
25706         * tests/test-fsync.c (fsync): Likewise.
25707         * tests/test-ftell.c (ftell): Likewise.
25708         * tests/test-ftello.c (ftello): Likewise.
25709         * tests/test-futimens.c (futimens): Likewise.
25710         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25711         (gai_strerror): Likewise.
25712         * tests/test-getcwd.c (getcwd): Likewise.
25713         * tests/test-getdelim.c (getdelim): Likewise.
25714         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25715         * tests/test-getgroups.c (getgroups): Likewise.
25716         * tests/test-gethostname.c (gethostname): Likewise.
25717         * tests/test-getline.c (getline): Likewise.
25718         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25719         Likewise.
25720         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25721         * tests/test-glob.c (glob, globfree): Likewise.
25722         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25723         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25724         * tests/test-inet_pton.c (inet_pton): Likewise.
25725         * tests/test-isblank.c (isblank): Likewise.
25726         * tests/test-lchown.c (lchown): Likewise.
25727         * tests/test-ldexpl.c (ldexpl): Likewise.
25728         * tests/test-link.c (link): Likewise.
25729         * tests/test-linkat.c (linkat): Likewise.
25730         * tests/test-lseek.c (lseek): Likewise.
25731         * tests/test-lstat.c (lstat): Likewise.
25732         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25733         * tests/test-mbsinit.c (mbsinit): Likewise.
25734         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25735         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25736         * tests/test-memchr.c (memchr): Likewise.
25737         * tests/test-memcmp.c (memcmp): Likewise.
25738         * tests/test-memmem.c (memmem): Likewise.
25739         * tests/test-memrchr.c (memrchr): Likewise.
25740         * tests/test-mkdir.c (mkdir): Likewise.
25741         * tests/test-mkdirat.c (mkdirat): Likewise.
25742         * tests/test-mkfifo.c (mkfifo): Likewise.
25743         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25744         * tests/test-mknod.c (mknod): Likewise.
25745         * tests/test-nanosleep.c (nanosleep): Likewise.
25746         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25747         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25748         Likewise.
25749         * tests/test-open.c (open): Likewise.
25750         * tests/test-openat.c (openat): Likewise.
25751         * tests/test-perror.c (perror): Likewise.
25752         * tests/test-pipe2.c (pipe2): Likewise.
25753         * tests/test-poll.c (poll): Likewise.
25754         * tests/test-popen.c (popen, pclose): Likewise.
25755         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25756         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25757         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25758         (posix_spawn_file_actions_destroy)
25759         (posix_spawn_file_actions_addclose)
25760         (posix_spawn_file_actions_addopen)
25761         (posix_spawn_file_actions_adddup2): Likewise.
25762         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25763         * tests/test-pread.c (pread): Likewise.
25764         * tests/test-printf-posix.c (printf): Likewise.
25765         * tests/test-pty.c (openpty, forkpty): Likewise.
25766         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25767         (random_r): Likewise.
25768         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25769         * tests/test-readlink.c (readlink): Likewise.
25770         * tests/test-remove.c (remove): Likewise.
25771         * tests/test-rename.c (rename): Likewise.
25772         * tests/test-renameat.c (renameat): Likewise.
25773         * tests/test-rmdir.c (rmdir): Likewise.
25774         * tests/test-round1.c (round): Likewise.
25775         * tests/test-roundf1.c (roundf): Likewise.
25776         * tests/test-roundl.c (roundl): Likewise.
25777         * tests/test-setenv.c (setenv): Likewise.
25778         * tests/test-sigaction.c (sigaction): Likewise.
25779         * tests/test-sleep.c (sleep): Likewise.
25780         * tests/test-snprintf.c (snprintf): Likewise.
25781         * tests/test-sprintf-posix.c (sprintf): Likewise.
25782         * tests/test-stat.c (stat): Likewise.
25783         * tests/test-stpncpy.c (stpncpy): Likewise.
25784         * tests/test-strcasestr.c (strcasestr): Likewise.
25785         * tests/test-strchrnul.c (strchrnul): Likewise.
25786         * tests/test-strerror.c (strerror): Likewise.
25787         * tests/test-strsignal.c (strsignal): Likewise.
25788         * tests/test-strstr.c (strstr): Likewise.
25789         * tests/test-strtod.c (strtod): Likewise.
25790         * tests/test-strverscmp.c (strverscmp): Likewise.
25791         * tests/test-symlink.c (symlink): Likewise.
25792         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25793         * tests/test-times.c (times): Likewise.
25794         * tests/test-trunc1.c (trunc): Likewise.
25795         * tests/test-truncf1.c (truncf): Likewise.
25796         * tests/test-truncl.c (truncl): Likewise.
25797         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25798         Likewise.
25799         * tests/test-uname.c (uname): Likewise.
25800         * tests/test-unlink.c (unlink): Likewise.
25801         * tests/test-unlinkat.c (unlinkat): Likewise.
25802         * tests/test-unsetenv.c (unsetenv): Likewise.
25803         * tests/test-usleep.c (usleep): Likewise.
25804         * tests/test-utimensat.c (utimensat): Likewise.
25805         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25806         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25807         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25808         * tests/test-vprintf-posix.c (vprintf): Likewise.
25809         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25810         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25811         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25812         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25813         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25814         * tests/test-wcwidth.c (wcwidth): Likewise.
25815
25816         build: pull in conditional headers during GNULIB_POSIXCHECK
25817         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25818         definitions from any conditionally-included headers.
25819         * lib/stdlib.in.h (includes): Likewise.
25820         * lib/unistd.in.h (includes): Likewise.
25821
25822 2009-12-24  Bruno Haible  <bruno@clisp.org>
25823
25824         * tests/test-argv-iter.c: Include header file being tested immediately
25825         after config.h.
25826         * tests/test-base64.c: Likewise.
25827         * tests/test-flock.c: Likewise.
25828         * tests/test-fsync.c: Likewise.
25829         * tests/test-getdate.c: Likewise.
25830         * tests/test-getndelim2.c: Likewise.
25831         * tests/test-isfinite.c: Likewise.
25832         * tests/test-isinf.c: Likewise.
25833         * tests/test-strerror.c: Likewise.
25834         * tests/test-strsignal.c: Likewise.
25835
25836 2009-12-23  Eric Blake  <ebb9@byu.net>
25837
25838         unistd: work around cygwin bug
25839         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25840         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25841         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25842
25843 2009-12-23  Bruno Haible  <bruno@clisp.org>
25844
25845         localename: More tests.
25846         * tests/test-localename.c (SIZEOF): New macro.
25847         (categories): New variable.
25848         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25849         test_locale_name_default): Add test w.r.t. thread locale.
25850         (test_locale_name_thread): New function.
25851         (main): Invoke it.
25852
25853         localename: Make aware of thread locale.
25854         * lib/localename.h (gl_locale_name_thread): New declaration.
25855         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25856         behaviour with respect to thread locale.
25857         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25858         <langinfo.h>, glthread/lock.h.
25859         (SIZE_BITS): New macro.
25860         (string_hash): New function.
25861         (struct hash_node): New type.
25862         (HASH_TABLE_SIZE): New macro.
25863         (struniq_hash_table, struniq_lock): New variables.
25864         (struniq): New function.
25865         (gl_locale_name_thread): New function.
25866         (gl_locale_name): Invoke it.
25867         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25868         * modules/localename (Depends-on): Add lock.
25869         Reported by Mike Gran <spk121@yahoo.com>.
25870
25871 2009-12-23  Eric Blake  <ebb9@byu.net>
25872
25873         va-args: new module
25874         * modules/va-args: New file.
25875         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25876         * MODULES.html.sh (Core language properties): Mention it.
25877
25878         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25879         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25880         named alias for __attribute__((__unused__)).
25881         * lib/chown.c: Update client.
25882         * lib/fchmodat.c: Likewise.
25883         * lib/fts.c: Likewise.
25884         * lib/getdate.y: Likewise.
25885         * lib/getgroups.c: Likewise.
25886         * lib/getopt.c: Likewise.
25887         * lib/getugroups.c: Likewise.
25888         * lib/mkdir.c: Likewise.
25889         * lib/mkfifo.c: Likewise.
25890         * lib/mkfifoat.c: Likewise.
25891         * lib/mknod.c: Likewise.
25892         * lib/mknodat.c: Likewise.
25893         * lib/readlink.c: Likewise.
25894         * lib/se-context.in.h: Likewise.
25895         * lib/se-selinux.in.h: Likewise.
25896         * lib/sockets.c: Likewise.
25897         * lib/symlink.c: Likewise.
25898         * lib/symlinkat.c: Likewise.
25899         * lib/unicodeio.c: Likewise.
25900         * lib/unistr.h: Likewise.
25901         * tests/test-areadlink.c: Likewise.
25902         * tests/test-areadlinkat.c: Likewise.
25903         * tests/test-filenamecat.c: Likewise.
25904         * tests/test-fseeko.c: Likewise.
25905         * tests/test-ftello.c: Likewise.
25906         * tests/test-getdate.c: Likewise.
25907         * tests/test-getgroups.c: Likewise.
25908         * tests/test-gethostname.c: Likewise.
25909         * tests/test-quotearg.c: Likewise.
25910         * tests/test-version-etc.c: Likewise.
25911         * tests/test-xalloc-die.c: Likewise.
25912         * tests/test-xfprintf-posix.c: Likewise.
25913         * tests/test-xprintf-posix.c: Likewise.
25914         * tests/test-xvasprintf.c: Likewise.
25915
25916         tests: avoid compiler warnings
25917         * tests/test-fcntl.c (main): Delete unused parameters.
25918         * tests/test-freopen-safer.c (main): Likewise.
25919         * tests/test-xalloc-die.c (main): Mark unused parameters.
25920         * tests/test-fseeko.c (main): Likewise.
25921         * tests/test-ftello.c (main): Likewise.
25922         * tests/test-nanosleep.c (main): Avoid declaration warning.
25923         * tests/test-sleep.c (main): Likewise.
25924         * tests/test-unsetenv.c (main): Silence warning about string
25925         literal.
25926         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25927
25928 2009-12-23  Bruno Haible  <bruno@clisp.org>
25929
25930         * tests/test-localename.c (test_locale_name): New function, extracted
25931         from main. Also test mixed situations.
25932         (test_locale_name_posix, test_locale_name_environ,
25933         test_locale_name_default): New functions.
25934         (main): Invoke them all.
25935         * modules/localename-tests (configure.ac): Test for newlocale.
25936
25937 2009-12-23  Bruno Haible  <bruno@clisp.org>
25938
25939         unistd: Ensure getcwd gets declared before being overridden.
25940         * lib/unistd.in.h: Conditionally include <io.h>.
25941
25942 2009-12-22  Bruno Haible  <bruno@clisp.org>
25943
25944         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25945         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25946         (gl_WCHAR_H): Invoke it.
25947         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25948         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25949         Reported by Karl Berry <karl@freefriends.org>.
25950
25951 2009-12-22  Eric Blake  <ebb9@byu.net>
25952
25953         math, unistd: avoid redundant includes
25954         * lib/math.in.h (isnan): No need to re-include <math.h>.
25955         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25956
25957         getsubopt: work around cygwin bug
25958         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25959         avoid conflicting with system getsubopt.
25960         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25961         bug.
25962
25963         getopt: synchronize from glibc
25964         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25965         parameter order.  Adjust all callers.
25966         (_getopt_internal_r, main): Adjust quoting in error messages.
25967         Drop considerations for outdated POSIX 1003.2 error message.
25968         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25969         callers.
25970         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25971
25972         test-getopt: test stderr behavior
25973         * modules/getopt-posix-tests (Depends-on): Add dup2.
25974         * tests/test-getopt.c (ASSERT): Avoid stderr.
25975         (main): Move stderr to a temporary file.
25976         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25977         Instead, add parameter to inform caller if output occurred.
25978         (test_getopt): Adjust all existing tests to expect silence, and
25979         add new tests of leading ":".
25980         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25981         glibc shortcomings with leading "-:" or "+:" in optstring.
25982         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25983         Likewise.
25984         * doc/posix-functions/getopt.texi (getopt): Likewise.
25985
25986         test-getopt: enhance test
25987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25988         supports optind=0.
25989         * tests/test-getopt.c (OPTIND_MIN): Move...
25990         * tests/test-getopt.h (OPTIND_MIN): ...here.
25991         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25992         Require that optind=0 works, since modern BSD supports it in
25993         addition to optreset, and since coreutils expects it.
25994         (test_getopt_long_only): New test.
25995         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25996         glibc shortcomings with 'W;', and enforcement of optind=0.
25997         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25998         Likewise.
25999
26000 2009-12-21  Bruno Haible  <bruno@clisp.org>
26001
26002         localename: Improvements for MacOS X and Cygwin.
26003         * lib/localename.h (gl_locale_name_environ): New declaration.
26004         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26005         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26006         (gl_locale_name_posix): Invoke it.
26007         (gl_locale_name_default): Add comments. Use Windows native API also on
26008         Cygwin.
26009
26010 2009-12-21  Bruno Haible  <bruno@clisp.org>
26011
26012         Update list of Win32 locale ids.
26013         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26014         (LANG_SAMI): Renamed from LANG_SAAMI.
26015         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26016         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26017         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26018         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26019         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26020         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26021         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26022         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26023         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26024         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26025         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26026         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26027         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26028         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26029         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26030         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26031         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26032         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26033         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26034         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26035         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26036         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26037         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26038         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26039         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26040         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26041         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26042         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26043         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26044         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26045         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26046         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26047         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26048         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26049         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26050         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26051         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26052         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26053         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26054         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26055         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26056         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26057         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26058         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26059         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26060         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26061         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26062         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26063         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26064         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26065         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26066         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26067         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26068         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26069         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26070         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26071         Add more languages and countries for Sami, Sorbian. Add more countries
26072         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26073         for Pashto. Change country for Syriac, Tswana.
26074
26075 2009-12-21  Eric Blake  <ebb9@byu.net>
26076
26077         test-utimens: avoid spurious failure
26078         * tests/test-chown.h (nap): Factor...
26079         * tests/nap.h: ...into new file.
26080         * tests/test-lchown.h (nap): Avoid duplication.
26081         * tests/test-utimens-common.h (nap): Use shared implementation,
26082         necessary on file systems with 1-second resolution.
26083         * modules/chown-tests (Files): Include new file.
26084         * modules/fdutimensat-tests (Files): Likewise.
26085         * modules/futimens-tests (Files): Likewise.
26086         * modules/lchown-tests (Files): Likewise.
26087         * modules/openat-tests (Files): Likewise.
26088         * modules/utimens-tests (Files): Likewise.
26089         * modules/utimensat-tests (Files): Likewise.
26090
26091 2009-12-19  Eric Blake  <ebb9@byu.net>
26092
26093         futimens, utimensat: work around Linux bug
26094         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26095         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26096         * lib/utimensat.c (rpl_utimensat): Work around it.
26097         * lib/futimens.c (rpl_futimens): Adjust comment.
26098
26099         utimens: work around Linux ctime bug
26100         * lib/utimens.c (detect_ctime_bug): New helper function.
26101         (update_timespec): Differentiate between workaround needed for
26102         this bug vs. what is needed for systems that lack utimensat.
26103         (fdutimens, lutimens): Work around bug.
26104
26105         utimens: check for ctime update
26106         * tests/test-utimens-common.h (check_ctime): Define.
26107         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26108         * tests/test-futimens.h (test_futimens): Likewise.
26109         * tests/test-lutimens.h (test_lutimens): Likewise.
26110         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26111         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26112
26113 2009-12-19  Bruno Haible  <bruno@clisp.org>
26114
26115         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26116         * tests/test-dprintf-posix2.sh: New file.
26117         * tests/test-dprintf-posix2.c: New file.
26118         * modules/dprintf-posix-tests (Files): Add them.
26119         (configure.ac): Check for getrlimit and setrlimit.
26120         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26121
26122 2009-12-19  Bruno Haible  <bruno@clisp.org>
26123
26124         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26125         * tests/test-fprintf-posix3.sh: New file.
26126         * tests/test-fprintf-posix3.c: New file.
26127         * modules/fprintf-posix-tests (Files): Add them.
26128         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26129
26130 2009-12-19  Eric Blake  <ebb9@byu.net>
26131
26132         dirfd: fix prototype
26133         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26134         * lib/dirfd.c (dirfd): Likewise.
26135
26136         canonicalize: reduce memory usage
26137         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26138         allocation to size.
26139         Reported by Solar Designer <solar@openwall.com>.
26140
26141 2009-12-19  Bruno Haible  <bruno@clisp.org>
26142
26143         New module attribute 'Applicability'.
26144         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26145         * gnulib-tool: New option --extract-applicability.
26146         (func_usage): Document it.
26147         (sed_extract_prog): Recognize it.
26148         (func_get_applicability): New function.
26149         (func_import): Generalize handling of 'link-warning' module.
26150         * modules/link-warning (Applicability): New section.
26151         * modules/arg-nonnull (Applicability): New section.
26152         Repoted by Simon Josefsson <simon@josefsson.org>.
26153
26154 2009-12-19  Bruno Haible  <bruno@clisp.org>
26155
26156         fflush: tweak
26157         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26158         * lib/fseeko.c (rpl_fseeko): Likewise.
26159
26160 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26161
26162         * lib/gl_list.h: Fix typo in comment.
26163
26164 2009-12-16  Eric Blake  <ebb9@byu.net>
26165
26166         fcntl: use to simplify other modules
26167         * modules/cloexec (Depends-on): Add fcntl.
26168         * modules/fchdir (Depends-on): Likewise.
26169         * modules/fd-safer-flag (Depends-on): Likewise.
26170         * modules/unistd-safer (Depends-on): Likewise.
26171         * modules/dup3 (configure.ac): Set module indicator.
26172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26173         missing.
26174         * lib/fchdir.c (_gl_register_dup): Fix comment.
26175         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26176         * lib/dup-safer.c (dup_safer): Likewise.
26177         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26178         * lib/dup3.c (dup3): Likewise.
26179         * tests/test-fchdir.c (main): Enhance test.
26180         Fixes a dup_cloexec bug reported by Ondřej Vašík.
26181
26182         fcntl: port portions of fcntl to mingw
26183         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26184         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26185         replacement for mingw.
26186         * modules/fcntl (Description): Update.
26187         (Depends-on): Add dup2.
26188         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26189         * modules/fcntl-h (Makefile.am): Substitute it.
26190         * lib/fcntl.in.h (fcntl): Update declaration.
26191         (F_DUPFD, F_GETFD): New macros, when needed.
26192         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26193         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26194         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26195         we now guarantee.
26196
26197         fcntl: work around cygwin bug in F_DUPFD
26198         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26199         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26200         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26201         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26202         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26203
26204         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26205         * modules/fcntl (Files): List new files.
26206         (configure.ac): Run a test.
26207         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26208         * lib/fcntl.c (rpl_fcntl): Likewise.
26209         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26210         (gl_FCNTL_H): Always replace fcntl.h.
26211         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26212         * lib/fcntl.in.h (fcntl): Declare replacement.
26213         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26214         needed, plus a witness.
26215         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26216         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26217         * tests/test-fcntl.c: New file.
26218         * modules/fcntl-tests: Likewise.
26219
26220         binary-io: avoid potential compilation warning
26221         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26222         directives.
26223
26224         fflush: avoid compilation error on NetBSD
26225         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26226         between off_t and fpos_t, since the latter is sometimes a struct.
26227         * lib/fseeko.c (rpl_fseeko): Likewise.
26228         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26229
26230 2009-12-15  Eric Blake  <ebb9@byu.net>
26231
26232         fcntl-h, stdio, sys_ioctl: fix declarations
26233         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26234         function must not take arguments.
26235         * lib/sys_ioctl.in.h (ioctl): Likewise.
26236         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26237         (open): Add a link warning.
26238
26239 2009-12-15  Jim Meyering  <meyering@redhat.com>
26240
26241         areadlink, areadlink-with-size: relax license to LGPLv2+
26242         * modules/areadlink (License): Relax to LGPLv2+.
26243         * modules/areadlink-with-size (License): Likewise.
26244
26245 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26246             Bruno Haible  <bruno@clisp.org>
26247
26248         *printf: Fix memory leak.
26249         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26250         * lib/vfprintf.c (vfprintf): Likewise.
26251         * lib/dprintf.c (dprintf): Likewise.
26252         * lib/vdprintf.c (vdprintf): Likewise.
26253
26254 2009-12-14  Eric Blake  <ebb9@byu.net>
26255
26256         accept4: adjust module dependencies
26257         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26258
26259         utimens: one more try at avoiding compiler warning
26260         * lib/utimens.c (lutimens): Lower scope of result.
26261
26262 2009-12-13  Bruno Haible  <bruno@clisp.org>
26263
26264         Move the malloc checking from module 'list' to new module 'xlist'.
26265         * modules/xlist: New file.
26266         * lib/gl_xlist.h: New file.
26267         * lib/gl_xlist.c: New file.
26268         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26269         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26270         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26271         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26272         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26273         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26274         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26275         gl_sortedlist_nx_add): New declarations.
26276         (struct gl_list_implementation): Rename and change methods accordingly.
26277         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26278         (gl_list_nx_create): Renamed from gl_list_create.
26279         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26280         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26281         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26282         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26283         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26284         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26285         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26286         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26287         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26288         gl_list_create_empty.
26289         (gl_list_nx_create): Renamed from gl_list_create.
26290         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26291         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26292         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26293         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26294         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26295         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26296         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26297         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26298         * lib/gl_array_list.c: Don't include xalloc.h.
26299         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26300         NULL upon out-of-memory.
26301         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26302         out-of-memory.
26303         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26304         Change return type to 'int'.
26305         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26306         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26307         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26308         upon out-of-memory.
26309         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26310         upon out-of-memory.
26311         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26312         upon out-of-memory.
26313         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26314         upon out-of-memory.
26315         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26316         out-of-memory.
26317         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26318         Update.
26319         (gl_array_list_implementation): Update.
26320         * lib/gl_carray_list.c: Don't include xalloc.h.
26321         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26322         Return NULL upon out-of-memory.
26323         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26324         out-of-memory.
26325         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26326         Change return type to 'int'.
26327         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26328         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26329         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26330         upon out-of-memory.
26331         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26332         upon out-of-memory.
26333         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26334         out-of-memory.
26335         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26336         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26337         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26338         Update.
26339         (gl_carray_list_implementation): Update.
26340         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26341         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26342         gl_linked_create_empty. Return NULL upon out-of-memory.
26343         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26344         out-of-memory.
26345         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26346         Change return type to 'int'. Return -1 upon out-of-memory.
26347         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26348         out-of-memory.
26349         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26350         upon out-of-memory.
26351         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26352         upon out-of-memory.
26353         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26354         NULL upon out-of-memory.
26355         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26356         upon out-of-memory.
26357         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26358         out-of-memory.
26359         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26360         Update.
26361         * lib/gl_linked_list.c: Don't include xalloc.h.
26362         (gl_linked_list_implementation): Update.
26363         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26364         (add_to_bucket): Change return type to 'int'.
26365         (gl_linkedhash_list_implementation): Update.
26366         * lib/gl_anytree_list1.h (free_subtree): New function.
26367         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26368         gl_tree_create_empty. Return NULL upon out-of-memory.
26369         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26370         Change return type to 'int'. Return -1 upon out-of-memory.
26371         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26372         out-of-memory.
26373         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26374         (gl_tree_remove_node): New function, moved here from
26375         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26376         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26377         Update.
26378         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26379         malloc, not xmalloc. Return NULL upon out-of-memory.
26380         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26381         out-of-memory.
26382         (gl_tree_remove_node_from_tree): New function, extracted from
26383         gl_tree_remove_node.
26384         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26385         upon out-of-memory.
26386         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26387         out-of-memory.
26388         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26389         upon out-of-memory.
26390         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26391         upon out-of-memory.
26392         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26393         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26394         not xmalloc. Return NULL upon out-of-memory.
26395         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26396         out-of-memory.
26397         (gl_tree_remove_node_from_tree): New function, extracted from
26398         gl_tree_remove_node.
26399         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26400         upon out-of-memory.
26401         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26402         out-of-memory.
26403         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26404         upon out-of-memory.
26405         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26406         upon out-of-memory.
26407         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26408         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26409         gl_anytree_list1.h before gl_anyavltree_list2.h.
26410         (gl_avltree_list_implementation): Update.
26411         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26412         gl_anytree_list1.h before gl_anyavltree_list2.h.
26413         (gl_rbtree_list_implementation): Update.
26414         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26415         Change return type to 'int'. Return -1 upon out-of-memory. Use
26416         __builtin_expect.
26417         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26418         (gl_avltreehash_list_implementation): Update.
26419         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26420         (gl_rbtreehash_list_implementation): Update.
26421         * modules/array-list (Depends-on): Remove xalloc.
26422         * modules/carray-list (Depends-on): Likewise.
26423         * modules/linked-list (Depends-on): Likewise.
26424         * modules/linkedhash-list (Depends-on): Likewise.
26425         * modules/avltree-list (Depends-on): Likewise.
26426         * modules/rbtree-list (Depends-on): Likewise.
26427         * modules/avltreehash-list (Depends-on): Likewise.
26428         * modules/rbtreehash-list (Depends-on): Likewise.
26429
26430         * modules/xsublist: New file.
26431         * lib/gl_xsublist.h: New file.
26432         * lib/gl_xsublist.c: New file.
26433         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26434         (gl_sublist_nx_create): New declaration.
26435         * lib/gl_sublist.c: Don't include xalloc.h.
26436         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26437         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26438         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26439         Change return type to 'int'. Return -1 upon out-of-memory.
26440         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26441         upon out-of-memory.
26442         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26443         NULL upon out-of-memory.
26444         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26445         upon out-of-memory.
26446         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26447         NULL upon out-of-memory.
26448         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26449         NULL upon out-of-memory.
26450         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26451         upon out-of-memory.
26452         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26453         (gl_sublist_list_implementation): Update.
26454         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26455         upon out-of-memory.
26456         * modules/sublist (Depends-on): Remove xalloc.
26457
26458         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26459         * tests/test-carray_list.c: Likewise.
26460         * tests/test-linked_list.c: Likewise.
26461         * tests/test-linkedhash_list.c: Likewise.
26462         * tests/test-avltree_list.c: Likewise.
26463         * tests/test-rbtree_list.c: Likewise.
26464         * tests/test-avltreehash_list.c: Likewise.
26465         * tests/test-rbtreehash_list.c: Likewise.
26466         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26467         * modules/carray-list-tests (Makefile.am): Likewise.
26468         * modules/linked-list-tests (Makefile.am): Likewise.
26469         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26470         * modules/avltree-list-tests (Makefile.am): Likewise.
26471         * modules/rbtree-list-tests (Makefile.am): Likewise.
26472         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26473         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26474
26475         * NEWS: Mention the changes.
26476
26477         * lib/clean-temp.c: Include gl_xlist.h.
26478         * modules/clean-temp (Depends-on): Add xlist.
26479
26480         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26481         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26482
26483         * tests/test-array_oset.c: Include gl_xlist.h.
26484         * modules/array-oset-tests (Depends-on): Add xlist.
26485
26486         Reported by José E. Marchesi <jemarch@gnu.org>.
26487
26488 2009-12-13  Bruno Haible  <bruno@clisp.org>
26489
26490         Move the malloc checking from module 'oset' to new module 'xoset'.
26491         * modules/xoset: New file.
26492         * lib/gl_xoset.h: New file.
26493         * lib/gl_xoset.c: New file.
26494         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26495         declarations.
26496         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26497         (struct gl_oset_implementation): Rename and change methods accordingly.
26498         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26499         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26500         'int'. Mark as __warn_unused_result__.
26501         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26502         gl_oset_create_empty.
26503         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26504         'int'.
26505         * lib/gl_array_oset.c: Don't include xalloc.h.
26506         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26507         malloc, not xmalloc.
26508         (grow): Change return type to 'int'. Don't call xalloc_die.
26509         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26510         to 'int'.
26511         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26512         'int'.
26513         (gl_array_oset_implementation): Update.
26514         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26515         gl_tree_create_empty.
26516         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26517         'int'.
26518         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26519         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26520         xmalloc.
26521         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26522         not xmalloc.
26523         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26524         xmalloc.
26525         (gl_avltree_oset_implementation): Update.
26526         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26527         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26528         xmalloc.
26529         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26530         not xmalloc.
26531         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26532         xmalloc.
26533         (gl_rbtree_oset_implementation): Update.
26534         * modules/array-oset (Depends-on): Remove xalloc.
26535         * modules/avltree-oset (Depends-on): Likewise.
26536         * modules/rbtree-oset (Depends-on): Likewise.
26537         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26538         * tests/test-avltree_oset.c: Likewise.
26539         * tests/test-rbtree_oset.c: Likewise.
26540         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26541         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26542         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26543         * NEWS: Mention the change.
26544
26545 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26546
26547         maint.mk: allow a project to override release-prep commands
26548         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26549         commands into a new rule.
26550         (release-prep): New rule.
26551         (release-prep-hook): New overridable variable.
26552
26553 2009-12-13  Bruno Haible  <bruno@clisp.org>
26554
26555         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26556
26557 2009-12-13  Jim Meyering  <meyering@redhat.com>
26558
26559         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26560         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26561
26562 2009-12-12  Bruno Haible  <bruno@clisp.org>
26563
26564         duplocale: Tweak.
26565         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26566
26567 2009-12-12  Karl Berry  <karl@gnu.org>
26568
26569         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26570
26571 2009-12-12  Bruno Haible  <bruno@clisp.org>
26572
26573         * m4/po.m4: Undo incorrect untabification.
26574
26575 2009-12-12  Bruno Haible  <bruno@clisp.org>
26576
26577         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26578         * modules/c-strtod (Depends-on): Add locale.
26579         * modules/c-strtold (Depends-on): Likewise.
26580
26581 2009-12-12  Bruno Haible  <bruno@clisp.org>
26582
26583         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26584
26585 2009-12-11  Eric Blake  <ebb9@byu.net>
26586
26587         setenv: relax requirement in light of POSIX ruling
26588         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26589         not NULL.
26590         * tests/test-setenv.c (main): Relax test.
26591         * tests/test-unsetenv.c (main): Likewise.
26592         * doc/posix-functions/setenv.texi (setenv): Document this.
26593         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26594
26595 2009-12-11  Bruno Haible  <bruno@clisp.org>
26596
26597         New module 'fd-safer-flag'.
26598         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26599         * lib/dup-safer.c (dup_safer_flag): Remove function.
26600         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26601         * lib/fd-safer.c (fd_safer_flag): Remove function.
26602         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26603         * modules/cloexec (configure.ac): Drop indicator macro.
26604         * modules/fd-safer-flag: New file.
26605         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26606         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26607         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26608
26609 2009-12-11  Bruno Haible  <bruno@clisp.org>
26610
26611         Tests for module 'nl_langinfo'.
26612         * modules/nl_langinfo-tests: New file.
26613         * tests/test-nl_langinfo.sh: New file.
26614         * tests/test-nl_langinfo.c: New file.
26615
26616         New module 'nl_langinfo'.
26617         * lib/nl_langinfo.c: New file.
26618         * m4/nl_langinfo.m4: New file.
26619         * modules/nl_langinfo: New file.
26620         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26621
26622 2009-12-11  Bruno Haible  <bruno@clisp.org>
26623
26624         Tests for module 'langinfo'.
26625         * modules/langinfo-tests: New file.
26626         * tests/test-langinfo.c: New file.
26627
26628         New module 'langinfo'.
26629         * lib/langinfo.in.h: New file.
26630         * m4/langinfo_h.m4: New file.
26631         * modules/langinfo: New file.
26632         * doc/posix-headers/langinfo.texi: Mention the new module.
26633
26634 2009-12-11  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/config.charset: Untabify.
26637
26638 2009-12-11  Bruno Haible  <bruno@clisp.org>
26639
26640         * modules/unistd-safer (configure.ac): Drop indicator macro.
26641
26642 2009-12-11  Bruno Haible  <bruno@clisp.org>
26643
26644         Move pipe2-safer code to its own file.
26645         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26646         * lib/pipe-safer.c (pipe2_safer): Remove function.
26647         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26648         (Makefile.am): Add it to lib_SOURCES.
26649
26650 2009-12-10  Bruno Haible  <bruno@clisp.org>
26651
26652         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26653
26654 2009-12-10  Bruno Haible  <bruno@clisp.org>
26655
26656         Declare which arguments expect non-NULL values, for GCC and clang.
26657         * build-aux/arg-nonnull.h: New file.
26658         * modules/arg-nonnull: New file.
26659         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26660         (inet_ntop, inet_pton): Use it.
26661         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26662         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26663         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26664         (open, openat): Use it.
26665         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26666         (fnmatch): Use it.
26667         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26668         (getopt, getopt_long, getopt_long_only): Use it.
26669         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26670         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26671         Use it.
26672         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26673         (iconv_open): Use it.
26674         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26675         (strtoimax, strtoumax): Use it.
26676         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26677         (duplocale): Use it.
26678         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26679         (frexp, frexpl): Use it.
26680         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26681         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26682         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26683         (tsearch, tfind, tdelete, twalk): Use it.
26684         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26685         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26686         sigpending): Use it.
26687         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26688         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26689         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26690         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26691         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26692         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26693         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26694         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26695         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26696         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26697         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26698         Use it.
26699         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26700         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26701         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26702         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26703         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26704         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26705         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26706         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26707         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26708         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26709         strtoull, unsetenv): Use it.
26710         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26711         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26712         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26713         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26714         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26715         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26716         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26717         (strcasecmp, strncasecmp): Use it.
26718         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26719         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26720         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26721         rpl_setsockopt): Use it.
26722         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26723         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26724         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26725         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26726         (gettimeofday): Use it.
26727         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26728         (times): Use it.
26729         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26730         (uname): Use it.
26731         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26732         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26733         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26734         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26735         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26736         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26737         unlinkat, write): Use it.
26738         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26739         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26740         * lib/argv-iter.h: Include arg-nonnull.h.
26741         (_ATTRIBUTE_NONNULL_): Remove macro.
26742         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26743         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26744         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26745         optimization.
26746         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26747         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26748         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26749         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26750         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26751         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26752         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26753         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26754         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26755         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26756         * modules/dirent (Depends-on): Add arg-nonnull.
26757         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26758         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26759         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26760         * modules/fnmatch (Depends-on): Add arg-nonnull.
26761         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26762         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26763         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26764         * modules/glob (Depends-on): Add arg-nonnull.
26765         (Makefile.am): Insert arg-nonnull.h into glob.h.
26766         * modules/iconv_open (Depends-on): Add arg-nonnull.
26767         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26768         * modules/inttypes (Depends-on): Add arg-nonnull.
26769         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26770         * modules/locale (Depends-on): Add arg-nonnull.
26771         (Makefile.am): Insert arg-nonnull.h into locale.h.
26772         * modules/math (Depends-on): Add arg-nonnull.
26773         (Makefile.am): Insert arg-nonnull.h into math.h.
26774         * modules/netdb (Depends-on): Add arg-nonnull.
26775         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26776         * modules/search (Depends-on): Add arg-nonnull.
26777         (Makefile.am): Insert arg-nonnull.h into search.h.
26778         * modules/signal (Depends-on): Add arg-nonnull.
26779         (Makefile.am): Insert arg-nonnull.h into signal.h.
26780         * modules/spawn (Depends-on): Add arg-nonnull.
26781         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26782         * modules/stdio (Depends-on): Add arg-nonnull.
26783         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26784         * modules/stdlib (Depends-on): Add arg-nonnull.
26785         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26786         * modules/string (Depends-on): Add arg-nonnull.
26787         (Makefile.am): Insert arg-nonnull.h into string.h.
26788         * modules/strings (Depends-on): Add arg-nonnull.
26789         (Makefile.am): Insert arg-nonnull.h into strings.h.
26790         * modules/sys_socket (Depends-on): Add arg-nonnull.
26791         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26792         * modules/sys_stat (Depends-on): Add arg-nonnull.
26793         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26794         * modules/sys_time (Depends-on): Add arg-nonnull.
26795         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26796         * modules/sys_times (Depends-on): Add arg-nonnull.
26797         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26798         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26799         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26800         * modules/time (Depends-on): Add arg-nonnull.
26801         (Makefile.am): Insert arg-nonnull.h into time.h.
26802         * modules/unistd (Depends-on): Add arg-nonnull.
26803         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26804         * modules/wchar (Depends-on): Add arg-nonnull.
26805         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26806         * modules/argv-iter (Depends-on): Add arg-nonnull.
26807         * tests/test-canonicalize.c (null_ptr): New function.
26808         (main): Use it.
26809         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26810         (main): Use it.
26811         * tests/test-memmem.c (null_ptr): New function.
26812         (main): Use it.
26813         Reported by Jim Meyering.
26814
26815 2009-12-10  Bruno Haible  <bruno@clisp.org>
26816
26817         Use spaces for indentation, not tabs.
26818         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26819         * m4/*.m4: Untabify.
26820         * build-aux/*.h: Untabify.
26821         * tests/**/*.[hc]: Untabify.
26822         * README: New section "Indent with spaces, not TABs", based on
26823         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26824         * NEWS: Mention the change.
26825
26826 2009-12-10  Bruno Haible  <bruno@clisp.org>
26827
26828         pty test: Fix link error.
26829         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26830         test_pty_LDADD.
26831
26832 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26833
26834         * modules/pty: New file.
26835         * modules/pty-tests: New file.
26836         * m4/pty.m4: New file.
26837         * tests/test-pty.c: New file.
26838         * doc/glibc-headers/pty.texi: Modified.
26839         * doc/glibc-functions/forkpty.texi: Modified.
26840         * doc/glibc-functions/openpty.texi: Modified.
26841
26842 2009-12-10  Bruno Haible  <bruno@clisp.org>
26843
26844         Avoid syntax error in C++ mode.
26845         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26846
26847 2009-12-10  Bruno Haible  <bruno@clisp.org>
26848
26849         Use sed with option -e.
26850         * gnulib-tool (func_version, func_emit_copyright_notice,
26851         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26852         option -e to sed.
26853         * modules/link-warning (Makefile.am): Likewise.
26854
26855 2009-12-10  Jim Meyering  <meyering@redhat.com>
26856
26857         mgetgroups: do not write bytes beyond end of malloc'd buffer
26858         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26859         username, we call getgroups with a one-element-shorter buffer,
26860         but still told it the length was original, max_n_groups.
26861
26862 2009-12-09  Eric Blake  <ebb9@byu.net>
26863
26864         cloexec: relax license
26865         * modules/cloexec (Maintainer): Add myself.
26866         (License): Use LGPL, not GPL.
26867
26868         link-warning: optimize generation
26869         * modules/link-warning (Makefile.am): Reduce process usage.
26870
26871 2009-12-09  Bruno Haible  <bruno@clisp.org>
26872
26873         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26874         workaround was added on 2009-11-17.
26875
26876 2009-12-09  Jim Meyering  <meyering@redhat.com>
26877             Bruno Haible  <bruno@clisp.org>
26878
26879         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26880         * modules/link-warning (Makefile.am): Make the comment-removing sed
26881         command more robust in the face of bootstrap-prepended comment lines.
26882
26883 2009-12-09  Bruno Haible  <bruno@clisp.org>
26884
26885         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26886         most one group.
26887
26888 2009-12-09  Simon Josefsson <simon@josefsson.org>
26889             Bruno Haible  <bruno@clisp.org>
26890
26891         * build-aux/link-warning.h: Add copyright notice.
26892         * modules/link-warning (Makefile.am): Generate link-warning.h from
26893         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26894         * NEWS: Mention change in link-warning module.
26895         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26896         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26897         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26898         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26899         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26900         * modules/math (Makefile.am): Add dependency to math.h.
26901         * modules/search (Makefile.am): Add dependency to search.h.
26902         * modules/signal (Makefile.am): Add dependency to signal.h.
26903         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26904         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26905         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26906         * modules/string (Makefile.am): Add dependency to string.h.
26907         * modules/strings (Makefile.am): Add dependency to strings.h.
26908         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26909         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26910         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26911         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26912         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26913         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26914         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26915         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26916         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26917
26918 2009-12-09  Bruno Haible  <bruno@clisp.org>
26919
26920         fchdir: Optimize away rpl_fstat when possible.
26921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26922         REPLACE_OPEN_DIRECTORY.
26923         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26924
26925 2009-12-09  Bruno Haible  <bruno@clisp.org>
26926
26927         * lib/fchdir.c: Update comment.
26928
26929 2009-12-09  Bruno Haible  <bruno@clisp.org>
26930
26931         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26932
26933 2009-12-08  Eric Blake  <ebb9@byu.net>
26934
26935         fchdir: avoid memory leak on re-registration.
26936         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26937
26938 2009-12-08  Jim Meyering  <meyering@redhat.com>
26939
26940         init.sh: avoid Solaris 10 /bin/sh portability problem
26941         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26942         sourced script:
26943           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26944           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26945           bar
26946         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26947         and two tests used that idiom.
26948         * tests/init.sh: Update suggested usage comments.
26949         (path_prepend_): New function, to be used in place
26950         of the --src-path=DIR option.
26951         (setup_): Move PATH-prepending code into path_prepend_.
26952         * tests/test-pread.sh: Adapt to new usage.
26953         * tests/test-xalloc-die.sh: Likewise.
26954
26955 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26956
26957         * doc/gnulib.texi (Glibc pty.h): Add.
26958         * doc/glibc-functions/forkpty.texi: Add.
26959         * doc/glibc-functions/openpty.texi: Add.
26960         Suggested by Bruno Haible.
26961
26962 2009-12-08  Eric Blake  <ebb9@byu.net>
26963
26964         fchdir: fix logic bugs
26965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26966         * tests/test-fchdir.c (main): Enhance test.
26967         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26968         is in use.
26969
26970         dup2: fix logic bugs
26971         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26972         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26973         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26974         exists.
26975         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26976
26977 2009-12-07  Eric Blake  <ebb9@byu.net>
26978
26979         unlink: fix m4 detection
26980         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26981
26982         unistd-safer: add unit test
26983         * modules/unistd-safer-tests: New file.
26984         * tests/test-dup-safer.c: Likewise.
26985         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26986         * tests/test-dup2.c (setmode): Likewise.
26987         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26988
26989         cloexec: preserve text vs. binary across dup_cloexec
26990         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26991         mode.
26992         * modules/dup2-tests (Depends-on): Add binary-io.
26993         * modules/cloexec-tests (Depends-on): Likewise.
26994         * tests/test-dup2.c (setmode, is_mode): New helpers.
26995         (main): Add tests that translation mode is preserved.
26996         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26997         Reported by Bruno Haible.
26998
26999         mgetgroups: reduce duplicate listings
27000         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27001         resulting array.
27002         * tests/test-chown.h (test_chown): Simplify client.
27003         * tests/test-lchown.h (test_lchown): Likewise.
27004
27005 2009-12-06  Bruno Haible  <bruno@clisp.org>
27006
27007         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27008         value.
27009
27010 2009-12-06  Bruno Haible  <bruno@clisp.org>
27011
27012         * lib/progname.c: Include stdio.h, stdlib.h.
27013         (set_program_name): Reject a NULL argument.
27014
27015 2009-12-05  Eric Blake  <ebb9@byu.net>
27016
27017         pipe2-safer: new module
27018         * modules/pipe2-safer: New file.
27019         * lib/unistd-safer.h (pipe2_safer): New prototype.
27020         * lib/unistd--.h (pipe2): New wrapper.
27021         * lib/pipe-safer.c (pipe2_safer): New function.
27022         * modules/pipe (Depends-on): Add pipe2-safer.
27023         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27024
27025         stdlib-safer: preserve cloexec flag for mkostemp[s]
27026         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27027         fd_safer_flag.
27028
27029         unistd-safer: allow preservation of cloexec status via flag
27030         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27031         prototypes.
27032         * lib/dup-safer.c (dup_safer_flag): New function.
27033         * lib/fd-safer.c (fd_safer_flag): Likewise.
27034         * modules/cloexec (configure.ac): Set witness.
27035
27036         test-dup2: enhance test
27037         * modules/dup2-tests (Depends-on): Add cloexec.
27038         * tests/test-dup2.c (main): Enhance test.
27039
27040         cloexec: add dup_cloexec
27041         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27042         header and comments.
27043         * lib/cloexec.c (set_cloexec_flag): Add comments.
27044         (dup_cloexec): New function, with mingw implementation borrowed
27045         from...
27046         * lib/w32spawn.h (dup_noinherit): ...here.
27047         * modules/execute (Depends-on): Add cloexec.
27048         * modules/pipe (Depends-on): Likewise.
27049         * modules/cloexec (Depends-on): Add dup2.
27050         * modules/cloexec-tests (Files): New file.
27051         * tests/test-cloexec.c: Likewise.
27052
27053         test-xalloc-die: fix test for mingw
27054         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27055         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27056         directory and .exe suffix off argv[0] output.
27057
27058         test-fseeko: fix test for mingw
27059         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27060         than undefining fseek, so test will pass on mingw.
27061
27062 2009-12-05  Bruno Haible  <bruno@clisp.org>
27063
27064         * lib/progname.h (set_program_name): Clarify specification.
27065         * lib/progname.c (set_program_name): Likewise.
27066         Reported by Jim Meyering.
27067
27068 2009-12-05  Jim Meyering  <meyering@redhat.com>
27069
27070         maint.mk: backslash-escape parens in default regexp
27071         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27072         backslash-escape the literal parentheses.
27073
27074         maint.mk: news-date-check: use grep -E
27075         * top/maint.mk (today): Define a Make variable, not a...
27076         (news-date-check): ...shell variable.
27077         (news-date-regexp): Use the Make variable.
27078         Use grep's -E option.  Change the failing diagnostic to mention
27079         the variable, $(news-date-regexp).
27080
27081 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27082
27083         maintainer-makefile: allow customization of NEWS entry format
27084         * top/maint.mk (news-date-regexp): New overridable variable.
27085         (news-date-check): Use it.
27086
27087 2009-12-04  Eric Blake  <ebb9@byu.net>
27088
27089         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27090         * lib/mgetgroups.h (xgetgroups): New prototype.
27091         * lib/mgetgroups.c (xgetgroups): New wrapper.
27092         (mgetgroups): Handle ENOSYS.
27093         * modules/mgetgroups (Depends-on): Add realloc.
27094         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27095
27096         mgetgroups: avoid argument promotion issues with -1
27097         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27098         for invalid gid_t.
27099         * tests/test-chown.h (getegid, test_chown): Likewise.
27100         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27101
27102 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27103
27104         exclude: Fix header file problems.
27105         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27106
27107 2009-12-01  Jim Meyering  <meyering@redhat.com>
27108
27109         fts: fts_open: do not let an empty string cause immediate failure
27110         This is required in support of GNU rm, for which the command
27111         "rm A '' B" must process and remove both A and B, in spite of
27112         the empty string argument.
27113         * lib/fts.c (fts_open): Do not let the presence of an empty string
27114         cause fts_open to fail immediately.  Most fts-using tools must be
27115         able to process all arguments, in order, and can be expected to
27116         diagnose such arguments themselves.
27117
27118 2009-11-30  Eric Blake  <ebb9@byu.net>
27119
27120         utimens: fix compilation error
27121         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27122         Declare variable at right scope.
27123
27124 2009-11-29  Jim Meyering  <meyering@redhat.com>
27125
27126         bootstrap: handle perl-5.11's changed --version output
27127         * build-aux/bootstrap (get_version): Handle perl separately,
27128         since perl-5.11's --version output is different.
27129
27130 2009-11-28  Jim Meyering  <meyering@redhat.com>
27131
27132         userspec: depend on the inttostr module, too
27133         * modules/userspec (Depends-on): Add inttostr.
27134
27135         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27136         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27137         number of MAXUID when it evaluates to (uid_t) -1.
27138         Likewise for group ID.  Reported by Matt McCutchen in
27139         <http://savannah.gnu.org/bugs/?28113>
27140
27141         userspec: reformat to use spaces, not TABs
27142         * lib/userspec.c: Expand TABs to spaces.
27143         Add Emacs' "indent-tabs-mode: nil" hint.
27144
27145 2009-11-27  Eric Blake  <ebb9@byu.net>
27146
27147         getopt-gnu: flush out another BSD bug
27148         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27149         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27150         flush out BSD bug.
27151         * tests/test-getopt.h (test_getopt): End lists with NULL.
27152         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27153         (test_getopt_long_posix): Enhance test.
27154         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27155         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27156         getopt-gnu.
27157         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27158         Likewise.
27159
27160 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27161
27162         * modules/idpriv-droptemp-tests (Notice): Fix text.
27163
27164 2009-11-27  Jim Meyering  <meyering@redhat.com>
27165
27166         test-xalloc-die: avoid spurious failure due to libtool argv difference
27167         In a libtool-enabled project, this test would fail due to a difference
27168         in the emitted program name, e.g.,
27169         -test-xalloc-die: memory exhausted
27170         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27171         Use program to avoid that.
27172         * modules/xalloc-die-tests (Depends-on): Add progname.
27173         * tests/test-xalloc-die.c: Include progname.h".
27174         (program_name): Remove decl.
27175         (main): Call set_program_name.
27176         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27177
27178 2009-11-26  Richard Jones  <rjones@redhat.com>
27179
27180         w32sock: leave win32 error in place.
27181         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27182
27183 2009-11-26  Eric Blake  <ebb9@byu.net>
27184
27185         init.sh: suggest to use skip_ and fail_ functions in comments
27186         * tests/init.sh: Add a sentence.
27187
27188 2009-11-25  Bruno Haible  <bruno@clisp.org>
27189
27190         init.sh: add documentation in comments
27191         * tests/init.sh: Add some developer and user documentation.
27192
27193 2009-11-26  Jim Meyering  <meyering@redhat.com>
27194
27195         init.sh: accommodate even those who specify bogus srcdir manually
27196         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27197         configure-time tests to be sanitized, so that there is no need to
27198         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27199         (with no double quotes) suffices.  However, since tests may be
27200         invoked manually, and since you may explicitly set srcdir to the
27201         name of a directory containing spaces, do quote its uses here.
27202         * tests/test-pread.sh: Likewise.
27203         Suggested by Bruno Haible.
27204
27205         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27206         * tests/test-pread.sh: Write no data into the pipe, because
27207         test-pread actually reads none.  This avoids a diagnostic,
27208         "bash: echo: write error: Broken pipe", that arises in the unusual
27209         event something is ignoring SIGPIPE, and might be interpreted
27210         as some sort of failure.  Reported by Bruno Haible.
27211
27212 2009-11-25  Jim Meyering  <meyering@redhat.com>
27213
27214         test-pread: cover failure with ESPIPE and EINVAL
27215         * tests/test-pread.c (main): Test for failure, too.
27216         * tests/test-pread.sh: Invoke with stdin on a pipe.
27217         Suggested by Eric Blake.
27218
27219         pread: improvement and fix
27220         * modules/pread (Depends-on): Depend on lseek, for portability to
27221         e.g., mingw.  Suggested by Eric Blake.
27222         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27223
27224         unistd.in.h: correct declaration of pread
27225         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27226         Reported by Richard W.M. Jones.
27227
27228         test-pread.sh: distribute the test script
27229         * modules/pread-tests (Files): Include test-pread.sh.
27230
27231         test-pread.sh: clean up
27232         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27233         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27234         That is unnecessary, since it's always ".".
27235         Suggestion from Eric Blake.
27236
27237         test-pread.sh: make executable
27238         * tests/test-pread.sh: Set executable bit.
27239         Reported by Eric Blake.
27240
27241         correct typo in test-pread.sh
27242         * tests/test-pread.sh: Add #! line.
27243
27244         test pread
27245         * tests/test-pread.c: New file.
27246         * tests/test-pread.sh: Likewise.
27247         * modules/pread-tests: Likewise.
27248
27249         pread: new module
27250         * modules/pread: New file.
27251         * lib/unistd.in.h (pread): Define/declare.
27252         * lib/pread.c (pread): New file.
27253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27254         * modules/unistd (Makefile.am): Substitute witnesses.
27255         * doc/posix-functions/pread.texi (pread): Update.
27256         * MODULES.html.sh: Add pread.
27257
27258 2009-11-25  Jim Meyering  <meyering@redhat.com>
27259
27260         tests/init.sh: new file to be used via most *.sh tests
27261         * tests/init.sh: New file.
27262
27263 2009-11-25  Eric Blake  <ebb9@byu.net>
27264
27265         utimens: work around older Linux failure with symlinks
27266         * lib/utimens.c (lutimensat_works_really): New variable.
27267         (fdutimens, lutimens): Use it to manage kernels that support
27268         nanosecond times on files, but not on symlinks.
27269         Reported by Ondřej Vašík.
27270
27271         utimes: fix configure grammar
27272         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27273
27274 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27275
27276         regex: Fix fastmap for multibyte character ranges.
27277         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27278         characters when a multibyte character range is included.
27279
27280 2009-11-22  Andy Wingo  <wingo@pobox.com>
27281
27282         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27283         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27284
27285 2009-11-24  Bruno Haible  <bruno@clisp.org>
27286
27287         doc: Most *_l functions exist in MacOS X 10.5.
27288         * doc/posix-functions/duplocale.texi: Update platforms list.
27289         * doc/posix-functions/freelocale.texi: Likewise.
27290         * doc/posix-functions/newlocale.texi: Likewise.
27291         * doc/posix-functions/uselocale.texi: Likewise.
27292         * doc/posix-functions/isalnum_l.texi: Likewise.
27293         * doc/posix-functions/isalpha_l.texi: Likewise.
27294         * doc/posix-functions/isblank_l.texi: Likewise.
27295         * doc/posix-functions/iscntrl_l.texi: Likewise.
27296         * doc/posix-functions/isdigit_l.texi: Likewise.
27297         * doc/posix-functions/isgraph_l.texi: Likewise.
27298         * doc/posix-functions/islower_l.texi: Likewise.
27299         * doc/posix-functions/isprint_l.texi: Likewise.
27300         * doc/posix-functions/ispunct_l.texi: Likewise.
27301         * doc/posix-functions/isspace_l.texi: Likewise.
27302         * doc/posix-functions/isupper_l.texi: Likewise.
27303         * doc/posix-functions/iswalnum_l.texi: Likewise.
27304         * doc/posix-functions/iswalpha_l.texi: Likewise.
27305         * doc/posix-functions/iswblank_l.texi: Likewise.
27306         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27307         * doc/posix-functions/iswctype_l.texi: Likewise.
27308         * doc/posix-functions/iswdigit_l.texi: Likewise.
27309         * doc/posix-functions/iswgraph_l.texi: Likewise.
27310         * doc/posix-functions/iswlower_l.texi: Likewise.
27311         * doc/posix-functions/iswprint_l.texi: Likewise.
27312         * doc/posix-functions/iswpunct_l.texi: Likewise.
27313         * doc/posix-functions/iswspace_l.texi: Likewise.
27314         * doc/posix-functions/iswupper_l.texi: Likewise.
27315         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27316         * doc/posix-functions/isxdigit_l.texi: Likewise.
27317         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27318         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27319         * doc/posix-functions/strcoll_l.texi: Likewise.
27320         * doc/posix-functions/strfmon_l.texi: Likewise.
27321         * doc/posix-functions/strftime_l.texi: Likewise.
27322         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27323         * doc/posix-functions/strxfrm_l.texi: Likewise.
27324         * doc/posix-functions/tolower_l.texi: Likewise.
27325         * doc/posix-functions/toupper_l.texi: Likewise.
27326         * doc/posix-functions/towctrans_l.texi: Likewise.
27327         * doc/posix-functions/towlower_l.texi: Likewise.
27328         * doc/posix-functions/towupper_l.texi: Likewise.
27329         * doc/posix-functions/wcscoll_l.texi: Likewise.
27330         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27331         * doc/posix-functions/wctrans_l.texi: Likewise.
27332         * doc/posix-functions/wctype_l.texi: Likewise.
27333         * doc/glibc-functions/strptime_l.texi: Likewise.
27334         * doc/glibc-functions/strtod_l.texi: Likewise.
27335         * doc/glibc-functions/strtof_l.texi: Likewise.
27336         * doc/glibc-functions/strtol_l.texi: Likewise.
27337         * doc/glibc-functions/strtold_l.texi: Likewise.
27338         * doc/glibc-functions/strtoll_l.texi: Likewise.
27339         * doc/glibc-functions/strtoul_l.texi: Likewise.
27340         * doc/glibc-functions/strtoull_l.texi: Likewise.
27341         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27342         * doc/glibc-functions/wcstod_l.texi: Likewise.
27343         * doc/glibc-functions/wcstof_l.texi: Likewise.
27344         * doc/glibc-functions/wcstol_l.texi: Likewise.
27345         * doc/glibc-functions/wcstold_l.texi: Likewise.
27346         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27347         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27348         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27349
27350 2009-11-24  Bruno Haible  <bruno@clisp.org>
27351
27352         duplocale: Fix logic bug.
27353         * lib/duplocale.c: Don't include <langinfo.h>.
27354         (_NL_LOCALE_NAME): Remove macro.
27355         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27356         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27357
27358 2009-11-23  Jim Meyering  <meyering@redhat.com>
27359
27360         test-update-copyright: don't hard-code /usr/bin/perl
27361         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27362         perl to print the current year.  Gilles Espinasse reported that
27363         the replaced use of perl was hard-coded as /usr/bin/perl.
27364
27365 2009-11-23  Bruno Haible  <bruno@clisp.org>
27366
27367         duplocale: Add support for glibc 2.3.x.
27368         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27369
27370 2009-11-22  Bruno Haible  <bruno@clisp.org>
27371
27372         vasnprintf: Tiny optimization.
27373         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27374         MacOS X.
27375
27376 2009-11-22  Bruno Haible  <bruno@clisp.org>
27377
27378         Tests for module 'duplocale'.
27379         * modules/duplocale-tests: New file.
27380         * tests/test-duplocale.c: New file.
27381
27382         New module 'duplocale'.
27383         * m4/duplocale.m4: New file.
27384         * lib/locale.in.h (duplocale): New declaration.
27385         * lib/duplocale.c: New file.
27386         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27387         gl_LOCALE_H_DEFAULTS): New macros.
27388         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27389         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27390         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27391         REPLACE_DUPLOCALE.
27392         * modules/duplocale: New file.
27393         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27394
27395 2009-11-22  Bruno Haible  <bruno@clisp.org>
27396
27397         * modules/locale-tests (configure.ac): Test for newlocale function.
27398         * tests/test-locale.c: When the system has extended locale functions,
27399         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27400
27401         locale: Make locale_t available when possible.
27402         * lib/locale.in.h: Include <xlocale.h> when it exists.
27403         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27404         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27405         * modules/locale (Depends-on): Add extensions.
27406         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27407         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27408
27409 2009-11-22  Bruno Haible  <bruno@clisp.org>
27410
27411         Add comments.
27412         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27413         invocation.
27414         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27415         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27416         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27417
27418 2009-11-22  Bruno Haible  <bruno@clisp.org>
27419
27420         error: account for the possibility of freopen (stdout).
27421         * lib/error.c: Include <unistd.h>.
27422         (flush_stdout): New function, extracted from error and error_at_line.
27423         Determine stdout's fd dynamically.
27424         (error, error_at_line): Invoke flush_stdout.
27425         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27426         * modules/error (Depends-on): Add unistd.
27427
27428 2009-11-22  Bruno Haible  <bruno@clisp.org>
27429
27430         diffseq: Add comment.
27431         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27432
27433 2009-11-22  Jim Meyering  <meyering@redhat.com>
27434
27435         c-stack: avoid defining an unused static function
27436         * lib/c-stack.c (find_stack_direction): Do not define this function
27437         when it will not be used.
27438
27439         diffseq: avoid spurious gcc warnings
27440         * lib/diffseq.h (IF_LINT2): Define.
27441         (compareseq): Use it to initialize two members of "part".
27442         This avoids two used-uninitialized warnings.
27443
27444 2009-11-21  Jim Meyering  <meyering@redhat.com>
27445
27446         c-stack: avoid "ignoring return value of `write'" warning
27447         * lib/c-stack.c: Include "ignore-value.h".
27448         (die): Explicitly ignore each write return value.
27449         * modules/c-stack (Depends-on): Add ignore-value.
27450
27451 2009-11-21  Bruno Haible  <bruno@clisp.org>
27452
27453         diffseq: reduce scope of variable 'best'.
27454         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27455         variable, earlier used for two different purposes.
27456
27457 2009-11-21  Jim Meyering  <meyering@redhat.com>
27458
27459         diffseq: remove useless assignment to "best"
27460         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27461         assignment.  At that point "best" is already guaranteed to be zero.
27462
27463 2009-11-20  Eric Blake  <ebb9@byu.net>
27464
27465         build: mention ftp redirector in release announcements
27466         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27467         values that used to come from cfg.mk; mention FTP redirect URL.
27468         * build-aux/announce-gen: Mention the mirror list.
27469         Suggested by Karl Berry.
27470
27471         nanosleep: improve port to mingw
27472         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27474         LIB_NANOSLEEP, but only when needed.
27475         * modules/select (Link): Document LIBSOCKET.
27476         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27477         enough.
27478
27479         nanosleep: work around cygwin bug
27480         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27481         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27482         bug.
27483         (getnow): Delete, not needed.
27484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27485         LIB_CLOCK_GETTIME.
27486         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27487         clock-time, gettime.
27488         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27489         bug.
27490         * modules/nanosleep-tests: New test.
27491         * tests/test-nanosleep.c: New file.
27492
27493         sleep: work around cygwin bug
27494         * lib/sleep.c (rpl_sleep): Work around the bug.
27495         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27496         (gl_PREREQ_SLEEP): Delete unused macro.
27497         * modules/sleep (Depends-on): Add verify.
27498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27499         * modules/unistd (Makefile.am): Substitute witness.
27500         * lib/unistd.in.h (sleep): Update prototype.
27501         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27502         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27503         * modules/sleep-tests (Depends-on): Check for alarm.
27504
27505 2009-11-20  Jim Meyering  <meyering@redhat.com>
27506
27507         maint.mk: improve sc_prohibit_magic_number_exit
27508         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27509         so it does not match uses like System.exit(1).
27510         Add comments showing how to correct all offenders.
27511
27512 2009-11-19  Eric Blake  <ebb9@byu.net>
27513
27514         xalloc-die-tests: add missing library
27515         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27516
27517         test-xvasprintf: silence compiler warnings
27518         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27519         empty string from gcc.
27520
27521 2009-11-19  Jim Meyering  <meyering@redhat.com>
27522
27523         xfreopen: new module, from coreutils
27524         * modules/xfreopen: New module.
27525         * lib/xfreopen.c: New file.
27526         * lib/xfreopen.h: New file.
27527         * MODULES.html.sh (File stream based Input/Output"): Add it.
27528
27529 2009-11-19  Eric Blake  <ebb9@byu.net>
27530
27531         manywarnings: depend on warnings
27532         * modules/manywarnings (Depends-on): Add warnings.
27533
27534         build: avoid compiler warnings
27535         * lib/select.c (rpl_select): Delete unused variable.
27536         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27537
27538 2009-11-18  Eric Blake  <ebb9@byu.net>
27539
27540         tests: avoid false negative with --with-packager
27541         * tests/test-version-etc.sh: Discard packager information.
27542         * tests/test-argp-version-etc-1.sh: Likewise.
27543         Reported by Mike Frysinger.
27544
27545         utimens: fix regression on Solaris
27546         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27547         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27548         can only change fd timestamps via futimesat.  Instead, use an
27549         additional witness macro to avoid BSD bug.
27550         Reported by Jim Meyering.
27551
27552 2009-11-17  Eric Blake  <ebb9@byu.net>
27553
27554         usleep: use it to simplify tests
27555         * modules/stat-time-tests (Depends-on): Add usleep.
27556         (configure.ac): Drop usleep check.
27557         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27558         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27559         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27560         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27561         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27562         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27563         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27564         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27565         Likewise.
27566         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27567         * tests/test-lchown.h (nap): Likewise.
27568         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27569         * tests/test-stat-time.c (nap): Likewise.
27570         * tests/test-utimens-common.h (nap): Update comments.
27571
27572         usleep: new module
27573         * modules/usleep: New file.
27574         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27575         * lib/usleep.c (usleep): Likewise.
27576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27577         * modules/unistd (Makefile.am): Substitute witnesses.
27578         * lib/unistd.in.h (usleep): Add declaration.
27579         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27580         * MODULES.html.sh (Date and time): Likewise.
27581         * modules/usleep-tests (Depends-on): New test.
27582         * tests/test-usleep.c: New file.
27583
27584         chown: work around OpenBSD bug
27585         * lib/chown.c (rpl_chown): Work around the bug.
27586         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27587         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27588         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27589         * modules/chown (Depends-on): Add stdbool.
27590         * modules/lchown (Depends-on): Likewise.
27591         * doc/posix-functions/chown.texi (chown): Document the bug.
27592         * doc/posix-functions/lchown.texi (lchown): Likewise.
27593         * tests/test-lchown.h (test_chown): Relax test.
27594
27595         mkstemp: avoid conflict with C++ keyword template
27596         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27597         * lib/mkostemp.c (mkostemp): Likewise.
27598         * lib/mkostemps.c (mkostemps): Likewise.
27599         * lib/mkstemp.c (mkstemp): Likewise.
27600         * lib/mkstemps.c (mkstemps): Likewise.
27601
27602         xalloc-die-tests: optimize
27603         * tests/test-xalloc-die.sh: Reduce number of processes.
27604
27605 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27606
27607         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27608         patch from ludo@gnu.org (Ludovic Courtès).
27609
27610 2009-11-17  Jim Meyering  <meyering@redhat.com>
27611
27612         version-etc: use proper license string
27613         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27614         * modules/version-etc-fsf: Likewise.
27615
27616 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27617
27618         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27619         printed to stdout.  Deal with EOL differences.
27620
27621 2009-11-17  Eric Blake  <ebb9@byu.net>
27622
27623         unsetenv: work around Solaris bug
27624         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27625         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27626         Reported by Jim Meyering.
27627
27628         vasnprintf: avoid compiler warnings
27629         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27630         variables.
27631         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27632
27633 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27634
27635         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27636         settings since xalloc-die is no longer the self test,
27637         xalloc-die.sh is.
27638
27639 2009-11-17  Jim Meyering  <meyering@redhat.com>
27640
27641         test-xalloc-die.sh: make the code agree with the commit log
27642         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27643         at the end, just in case you happen to have a test-xalloc-die
27644         program in some other PATH directory.
27645
27646         test-xalloc-die.sh: fix a portability bug
27647         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27648         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27649         Otherwise, argv[0] (as often seen in diagnostics) would be too
27650         system-dependent, sometimes with, and sometimes without the leading "./".
27651
27652         version-etc-fsf: relax license to LGPLv3+
27653         * modules/version-etc-fsf (License): Relax license.
27654
27655 2009-11-16  Eric Blake  <ebb9@byu.net>
27656
27657         xalloc-die-tests: avoid printing null pointer
27658         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27659         shell script.
27660         * tests/test-xalloc-die.c (program_name): Declare.
27661         * tests/test-xalloc-die.sh (tmpfiles): New file.
27662
27663         setenv, unsetenv: work around various bugs
27664         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27665         (setenv) [HAVE_SETENV]: Work around bugs.
27666         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27668         for bugs.
27669         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27670         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27672         * modules/stdlib (Makefile.am): Update substitutions.
27673         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27674         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27675         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27676         * modules/setenv-tests: New test.
27677         * modules/unsetenv-tests: Likewise.
27678         * tests/test-setenv.c: New file.
27679         * tests/test-unsetenv.c: Likewise.
27680
27681 2009-11-16  Jim Meyering  <meyering@redhat.com>
27682
27683         version-etc: relax license to LGPLv3+
27684         * modules/version-etc (License): Relax license.
27685
27686         better AC_REQUIRE expanded-before-required-warning avoidance
27687         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27688         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27689         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27690         which is no longer needed.
27691
27692 2009-11-16  Eric Blake  <ebb9@byu.net>
27693
27694         test-freading: clean up temporary file
27695         * tests/test-freading.c (main): Remove file on success, and use
27696         ASSERT more liberally.
27697         Reported by Jim Meyering.
27698
27699 2009-11-16  Jim Meyering  <meyering@redhat.com>
27700
27701         avoid new AC_REQUIRE expanded-before-required warnings
27702         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27703         merely using it.
27704         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27705         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27706
27707 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27708
27709         * tests/test-xalloc-die.c: New file.
27710         * modules/xalloc-die-tests: New file.
27711         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27712         XFAIL_TESTS so it can be appended by modules.
27713
27714 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27715
27716         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27717         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27718
27719 2009-11-14  Eric Blake  <ebb9@byu.net>
27720
27721         fnmatch: avoid compiler warning
27722         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27723         to silence compiler warning about mismatch signedness in ?:.
27724         Reported by Robert Millan.
27725
27726         intprops: add double-inclusion guard
27727         * lib/intprops.h: Allow idempotent includes.
27728         Suggested by Bruce Korb.
27729
27730         openat: detect Solaris fchownat bug
27731         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27732         penalizing glibc chownat when only lchownat is broken.
27733         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27734         trailing slash bugs.
27735         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27736         * modules/openat-tests (Files): Include more files.
27737         (Depends-on): Add mgetgroups, sleep, stat-time.
27738         (configure.ac): Add additional checks.
27739         (Makefile.am): Build new test.
27740         * tests/test-fchownat.c: New file.
27741
27742         lchown: detect Solaris and FreeBSD bug
27743         * lib/lchown.c (rpl_lchown): Work around bug.
27744         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27746         * modules/unistd (Makefile.am): Populate it.
27747         * lib/unistd.in.h (lchown): Update declaration.
27748         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27749         * modules/lchown-tests: New file.
27750         * tests/test-lchown.h (test_lchown): Likewise.
27751         * tests/test-lchown.c (main): Likewise.
27752
27753         chown: detect Solaris and FreeBSD bug
27754         * lib/chown.c (rpl_chown): Work around bug.
27755         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27756         (gl_PREREQ_CHOWN): Delete.
27757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27758         * modules/unistd (Makefile.am): Populate it.
27759         * lib/unistd.in.h (chown): Update declaration.
27760         * lib/lchown.c (chown): Update client.
27761         * modules/lchown (Depends-on): Add lstat.
27762         * doc/posix-functions/chown.texi (chown): Document the bug.
27763         * doc/posix-functions/getgroups.texi (getgroups): Document
27764         getgroups pitfall.
27765         * modules/chown-tests: New file.
27766         * tests/test-chown.h (test_chown): Likewise.
27767         * tests/test-chown.c (main): Likewise.
27768
27769 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27770
27771         gnulib-tool: correctly detect absence of m4 directories
27772         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27773
27774 2009-11-14  Jim Meyering  <meyering@redhat.com>
27775
27776         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27777         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27778
27779 2009-11-14  John W. Eaton  <jwe@gnu.org>
27780
27781         strftime.h: wrap funtion declaration in extern "C" block
27782         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27783
27784 2009-11-13  Eric Blake  <ebb9@byu.net>
27785
27786         getgroups: avoid compiler warning
27787         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27788
27789         getgroups: work around FreeBSD bug
27790         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27791         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27792         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27793         * tests/test-getgroups.c (main): Fix buffer overrun.
27794
27795         getgroups: avoid compilation failure
27796         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27797         * modules/getgroups (Depends-on): Add stdint.
27798
27799 2009-11-13  Jim Meyering  <meyering@redhat.com>
27800
27801         test-getgroups: avoid compilation failure
27802         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27803
27804 2009-11-13  Eric Blake  <ebb9@byu.net>
27805
27806         mgetgroups: new module, taken from coreutils
27807         * modules/mgetgroups: New file.
27808         * lib/mgetgroups.h: Likewise.
27809         * lib/mgetgroups.c (mgetgroups): Likewise.
27810         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27811         * MODULES.html.sh (Users and groups): Mention it.
27812
27813         getgroups: don't expose GETGROUPS_T to user
27814         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27815         an element at a time if GETGROUPS_T is wrong size.
27816         * lib/getugroups.h (getugroups): Change signature.
27817         * lib/unistd.in.h (getgroups): Likewise.
27818         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27819         signature needs fixing.
27820         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27821         AC_TYPE_GETGROUPS.
27822         * modules/group-member (Depends-on): Add getgroups.
27823         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27824         (group_member): Rely on getgroups replacement.
27825         * lib/getugroups.c (getugroups): Use gid_t.
27826         * tests/test-getgroups.c (main): Likewise.
27827         * NEWS: Mention the signature change.
27828         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27829         problem with signature.
27830         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27831         GETGROUPS_T is still useful for setgroups.
27832
27833         getgroups, getugroups: provide stubs for mingw
27834         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27835         * lib/getugroups.c (getugroups): Likewise.
27836         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27837         function.  Modernize replacement scheme.
27838         (gl_PREREQ_GETGROUPS): Delete.
27839         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27840         * modules/getgroups (configure.ac): Declare witness.
27841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27842         * modules/unistd (Depends-on): Substitute witness.
27843         * lib/unistd.in.h (getgroups): Declare replacement.
27844
27845         getgroups: avoid calling exit
27846         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27847         drop xalloc.
27848         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27849         dependencies.
27850         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27851         exiting, in the rare case of malloc failure.
27852
27853         getgroups: fix logic error
27854         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27855         has more than 20 groups.
27856         * modules/getgroups-tests: New test.
27857         * tests/test-getgroups.c: New file.
27858
27859 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27860
27861         * tests/test-base64.c: Improve.
27862
27863 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27864
27865         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27866         Blake <ebb9@byu.net>.
27867
27868 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27869
27870         * tests/test-xvasprintf.c: Add %s%s related checks.
27871
27872 2009-11-12  Eric Blake  <ebb9@byu.net>
27873
27874         version-etc: match standards.texi style
27875         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27876         and use <> only for URLs.
27877
27878 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27879
27880         fts: do not fail on a submount during traversal
27881         * lib/fts.c (fts_build): Read the stat info again after opening
27882         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27883         Original report at http://bugzilla.redhat.com/501848.
27884
27885 2009-11-12  Jim Meyering  <meyering@redhat.com>
27886
27887         bootstrap: sync from coreutils
27888         * build-aux/bootstrap (bootstrap_epilogue): New function.
27889         Use git_modules_config in one more place.  This make bootstrap's
27890         --gnulib-srcdir option more useful for testing.
27891
27892         bootstrap: generalize autoheader check
27893         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27894         AC_CONFIG_HEADERS.
27895
27896 2009-11-11  Eric Blake  <ebb9@byu.net>
27897
27898         mkfifoat: use new modules for Solaris and BSD bugs
27899         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27900         * lib/mkfifoat.c (mknodat): Split...
27901         * lib/mknodat.c (mknodat): ...into new file.
27902         * modules/mkfifoat (Files): Ship new file.
27903         (Depends-on): Add mkfifo, mknod.
27904         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27905         (Depends-on): Add symlink.
27906         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27907         redundant with test_mkfifo.h.
27908         (do_mkfifoat, do_mknodat): New helpers.
27909
27910         mknod: new module
27911         * modules/mknod: New file.
27912         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27913         * lib/mknod.c (mknod): Likewise.
27914         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27915         defaults.
27916         * modules/sys_stat (Makefile.am): Substitute them.
27917         * lib/sys_stat.in.h (mknod): Declare replacement.
27918         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27919         Document it.
27920         * doc/posix-functions/mknod.texi (mknod): Likewise.
27921         * modules/mknod-tests: New test.
27922         * tests/test-mknod.c: Likewise.
27923
27924         mkfifo: new module
27925         * modules/mkfifo: New file.
27926         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27927         * lib/mkfifo.c (mkfifo): Likewise.
27928         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27929         defaults.
27930         * modules/sys_stat (Makefile.am): Substitute them.
27931         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27932         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27933         Document it.
27934         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27935         * modules/mkfifo-tests: New test.
27936         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27937         from test-mkfifoat.c.
27938         * tests/test-mkfifo.c: New file.
27939
27940         readlink: detect FreeBSD bug
27941         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27942         slash on symlink.
27943         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27944         * tests/test-readlink.h (test_readlink): Enhance test.
27945
27946         symlink: detect FreeBSD bug
27947         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27948         slash on symlink.
27949         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27950         * tests/test-symlink.h (test_symlink): Enhance test.
27951
27952 2009-11-10  Eric Blake  <ebb9@byu.net>
27953
27954         link: detect FreeBSD bug
27955         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27956         symlink.
27957         * doc/posix-functions/link.texi (link): Document the bug.
27958         * tests/test-link.h (test_link): Enhance test.
27959         * tests/test-linkat.c (main): Update caller.
27960
27961         unlink, remove: detect FreeBSD bug
27962         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27963         slash on symlink.
27964         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27965         * doc/posix-functions/remove.texi (remove): Likewise.
27966         * tests/test-unlink.h (test_unlink): Enhance test.
27967         * tests/test-remove.c (main): Likewise.
27968
27969 2009-11-09  Eric Blake  <ebb9@byu.net>
27970
27971         rename: detect FreeBSD bug
27972         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27973         slash on symlink.
27974         * modules/renameat-tests (Depends-on): Add filenamecat.
27975         * tests/test-rename.h (test_rename): Allow one more errno.
27976         * tests/test-renameat.c (main): Likewise.
27977         * doc/posix-functions/rename.texi (rename): Document the bug.
27978
27979         open: detect FreeBSD bug
27980         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27981         symlink.
27982         * doc/posix-functions/open.texi (open): Document the bug.
27983         * doc/posix-functions/utimes.texi (utimes): Likewise.
27984         * tests/test-open.h (test_open): Add parameters, and test symlink
27985         handling.
27986         * tests/test-open.c (main): Adjust caller.
27987         * tests/test-fcntl-safer.c (main): Likewise.
27988         * modules/open-tests (Depends-on): Add stdbool, symlink.
27989         * modules/fcntl-safer-tests (Depends-on): Likewise.
27990         * tests/test-openat.c (main): Add test-open tests.
27991
27992         stat: detect FreeBSD bug
27993         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27994         symlink.
27995         * doc/posix-functions/stat.texi (stat): Document the bug.
27996         * tests/test-stat.h (test_stat_func): Add argument.
27997         * tests/test-stat.c (main): Adjust caller.
27998         * tests/test-fstatat.c (main): Likewise.
27999         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28000         Reported by Jim Meyering.
28001
28002 2009-11-09  James Youngman  <jay@gnu.org>
28003
28004         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28005         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28006
28007 2009-11-08  Jim Meyering  <meyering@redhat.com>
28008
28009         utimens: remove invalid futimesat call
28010         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28011         It used the file descriptor of the target file as the DIR_FD
28012         parameter and NULL as the file name.  That caused failure with
28013         errno == EFAULT on FreeBSD-8.0-rc2
28014
28015 2009-11-07  Eric Blake  <ebb9@byu.net>
28016
28017         fflush, freadseek: use fseeko, not fseek
28018         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28019         (clear_ungetc_buffer): Avoid potential problems on large files.
28020         * lib/freadseek.c (freadseek): Likewise.
28021         * modules/freadseek (Depends-on): Add fseeko.
28022         * modules/fseek (configure.ac): Set a witness.
28023         * tests/test-fflush.c (main): Use fseeko.
28024         * tests/test-fpurge.c (fseek): Disable link warning.
28025         * tests/test-freadable.c (fseek): Likewise.
28026         * tests/test-freading.c (fseek): Likewise.
28027         * tests/test-fseeko.c (fseek): Likewise.
28028         * tests/test-ftell.c (fseek): Likewise.
28029         * tests/test-ftello.c (fseek): Likewise.
28030         * tests/test-fwritable.c (fseek): Likewise.
28031         * tests/test-fwriting.c (fseek): Likewise.
28032
28033 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28034
28035         * modules/memchr (Depends-on): Drop getpagesize dependency.
28036
28037 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28038
28039         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28040         Reported by Ludovic Courtès.
28041         * build-aux/pmccabe2html: Improve example usage.
28042         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28043
28044 2009-11-06  Jim Meyering  <meyering@redhat.com>
28045
28046         do-release-commit-and-tag: New module.
28047         Automate the release-commit and tag process.
28048         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28049         * modules/do-release-commit-and-tag: New file.
28050         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28051
28052 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28053
28054         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28055         because test-select.c uses inet_pton.
28056
28057 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28058
28059         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28060         GETADDRINFO_LIB.  Bump serial number.
28061         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28062         Suggested by Eric Blake <ebb9@byu.net>.
28063
28064 2009-11-05  Eric Blake  <ebb9@byu.net>
28065
28066         strtod: detect darwin bug
28067         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28068         Reported by Leo Davis.
28069
28070         freopen-safer: new module
28071         * modules/freopen-safer: New module.
28072         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28073         * lib/freopen-safer.c (freopen_safer): New file.
28074         * lib/stdio-safer.h (freopen_safer): New declaration.
28075         * lib/stdio--.h (freopen): New override.
28076         * MODULES.html.sh (File stream based Input/Output): Mention it.
28077         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28078         freopen-safer module.
28079         * doc/posix-functions/stderr.texi (stderr): Likewise.
28080         * doc/posix-functions/stdin.texi (stdin): Likewise.
28081         * doc/posix-functions/stdout.texi (stdout): Likewise.
28082         * modules/freopen-safer-tests: New test.
28083         * tests/test-reopen-safer.c: New file.
28084
28085 2009-11-05  Jim Meyering  <meyering@redhat.com>
28086
28087         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28088         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28089
28090 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28091
28092         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28093
28094 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28095
28096         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28097
28098 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28099
28100         Fix link error.
28101         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28102         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28103
28104 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28105
28106         * tests/test-func.c: Also test value of __func__.
28107
28108 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28109
28110         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28111         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28112
28113 2009-11-05  Bruno Haible  <bruno@clisp.org>
28114
28115         Fix link error.
28116         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28117         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28118         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28119
28120 2009-11-05  Bruno Haible  <bruno@clisp.org>
28121
28122         Tests for module 'inet_pton'.
28123         * modules/inet_pton-tests: New file.
28124         * tests/test-inet_pton.c: New file.
28125
28126 2009-11-05  Bruno Haible  <bruno@clisp.org>
28127
28128         Tests for module 'inet_ntop'.
28129         * modules/inet_ntop-tests: New file.
28130         * tests/test-inet_ntop.c: New file.
28131
28132 2009-11-04  Eric Blake  <ebb9@byu.net>
28133
28134         stdlib-safer: wrap all mkstemp variants
28135         * modules/mkostemp (configure.ac): Set witness.
28136         * modules/mkostemps (configure.ac): Likewise.
28137         * modules/mkstemps (configure.ac): Likewise.
28138         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28139         (mkstemps_safer): Wrap more functions.
28140         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28141         wrapping.
28142         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28143         (mkstemps_safer): Implement the wrappers.
28144
28145         mkstemps, mkostemps: new modules
28146         * modules/mkostemps: New module.
28147         * modules/mkstemps: Likewise.
28148         * lib/mkostemps.c (mkostemps): New file.
28149         * lib/mkstemps.c (mkstemps): Likewise.
28150         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28151         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28153         * modules/stdlib (Makefile.am): Substitute them.
28154         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28155         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28156         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28157         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28158         * MODULES.html.sh (File system functions): Mention them.
28159
28160         tempname: resync from glibc
28161         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28162         same values for __GT_FILE as glibc.  Abort even when assertions
28163         are disabled.
28164         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28165         match its value otherwise.  Allow idempotent inclusion.
28166         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28167         * lib/mkostemp.c (mkostemp): Likewise.
28168         * lib/mkstemp.c (mkstemp): Likewise.
28169         * lib/tmpfile.c (tmpfile): Likewise.
28170         * NEWS: Document this.
28171
28172         utimens: fix use of futimens on older Linux
28173         * lib/utimens.c (fdutimens): Use updated, rather than original,
28174         timespec to avoid bug in older Linux kernel.
28175         Reported by Simon Josefsson.
28176
28177 2009-11-04  Bruno Haible  <bruno@clisp.org>
28178
28179         Make num_processors more flexible and consistent.
28180         * lib/nproc.h (enum nproc_query): New type.
28181         (num_processors): Add a 'query' argument.
28182         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28183         (num_processors): Add a 'query' argument. Test the value of the
28184         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28185         mingw, count the number of CPUs available for the current process.
28186         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28187         Check for sched_getaffinity and sched_getaffinity_np.
28188         * modules/nproc (Depends-on): Add c-ctype, extensions.
28189         * NEWS: Mention the change.
28190
28191 2009-11-03  Bruno Haible  <bruno@clisp.org>
28192
28193         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28194
28195 2009-11-03  Jim Meyering  <meyering@redhat.com>
28196
28197         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28198         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28199         if it is defined.
28200
28201 2009-11-02  Eric Blake  <ebb9@byu.net>
28202
28203         mktime, timegm: share common declaration
28204         * lib/mktime-internal.h: New file.
28205         * lib/mktime.c: Use it rather than open-coding a declaration.
28206         * lib/timegm.c: Likewise.
28207         * modules/mktime (Files): Ship it.
28208         * modules/timegm (Files): Likewise.
28209         Suggested by Bruno Haible.
28210
28211         test-update-copyright: update test to match script changes
28212         * tests/test-update-copyright.sh: Avoid hard-coding perl
28213         location.  Don't update *.bak created by earlier runs.
28214
28215 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28216             Simon Josefsson  <simon@josefsson.org>
28217             Bruno Haible  <bruno@clisp.org>
28218
28219         Fix link error on Solaris 8.
28220         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28221         also in libnsl. Define also INET_PTON_LIB.
28222         * modules/inet_pton (Link): New section.
28223
28224 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28225             Bruno Haible  <bruno@clisp.org>
28226
28227         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28228         * modules/inet_ntop (Link): New section.
28229         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28230
28231 2009-11-02  Eric Blake  <ebb9@byu.net>
28232
28233         maint: avoid compiler warnings in m4 macros
28234         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28235         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28236
28237 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28238
28239         * m4/pmccabe2html.m4: Remove file.
28240         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28241         function.  Change maintainer.
28242         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28243         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28244         Courtès).
28245
28246 2009-10-31  Eric Blake  <ebb9@byu.net>
28247
28248         fseeko: fix m4 regression
28249         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28250         regression from 2009-10-27.
28251         Reported by Ralf Wildenhues.
28252
28253 2009-10-31  Jim Meyering  <meyering@redhat.com>
28254
28255         inttostr: aesthetics and improved (compile-time) safety
28256         Define inttype_is_signed rather than inttype_is_unsigned,
28257         since the sole use is via "#if inttype_is_signed".
28258         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28259         inttype_is_unsigned.
28260         * lib/offtostr.c (inttype_is_signed): Likewise.
28261         * lib/uinttostr.c (inttype_is_signed): Likewise.
28262         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28263         * lib/inttostr.c (inttostr): Use verify to cross-check the
28264         inttype_is_signed value and the signedness of the actual type.
28265         * modules/inttostr (Depends-on): Add verify.
28266
28267 2009-10-30  Eric Blake  <ebb9@byu.net>
28268
28269         build: avoid compiler warnings
28270         * lib/fchmodat.c (lchmod): Mark unused variables.
28271         * lib/getopt.c (_getopt_initialize): Likewise.
28272         * lib/mktime.c (__mktime_internal): Provide prototype.
28273         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28274         older gcc that do not understand #pragma GCC diagnostic.
28275         * lib/uinttostr.c (inttype_is_unsigned): Define.
28276         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28277
28278 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28279
28280         stat: fix compilation on AIX
28281         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28282         only see struct stat64.
28283
28284 2009-10-30  Eric Blake  <ebb9@byu.net>
28285
28286         exclude: make more robust
28287         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28288         rather than masking a coding bug.
28289         Suggested by Bruno Haible.
28290
28291 2009-10-30  Jim Meyering  <meyering@redhat.com>
28292
28293         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28294         Rather than putting #!/usr/bin/perl on the first line,
28295         start with a variant of what's recommended by "man perlrun" that
28296         invokes the first "perl" program from your shell's search path.
28297         * build-aux/gitlog-to-changelog: Replace #!... as above.
28298         Add a "Local Variables" perl mode setting.
28299         Prompted by a patch from Ludovic Courtès.
28300         Improved by Eric Blake.
28301         * build-aux/useless-if-before-free: Likewise.
28302         * build-aux/announce-gen: Likewise.
28303         * build-aux/update-copyright: Likewise.
28304
28305 2009-10-29  Eric Blake  <ebb9@byu.net>
28306
28307         filenamecat-lgpl: adjust clients
28308         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28309         filenamecat.
28310         * modules/renameat (Depends-on): Likewise.
28311
28312         filenamecat: split into filenamecat-lgpl
28313         * modules/filenamecat-lgpl: New module.
28314         * modules/filenamecat (Files): Move library-safe files into
28315         filenamecat-lgpl.
28316         (Depends-on): Add filenamecat-lgpl.
28317         (configure.ac): Declare witness.
28318         * lib/filenamecat.h (file_name_concat): Only declare when using
28319         GPL module.
28320         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28321         Move...
28322         * lib/filenamecat-lgpl.c: ...into new file.
28323         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28324         (gl_FILE_NAME_CONCAT): Use it.
28325         * MODULES.html.sh (File system functions): Mention new module.
28326
28327         argp: avoid memory leak
28328         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28329         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28330         base_name, since the latter malloc()s and can call exit().
28331         Leak introduced 2006-07-03.
28332
28333         dirname-lgpl: adjust clients that don't need full dirname
28334         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28335         * modules/filenamecat (Depends-on): Likewise.
28336         * modules/linkat (Depends-on): Likewise.
28337         * modules/mkancesdirs (Depends-on): Likewise.
28338         * modules/mkdir (Depends-on): Likewise.
28339         * modules/openat (Depends-on): Likewise.
28340         * modules/savewd (Depends-on): Likewise.
28341         * modules/rename (Depends-on): Likewise.
28342         (License): Relax license.
28343         * modules/mkdir-tests (Depends-on): Drop progname.
28344         (Makefile.am): Delete unneeded LDADD.
28345         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28346
28347         dirname: split into dirname-lgpl
28348         * modules/dirname-lgpl: New module.
28349         * modules/dirname (Files): Move library-safe files into
28350         dirname-lgpl.
28351         (Depends-on): Add dirname-lgpl.
28352         (configure.ac): Declare witness.
28353         * modules/double-slash-root (License): Relax license.
28354         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28355         module.
28356         * lib/dirname.c (dir_len, mdir_name): Move...
28357         * lib/dirname-lgpl.c: ...into new file.
28358         * lib/basename.c (last_component, base_len): Move...
28359         * lib/basename-lgpl.c: ...into new file.
28360         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28361         (gl_DIRNAME): Use it.
28362         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28363         Mention new module.
28364         * modules/dirname-tests (Depends-on): Add progname.
28365         * tests/test-dirname.c (program_name): Delete.
28366
28367         mkdir: make safe for libraries
28368         * modules/mkdir (Depends-on): Drop xalloc.
28369         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28370         exit.
28371
28372         tests: avoid some compiler warnings
28373         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28374         literals.
28375         * tests/test-memchr.c (main): Avoid type mismatch.
28376         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28377         * tests/test-base64.c (main): Likewise.
28378         * tests/test-getdelim.c (main): Likewise.
28379         * tests/test-gethostname.c (main): Likewise.
28380         * tests/test-getline.c (main): Likewise.
28381         * tests/test-netinet_in.c (main): Likewise.
28382         * tests/test-select.c (open_server_socket, main): Likewise.
28383         * tests/test-select-stdin.c (main): Likewise.
28384         * tests/test-sockets.c (main): Likewise.
28385         * tests/test-strsignal.c (main): Likewise.
28386         * tests/test-sys_select.c (main): Likewise.
28387         * tests/test-sys_socket.c (main): Likewise.
28388         * tests/test-u64.c (main): Likewise.
28389         * tests/test-xfprintf-posix.c (main): Likewise.
28390         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28391
28392         sockets: avoid compiler warning
28393         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28394
28395         maint: detect usage(1) and other suspicious exits
28396         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28397
28398 2009-10-29  Jim Meyering  <meyering@redhat.com>
28399
28400         timespec: long-to-int truncation could make timespec_cmp malfunction
28401         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28402         a multiple of 2^32 nanoseconds as no difference.
28403
28404 2009-10-28  Jim Meyering  <meyering@redhat.com>
28405
28406         fprintftime: wrap macro code argument in "do {...} while(0)"
28407         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28408         cpy macro must be a statement that can be followed by a semicolon.
28409         Now that the else clause contains a comment and is hence longer
28410         than one line, I require curly braces.  That in turn requires
28411         that we wrap this code block in the standard do...while(0).
28412
28413         fprintftime: remove stray semicolon from previous change
28414         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28415
28416         fprintftime: avoid a warning about ignored fwrite return value
28417         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28418         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28419         that is unsafe.
28420         * modules/fprintftime (Depends-on): Add ignore-value.
28421
28422         exclude: avoid an unwarranted warning
28423         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28424
28425 2009-10-27  Eric Blake  <ebb9@byu.net>
28426
28427         fseek: avoid compilation failure when fflush is replaced
28428         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28429         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28430         module is in use.
28431         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28432         module is not in use; since REPLACE_FSEEK worked otherwise.
28433         (GNULIB_FTELLO): Likewise for ftell.
28434         Reported by Ian Beckwith and others.
28435
28436 2009-10-27  Bruno Haible  <bruno@clisp.org>
28437
28438         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28439         Reported by Jim Meyering.
28440
28441 2009-10-27  Jim Meyering  <jim@meyering.net>
28442             Bruno Haible  <bruno@clisp.org>
28443
28444         Avoid warning despite dropping the return value of fwrite.
28445         * lib/unicodeio.c: Include ignore-value.h.
28446         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28447         * modules/unicodeio (Depends-on): Add ignore-value.
28448
28449 2009-10-26  Eric Blake  <ebb9@byu.net>
28450
28451         areadlinkat: fix fallback path
28452         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28453         pointer and zero.
28454
28455 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28456
28457         Use a better IO block size for modern systems
28458         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28459         * lib/md2.c: Likewise.
28460         * lib/md4.c: Likewise.
28461         * lib/md5.c: Likewise.
28462         * lib/sha1.c: Likewise.
28463         * lib/sha256.c: Likewise.
28464         * lib/sha512.c: Likewise.
28465
28466 2009-10-22  Eric Blake  <ebb9@byu.net>
28467
28468         tests: avoid several compiler warnings
28469         * tests/test-getcwd.c (main): Avoid buffer underflow.
28470         * tests/test-getdate.c (main): String literals are not safe with
28471         putenv, so use setenv.  Declare unused argument.
28472         * modules/getdate-tests (Depends-on): Add setenv.
28473         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28474         problems with string literals in char *.
28475         * tests/test-hash.c (main): Avoid shadowing declaration.
28476         (insert_new): Treat string literals as char const *.
28477         * tests/test-getopt.h (test_getopt): Likewise.
28478         (getopt_loop): Alter types to minimize casting elsewhere.
28479         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28480         (test_getopt_long_posix): Likewise.
28481         (do_getopt_long): Add wrapper to minimize casting.
28482         * tests/test-atexit.c (clear_temp_file): Use void.
28483         * tests/test-areadlink-with-size.c (main): Declare unused
28484         arguments.
28485         * tests/test-areadlink.c (main): Likewise.
28486         * tests/test-areadlinkat-with-size.c (main): Likewise.
28487         * tests/test-areadlinkat.c (main): Likewise.
28488         * tests/test-canonicalize-lgpl.c (main): Likewise.
28489         * tests/test-canonicalize.c (main): Likewise.
28490         * tests/test-dirent-safer.c (main): Likewise.
28491         * tests/test-dirname.c (main): Likewise.
28492         * tests/test-dup2.c (main): Likewise.
28493         * tests/test-fchdir.c (main): Likewise.
28494         * tests/test-fcntl-h.c (main): Likewise.
28495         * tests/test-fcntl-safer.c (main): Likewise.
28496         * tests/test-fdopendir.c (main): Likewise.
28497         * tests/test-fdutimensat.c (main): Likewise.
28498         * tests/test-fflush.c (main): Likewise.
28499         * tests/test-filenamecat.c (main): Likewise.
28500         * tests/test-filevercmp.c (main): Likewise.
28501         * tests/test-fopen-safer.c (main): Likewise.
28502         * tests/test-fopen.c (main): Likewise.
28503         * tests/test-fpending.c (main): Likewise.
28504         * tests/test-fpurge.c (main): Likewise.
28505         * tests/test-freading.c (main): Likewise.
28506         * tests/test-fstatat.c (main): Likewise.
28507         * tests/test-fsync.c (main): Likewise.
28508         * tests/test-futimens.c (main): Likewise.
28509         * tests/test-getndelim2.c (main): Likewise.
28510         * tests/test-gettimeofday.c (main): Likewise.
28511         * tests/test-getopt.c (main): Likewise.
28512         * tests/test-i-ring.c (main): Likewise.
28513         * tests/test-inttypes.c (main): Likewise.
28514         * tests/test-link.c (main): Likewise.
28515         * tests/test-lstat.c (main): Likewise.
28516         * tests/test-math.c (main): Likewise.
28517         * tests/test-md5.c (main): Likewise.
28518         * tests/test-memchr2.c (main): Likewise.
28519         * tests/test-memrchr.c (main): Likewise.
28520         * tests/test-mkdir.c (main): Likewise.
28521         * tests/test-mkdirat.c (main): Likewise.
28522         * tests/test-mkfifoat.c (main): Likewise.
28523         * tests/test-open.c (main): Likewise.
28524         * tests/test-openat-safer.c (main): Likewise.
28525         * tests/test-openat.c (main): Likewise.
28526         * tests/test-quotearg.c (main): Likewise.
28527         * tests/test-rawmemchr.c (main): Likewise.
28528         * tests/test-readlink.c (main): Likewise.
28529         * tests/test-remove.c (main): Likewise.
28530         * tests/test-rename.c (main): Likewise.
28531         * tests/test-renameat.c (main): Likewise.
28532         * tests/test-rmdir.c (main): Likewise.
28533         * tests/test-sha1.c (main): Likewise.
28534         * tests/test-signal.c (main): Likewise.
28535         * tests/test-sigaction.c (main): Likewise.
28536         * tests/test-stat.c (main): Likewise.
28537         * tests/test-stat-time.c (main): Likewise.
28538         * tests/test-stddef.c (main): Likewise.
28539         * tests/test-stdint.c (main): Likewise.
28540         * tests/test-stdio.c (main): Likewise.
28541         * tests/test-stdlib.c (main): Likewise.
28542         * tests/test-strchrnul.c (main): Likewise.
28543         * tests/test-strerror.c (main): Likewise.
28544         * tests/test-string.c (main): Likewise.
28545         * tests/test-strtod.c (main): Likewise.
28546         * tests/test-strverscmp.c (main): Likewise.
28547         * tests/test-symlink.c (main): Likewise.
28548         * tests/test-symlinkat.c (main): Likewise.
28549         * tests/test-sys_stat.c (main): Likewise.
28550         * tests/test-sys_time.c (main): Likewise.
28551         * tests/test-time.c (main): Likewise.
28552         * tests/test-unistd.c (main): Likewise.
28553         * tests/test-unlink.c (main): Likewise.
28554         * tests/test-unlinkat.c (main): Likewise.
28555         * tests/test-utimens.c (main): Likewise.
28556         * tests/test-utimensat.c (main): Likewise.
28557         * tests/test-version-etc.c (main): Likewise.
28558         * tests/test-wchar.c (main): Likewise.
28559         * tests/test-wctype.c (main): Likewise.
28560         * tests/test-xprintf-posix.c (main): Likewise.
28561         * tests/test-posixtm.c (main): Likewise.
28562         (STREQ): Delete unused macro.
28563         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28564         shadowed variables.
28565         * tests/test-memchr.c (main): Likewise.
28566
28567 2009-10-21  Eric Blake  <ebb9@byu.net>
28568
28569         areadlinkat: avoid failure on older glibc
28570         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28571         rather than mis-comparing 0 against FUNC_RESULT of char*.
28572
28573 2009-10-21  Bruno Haible  <bruno@clisp.org>
28574
28575         * modules/stpncpy (License): Relicense under LGPLv2+.
28576         Reported by David Lutterkort <lutter@redhat.com>.
28577
28578 2009-10-20  Eric Blake  <ebb9@byu.net>
28579
28580         utimensat: work around Solaris 9 bug
28581         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28582         has trailing slash bugs.
28583         * tests/test-lutimens.h (test_lutimens): Enhance test.
28584         * tests/test-utimens.h (test_utimens): Likewise.
28585         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28586         * doc/posix-functions/utimes.texi (utimes): Likewise.
28587         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28588         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28589         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28590         * doc/posix-functions/futimens.texi (futimens): Likewise.
28591
28592         fdutimensat: new module
28593         * modules/fdutimensat: New file.
28594         * lib/fdutimensat.c (fdutimensat): Likewise.
28595         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28596         * MODULES.html.sh (File system functions): Mention module.
28597         * modules/fdutimensat-tests: New test.
28598         * tests/test-fdutimensat.c: Likewise.
28599
28600         doc: regenerate INSTALL
28601         * doc/INSTALL: Reflect recent autoconf update.
28602         * doc/INSTALL.ISO: Likewise.
28603         * doc/INSTALL.UTF-8: Likewise.
28604
28605 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28606
28607         acl: warn if ACL support is not detected
28608         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28609
28610 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28611
28612         * lib/nproc.h: Add extern "C" block for C++.
28613
28614 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28615             Bruno Haible  <bruno@clisp.org>
28616
28617         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28618         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28619         * doc/posix-functions/isalpha.texi: Likewise.
28620         * doc/posix-functions/isblank.texi: Likewise.
28621         * doc/posix-functions/iscntrl.texi: Likewise.
28622         * doc/posix-functions/isdigit.texi: Likewise.
28623         * doc/posix-functions/isgraph.texi: Likewise.
28624         * doc/posix-functions/islower.texi: Likewise.
28625         * doc/posix-functions/isprint.texi: Likewise.
28626         * doc/posix-functions/ispunct.texi: Likewise.
28627         * doc/posix-functions/isspace.texi: Likewise.
28628         * doc/posix-functions/isupper.texi: Likewise.
28629         * doc/posix-functions/isxdigit.texi: Likewise.
28630
28631 2009-10-18  Bruno Haible  <bruno@clisp.org>
28632
28633         Tests for module 'isblank'.
28634         * modules/isblank-tests: New file.
28635         * tests/test-isblank.c: New file.
28636
28637         New module 'isblank'.
28638         * lib/isblank.c: New file.
28639         * m4/isblank.m4: New file.
28640         * modules/isblank: New file.
28641         * doc/posix-functions/isblank.texi: Mention the new module.
28642
28643 2009-10-18  Bruno Haible  <bruno@clisp.org>
28644
28645         New module 'ctype'.
28646         * lib/ctype.in.h: New file.
28647         * m4/ctype.m4: New file.
28648         * modules/ctype: New file.
28649         * doc/posix-headers/ctype.texi: Mention the new module.
28650
28651 2009-10-18  Jim Meyering  <meyering@redhat.com>
28652
28653         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28654         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28655         right after its initialization, rather than farther down.
28656         Keeping these in close proximity makes it easier to ensure
28657         that each such variable is initialized.  E.g.,
28658
28659             LIB_CLOCK_GETTIME=
28660             AC_SUBST([LIB_CLOCK_GETTIME])
28661
28662         This change also increments these serial numbers.
28663         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28664         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28666
28667 2009-10-18  Bruno Haible  <bruno@clisp.org>
28668
28669         Don't let environment variables perturb build.
28670         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28671         (gl_PREREQ_GETHRXTIME): ... not here.
28672
28673 2009-10-18  Bruno Haible  <bruno@clisp.org>
28674
28675         Avoid symlink attack in localcharset module.
28676         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28677         (O_NOFOLLOW): Define fallback.
28678         (get_charset_aliases): Don't open the file if it is a symbolic link.
28679         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28680         gl_FCNTL_H.
28681         (gl_FCNTL_H): Require it.
28682         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28683         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28684         Reported by Fergal Glynn <fglynn@veracode.com>.
28685
28686 2009-10-18  Bruno Haible  <bruno@clisp.org>
28687
28688         Implement nproc for mingw.
28689         * lib/nproc.c: Include <windows.h>
28690         (num_processors): On native Windows platforms, try GetSystemInfo.
28691
28692 2009-10-18  Bruno Haible  <bruno@clisp.org>
28693
28694         Implement nproc for IRIX.
28695         * lib/nproc.c: Include <sys/sysmp.h>.
28696         (num_processors): On IRIX systems, try sysmp.
28697         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28698
28699 2009-10-18  Bruno Haible  <bruno@clisp.org>
28700
28701         Implement nproc for HP-UX.
28702         * lib/nproc.c: Include <sys/pstat.h>
28703         (num_processors): On HP-UX systems, try pstat_getdynamic.
28704         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28705         pstat_getdynamic.
28706
28707 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28708             Bruno Haible  <bruno@clisp.org>
28709
28710         Implement nproc for NetBSD, OpenBSD.
28711         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28712         (ARRAY_SIZE): New macro.
28713         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28714         * m4/nproc.m4: New file.
28715         * modules/nproc (Files): Add m4/nproc.m4.
28716         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28717         (Makefile.am): Instead, augment lib_SOURCES.
28718
28719 2009-10-18  Bruno Haible  <bruno@clisp.org>
28720
28721         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28722         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28723         sys/param.h.
28724
28725 2009-10-16  Eric Blake  <ebb9@byu.net>
28726
28727         utimensat: new module
28728         * modules/utimensat: New file.
28729         * lib/utimensat.c (utimensat): Likewise.
28730         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28731         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28732         so we can work around Linux bugs.
28733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28734         * modules/sys_stat (Makefile.am): Substitute them.
28735         * lib/sys_stat.in.h (utimensat): Declare it.
28736         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28737         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28738         * modules/utimensat-tests: New test.
28739         * tests/test-utimensat.c: Likewise.
28740
28741         utimens: let lutimens work on non-symlinks
28742         * lib/utimens.c (lutimens): Fall back to utimens rather than
28743         failing with ENOSYS, when file is not a symlink.
28744         (utimens): Reduce redirection.
28745         * tests/test-lutimens.h (test_lutimens): Update test to cover
28746         non-symlinks.
28747         * tests/test-utimens.h (test_utimens): Update test to cover
28748         symlinks.
28749         * tests/test-utimens.c (main): Update caller.
28750
28751         utimens: cache whether utimensat syscall works
28752         * lib/utimens.c (utimensat_works_really): New cache variable.
28753         (fdutimens, lutimens): Use it to avoid failing syscall.
28754
28755         test-stat-time, test-utimens: improve portability
28756         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28757         ext4 on alpha, and for cygwin.
28758         * tests/test-utimens-common.h: New file.
28759         (nap): Factor delays into single function.
28760         * tests/test-lutimens.h (test_lutimens): Use new header.
28761         * tests/test-futimens.h (test_futimens): Likewise.
28762         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28763         timestamps to occur from same machine, as was done previously for
28764         test_utimens.
28765         * modules/utimens-tests (Files): Ship new file.
28766         * modules/futimens-tests (Files): Likewise.
28767         Reported in part by Jim Meyering.
28768
28769         sys_stat: sort replacement declarations
28770         * lib/sys_stat.in.h: Sort declarations.
28771         * lib/futimens.c (futimens): Fix typo.
28772
28773 2009-10-15  Jim Meyering  <meyering@redhat.com>
28774
28775         don't let environment settings perturb build
28776         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28777         could cause a configure-time and/or build-time malfunction.
28778         Typically, a configure-time function-in-library test is performed
28779         via code like this:
28780
28781           LIB_VAR=
28782           AC_SUBST([LIB_VAR])
28783           prefix_saved_LIBS=$LIBS
28784             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28785                        [test "$ac_cv_search_FUNC" = "none required" ||
28786                         LIB_VAR=$ac_cv_search_FUNC])
28787           LIBS=$prefix_saved_LIBS
28788
28789         However, in each of the files affected by this change, the LIB_VAR=
28790         initialization was omitted.  Thus, when set in the environment, its
28791         value would propagate into generated Makefiles when FUNC is not found
28792         in LIB_NAME.
28793         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28794         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28796
28797 2009-10-14  Eric Blake  <ebb9@byu.net>
28798
28799         fchdir: avoid infinite recursion in mingw
28800         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28801         recursing.
28802
28803         test-stat-time: port to mingw
28804         * tests/test-stat-time.c (force_unlink): Return a value.
28805         (test_ctime) [W32]: Fix compilation error.
28806         (nap): Don't call usleep with too large an argument.  Use
28807         force_unlink.
28808         * doc/pastposix-functions/usleep.texi (usleep): Document the
28809         portability issue.
28810
28811 2009-10-13  Jim Meyering  <meyering@redhat.com>
28812
28813         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28814         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28815         * modules/pipe-filter-ii: Likewise.
28816         * modules/sys_socket-tests: Likewise.
28817         * modules/tsearch-tests: Likewise.
28818         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28819         (check): Depend on it.
28820
28821 2009-10-12  Eric Blake  <ebb9@byu.net>
28822
28823         utimens-tests: port to NFS file systems
28824         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28825         comparisons to avoid spurious failures from timestamp drift
28826         between NFS machines.
28827
28828 2009-10-12  Eric Blake  <ebb9@byu.net>
28829
28830         stat-time-tests: minor cleanups
28831         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28832         * tests/test-stat-time.c (nap): Separate assignment from call.
28833         Suggested by Paolo Bonzini and Bruno Haible.
28834
28835         sys_stat: guarantee struct timespec
28836         * lib/sys_stat.in.h (includes): Always include <time.h>
28837         * modules/sys_stat (Depends-on): Add time.
28838         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28839         mode_t permission values.
28840         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28841         get at subsecond timestamps.
28842
28843 2009-10-10  Eric Blake  <ebb9@byu.net>
28844
28845         futimens: new module
28846         * modules/futimens: New file.
28847         * lib/futimens.c (futimens): Likewise.
28848         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28849         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28850         we can work around Linux bugs.
28851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28852         * modules/sys_stat (Makefile.am): Substitute them.
28853         * lib/sys_stat.in.h (futimens): Declare it.
28854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28855         * doc/posix-functions/futimens.texi (futimens): Likewise.
28856         * modules/futimens-tests: New test.
28857         * tests/test-futimens.c: Likewise.
28858
28859         utimens: introduce fdutimens
28860         * lib/utimens.h (fdutimens): New prototype.
28861         * lib/utimens.c (gl_futimens): Move guts...
28862         (fdutimens): ...to new interface.
28863         * tests/test-utimens.c (do_fdutimens): Use it.
28864
28865         utimens: add UTIME_NOW and UTIME_OMIT support
28866         * lib/utimens.c (validate_timespec, update_timespec): New helper
28867         functions.
28868         (gl_futimens, lutimens): Use them.
28869         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28870         stdbool, sys_stat.
28871         (Link): Mention resulting library dependency.
28872         * modules/utimecmp (Link): Likewise.
28873         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28874         (Makefile.am): Pick up library dependency.
28875         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28876         definition.
28877         * tests/test-sys_stat.c: Test the definitions.
28878         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28879         * NEWS: Document library dependency.
28880
28881         utimecmp: support symlink timestamps
28882         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28883         hashing when possible.  Use pathconf when available.
28884         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28885         * modules/utimecmp (Depends-on): Add lstat.
28886
28887         utimens: add lutimens interface
28888         * lib/utimens.c (lutimens): New function.
28889         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28890         * lib/utimens.h (lutimens): Declare new interface.
28891         * tests/test-utimens.c (main): Enhance test.
28892         * tests/test-lutimens.h (test_lutimens): New file.
28893         * modules/utimens-tests (Files): Distribute it.
28894         (Depends-on): Add symlink.
28895         (configure.ac): Check for usleep.
28896
28897         utimens: validate futimens usage
28898         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28899         fewer syscalls on failure later on.  Avoid compiler warning on
28900         mingw.
28901         * modules/utimens (Depends-on): Add dup2.
28902
28903         utimens: add test
28904         * modules/utimens-tests: New test.
28905         * tests/test-utimens.h: New file.
28906         * tests/test-futimens.h: Likewise.
28907         * tests/test-utimens.c: Likewise.
28908
28909         doc: mention timestamp portability issues
28910         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28911         instead.
28912         * doc/posix-functions/utime.texi (utime): Likewise.
28913         * doc/posix-functions/utimes.texi (utimes): Likewise.
28914         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28915         instead.
28916         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28917         module.
28918         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28919         Mention weakness with symlink timestamps.
28920         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28921         to utimensat/futimens instead.
28922         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28923
28924         test-dup2: enhance test
28925         * tests/test-dup2.c (main): Also check AT_FDCWD.
28926
28927         test-stat-time: avoid more spurious failures
28928         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28929         xfs; and avoid race if the two timestamps cross quantization edge.
28930
28931         relocatable: prefer 'file system' over 'filesystem'
28932         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28933         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28934         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28935         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28936         * lib/relocatable.c (compute_curr_prefix): Likewise.
28937
28938 2009-10-10  Jim Meyering  <meyering@redhat.com>
28939
28940         stat-time-tests: check for the usleep function
28941         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28942
28943 2009-10-10  Bruno Haible  <bruno@clisp.org>
28944
28945         * modules/xnanosleep: Put the Link section after the Include section.
28946
28947 2009-10-09  Eric Blake  <ebb9@byu.net>
28948
28949         dup2: work around FreeBSD 6.1 bug
28950         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28951         * doc/posix-functions/dup2.texi (dup2): Document it.
28952         Reported by Nelson H. F. Beebe and Jim Meyering.
28953
28954         test-stat-time: port to buggy NFS clients
28955         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28956         (test_ctime): Also skip test if mtime and ctime are skewed.
28957
28958         maint: prefer 'file system' over 'filesystem'
28959         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28960         * doc/posix-functions/lstat.texi (lstat): Likewise.
28961         * lib/file-has-acl.c (file_has_acl): Likewise.
28962         * lib/fwriteerror.c [TEST]: Likewise.
28963         * tests/test-areadlink.h (test_areadlink): Likewise.
28964         * tests/test-areadlinkat-with-size.c (main): Likewise.
28965         * tests/test-areadlinkat.c (main): Likewise.
28966         * tests/test-canonicalize-lgpl.c (main): Likewise.
28967         * tests/test-canonicalize.c (main): Likewise.
28968         * tests/test-fstatat.c (main): Likewise.
28969         * tests/test-linkat.c (main): Likewise.
28970         * tests/test-lstat.h (test_lstat_func): Likewise.
28971         * tests/test-mkdir.h (test_mkdir): Likewise.
28972         * tests/test-readlink.h (test_readlink): Likewise.
28973         * tests/test-remove.c (main): Likewise.
28974         * tests/test-rename.h (test_rename): Likewise.
28975         * tests/test-renameat.c (main): Likewise.
28976         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28977         * tests/test-symlink.h (test_symlink): Likewise.
28978         * tests/test-symlinkat.c (main): Likewise.
28979         * tests/test-unlink.h (test_unlink_func): Likewise.
28980         * tests/test-unlinkat.c (main): Likewise.
28981
28982         maint: make realtime library usage explicit
28983         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28984         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28985         * modules/settime (Link): Likewise.
28986         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28987
28988         test-stat-time: speed up execution
28989         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28990         warning on mingw.
28991         (nap): New helper function.
28992         (prepare_test): Use it to reduce sleep time.
28993         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28994         execution.
28995         * modules/stat-time-tests (configure.ac): Check for usleep.
28996
28997 2009-10-09  Jim Meyering  <meyering@redhat.com>
28998
28999         selinux-h: always use getfilecon wrappers
29000         * lib/getfilecon.c: New file.
29001         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29002         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29003         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29004         (fgetfilecon): Provide a stub.
29005         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29006         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29007         file unconditionally.
29008         When <selinux/selinux.h> is found, arrange to use wrappers.
29009         * modules/selinux-h (Files): Add getfilecon.c.
29010         (Makefile.am): Substitute include-next-related bits
29011         into the now-always-generated selinux/selinux.h file.
29012         * doc/glibc-functions/lgetfilecon.texi: New file.
29013         * doc/glibc-functions/fgetfilecon.texi: New file.
29014         * doc/glibc-functions/getfilecon.texi: New file.
29015         * doc/glibc-functions/getfilecon-desc.texi: New file.
29016         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29017         which to pull in the new files.
29018         * MODULES.html.sh (Misc): Add selinux-h.
29019
29020 2009-10-08  Jim Meyering  <meyering@redhat.com>
29021
29022         unistd: fix comment typo
29023         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29024
29025 2009-10-08  Eric Blake  <ebb9@byu.net>
29026
29027         areadlink: use SIZE_MAX consistently
29028         * modules/areadlink (Depends-on): Add stdint.
29029         * modules/areadlink-with-size (Depends-on): Likewise.
29030         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29031         gives NULL; drop sys/types, since unistd gives size_t; and add
29032         stdint for SIZE_MAX.
29033         (SIZE_MAX): Rely on headers.
29034         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29035         and add stdint.
29036         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29037         (SIZE_MAX): Likewise.
29038         (INITIAL_BUF_SIZE): Turn into enum.
29039         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29040
29041 2009-10-08  Jim Meyering  <meyering@redhat.com>
29042
29043         areadlinkat: avoid compilation failure
29044         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29045         Fix typo in comment.
29046
29047 2009-10-07  Eric Blake  <ebb9@byu.net>
29048
29049         areadlinkat-with-size: new module
29050         * modules/areadlinkat-with-size: New module.
29051         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29052         * lib/areadlink.h (areadlinkat): Declare it.
29053         * MODULES.html.sh (File system functions): Mention it.
29054         * modules/areadlinkat-with-size-tests: New test.
29055         * tests/test-areadlinkat-with-size.c: New file.
29056
29057         xreadlinkat: new module
29058         * modules/xreadlinkat: New module.
29059         * lib/xreadlinkat.c (xreadlinkat): New file.
29060         * lib/xreadlink.h (xreadlinkat): Declare it.
29061         * MODULES.html.sh (File system functions): Mention it.
29062
29063         areadlinkat: new module
29064         * lib/at-func.c (FUNC_FAIL): New define.
29065         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29066         * modules/areadlinkat: New module.
29067         * lib/linkat.c (areadlinkat): Move...
29068         * lib/areadlinkat.c (areadlinkat): ...to new file.
29069         * lib/areadlink.h (areadlinkat): Declare it.
29070         * modules/linkat (Depends-on): Add areadlinkat.
29071         * MODULES.html.sh (File system functions): Mention it.
29072         * modules/areadlinkat-tests: New test.
29073         * tests/test-areadlinkat.c: New file.
29074
29075         areadlink, areadlink-with-size: add tests
29076         * modules/areadlink-tests: New test.
29077         * modules/areadlink-with-size-tests: Likewise.
29078         * tests/test-areadlink.h: New file.
29079         * tests/test-areadlink.c: Likewise.
29080         * tests/test-areadlink-with-size.c: Likewise.
29081
29082         maint: minor cleanups
29083         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29084         _UNUSED_PARAMETER_ instead.
29085         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29086         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29087         * modules/linkat-tests (Files): Distribute test-link.h.
29088
29089         openat, utimens: whitespace cleanup
29090         * lib/openat.c: Prefer space throughout, rather than mix of 8
29091         spaces vs. tabs.
29092         * lib/at-func.c: Likewise.
29093         * lib/utimens.c: Likewise.
29094
29095         openat: avoid using wrong fd
29096         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29097         working directory chooses same fd.
29098         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29099
29100         mkdir, mkdirat: fix cygwin 1.5.x bug
29101         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29102         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29103         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29104         bug.
29105         (gl_PREREQ_MKDIR): Delete unused macro.
29106         * modules/mkdir (Files): Track file rename.
29107         (configure.ac): Update macro name.
29108         * modules/openat (Depends-on): Add mkdir.
29109         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29110
29111         mkdir, mkdirat: add tests
29112         * modules/mkdir-tests: New test.
29113         * tests/test-mkdir.h: New file.
29114         * tests/test-mkdir.c: Likewise.
29115         * tests/test-mkdirat.c: Likewise.
29116         * modules/openat-tests (Files): Add new files.
29117         (Makefile.am): Run new test.
29118
29119 2009-10-06  Eric Blake  <ebb9@byu.net>
29120
29121         doc: tweak *at function documentation
29122         * doc/posix-functions/faccessat.texi (faccessat): Mention
29123         known issue with replacement.
29124         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29125         * doc/posix-functions/linkat.texi (linkat): Likewise.
29126         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29127         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29128         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29129         * doc/posix-functions/renameat.texi (renameat): Likewise.
29130         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29131
29132         openat: fix GNU/Hurd bug in unlinkat
29133         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29134         broken.
29135         * doc/posix-functions/unlink.texi (unlink): Document this.
29136         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29137
29138         fdopendir: fix GNU/Hurd bug
29139         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29140         allowing non-directory fds.
29141         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29142         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29143         * modules/dirent (Makefile.am): Substitute it.
29144         * lib/dirent.in.h (fdopendir): Declare replacement.
29145         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29146         * tests/test-fdopendir.c (main): Test something other than
29147         /dev/null, since on Hurd that behaves like a directory.
29148
29149         test-symlink: port to GNU/Hurd
29150         * tests/test-symlink.h (test_symlink): Relax expected errno.
29151
29152         doc: tweak more cygwin information
29153         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29154         now compatible with glibc.
29155         * doc/posix-functions/getopt.texi (getopt): Likewise.
29156
29157         getopt-gnu: add another test
29158         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29159         guarantee behavior relied on by m4.
29160         * tests/test-getopt.c (main): Use it.
29161         * modules/getopt-posix-tests (Depends-on): Add setenv.
29162         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29163
29164         getopt: fix compilation on darwin
29165         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29166         include.
29167         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29168         Reported by Ludovic Courtès.
29169
29170 2009-10-06  Bruno Haible  <bruno@clisp.org>
29171
29172         * modules/size_max (Description): Discourage its use.
29173         Reported by Simon Josefsson.
29174
29175 2009-10-06  Jim Meyering  <meyering@redhat.com>
29176
29177         linkat: avoid compilation failure
29178         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29179
29180 2009-10-05  Eric Blake  <ebb9@byu.net>
29181
29182         linkat: support Linux 2.6.17
29183         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29184         linkat on Linux, but allow cache variable override.
29185         * lib/linkat.c (rpl_linkat): Define override.
29186         * modules/linkat (Depends-on): Add symlinkat.
29187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29188         * modules/unistd (Makefile.am): Substitute it.
29189         * lib/unistd.in.h (linkat): Declare replacement.
29190         Reported by Pádraig Brady.
29191
29192         quotearg: port test to systems with C.UTF-8 locale
29193         * tests/test-quotearg.c (struct result_strings): Add another
29194         member, differentiating between C.ASCII and C.UTF-8 handling.
29195         (compare_strings): Add parameter.
29196         (main): Adjust all callers.
29197
29198         getopt: avoid clash with FreeBSD _getopt_internal
29199         * lib/getopt.in.h (_getopt_internal): Override the name.
29200         * lib/getopt_int.h (includes): Pick up any overrides.
29201         Reported by Reuben Thomas.
29202
29203         hash: allow C89 compilation
29204         * lib/hash.c (check_tuning): Move declaration before statement.
29205         Reported by Reuben Thomas.
29206
29207 2009-10-05  Karl Berry  <karl@gnu.org>
29208
29209         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29210
29211 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29212             Bruno Haible  <bruno@clisp.org>
29213
29214         * lib/uname.c (uname): Use a table-driven algorithm to compute
29215         Windows NT versions.
29216
29217 2009-10-04  Bruno Haible  <bruno@clisp.org>
29218
29219         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29220         program_invocation_short_name.
29221         * modules/progname (configure.ac): Test for presence of
29222         program_invocation_short_name.
29223         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29224
29225 2009-10-04  Bruno Haible  <bruno@clisp.org>
29226
29227         * lib/progname.c (set_program_name): Fix comment.
29228         Reported by Jim Meyering.
29229
29230 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29231             Bruno Haible  <bruno@clisp.org>
29232
29233         * lib/uname.c: Include <string.h>.
29234         (uname): Do only one call to GetVersionEx in the common case.
29235
29236 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29237             Bruno Haible  <bruno@clisp.org>
29238
29239         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29240         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29241         (uname): Add support for Windows CE and various non-x86 CPU types.
29242
29243 2009-10-03  Bruno Haible  <bruno@clisp.org>
29244
29245         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29246         invocation to tests/configure.ac.
29247         Reported by Ian Beckwith <ianb@erislabs.net>.
29248
29249 2009-10-02  Eric Blake  <ebb9@byu.net>
29250
29251         fchdir: avoid compiler warning
29252         * lib/fchdir.c (canonicalize_file_name)
29253         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29254
29255         test-open: support mingw errno values
29256         * tests/test-open.h (test_open): Relax test.
29257         * tests/test-fopen.h (test_fopen): Likewise.
29258         * tests/test-openat-safer.c (main): Likewise.
29259
29260         open: fix opening directory on mingw
29261         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29262
29263         test-open: on GNU/Hurd, /dev/null is a directory
29264         * tests/test-fopen.h (main): Rename...
29265         (test_fopen): ...to this.  Use a guaranteed non-directory when
29266         confirming open behavior on trailing slash.
29267         * tests/test-openat-safer.c (main): Likewise.
29268         * tests/test-open.h (main): Likewise....
29269         (test_open): ...to this.
29270         * tests/test-fopen.c (main): Adjust caller.
29271         * tests/test-fopen-safer.c (main): Likewise.
29272         * tests/test-open.c (main): Likewise.
29273         * tests/test-fcntl-safer.c (main): Likewise.
29274         Reported by Samuel Thibault.
29275
29276         rename, fchdir: don't ignore chdir failure
29277         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29278         * lib/rename.c (rpl_rename) [W32]: Likewise.
29279         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29280         an empty destination directory if source cannot be renamed,
29281         although there is still possibility for failure.
29282         * doc/posix-functions/rename.texi (rename): Document the race.
29283         Reported by Jim Meyering.
29284
29285         maint: cleanup whitespace in recent commits
29286         * lib/rename.c (rpl_rename): Remove tabs.
29287         * tests/test-link.h (test_link): Likewise.
29288         * lib/fchdir.c (get_name): Likewise.
29289         Reported by Jim Meyering.
29290
29291 2009-10-02  Ben Pfaff  <blp@gnu.org>
29292
29293         relocatable-prog-wrapper: Add missing dependency on
29294         double-slash-root.
29295         * modules/relocatable-prog-wrapper: Add dependency.
29296         Reported by Ian Beckwith <ianb@erislabs.net>.
29297
29298 2009-10-02  Eric Blake  <ebb9@byu.net>
29299
29300         renameat: fix Solaris bugs
29301         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29302         needed fixing.
29303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29304         * modules/stdio (Makefile.am): Substitute it.
29305         * lib/stdio.in.h (renameat): Declare replacement.
29306         * lib/renameat.c (rpl_renameat): Implement fix.
29307
29308         renameat: new module
29309         * modules/renameat: New file.
29310         * lib/renameat.c (renameat): Likewise.
29311         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29313         * modules/stdio (Makefile.am): Substitute them.
29314         * lib/stdio.in.h (renameat): Declare it.
29315         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29316         * doc/posix-functions/renameat.texi (renameat): Likewise.
29317         * modules/renameat-tests: New test.
29318         * tests/test-renameat.c: Likewise.
29319
29320         rename: fix mingw bugs
29321         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29322         directory overwrite bugs.
29323
29324         rename: fix another cygwin 1.5 bug
29325         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29326         checks.
29327         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29328         unnecessary cygwin workarounds.  Also work around bug with moving
29329         full directory onto an empty one.
29330         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29331
29332         rename-dest-slash: merge into rename module
29333         * modules/rename-dest-slash (Status): Mark obsolete.
29334         (Depends-on): Add rename.
29335         (Files): Let rename do it all.
29336         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29337         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29338         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29339         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29340         * lib/rename.c (rpl_rename): Update comments.
29341
29342         rename: fix cygwin 1.5.x bugs
29343         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29344         * lib/rename.c (rpl_rename): Work around them.
29345         * modules/rename (Depends-on): Add same-inode.
29346
29347         rename: fix Solaris 10 bug
29348         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29349         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29350         was the only bug.
29351
29352         rename: fix Solaris 9 bug
29353         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29354         on non-directory.  Avoid calling exit.
29355         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29356         strdup.
29357         * modules/rename-tests (Depends-on): Drop lstat.
29358         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29359         (gl_PREREQ_RENAME): Delete unused macro.
29360
29361         rename-dest-slash: fix NetBSD bug
29362         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29363         links.
29364         * modules/rename-dest-slash (Depends-on): Add same-inode.
29365
29366         rename-tests: new test, exposes several platform bugs
29367         * modules/rename-tests: New file.
29368         * tests/test-rename.h: Likewise.
29369         * tests/test-rename.c: Likewise.
29370         * doc/posix-functions/rename.texi (rename): Improve documentation,
29371         including bugs that will eventually be fixed in gnulib.
29372
29373 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29374
29375         * lib/uname.c: Include <stdlib.h>
29376         (uname): Assume version info is available.
29377
29378 2009-10-02  Jim Meyering  <meyering@redhat.com>
29379
29380         gnu-web-doc-update: correct --help output
29381         * build-aux/gnu-web-doc-update: Make --help output relevant.
29382
29383         gnu-web-doc-update: add standard options
29384         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29385
29386         gnu-web-doc-update: New module.
29387         Use this script to automatically update the on-line web documentation
29388         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29389         * modules/gnu-web-doc-update: New file, from coreutils.
29390         * build-aux/gnu-web-doc-update: New script.
29391
29392 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29393
29394         link: LoadLibrary is not needed.
29395         * lib/link.c: Use GetModuleHandle.
29396
29397 2009-10-01  Eric Blake  <ebb9@byu.net>
29398
29399         getopt: bump serial number
29400         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29401         change.
29402
29403         tests: tighten link, rmdir, and remove tests
29404         * tests/test-link.h (includes): No need to use <config.h> here.
29405         Clean up if directory hard link was created, otherwise test for
29406         trailing '.'.
29407         * tests/test-linkat.c (main): Simplify.
29408         * tests/test-remove.c (main): Enhance test for trailing '.'.
29409         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29410
29411 2009-10-01  Jim Meyering  <meyering@redhat.com>
29412
29413         maint.mk: requiring "make major" was annoying, for a "minor" release.
29414         What is intended is "stable", to contrast with alpha and beta,
29415         so require "make stable", not "make major".
29416         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29417         (get_tool_versions): Likewise.
29418         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29419
29420 2009-09-30  Ben Pfaff  <blp@gnu.org>
29421
29422         Fix broken build of replacement for Windows tmpfile().
29423         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29424         flags argument added along with the 'mkostemp' module.
29425
29426 2009-09-28  Bruno Haible  <bruno@clisp.org>
29427
29428         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29429         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29430         to 'remove_elt'.
29431         (gl_list_remove): Update.
29432         * lib/gl_list.c (gl_list_remove): Update.
29433         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29434         to 'remove_elt'.
29435         (gl_oset_remove): Update.
29436         * lib/gl_list.c (gl_oset_remove): Update.
29437         Reported by Eric Blake.
29438
29439 2009-09-28  Eric Blake  <ebb9@byu.net>
29440
29441         doc: mention yet more cygwin 1.7 status
29442         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29443         cygwin.
29444         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29445         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29446
29447         argp: fix test failure
29448         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29449         that are not upper-case.  Pass correct range to tolower.
29450
29451 2009-09-27  Jim Meyering  <meyering@redhat.com>
29452
29453         test-yesno: work around sparc-dash here-document infelicity
29454         Without this change, the literal \177 byte in a here document
29455         would make dash 0.5.5.1-3 access uninitialized memory.
29456         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29457         Instead, use a marker, "@", and filter through tr to create the desired
29458         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29459
29460 2009-09-27  Bruno Haible  <bruno@clisp.org>
29461
29462         Disable untested support for new flavours of ACLs on AIX.
29463         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29464         progress.
29465         * lib/set-mode-acl.c (qset_acl): Likewise.
29466
29467 2008-12-07  Bruno Haible  <bruno@clisp.org>
29468
29469         Add support for new flavours of ACLs on AIX. (Untested.)
29470         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29471         (file_has_acl): Add support for newer AIX.
29472         * lib/set-mode-acl.c (qset_acl): Likewise.
29473         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29474         Rainer Tammer <tammer@tammer.net>.
29475
29476 2009-09-26  Eric Blake  <ebb9@byu.net>
29477
29478         argp: fix compilation of getopt
29479         * lib/getopt.in.h (includes): Use different guard than glibc.
29480         Reported by Sergey Poznyakoff.
29481
29482         doc: mention more cygwin 1.7 status
29483         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29484         bug.
29485         * doc/posix-functions/execl.texi (execl): Likewise.
29486         * doc/posix-functions/execle.texi (execle): Likewise.
29487         * doc/posix-functions/execlp.texi (execlp): Likewise.
29488         * doc/posix-functions/execv.texi (execv): Likewise.
29489         * doc/posix-functions/execve.texi (execve): Likewise.
29490         * doc/posix-functions/execvp.texi (execvp): Likewise.
29491         * doc/glibc-functions/canonicalize_file_name.texi
29492         (canonicalize_file_name): Cygwin 1.7 now provides this.
29493         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29494         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29495         on AT_SYMLINK_NOFOLLOW.
29496
29497 2009-09-24  Eric Blake  <ebb9@byu.net>
29498
29499         test-linkat: make test more robust
29500         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29501
29502         getopt: fix inclusion guards for cygwin
29503         * modules/getopt-posix (Depends-on): Add include-next.
29504         (Makefile.am): Substitute more items in replacement header.
29505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29506         <getopt.h>.
29507         * lib/getopt.in.h (includes): Use split inclusion guard, and
29508         prefer <getopt.h> over include <unistd.h> when one is present.
29509         (option): Also override name of 'struct option'.
29510
29511         same-inode: revert prior change; it is not yet ready
29512         * NEWS: Undo mention of this change.
29513         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29514         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29515         * lib/cycle-check.c (cycle_check): Likewise.
29516         * lib/same.c (same_name): Likewise.
29517         * lib/at-func2.c (at_func2): Likewise.
29518
29519 2009-09-23  Eric Blake  <ebb9@byu.net>
29520
29521         linkat: new module
29522         * modules/linkat: New file.
29523         * lib/at-func2.c (at_func2): Likewise.
29524         * lib/linkat.c (linkat): Likewise.
29525         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29526         * lib/openat-priv.h (at_func2): Add declaration.
29527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29528         * modules/unistd (Makefile.am): Substitute them.
29529         * lib/unistd.in.h (linkat): Declare it.
29530         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29531         * doc/posix-functions/linkat.texi (linkat): Likewise.
29532         * doc/posix-functions/link.texi (link): Tweak wording.
29533         * tests/test-link.c (main): Move guts...
29534         * tests/test-link.h (test_link): ...into new file.
29535         * modules/linkat-tests: New test.
29536         * tests/test-linkat.c: Likewise.
29537         * modules/link-tests (Files): Ship new file.
29538         (Depends-on): Add stdbool.
29539
29540         dirname: add library-safe mdir_name
29541         * lib/dirname.h (mdir_name): New prototype.
29542         * lib/dirname.c (dir_name): Move guts...
29543         (mdir_name): ...to new function that avoids xalloc_die.
29544
29545         fchdir: another mingw fix
29546         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29547         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29548         on mingw (where it has not yet been ported), and make it optional
29549         elsewhere.
29550         (_gl_register_fd): Use it.
29551
29552         same-inode: make SAME_INODE tri-state, to port to mingw
29553         * NEWS: Mention this change.
29554         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29555         st_ino always being 0.
29556         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29557         * lib/cycle-check.c (cycle_check): Likewise.
29558         * lib/same.c (same_name): Likewise.
29559
29560         lstat: avoid mingw compilation error
29561         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29562         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29563         lstat ourselves.
29564         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29565         was adequate.
29566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29567         the checks for lstat.
29568         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29569
29570         link: fix test failure on Solaris 9
29571         * lib/link.c (rpl_link): Don't assume link will catch bogus
29572         trailing slash on source.
29573
29574         test-symlinkat: enhance test
29575         * tests/test-readlink.c (main): Move guts...
29576         * tests/test-readlink.h (test_readlink): ...into new file.
29577         * tests/test-symlink.c (main): Move guts...
29578         * tests/test-symlink.h (test_symlink): ...into new file.
29579         * tests/test-symlinkat.c (main): Use new files for further
29580         coverage.
29581         (do_symlink, do_readlink): New helper functions.
29582         * modules/symlink-tests (Files): Ship new file.
29583         (Depends-on): Add stdbool.
29584         * modules/readlink-tests (Files): Ship new file.
29585         (Depends-on): Add stdbool.
29586         * modules/symlinkat-tests (Files): Use new files.
29587
29588 2009-09-23  Eric Blake  <ebb9@byu.net>
29589
29590         readlink: document portability issue with symlink length
29591         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29592         systems have bogus st_size on symlinks, and mention the
29593         areadlink-with-size module.
29594         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29595         * doc/posix-functions/readlink.texi (readlink): Mention the
29596         areadlink module, and ERANGE failure.
29597         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29598         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29599
29600         readlink: fix Solaris 9 bug with trailing slash
29601         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29602         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29603         * doc/posix-functions/readlink.texi (readlink): Document this.
29604         * modules/readlink-tests: New test.
29605         * tests/test-readlink.c: Likewise.
29606
29607         readlink: fix cygwin 1.5.x bug with return type
29608         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29609         * lib/unistd.in.h (readlink): Use ssize_t.
29610         * lib/readlink.c (readlink): Likewise.
29611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29612         * modules/unistd (Makefile.am): Substitute it.
29613         * lib/unistd.in.h (readlink): Declare replacement.
29614         * doc/posix-functions/readlink.texi (readlink): Document this.
29615
29616         symlink: use throughout gnulib
29617         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29618         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29619         symlink is not used.
29620         * modules/symlinkat (Depends-on): Add symlink.
29621         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29622         * modules/canonicalize-tests (Depends-on): Likewise.
29623         * modules/lstat-tests (Depends-on): Likewise.
29624         * modules/openat-tests (Depends-on): Likewise.
29625         * modules/remove-tests (Depends-on): Likewise.
29626         * modules/rmdir-tests (Depends-on): Likewise.
29627         * modules/unlink-tests (Depends-on): Likewise.
29628         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29629         * tests/test-canonicalize.c (symlink): Likewise.
29630         * tests/test-fstatat.c (symlink): Likewise.
29631         * tests/test-lstat.c (symlink): Likewise.
29632         * tests/test-remove.c (symlink): Likewise.
29633         * tests/test-rmdir.c (symlink): Likewise.
29634         * tests/test-unlink.c (symlink): Likewise.
29635         * tests/test-unlinkat.c (symlink): Likewise.
29636
29637         symlink: new module, for Solaris 9 bug
29638         * modules/symlink: New file.
29639         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29640         * lib/symlink.c: Likewise.
29641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29642         * modules/unistd (Makefile.am): Substitute them.
29643         * lib/unistd.in.h (symlink): Declare replacement.
29644         * MODULES.html.sh (File system functions): Mention it.
29645         * doc/posix-functions/symlink.texi (symlink): Likewise.
29646         * modules/symlink-tests: New test.
29647         * tests/test-symlink.c: Likewise.
29648
29649 2009-09-23  Bruno Haible  <bruno@clisp.org>
29650
29651         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29652         when needed.
29653         Test case: gnulib-tool --import --with-tests atexit inttypes.
29654         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29655
29656 2009-09-23  Bruno Haible  <bruno@clisp.org>
29657
29658         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29659         subcommand, not in a subshell.
29660
29661 2009-09-22  Eric Blake  <ebb9@byu.net>
29662
29663         unistd: sort replacement declarations
29664         * lib/unistd.in.h: Sort declarations.
29665
29666         open, openat: minor optimization
29667         * lib/open.c (open): If open succeeded, len is non-zero.
29668         * lib/openat.c (rpl_openat): Likewise.
29669
29670         link-follow: ensure correct result
29671         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29672         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29673         distinguish between possible failures.
29674
29675 2009-09-21  Eric Blake  <ebb9@byu.net>
29676
29677         fts: avoid compiler warning
29678         * lib/fts.c (dirent_inode_sort_may_be_useful)
29679         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29680
29681 2009-09-19  Bruno Haible  <bruno@clisp.org>
29682
29683         * lib/progreloc.c (canonicalize_file_name): New declaration.
29684
29685 2009-09-19  Eric Blake  <ebb9@byu.net>
29686
29687         link: fix quoting
29688         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29689
29690         openat: fix openat bugs on Solaris 9
29691         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29692         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29693         * modules/openat (Depends-on): Add open.
29694         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29695         * modules/fcntl-h (Makefile.am): Substitute it.
29696         * lib/fcntl.in.h (openat): Declare replacement.
29697         * doc/posix-functions/openat.texi (openat): Document this.
29698
29699         openat: move fstatat and unlinkat into correct files
29700         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29701         compiled.
29702         * lib/openat.c (fstatat, unlinkat): Move...
29703         * lib/fstatat.c (fstatat): ...into correct files.
29704         * lib/unlinkat.c (unlinkat): Likewise.
29705
29706         openat: fix unlinkat bugs on Solaris 9
29707         * lib/unlinkat.c (unlinkat): New file.
29708         * modules/openat (Depends-on): Add unlink.
29709         (Files): Distribute it.
29710         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29711         trailing slash behavior is broken.
29712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29713         * modules/unistd (Makefile.am): Substitute it.
29714         * lib/unistd.in.h (unlinkat): Declare replacement.
29715         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29716
29717         openat: fix fstatat bugs on Solaris 9
29718         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29719         stat.
29720         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29721
29722         test-unlinkat: enhance test, to expose Solaris 9 bug
29723         * tests/test-unlink.c (main): Factor guts...
29724         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29725         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29726         * tests/test-rmdir.c (main): Adjust caller.
29727         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29728         (unlinker): New helper function.
29729         (rmdirat): Enhance check.
29730         * modules/rmdir-tests (Depends-on): Add stdbool.
29731         * modules/unlink-tests (Depends-on): Likewise.
29732         (Files): Add test-unlink.h.
29733         * modules/openat-tests (Files): Likewise.
29734         (Depends-on): Add unlinkdir.
29735
29736         test-fstatat: new test, to expose Solaris 9 bugs
29737         * tests/test-stat.c (main): Factor guts...
29738         * tests/test-stat.h (test_stat_func): ...into new file.
29739         * tests/test-lstat.c (main): Factor guts...
29740         * tests/test-lstat.h (test_lstat_func): ...into new file.
29741         * tests/test-fstatat.c: New file.
29742         * modules/stat-tests (Files): Add test-stat.h.
29743         * modules/lstat-tests (Files): Add test-lstat.h.
29744         (Depends-on): Add stdbool.
29745         * modules/openat-tests (Depends-on): Add pathmax.
29746         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29747         (Makefile.am): Run new test.
29748
29749         remove: new module, for mingw and Solaris 9 bugs
29750         * modules/remove: New file.
29751         * lib/remove.c: Likewise.
29752         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29754         * modules/stdio (Makefile.am): Use them.
29755         * lib/stdio.in.h (remove): Declare replacement.
29756         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29757         * doc/posix-functions/remove.texi (remove): Likewise.
29758         * modules/remove-tests: New test.
29759         * tests/test-remove.c: Likewise.
29760
29761         unlink: new module, for Solaris 9 bug
29762         * modules/unlink: New file.
29763         * lib/unlink.c: Likewise.
29764         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29766         * modules/unistd (Makefile.am): Use them.
29767         * lib/unistd.in.h (stat): Declare replacement.
29768         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29769         * doc/posix-functions/unlink.texi (unlink): Likewise.
29770         * modules/unlink-tests: New test.
29771         * tests/test-unlink.c: Likewise.
29772
29773         lstat: fix Solaris 9 bug
29774         * lib/lstat.c (lstat): Also check for trailing slash on
29775         non-symlink, non-directories.  Use stat module to simplify logic.
29776         * doc/posix-functions/lstat.texi (lstat): Document it.
29777         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29778         (configure.ac): Check for symlink.
29779         * tests/test-lstat.c (main): Add more tests.
29780
29781         stat: add as dependency to other modules
29782         * modules/chown (Depends-on): Add stat.
29783         * modules/euidaccess (Depends-on): Likewise.
29784         * modules/fchdir (Depends-on): Likewise.
29785         * modules/isdir (Depends-on): Likewise.
29786         * modules/link (Depends-on): Likewise.
29787         * modules/lstat (Depends-on): Likewise.
29788         * modules/mkdir-p (Depends-on): Likewise.
29789         * modules/modechange (Depends-on): Likewise.
29790         * modules/open (Depends-on): Likewise.
29791         * modules/readlink (Depends-on): Likewise.
29792         * modules/same (Depends-on): Likewise.
29793
29794         stat: fix Solaris 9 bug
29795         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29796         slash.
29797         * lib/stat.c (rpl_stat): Work around it.
29798         * doc/posix-functions/stat.texi (stat): Update documentation.
29799
29800         stat: new module, for mingw bug
29801         * modules/stat: New file.
29802         * lib/stat.c: Likewise.
29803         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29804         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29805         * modules/sys_stat (Makefile.am): Use them.
29806         * lib/sys_stat.in.h (stat): Declare replacement.
29807         * lib/openat.c (fstatat): Deal with lstat and stat being function
29808         macros.
29809         * modules/openat (Depends-on): Add inline.
29810         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29811         * doc/posix-functions/stat.texi (stat): Likewise.
29812         * modules/stat-tests: New test.
29813         * tests/test-stat.c: Likewise.
29814
29815 2009-09-19  Jim Meyering  <meyering@redhat.com>
29816
29817         syntax-check: detect unnecessary inclusion of canonicalize.h
29818         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29819
29820 2009-09-19  Eric Blake  <ebb9@byu.net>
29821
29822         canonicalize-lgpl: adjust clients to use correct header
29823         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29824         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29825         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29826         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29827         * lib/progreloc.c (includes): Likewise.
29828
29829 2009-09-19  Jim Meyering  <meyering@redhat.com>
29830
29831         test-posixtm.c: correct a comment
29832         * tests/test-posixtm.c: Correct first-line comment.
29833         Spotted by Eric Blake.
29834
29835 2009-09-16  Jim Meyering  <meyering@redhat.com>
29836
29837         posixtm-tests: make T const-correct; add a test case
29838         * tests/test-posixtm.c (T): Declare const.
29839         Add a test for -(2^31+1).
29840         Remove useless can-succeed-only-in-2002 test.
29841
29842         posixtm-tests: adjust the sole failing test
29843         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29844         expected output matches what mktime now produces.  Cross-checked via
29845         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29846
29847         posixtm: move #ifdef'd tests into a new module
29848         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29849         * tests/test-posixtm.c: ... this new file.
29850         * modules/posixtm-tests: New module.
29851
29852 2009-09-19  Eric Blake  <ebb9@byu.net>
29853
29854         openat: simplify use of at-func.c
29855         * lib/at-func.c (includes): Include prerequisites here, to
29856         simplify requirements on client files.
29857         * lib/openat-priv.h: Add double-inclusion guard.
29858         * lib/faccessat.c (includes): Simplify.
29859         * lib/fchmodat.c (includes): Likewise.
29860         * lib/fchownat.c (includes): Likewise.
29861         * lib/mkdirat.c (includes): Likewise.
29862         * lib/mkfifoat.c (includes): Likewise.
29863         * lib/symlinkat.c (includes): Likewise.
29864
29865         openat: allow return of fd 0
29866         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29867         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29868         unistd-safer.
29869         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29870         <fcntl.h>; this module does not leak fds.
29871         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29872         must be allowed to return 0, leaving openat_safer to add the
29873         safety.
29874         (openat_permissive): Avoid writing to just-opened fd 2 if
29875         restoring the current directory fails.
29876         * lib/openat-die.c (openat_restore_fail): Add comment.
29877         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29878         (save_cwd): Guarantee safe fd, but without use of open_safer.
29879         * tests/test-openat.c: New test.
29880         * modules/openat-tests (Files, Makefile.am): Distribute and build
29881         new file.
29882
29883         relocatable-prog-wrapper: fix build
29884         * modules/relocatable-prog-wrapper (Files): Update name of
29885         canonicalize m4 file, broken on 2009-09-17.
29886         Reported by emad hajjar <aleppos@hotmail.com>.
29887
29888 2009-09-19  Bruno Haible  <bruno@clisp.org>
29889
29890         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29891         * lib/safe-alloc.c: Likewise.
29892         Reported by Ian Beckwith <ianb@erislabs.net>.
29893
29894 2009-09-18  Bruno Haible  <bruno@clisp.org>
29895
29896         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29897         Reported by <erobles@sensacd.com.mx>.
29898
29899 2009-09-17  Eric Blake  <ebb9@byu.net>
29900
29901         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29902         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29903         slashes when checking if last component is missing.
29904         * tests/test-canonicalize.c (main): Test this.
29905
29906         canonicalize, canonicalize-lgpl: honor // if distinct from /
29907         * modules/canonicalize (Files): Add double-slash-root.m4.
29908         * modules/canonicalize-lgpl (Files): Likewise.
29909         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29910         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29911         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29912         fallback definition.
29913         (canonicalize_filename_mode): Use it to protect //.
29914         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29915         (__realpath): Likewise.
29916         * tests/test-canonicalize.c (main): Test this.
29917         * tests/test-canonicalize-lgpl.c (main): Likewise.
29918         * modules/canonicalize-tests (Depends-on): Add same-inode.
29919         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29920
29921         canonicalize-lgpl: fix glibc bug with trailing slash
29922         * m4/canonicalize-lgpl.m4: Move contents...
29923         * m4/canonicalize.m4: ...here.
29924         (gl_CANONICALIZE_LGPL): Factor realpath check...
29925         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29926         glibc 2.3.5 bug, fixed 2005-04-27.
29927         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29928         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29929         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29930         * modules/canonicalize-lgpl (Files): Manage file rename.
29931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29932         * modules/stdlib (Makefile.am): Substitute witness.
29933         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29934         is needed.
29935         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29936         replacement is required.
29937         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29938         * doc/glibc-functions/canonicalize_file_name.texi
29939         (canonicalize_file_name): Document this.
29940         * doc/posix-functions/realpath.texi (realpath): Likewise.
29941
29942         canonicalize-lgpl: reject non-directory with trailing slash
29943         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29944         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29945         catches failures in glibc 2.3.5.
29946         * tests/test-canonicalize.c (main): Likewise.
29947
29948         canonicalize-lgpl: use native realpath if it works
29949         * lib/canonicalize-lgpl.c (realpath): Guard with
29950         FUNC_REALPATH_WORKS.
29951         * lib/stdlib.in.h (realpath): Make declaration optional based on
29952         HAVE_REALPATH.
29953         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29954         native realpath works.
29955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29956         * modules/stdlib (Makefile.am): Substitute witness.
29957
29958         canonicalize, canonicalize-lgpl: use <stdlib.h>
29959         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29960         (Include): Mention <stdlib.h>.
29961         (configure.ac): Mention functions we provide.
29962         * modules/canonicalize (configure.ac): Likewise.
29963         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29964         realpath if canonicalize_file_name is missing.
29965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29966         * modules/stdlib (Makefile.am): Substitute witnesses.
29967         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29968         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29969         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29970         * NEWS: Document this.
29971         * doc/glibc-functions/canonicalize_file_name.texi
29972         (canonicalize_file_name): Likewise.
29973         * doc/posix-functions/realpath.texi (realpath): Likewise.
29974         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29975
29976         test-canonicalize: consolidate into single C program
29977         * tests/test-canonicalize.sh: Delete; move setup into...
29978         * tests/test-canonicalize.c (main): ...the program, making it
29979         easier to run in debugger.  Add some tests.
29980         * modules/canonicalize-tests (Files): Remove unused file.
29981         (Depends-on): Add progname.
29982         (configure.ac, Makefile.am): Simplify.
29983
29984         test-canonicalize-lgpl: consolidate into single C program
29985         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29986         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29987         easier to run in debugger.  Add some tests.
29988         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29989         (configure.ac, Makefile.am): Simplify.
29990
29991         canonicalize: avoid resolvepath
29992         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29993         unnecessary checks.
29994         * lib/canonicalize.c (includes): Simplify.
29995         (canonicalize_file_name): Drop resolvepath implementation.
29996         * modules/canonicalize (Depends-on): Drop filenamecat.
29997
29998         canonicalize: don't lose errno
29999         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30000         over calls to free.
30001
30002         canonicalize: simplify errno handling
30003         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30004         assignment.
30005
30006         canonicalize, canonicalize-lgpl: update module dependencies
30007         * modules/canonicalize (Depends-on): Add extensions, lstat,
30008         pathmax, stdlib.
30009         (Files): Drop pathmax.h.
30010         (configure.ac): Adjust macro name.
30011         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30012         lstat, stdlib, sys_stat.
30013         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30014         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30015         extensions.
30016         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30017         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30018         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30019         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30020         declaration, if available.
30021         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30022         we can rely on the readlink module.
30023         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30024         (includes): Use <unistd.h> unconditionally.
30025
30026 2009-09-17  Eric Blake  <ebb9@byu.net>
30027
30028         maint: make Include sections of modules consistent
30029         * modules/alloca: Use only header name; no need to list #include.
30030         * modules/alloca-opt: Likewise.
30031         * modules/arpa_inet: Likewise.
30032         * modules/canon-host: Likewise.
30033         * modules/configmake: Likewise.
30034         * modules/dirent: Likewise.
30035         * modules/eealloc: Likewise.
30036         * modules/environ: Likewise.
30037         * modules/fchdir: Likewise.
30038         * modules/fcntl: Likewise.
30039         * modules/fcntl-h: Likewise.
30040         * modules/gethrxtime: Likewise.
30041         * modules/gettime: Likewise.
30042         * modules/ignore-value: Likewise.
30043         * modules/inet_ntop: Likewise.
30044         * modules/inet_pton: Likewise.
30045         * modules/inttypes: Likewise.
30046         * modules/isnand-nolibm: Likewise.
30047         * modules/isnanf-nolibm: Likewise.
30048         * modules/mbchar: Likewise.
30049         * modules/mbfile: Likewise.
30050         * modules/mbiter: Likewise.
30051         * modules/mbuiter: Likewise.
30052         * modules/netdb: Likewise.
30053         * modules/netinet_in: Likewise.
30054         * modules/nproc: Likewise.
30055         * modules/pagealign_alloc: Likewise.
30056         * modules/poll: Likewise.
30057         * modules/printf-frexp: Likewise.
30058         * modules/pthread: Likewise.
30059         * modules/putenv: Likewise.
30060         * modules/random_r: Likewise.
30061         * modules/relocatable-prog: Likewise.
30062         * modules/search: Likewise.
30063         * modules/select: Likewise.
30064         * modules/selinux-h: Likewise.
30065         * modules/settime: Likewise.
30066         * modules/signal: Likewise.
30067         * modules/size_max: Likewise.
30068         * modules/socklen: Likewise.
30069         * modules/ssize_t: Likewise.
30070         * modules/stdarg: Likewise.
30071         * modules/stdbool: Likewise.
30072         * modules/stddef: Likewise.
30073         * modules/stdint: Likewise.
30074         * modules/stdio: Likewise.
30075         * modules/stdlib: Likewise.
30076         * modules/string: Likewise.
30077         * modules/strings: Likewise.
30078         * modules/sys_file: Likewise.
30079         * modules/sys_ioctl: Likewise.
30080         * modules/sys_select: Likewise.
30081         * modules/sys_socket: Likewise.
30082         * modules/sys_stat: Likewise.
30083         * modules/sys_time: Likewise.
30084         * modules/sys_times: Likewise.
30085         * modules/sys_utsname: Likewise.
30086         * modules/sys_wait: Likewise.
30087         * modules/sysexits: Likewise.
30088         * modules/time: Likewise.
30089         * modules/times: Likewise.
30090         * modules/tmpfile: Likewise.
30091         * modules/trim: Likewise.
30092         * modules/unistd: Likewise.
30093         * modules/wchar: Likewise.
30094         * modules/wctype: Likewise.
30095
30096 2009-09-17  Bruno Haible  <bruno@clisp.org>
30097
30098         Make getdate.y compile on QNX and NetBSD 5 / i386.
30099         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30100         TIME_T_FITS_IN_LONG_INT.
30101         * lib/getdate.y (long_time_t): New type.
30102         (relative_time): Change type of 'seconds' field to long_time_t.
30103         (get_date): Update types of local variables. Check against overflow
30104         during conversion from long_time_t to time_t.
30105         Reported by Matt Kraai <kraai@ftbfs.org>
30106         and Hasso Tepper <hasso@netbsd.org>.
30107
30108 2009-09-17  Bruno Haible  <bruno@clisp.org>
30109
30110         * modules/COPYING: Update copyright years.
30111         * modules/README: Likeiwse.
30112         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30113         Reported by Ian Beckwith <ianb@erislabs.net>.
30114
30115 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30116
30117         * users.txt: Update references for gnuit package.
30118
30119 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30120
30121         * m4/getdelim.m4: Fix typo in copyright line.
30122
30123 2009-09-17  Bruno Haible  <bruno@clisp.org>
30124
30125         * lib/atoll.c: Use the standard header with GPL copyright.
30126         * lib/argz.in.h: Likewise.
30127         * lib/glob.c: Likewise.
30128         * lib/glob-libc.h: Likewise.
30129         * lib/random_r.c: Likewise.
30130         * lib/siglist.h: Likewise.
30131         * lib/strsignal.c: Likewise.
30132         Reported by Ian Beckwith <ianb@erislabs.net>.
30133
30134 2009-09-17  Eric Blake  <ebb9@byu.net>
30135
30136         rmdir: ensure correct dependency order
30137         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30138
30139 2009-09-17  Bruno Haible  <bruno@clisp.org>
30140
30141         Disable assertion that fails on NetBSD 5 / i386.
30142         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30143         Reported by Sam Steingold <sds@gnu.org>
30144         and Hasso Tepper <hasso@netbsd.org>.
30145
30146 2009-09-16  Eric Blake  <ebb9@byu.net>
30147
30148         unlinkdir: port to mingw
30149         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30150         on which no one can unlink a directory.
30151
30152         stdlib: sort witness names
30153         * modules/stdlib (Makefile.am): Sort replacements.
30154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30155         * lib/stdlib.in.h: Likewise.
30156
30157         parse-duration-tests: avoid link failure
30158         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30159         LIBINTL.
30160         Reported by Tom G. Christensen.
30161
30162         openat-tests: ensure unlinkat behaves like rmdir
30163         * tests/test-rmdir.c (main): Factor guts...
30164         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30165         * modules/rmdir-tests (Files): Ship new file.
30166         * modules/openat-tests: New test.
30167         * tests/test-unlinkat.c: Likewise.
30168
30169         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30170         * modules/rmdir-errno (Status, Notice): Now obsolete.
30171
30172         rmdir: work around cygwin 1.5.x and mingw bugs
30173         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30174         * lib/rmdir.c (rmdir): Work around it.
30175         * modules/rmdir (Status, Notice): No longer obsolete.
30176         (Files): Add dos.m4.
30177         (Depends-on): Add unistd.
30178         (configure.ac): Set witnesses.
30179         (License): Relax to LGPLv2+.
30180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30181         * modules/unistd (Makefile.am): Substitute witnesses.
30182         * lib/unistd.in.h (rmdir): Declare replacement.
30183         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30184         * modules/rmdir-tests: New tests.
30185         * tests/test-rmdir.c: Likewise.
30186
30187 2009-09-15  Eric Blake  <ebb9@byu.net>
30188
30189         fchdir: improve use of replacement functions
30190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30191         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30192         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30193         REPLACE_CLOSEDIR.
30194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30195         * modules/sys_stat (Makefile.am): Substitute correct witness.
30196         * modules/dirent (Makefile.am): Likewise.
30197         * modules/unistd (Makefile.am): Likewise.
30198         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30199         * lib/unistd.in.h (dup): Likewise.
30200         * lib/sys_stat.in.h (fstat): Likewise.
30201
30202         maint: ignore gnulib-tool temp files
30203         * .gitignore: Ignore files created during gnulib-tool --test.
30204
30205 2009-09-13  Jim Meyering  <meyering@redhat.com>
30206
30207         posixtm: don't reject a time that specify "60" as the number of seconds
30208         * lib/posixtm.c (posixtime): The code to reject invalid dates
30209         would also reject a time specified with the .60 suffix.
30210         But POSIX allows that, in order to accommodate leap seconds.
30211         So don't reject it.
30212         (main): Adjust tests accordingly.
30213         * modules/posixtm (Depends-on): Add stpcpy.
30214
30215 2009-09-11  Jim Meyering  <meyering@redhat.com>
30216
30217         announce-gen: include [$release_type] in emitted Subject:
30218         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30219         e.g., [stable] in the emitted Subject: line.
30220
30221 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30222
30223         Remove obsolete macros from several modules.
30224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30225         obsolete Autoconf macros with their modern counterparts.
30226         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30227         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30228         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30229         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30230         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30231         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30233         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30234         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30235         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30236         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30238         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30239         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30240         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30241         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30242         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30243         * m4/time_r.m4 (gl_TIME_R): Likewise.
30244         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30245         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30246         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30247
30248         Fix copyright header in build-aux scripts.
30249         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30250         recommendation.
30251         * build-aux/ncftpput-ftp: Likewise.
30252         * build-aux/update-copyright: Likewise.
30253
30254 2009-09-09  Eric Blake  <ebb9@byu.net>
30255
30256         test-link: allow Linux choice of errno
30257         * tests/test-link.c (main): Relax test for alternate error.
30258
30259         strndup: fix improper m4 caching
30260         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30261         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30262         (gl_PREREQ_STRNDUP): Delete.
30263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30264         * modules/string (Makefile.am): Substitute it.
30265         * lib/string.in.h (strndup): Modernize prototype.
30266
30267         getcwd: port to mingw
30268         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30269         different from the POSIX assumptions made throughout the getcwd
30270         module; fortunately, the mingw getcwd does not need replacement.
30271         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30272         * modules/getcwd-tests: New test.
30273         * tests/test-getcwd.c: Likewise.
30274
30275         link: fix platform bugs
30276         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30277         * lib/link.c (link): Work around them.  Fix related mingw bug.
30278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30279         * modules/unistd (Makefile.am): Substitute it.
30280         * lib/unistd.in.h (link): Declare replacement.
30281         * doc/posix-functions/link.texi (link): Document this.
30282         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30283
30284         test-link: consolidate into single C program, test more cases
30285         * tests/test-link.sh: Delete.
30286         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30287         at least Cygwin and Solaris.
30288         * modules/link-tests (Files): Remove unused file.
30289         (Depends-on): Add errno, sys_stat.
30290         (Makefile.am): Simplify.
30291
30292 2009-09-08  Bruno Haible  <bruno@clisp.org>
30293
30294         Work around towlower, towupper bug on mingw.
30295         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30296         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30297         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30298         * doc/posix-functions/towupper.texi: Likewise.
30299         Reported by Eric Blake.
30300
30301 2009-09-08  Jim Meyering  <meyering@redhat.com>
30302
30303         build: don't try to run autoheader if we don't use it
30304         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30305         is not used in configure.ac.
30306
30307 2009-09-08  Eric Blake  <ebb9@byu.net>
30308
30309         euidaccess: fix compilation error
30310         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30311
30312         rawmemchr: relax license
30313         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30314         okay.
30315         Reported by Jim Meyering.
30316
30317         mkfifoat: new module
30318         * modules/mkfifoat: New file.
30319         * lib/mkfifoat.c: Likewise.
30320         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30321         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30322         * modules/sys_stat (Makefile.am): Use them.
30323         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30324         * MODULES.html.sh (File system functions): Mention module.
30325         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30326         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30327         * modules/mkfifoat-tests: New test.
30328         * tests/test-mkfifoat.c: Likewise.
30329
30330         strchrnul: relax license
30331         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30332         okay.
30333         Reported by Jim Meyering.
30334
30335 2009-09-08  Eric Blake  <ebb9@byu.net>
30336
30337         fstatat: fix compilation on Solaris
30338         * lib/fstatat.c (includes): Add fcntl.h.
30339         Reported by Pádraig Brady.
30340
30341 2009-09-07  Eric Blake  <ebb9@byu.net>
30342
30343         rename: modernize replacement
30344         * modules/rename (Depends-on): Add stdio.
30345         (configure.ac): Declare witness.
30346         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30347         stdio take care of replacement.
30348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30349         * modules/stdio (Makefile.am): Substitute them.
30350         * lib/stdio.in.h (rename): Declare replacement.
30351         * lib/rename.c (includes): Allow cross-compilation to non-windows
30352         machines.
30353         * doc/posix-functions/rename.texi (rename): Improve
30354         documentation.
30355
30356         stdio: sort witness names
30357         * modules/stdio (Makefile.am): Sort replacements.
30358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30359         * lib/stdio.in.h: Likewise.
30360
30361         getcwd: minor cleanups
30362         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30363         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30364
30365         openat: provide more convenience names
30366         * modules/faccessat (configure.ac): Add C witness.
30367         * lib/unistd.in.h (readlinkat): Fix typo.
30368         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30369         convenience wrappers.
30370         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30371         wrappers in syntax checks.
30372
30373 2009-09-06  Eric Blake  <ebb9@byu.net>
30374
30375         doc: fix comments in recent patches
30376         * lib/faccessat.c: Mention correct function.
30377         * lib/fchmodat.c: Likewise.
30378         * lib/fchownat.c: Likewise.
30379         * lib/symlinkat.c: Likewise.
30380         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30381         constants.
30382
30383         faccessat, symlinkat: continue cleanup of previous patch
30384         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30385         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30386         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30388         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30389         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30390         set.
30391
30392 2009-09-06  Bruno Haible  <bruno@clisp.org>
30393
30394         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30395         (fstatat): Declare if GNULIB_FSTATAT is set.
30396         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30397         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30398         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30399         * modules/fcntl-h (Files): Remove m4/openat.m4.
30400         * modules/sys_stat (Files): Remove m4/openat.m4.
30401         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30402         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30403         * modules/unistd (Files): Remove m4/openat.m4.
30404         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30405         GNULIB_OPENAT.
30406         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30407         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30409         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30410         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30411         gl_OPENAT_DEFAULTS.
30412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30413         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30414         Don't require gl_OPENAT_DEFAULTS.
30415         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30416         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30417         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30418         (gl_OPENAT_DEFAULTS): Remove macro.
30419
30420 2009-09-06  Bruno Haible  <bruno@clisp.org>
30421
30422         * modules/openat (configure.ac): Remove unneeded witness.
30423
30424 2009-09-06  Bruno Haible  <bruno@clisp.org>
30425
30426         Set errno to ENOSYS when a function is entirely unsupported.
30427         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30428         EOPNOTSUPP.
30429         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30430         * modules/chown (Depends-on): Remove errno.
30431
30432 2009-09-06  Bruno Haible  <bruno@clisp.org>
30433
30434         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30435
30436 2009-09-06  Bruno Haible  <bruno@clisp.org>
30437
30438         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30439
30440 2009-09-06  Ben Pfaff  <blp@gnu.org>
30441             Bruno Haible  <bruno@clisp.org>
30442
30443         Work around a glibc bug in strtok_r.
30444         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30445         Undefine if UNDEFINE_STRTOK_R is set.
30446         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30448         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30449         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30450         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30451         UNDEFINE_STRTOK_R.
30452         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30453
30454 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30455
30456         exclude: minor fix
30457         * lib/exclude.c: Include wctype.h
30458
30459 2009-09-06  Akim Demaille  <demaille@gostai.com>
30460
30461         bootstrap: improve error message
30462         * build-aux/bootstrap (find_tool): Upon failure, report the list
30463         of candidates.
30464         Honor the initial value of the envvar.
30465
30466 2009-09-05  Eric Blake  <ebb9@byu.net>
30467
30468         symlinkat: new module
30469         * modules/symlinkat: New file.
30470         * lib/symlinkat.c: Likewise.
30471         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30473         * modules/unistd (Makefile.am): Use them.
30474         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30475         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30476         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30477         * MODULES.html.sh (File system functions): Mention module.
30478         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30479         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30480         * modules/symlinkat-tests: New test.
30481         * tests/test-symlinkat.c: Likewise.
30482
30483         test-openat-safer: add more checks
30484         * tests/test-openat-safer.c (main): Check more code paths.
30485
30486 2009-09-05  Jim Meyering  <meyering@redhat.com>
30487
30488         syntax-check: detect unnecessary inclusion of openat.h
30489         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30490
30491 2009-09-05  Bruno Haible  <bruno@clisp.org>
30492
30493         Support towlower, towupper.
30494         * doc/posix-functions/towlower.texi: Mention module wctype.
30495         * doc/posix-functions/towupper.texi: Likewise.
30496         * lib/wctype.in.h (towlower, towupper): New functions.
30497         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30498         (ASSERT): New macro.
30499         (e): New variable.
30500         (main): Test also towlower, towupper. Test WEOF argument.
30501         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30502
30503 2009-09-05  Bruno Haible  <bruno@clisp.org>
30504
30505         Fix conversion behaviour when the input is invalid.
30506         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30507         mark occurring in first pass of indirect conversion.
30508         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30509         input.
30510         Found by clang's static analyzer.
30511
30512 2009-09-05  Bruno Haible  <bruno@clisp.org>
30513
30514         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30515         where direct conversion is possible.
30516
30517 2009-09-04  Eric Blake  <ebb9@byu.net>
30518
30519         openat: fail with ENOENT on empty name
30520         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30521         buffer.
30522
30523         link-follow: fix logic bug in prior patch
30524         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30525         reversed sense of yes and no in prior patch.  Avoid confusing
30526         compilation failure with desired semantics.
30527
30528         link-follow: accomodate mingw and cross-compilation
30529         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30530         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30531         cross-compilation results to -1, to make linkat easier to
30532         implement when cross-compiling.  Trivially support mingw.
30533         * modules/link-follow (configure.ac): Call new name.
30534         * NEWS: Mention this.
30535
30536 2009-09-03  Eric Blake  <ebb9@byu.net>
30537
30538         faccessat: compile replacement
30539         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30540         needed.
30541
30542         fts: fix compilation error
30543         * lib/fts.c (includes): Re-add "openat.h", for
30544         openat_needs_fchdir.
30545
30546         faccessat: new module
30547         * modules/faccessat: New file.
30548         * lib/faccessat.c: Likewise.
30549         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30551         * modules/unistd (Makefile.am): Use it.
30552         * lib/unistd.in.h (faccessat): Declare it.
30553         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30554         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30555         * MODULES.html.sh (File system functions): Mention it.
30556         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30557         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30558
30559         euidaccess: prefer POSIX over non-standard implementation
30560         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30561         * lib/euidaccess.c (euidaccess): Use it if available.
30562
30563         openat: make template easier to use
30564         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30565         AT_FUNC_F2 to be undefined.
30566         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30567         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30568         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30569         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30570         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30571         Likewise.
30572         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30573         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30574         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30575         Likewise.
30576
30577         openat: declare in POSIX headers
30578         * NEWS: Mention this.
30579         * modules/openat (configure.ac): Declare witnesses.
30580         (Depends-on): Add fcntl-h, sys_stat, unistd.
30581         (Include): Mention correct headers.
30582         * modules/fcntl-h (Depends-on): Add link-warning.
30583         (Files): Add openat.m4.
30584         (Makefile.am): Substitute witnesses.
30585         * modules/sys_stat (Files, Makefile.am): Likewise.
30586         * modules/unistd (Files, Makefile.am): Likewise.
30587         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30588         (gl_OPENAT_DEFAULTS): New macro.
30589         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30592         (SYS_STAT_H): Remove unused variable.
30593         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30594         * lib/fcntl--.h (includes): Remove unneeded header.
30595         * lib/openat-safer.c (includes): Likewise.
30596         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30597         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30598         appropriate headers.
30599         (__OPENAT_PREFIX): Delete.
30600         * lib/fcntl.in.h (openat): Provide declaration.
30601         (AT_FDCWD): Fix Solaris bug.
30602         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30603         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30604         * lib/fchmodat.c (includes):  Adjust to find declaration.
30605         * lib/fchownat.c (includes): Likewise.
30606         * lib/mkdirat.c (includes): Likewise.
30607         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30608         still visible.
30609
30610 2009-09-02  Eric Blake  <ebb9@byu.net>
30611
30612         errno: use consistently
30613         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30614         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30615         * lib/canonicalize.c (ELOOP): Likewise.
30616         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30617         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30618         * lib/lchown.c (EOPNOTSUPP): Likewise.
30619         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30620         * lib/savewd.c (ESTALE): Likewise.
30621         * lib/settime.c (ENOSYS): Likewise.
30622         * lib/utimens.c (ENOSYS): Likewise.
30623         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30624         * lib/chdir-safer.c (ELOOP): Likewise.
30625         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30626         * modules/c-stack (Depends-on): Add errno.
30627         * modules/canonicalize (Depends-on): Likewise.
30628         * modules/chdir-safer (Depends-on): Likewise.
30629         * modules/fdopendir (Depends-on): Likewise.
30630         * modules/inet_ntop (Depends-on): Likewise.
30631         * modules/inet_pton (Depends-on): Likewise.
30632         * modules/lchown (Depends-on): Likewise.
30633         * modules/openat (Depends-on): Likewise.
30634         * modules/savewd (Depends-on): Likewise.
30635         * modules/settime (Depends-on): Likewise.
30636         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30637
30638         fts: avoid leaking fds
30639         * modules/fts (Depends-on): Add cloexec.
30640         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30641         flag.
30642
30643         fts: make directory fds more robust
30644         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30645         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30646
30647         backupfile, chdir-long, fts, savedir: make safer
30648         * lib/backupfile.c (includes): Use "dirent--.h", since
30649         numbered_backup can write to stderr during readdir.
30650         * lib/savedir.c (includes): Likewise.
30651         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30652         emulation can write to stderr on failure.
30653         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30654         * lib/getcwd.c: Document why opendir_safer is unused.
30655         * lib/glob.c: Likewise.
30656         * lib/scandir.c: Likewise.
30657         * lib/openat-proc.c: Likewise, for open_safer.
30658         * modules/backupfile (Depends-on): Add dirent-safer.
30659         * modules/savedir (Depends-on): Likewise.
30660         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30661         * modules/chdir-long (Depends-on): Add openat-safer.
30662
30663         openat-safer: new module
30664         * modules/openat-safer: New file.
30665         * lib/openat-safer.c: Likewise.
30666         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30667         * lib/fcntl-safer.h (openat_safer): Declare.
30668         * lib/fcntl--.h (openat): Override.
30669         * MODULES.html.sh (File descriptor based I/O): Mention it.
30670         * lib/openat.h: Add double-inclusion guards.
30671         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30672         "fcntl--.h", so we can implement openat.
30673         * modules/openat-safer-tests: New test.
30674         * tests/test-openat-safer.c: New file.
30675
30676         dirent-safer: new module
30677         * modules/dirent-safer: New file.
30678         * lib/dirent--.h: Likewise.
30679         * lib/dirent-safer.h: Likewise.
30680         * lib/opendir-safer.c: Likewise.
30681         * m4/dirent-safer.m4: Likewise.
30682         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30683         * modules/dirent-safer-tests: New test.
30684         * tests/test-dirent-safer.c: New file.
30685         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30686
30687         fdopendir: optimize on mingw
30688         * lib/unistd.in.h (_gl_directory_name): New prototype.
30689         * lib/fchdir.c (_gl_directory_name): Implement it.
30690         (fchdir): Use it to simplify implementation.
30691         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30692         fchdir, when available, to avoid calling [f]chdir().
30693
30694         fdopendir: split into its own module
30695         * lib/openat.c (fdopendir): Move...
30696         * lib/fdopendir.c: ...into new file.
30697         * modules/fdopendir: New module.
30698         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30699         * modules/openat (Depends-on): Add fdopendir.
30700         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30701         fdopendir here.
30702         * modules/savedir (Depends-on): Only need fdopendir, not full
30703         openat.
30704         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30705         * lib/openat.h (fdopendir): Drop prototype.
30706         * lib/dirent.in.h (fdopendir): Provide prototype.
30707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30708         * modules/dirent (Makefile.am): Substitute them.
30709         * MODULES.html.sh (File system functions): Mention it.
30710         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30711         * modules/fdopendir-tests: New file.
30712         * tests/test-fdopendir.c: Likewise.
30713
30714         fchdir: use more consistent macro convention
30715         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30716         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30717         REPLACE_FCHDIR, rather than relying on config.h macros.
30718         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30719         inside a single make-time REPLACE_FCHDIR block, rather than using
30720         the config.h FCHDIR_REPLACEMENT.
30721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30722         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30723         Manage fstat replacement.
30724         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30725         REPLACE_FCHDIR.
30726         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30727         (Makefile.am): Substitute REPLACE_FCHDIR.
30728         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30729         FCHDIR_REPLACEMENT.
30730         * lib/dup-safer.c (dup_safer): Likewise.
30731         * lib/dup2.c (rpl_dup2): Likewise.
30732         * lib/dup3.c (rpl_dup3): Likewise.
30733         * lib/open.c (rpl_open): Likewise.
30734
30735         fchdir: simplify error handling, and support dup3
30736         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30737         stdbool, malloc-posix, realloc-posix.
30738         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30739         (ensure_dirs_slot): Return false on allocation failure.
30740         (rpl_dup2): Delete.
30741         (_gl_register_dup): New function.
30742         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30743         (_gl_register_fd): Close fd on allocation failure.
30744         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30745         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30746         prototype.
30747         (rpl_dup2_fchdir): Delete prototype.
30748         * lib/open.c (open): Update caller.
30749         * lib/dup2.c (dup2): Track fchdir metadata.
30750         * lib/dup3.c (dup3): Likewise.
30751         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30753
30754 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30755
30756         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30757         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30758         don't pass arguments to AC_OUTPUT.
30759
30760 2009-09-02  Bruno Haible  <bruno@clisp.org>
30761
30762         * modules/mkdtemp (License): Relicense under LGPLv2+.
30763         Reported by Paolo Bonzini.
30764
30765 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30766
30767         Replace uses of obsolete autoconf macros in Jim's modules.
30768         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30769         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30770         can evoke a warning from autoconf when run with -Wobsolete
30771         enabled.  They were declared obsolete for good reasons (see
30772         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30773         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30774         should not continue using the deprecated macros.
30775         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30776         obsolete Autoconf macros with modern counterparts.
30777         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30778         * m4/dos.m4 (gl_AC_DOS): Likewise.
30779         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30780         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30781         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30782         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30783         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30784         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30785         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30786         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30787         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30788         Likewise.
30789         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30790         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30791         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30792         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30793         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30794         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30795
30796 2009-09-01  Eric Blake  <ebb9@byu.net>
30797
30798         fchdir: fix off-by-one bug in previous patch
30799         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30800         (_gl_unregister_fd): Delete useless if.
30801
30802 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30803
30804         maint.mk: sort the list of syntax-check rules
30805         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30806         easier to get a sense of progress when the rules are run sequentially
30807         and take a long time.
30808
30809 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30810
30811         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30812         * modules/netinet_in: Likewise.
30813         * modules/sys_file: Likewise.
30814         * modules/sys_ioctl: Likewise.
30815         * modules/sys_select: Likewise.
30816         * modules/sys_socket: Likewise.
30817         * modules/sys_stat: Likewise.
30818         * modules/sys_time: Likewise.
30819         * modules/sys_times: Likewise.
30820         * modules/sys_utsname: Likewise.
30821         * modules/sys_wait: Likewise.
30822
30823 2009-09-01  Jim Meyering  <meyering@redhat.com>
30824
30825         fts: help ensure that return values are not ignored
30826         * lib/fts_.h (__GNUC_PREREQ): Define.
30827         (__attribute_warn_unused_result__): Define.
30828         (fts_children, fts_close, fts_open, fts_read): Declare with
30829         __attribute_warn_unused_result__.
30830
30831         fts: fts_close now fails also when closing a dir file descriptor fails
30832         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30833         and propagate to caller, along with errno.
30834
30835         announce-gen: correct formatting in --help output
30836         * build-aux/announce-gen (usage): Move the one-line description in
30837         --help output "up", to where it belongs, just after Usage:.
30838
30839 2009-08-31  Eric Blake  <ebb9@byu.net>
30840
30841         fchdir: port to mingw
30842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30843         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30844         opened, then use a substitute.
30845         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30846         replacement.
30847         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30848         (_gl_register_fd): No need to check stat if open already filters
30849         all directories.
30850         (fchdir): Fix error condition to match POSIX.
30851         * modules/fchdir (Depends-on): Add sys_stat.
30852         * doc/posix-functions/open.texi (open): Document the limitation.
30853         * modules/fchdir-tests: New file.
30854         * tests/test-fchdir.c: Likewise.
30855
30856         canonicalize: allow cross-testing from cygwin to mingw
30857         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30858         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30859         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30860         Likewise.
30861         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30862         target does not support symlinks.
30863         * tests/test-canonicalize-lgpl.sh: Likewise.
30864
30865         chown: avoid compilation warning on mingw
30866         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30867         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30868         mingw.
30869         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30870         * modules/chown (Depends-on): Add errno.
30871
30872 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30873
30874         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30875         command.
30876
30877 2009-08-31  Jim Meyering  <meyering@redhat.com>
30878
30879         canonicalize: remove useless initialization
30880         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30881         initialization of local, "end".
30882
30883 2009-08-30  Bruno Haible  <bruno@clisp.org>
30884
30885         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30886         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30887         ENOSYS.
30888
30889 2009-08-30  Bruno Haible  <bruno@clisp.org>
30890
30891         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30892         /usr/xpg4/bin/tr when it exists.
30893         * tests/test-pipe-filter-gi1.sh: Likewise.
30894
30895 2009-08-30  Bruno Haible  <bruno@clisp.org>
30896
30897         Work around deficient /usr/bin/id program on Solaris.
30898         * tests/test-file-has-acl.sh (ID): New variable.
30899         * tests/test-set-mode-acl.sh (ID): Likewise.
30900         * tests/test-copy-acl.sh (ID): Likewise.
30901         * tests/test-copy-file.sh (ID): Likewise.
30902
30903 2009-08-30  Bruno Haible  <bruno@clisp.org>
30904
30905         New module 'xstriconveh'.
30906         * lib/xstriconveh.h: New file.
30907         * lib/xstriconveh.c: New file.
30908         * modules/xstriconveh: New file.
30909
30910 2009-08-30  Bruno Haible  <bruno@clisp.org>
30911
30912         Make it easier to use mem_cd_iconveh.
30913         * lib/striconveh.h (iconveh_t): New type.
30914         (iconveh_open, iconveh_close): New declarations.
30915         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30916         with a single 'const iconveh_t *' argument.
30917         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30918         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30919         with a single 'const iconveh_t *' argument.
30920         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30921         * tests/test-striconveh.c (main): Update.
30922         * NEWS: Mention the change.
30923
30924 2009-08-30  Bruno Haible  <bruno@clisp.org>
30925
30926         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30927         problem.
30928
30929 2009-08-30  Bruno Haible  <bruno@clisp.org>
30930
30931         Work around iconv_open problem on Solaris.
30932         * lib/iconv_open-solaris.gperf: New file.
30933         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30934         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30935         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30936         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30937         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30938         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30939
30940 2009-08-29  Jim Meyering  <meyering@redhat.com>
30941
30942         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30943         * top/maint.mk (cvs-check): Remove target; it was just an alias
30944         to the better-named vc-diff-check.
30945         (maintainer-distcheck): Remove rule.  It was used only from
30946         the (alpha/beta/major) target, and all of its commands but one
30947         were coreutils-specific.
30948         (vc-dist): Remove rule.
30949         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30950         Run vc-diff-check, not vc-dist.
30951         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30952
30953 2009-08-27  Bruno Haible  <bruno@clisp.org>
30954
30955         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30956         of 0.
30957
30958 2009-08-27  Bruno Haible  <bruno@clisp.org>
30959
30960         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30961         compilers.
30962         * doc/func.texi: Document the SunPRO C bug.
30963
30964 2009-08-27  Bruno Haible  <bruno@clisp.org>
30965
30966         Fix link error on Solaris.
30967         * tests/test-parse-duration.c (xstrdup): Remove function.
30968
30969 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30970
30971         ignore-value: handle pointer types, too
30972         * lib/ignore-value.h (__attribute__): Remove definition.
30973         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30974         of a more concise and more-often effective "(void) i" statement.
30975         (ignore_ptr): New function to suppress warnings from functions that
30976         return pointers, and to make it explicit that one function doesn't
30977         handle all cases.
30978
30979 2009-08-25  Bruno Haible  <bruno@clisp.org>
30980
30981         dup2: work around a Linux bug.
30982         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30983         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30984         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30985         Reported by Simon Josefsson.
30986
30987 2009-08-25  Jim Meyering  <meyering@redhat.com>
30988
30989         libguestfs uses gnulib
30990         * users.txt: Add libguestfs.
30991
30992 2009-08-24  Eric Blake  <ebb9@byu.net>
30993
30994         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30995         * lib/pipe2.c (includes): Add binary-io.h.
30996         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30997
30998 2009-08-24  Bruno Haible  <bruno@clisp.org>
30999
31000         Tolerate declared but missing accept4 syscall.
31001         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31002         available.
31003         * lib/sys_socket.in.h (accept4): If the function is already present,
31004         override it.
31005         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31006         * modules/accept4 (Makefile.am): Compile accept4.c always.
31007         Reported by Paolo Bonzini and Eric Blake.
31008
31009 2009-08-23  Bruno Haible  <bruno@clisp.org>
31010
31011         New module 'accept4'.
31012         * lib/sys_socket.in.h (accept4): New declaration.
31013         * lib/accept4.c: New file.
31014         * m4/accept4.m4: New file.
31015         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31016         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31017         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31018         HAVE_ACCEPT4.
31019         * modules/accept4: New file.
31020         * doc/glibc-functions/accept4.texi: Mention the new module.
31021
31022 2009-08-24  Jim Meyering  <meyering@redhat.com>
31023
31024         progname: also set global program_invocation_name, when possible
31025         Before this change, a libtool-enabled program that calls glibc's
31026         error function would report the program name as
31027         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31028         * modules/progname (configure.ac): Check for a declaration of
31029         program_invocation_name.
31030         * lib/progname.c:  Include <errno.h>.
31031         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31032         Set program_invocation_name.
31033
31034 2009-08-23  Bruno Haible  <bruno@clisp.org>
31035
31036         * lib/dup3.c: Include <string.h>.
31037
31038 2009-08-23  Bruno Haible  <bruno@clisp.org>
31039
31040         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31041         * lib/pipe2.c (pipe2): Likewise.
31042         Suggested by Eric Blake.
31043
31044 2009-08-23  Bruno Haible  <bruno@clisp.org>
31045
31046         Tolerate declared but missing dup3 syscall.
31047         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31048         * lib/unistd.in.h (dup3): If the function is already present,
31049         override it.
31050         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31051         * modules/dup3 (Makefile.am): Compile dup3.c always.
31052         Reported by Paolo Bonzini.
31053
31054 2009-08-23  Bruno Haible  <bruno@clisp.org>
31055
31056         Tolerate declared but missing pipe2 syscall.
31057         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31058         available.
31059         * lib/unistd.in.h (pipe2): If the function is already present,
31060         override it.
31061         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31062         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31063         Reported by Paolo Bonzini.
31064
31065 2009-08-23  Bruno Haible  <bruno@clisp.org>
31066
31067         * lib/pipe2.c (pipe2): Move #ifs inside function.
31068
31069 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31070
31071         quotearg: document limitations of quote_these_too
31072         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31073         those limitations are created.
31074         * lib/quotearg.h (set_char_quoting): Document that digits and
31075         letters that are special after backslash are not permitted.
31076         (quotearg_char): Cross-reference set_char_quoting documentation.
31077
31078 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31079
31080         quotearg: implement custom_quoting_style
31081         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31082         right_quote fields.
31083         (set_custom_quoting): New public function.
31084         (quotearg_buffer_restyled): Add left_quote and right_quote
31085         arguments, handle them very much like locale quoting, and update
31086         all uses.
31087         (quotearg_n_custom): New public function.
31088         (quotearg_n_custom_mem): New public function.
31089         (quotearg_custom): New public function.
31090         (quotearg_custom_mem): New public function.
31091         * lib/quotearg.h: Prototype and document new public functions.
31092         (enum quoting_style): For escape_quoting_style and
31093         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31094         ignored even though they're otherwise like c_quoting_style.
31095         Add custom_quoting_style member and document with comparison to
31096         clocale_quoting_style.
31097         * tests/test-quotearg.c (custom_quotes): New array.
31098         (custom_results): New array.
31099         (main): Extend to test custom quoting.
31100
31101 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31102
31103         quotearg: fix right quote escaping when it's in quote_these_too
31104         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31105         quote, be sure to prepend only one backslash.
31106         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31107         (main): Test it.
31108
31109 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31110
31111         quotearg-tests: test escaping of embedded locale quotes
31112         * tests/test-quotearg.c (struct result_strings): Add member for
31113         new input.
31114         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31115         (inputs): Add new input.
31116         (results_g): Add expected results.
31117         (flag_results): Likewise.
31118         (locale_results): Likewise.
31119         (compare_strings): Check those.
31120
31121 2009-08-23  Bruno Haible  <bruno@clisp.org>
31122
31123         Tests for module 'dup3'.
31124         * modules/dup3-tests: New file.
31125         * tests/test-dup3.c: New file.
31126
31127         New module 'dup3'.
31128         * lib/unistd.in.h (dup3): New declaration.
31129         * lib/dup3.c: New file.
31130         * m4/dup3.m4: New file.
31131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31132         HAVE_DUP3.
31133         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31134         * modules/dup3: New file.
31135         * doc/glibc-functions/dup3.texi: Mention the new module.
31136
31137 2009-08-23  Bruno Haible  <bruno@clisp.org>
31138
31139         Tweak the dup2 test.
31140         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31141         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31142         the test file is still empty. Fix argument order of lseek.
31143
31144 2009-08-23  Bruno Haible  <bruno@clisp.org>
31145
31146         Avoid test link errors when the modules getopt-gnu, gettext are used.
31147         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31149
31150 2009-08-23  Bruno Haible  <bruno@clisp.org>
31151
31152         Fix getdtablesize() on mingw.
31153         * lib/getdtablesize.c (getdtablesize): Implement differently.
31154         * lib/unistd.in.h (getdtablesize): Improve comment.
31155
31156 2009-08-23  Bruno Haible  <bruno@clisp.org>
31157
31158         New module 'mkostemp'.
31159         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31160         * lib/stdlib.in.h (mksotemp): New declaration.
31161         * lib/mkostemp.c: New file, from glibc with modifications.
31162         * lib/tempname.h (GT_FILE): Remove outdated comment.
31163         (gen_tempname): Add flags argument.
31164         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31165         (__GT_FILE): Map to 1.
31166         (small_open, large_open): Remove macros.
31167         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31168         * lib/mkstemp.c (mkstemp): Update.
31169         * lib/mkdtemp.c (mkdtemp): Likewise.
31170         * m4/mkostemp.m4: New file.
31171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31172         HAVE_MKOSTEMP.
31173         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31174         HAVE_MKOSTEMP.
31175         * modules/mkostemp: New file, based on modules/mkstemp.
31176         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31177         * NEWS: Mention the change.
31178
31179 2009-08-23  Bruno Haible  <bruno@clisp.org>
31180
31181         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31182         Reported by Eric Blake.
31183
31184 2009-08-23  Bruno Haible  <bruno@clisp.org>
31185
31186         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31187         Reported by Eric Blake.
31188
31189 2009-08-23  Bruno Haible  <bruno@clisp.org>
31190
31191         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31192         * modules/pipe2 (Depends-on): Likewise.
31193
31194 2009-08-23  Eric Blake  <ebb9@byu.net>
31195
31196         fcntl-h: add O_TTY_INIT support
31197         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31198         * tests/test-fcntl-h.c (o): Test it.
31199         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31200
31201         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31202         * modules/fcntl: Move <fcntl.h> header replacement...
31203         * modules/fcntl-h: ...to new name, so as not to collide with
31204         like-named function.
31205         * tests/test-fcntl.c: Rename...
31206         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31207         * modules/fcntl-tests: Rename...
31208         * modules/fcntl-h-tests: ...to this.  Update test file name.
31209         * modules/chdir-long (Depends-on): Update clients.
31210         * modules/chdir-safer (Depends-on): Likewise.
31211         * modules/fcntl-safer (Depends-on): Likewise.
31212         * modules/fts (Depends-on): Likewise.
31213         * modules/mkancesdirs (Depends-on): Likewise.
31214         * modules/mkdir-p (Depends-on): Likewise.
31215         * modules/open (Depends-on): Likewise.
31216         * modules/savewd (Depends-on): Likewise.
31217         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31218         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31219
31220 2009-08-22  Bruno Haible  <bruno@clisp.org>
31221
31222         * modules/binary-io (License): Relicense under LGPL.
31223         * modules/pipe2 (License): Likewise.
31224
31225 2009-08-22  Bruno Haible  <bruno@clisp.org>
31226
31227         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31228         return value.
31229         * lib/pipe-filter-gi.c (filter_init): Likewise.
31230         Reported by Eric Blake.
31231
31232 2009-08-22  Bruno Haible  <bruno@clisp.org>
31233
31234         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31235         * modules/pipe (Depends-on): Add pipe2.
31236
31237 2009-08-22  Bruno Haible  <bruno@clisp.org>
31238
31239         Tests for module 'pipe2'.
31240         * modules/pipe2-tests: New file.
31241         * tests/test-pipe2.c: New file.
31242
31243         New module 'pipe2'.
31244         * lib/unistd.in.h (pipe2): New declaration.
31245         * lib/pipe2.c: New file.
31246         * m4/pipe2.m4: New file.
31247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31248         HAVE_PIPE2.
31249         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31250         * modules/pipe2: New file.
31251         * doc/glibc-functions/pipe2.texi: Mention the new module.
31252
31253 2009-08-22  Bruno Haible  <bruno@clisp.org>
31254
31255         Reference some new glibc functions.
31256         * doc/glibc-functions/accept4.texi: New file.
31257         * doc/glibc-functions/dup3.texi: New file.
31258         * doc/glibc-functions/mkostemp.texi: New file.
31259         * doc/glibc-functions/pipe2.texi: New file.
31260         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31261         (Glibc sys/socket.h): Refer to accept4.
31262         (Glibc unistd.h): Refer to dup3, pipe2.
31263         Reported by Eric Blake.
31264
31265 2009-08-22  Jim Meyering  <meyering@redhat.com>
31266             Bruno Haible  <bruno@clisp.org>
31267
31268         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31269         This makes it so packages using automake-1.11's silent-rules option
31270         can print e.g., a single "GEN    configmake.h" line, rather than
31271         the 30+ statements that perform the job.  If you want to see the
31272         actual commands, you can still run "make V=1".
31273         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31274         so that make output is abbreviated when those variables are defined
31275         appropriately.
31276         * modules/argz: Likewise.
31277         * modules/arpa_inet: Likewise.
31278         * modules/byteswap: Likewise.
31279         * modules/configmake: Likewise.
31280         * modules/dirent: Likewise.
31281         * modules/errno: Likewise.
31282         * modules/fcntl: Likewise.
31283         * modules/float: Likewise.
31284         * modules/fnmatch: Likewise.
31285         * modules/getopt-posix: Likewise.
31286         * modules/glob: Likewise.
31287         * modules/iconv_open: Likewise.
31288         * modules/inttypes: Likewise.
31289         * modules/localcharset: Likewise.
31290         * modules/locale: Likewise.
31291         * modules/math: Likewise.
31292         * modules/netdb: Likewise.
31293         * modules/netinet_in: Likewise.
31294         * modules/poll: Likewise.
31295         * modules/posix_spawnp-tests: Likewise.
31296         * modules/sched: Likewise.
31297         * modules/search: Likewise.
31298         * modules/selinux-h: Likewise.
31299         * modules/signal: Likewise.
31300         * modules/spawn: Likewise.
31301         * modules/stdarg: Likewise.
31302         * modules/stdbool: Likewise.
31303         * modules/stddef: Likewise.
31304         * modules/stdint: Likewise.
31305         * modules/stdio: Likewise.
31306         * modules/stdlib: Likewise.
31307         * modules/string: Likewise.
31308         * modules/strings: Likewise.
31309         * modules/sys_file: Likewise.
31310         * modules/sys_ioctl: Likewise.
31311         * modules/sys_select: Likewise.
31312         * modules/sys_socket: Likewise.
31313         * modules/sys_stat: Likewise.
31314         * modules/sys_time: Likewise.
31315         * modules/sys_times: Likewise.
31316         * modules/sys_utsname: Likewise.
31317         * modules/sys_wait: Likewise.
31318         * modules/sysexits: Likewise.
31319         * modules/time: Likewise.
31320         * modules/unistd: Likewise.
31321         * modules/wchar: Likewise.
31322         * modules/wctype: Likewise.
31323
31324 2009-08-22  Jim Meyering  <meyering@redhat.com>
31325
31326         announce-gen: detect write failure
31327         * build-aux/announce-gen: Add Coda at end.
31328         Remove equivalent-but-more-verbose block at top.
31329
31330 2009-08-19  Akim Demaille  <demaille@gostai.com>
31331
31332         bootstrap: --help to stdout.
31333         * bootstrap (usage): Don't send --help to stderr.
31334         Use a here doc instead of a long string.
31335
31336 2009-08-21  Eric Blake  <ebb9@byu.net>
31337
31338         test-popen-safer: split from test-popen
31339         * tests/test-popen.c (main): Move...
31340         * tests/test-popen.h: ...into new file.
31341         * tests/test-popen-safer2.c: New file.
31342         * modules/popen-tests (Files): Add test-popen.h.
31343         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31344         Suggested by Bruno Haible.
31345
31346         test-fcntl-safer: split from test-open
31347         * tests/test-open.c (main): Move...
31348         * tests/test-open.h: ...into new file.
31349         * tests/test-fcntl-safer.c: New file.
31350         * modules/open-tests (Files): Add test-open.h.
31351         * modules/fcntl-safer-tests: New file.
31352         Suggested by Bruno Haible.
31353
31354         test-fopen-safer: split from test-fopen
31355         * tests/test-fopen.c (main): Move...
31356         * tests/test-fopen.h: ...into new file.
31357         * tests/test-fopen-safer.c: New file.
31358         * modules/fopen-tests (Files): Add test-fopen.h.
31359         * modules/fopen-safer-tests: New file.
31360         Suggested by Bruno Haible.
31361
31362 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31363
31364         popen-safer: test O_CLOEXEC at run-time.
31365         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31366
31367 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31368
31369         fcntl: move more flags to the header
31370         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31371         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31372         * lib/fcntl.in.h: Do both things here.
31373
31374 2009-08-21  Jim Meyering  <meyering@redhat.com>
31375
31376         consistently remove $@-t before redirecting to it
31377         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31378         * modules/alloca-opt: Likewise.
31379         * modules/byteswap: Likewise.
31380         * modules/fnmatch: Likewise.
31381         * modules/getopt-posix: Likewise.
31382         * modules/glob: Likewise.
31383         * modules/poll: Likewise.
31384         * modules/posix_spawnp-tests: Likewise.
31385         * modules/sys_socket: Likewise.
31386         * modules/sysexits: Likewise.
31387
31388 2009-08-21  Eric Blake  <ebb9@byu.net>
31389
31390         popen: simplify access to original popen
31391         * lib/popen.c (rpl_popen): No need to worry about popen being a
31392         macro.
31393         Reported by Bruno Haible.
31394
31395 2009-08-20  Eric Blake  <ebb9@byu.net>
31396
31397         build: avoid some compiler warnings
31398         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31399         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31400         type.
31401         (new_exclude_segment, excluded_file_pattern_p)
31402         (excluded_file_name_p): Reduce scope.
31403         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31404         old-style declaration.
31405
31406 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31407
31408         * tests/test-exclude1.sh: Handle Windows EOL.
31409         * tests/test-exclude2.sh: Likewise.
31410         * tests/test-exclude3.sh: Likewise.
31411         * tests/test-exclude4.sh: Likewise.
31412         * tests/test-exclude5.sh: Likewise.
31413         * tests/test-exclude6.sh: Likewise.
31414         * tests/test-exclude7.sh: Likewise.
31415
31416 2009-08-19  Akim Demaille  <demaille@gostai.com>
31417
31418         bootstrap: find sha1sum when named gsha1sum.
31419         * bootstrap (find_tool): New.
31420         ($SHA1SUM): New.
31421         Use it.
31422
31423 2009-08-20  Jim Meyering  <meyering@redhat.com>
31424
31425         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31426         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31427         expression that converts "." in a file name to "\." in the resulting
31428         regexp.  Start with a dummy statement, so that prior shell variable
31429         definitions are expanded portably.  Reported by Simon Josefsson.
31430
31431 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31432
31433         Fix polling for writeability of a screen buffer.
31434         * lib/poll.c: Distinguish input and screen buffers for the
31435         Win32 implementation.
31436         * lib/select.c: Likewise.
31437
31438 2009-08-19  Eric Blake  <ebb9@byu.net>
31439
31440         popen-safer: prevent popen from clobbering std descriptors
31441         * modules/popen-safer: New file.
31442         * lib/popen-safer.c: Likewise.
31443         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31444         * lib/stdio--.h (popen): Provide override.
31445         * lib/stdio-safer.h (popen_safer): Provide declaration.
31446         * tests/test-popen.c (includes): Partially test this.
31447         * modules/popen-safer-tests: New file, for more tests.
31448         * tests/test-popen-safer.c: Likewise.
31449         * MODULES.html.sh (file stream based Input/Output): Mention it.
31450
31451         tests: test some of the *-safer modules
31452         * modules/fopen-safer (Depends-on): Add fopen.
31453         * modules/fcntl-safer (Depends-on): Add fcntl.
31454         * modules/stdlib-safer (Depends-on): Add stdlib.
31455         (configure.ac): Set indicator.
31456         * modules/unistd-safer (configure.ac): Likewise.
31457         * modules/tmpfile-safer (configure.ac): Likewise.
31458         (Depends-on): Add tmpfile.
31459         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31460         active.
31461         * tests/test-fopen.c (includes): Test safer versions when they are
31462         in use.
31463         * tests/test-open.c (includes): Likewise.
31464
31465         popen: fix cygwin 1.5 bug when stdin closed
31466         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31467         * modules/popen: New file.
31468         * modules/popen-tests: Likewise.
31469         * tests/test-popen.c: Likewise.
31470         * m4/popen.m4: Likewise.
31471         * lib/popen.c: Likewise.
31472         * lib/stdio.in.h (popen): New declaration.
31473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31474         * modules/stdio (Makefile.am): Likewise.
31475         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31476
31477 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31478
31479         maint.mk: give full control over update-copyright exclusions
31480         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31481         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31482         (update-copyright): Don't force inclusion of top-level
31483         ChangeLog.  Don't force exclusion of all COPYING files, but make
31484         them the default exclusion instead.
31485
31486 2009-08-16  Bruno Haible  <bruno@clisp.org>
31487
31488         Fix test failures on Solaris 10.
31489         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31490         tests when Solaris iconv() is used.
31491         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31492         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31493         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31494         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31495         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31496
31497 2009-08-16  Bruno Haible  <bruno@clisp.org>
31498
31499         Fix test failures on Solaris 10.
31500         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31501         'tr' program and pass it as first argument.
31502         * tests/test-pipe-filter-gi1.sh: Likewise.
31503         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31504         program as first argument.
31505         * tests/test-pipe-filter-gi1.c (main): Likewise.
31506
31507 2009-08-16  Eric Blake  <ebb9@byu.net>
31508
31509         fpurge: fix previous commits
31510         * modules/fpurge (Makefile.am): Make replacement conditional,
31511         partially reverting 2007-04-29 change; missed in previous
31512         attempt.
31513         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31514         is missing.
31515
31516 2009-08-16  Bruno Haible  <bruno@clisp.org>
31517
31518         Clarify fpurge's effect on the file position.
31519         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31520         * tests/test-fpurge.c (main): Make a second pass for checking the file
31521         position.
31522
31523 2009-08-16  Bruno Haible  <bruno@clisp.org>
31524
31525         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31526         declaration of fpurge is missing.
31527         * tests/test-fpurge.c (main): Check that the file has not more contents
31528         than expected. Close the file before removing it.
31529
31530 2009-08-15  Eric Blake  <ebb9@byu.net>
31531
31532         fpurge: don't wrap working cygwin implementation
31533         * lib/fpurge.c (fpurge): Fix comment typo.
31534         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31535         1.7 to avoid replacement.
31536         * tests/test-fpurge.c (main): Enhance test.
31537
31538 2009-08-15  Eric Blake  <ebb9@byu.net>
31539         and Jim Meyering  <meyering@redhat.com>
31540
31541         test-update-copyright: skip if perl is insufficient
31542         * tests/test-update-copyright.sh: Failure to run maintainer tool
31543         should not cause testsuite failure on cygwin 1.5.
31544
31545 2009-08-14  Eric Blake  <ebb9@byu.net>
31546
31547         doc: mention more functions added in cygwin 1.7.0
31548         * doc/posix-headers/limits.texi (limits.h): Update for recent
31549         cygwin additions.
31550         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31551         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31552         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31553         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31554         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31555
31556 2009-08-14  Eric Blake  <ebb9@byu.net>
31557
31558         maint.mk: simplify update-copyright rule
31559         * top/maint.mk (update-copyright-local): Delete, and document how
31560         to do it in cfg.mk instead.
31561         (update-copyright-exclude-regexp): Delete, and document how to do
31562         it in .x-update-copyright instead.
31563         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31564         exclude ChangeLog.
31565
31566 2009-08-14  Bruno Haible  <bruno@clisp.org>
31567
31568         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31569
31570 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31571
31572         maint.mk: support update-copyright-env
31573         * top/maint.mk (update-copyright-env): Define place-holder.
31574         (update-copyright): Expand $(update-copyright-env) before
31575         invoking update-copyright.
31576
31577 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31578
31579         update-copyright: implement forced reformatting
31580         * build-aux/update-copyright: Implement and document
31581         UPDATE_COPYRIGHT_FORCE.
31582         * tests/test-update-copyright.sh: Test it.
31583
31584 2009-08-14  Eric Blake  <ebb9@byu.net>
31585         and Bruno Haible  <bruno@clisp.org>
31586
31587         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31588         * tests/test-locale.c: Revert previous patch related to NULL.
31589         * tests/test-stdio.c: Likewise.
31590         * tests/test-stdlib.c: Likewise.
31591         * tests/test-string.c: Likewise.
31592         * tests/test-unistd.c: Likewise.
31593         * modules/time-tests (Depends-on): Add verify.
31594         * modules/wchar-tests (Depends-on): Likewise.
31595         * tests/test-time.c: Test for NULL compliance.
31596         * tests/test-wchar.c: Likewise.
31597         * modules/locale (Depends-on): Add stddef.
31598         * modules/stdio (Depends-on): Likewise.
31599         * modules/stdlib (Depends-on): Likewise.
31600         * modules/string (Depends-on): Likewise.
31601         * modules/time (Depends-on): Likewise.
31602         * modules/unistd (Depends-on): Likewise.
31603         * modules/wchar (Depends-on): Likewise.
31604         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31605         * lib/stdlib.in.h (includes): Likewise.
31606         * lib/string.in.h (includes): Likewise.
31607         * lib/time.in.h (includes): Likewise.
31608         * lib/unistd.in.h (includes): Likewise.
31609         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31610         replaced.
31611         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31612         * m4/stddef_h.m4: New file.
31613         * modules/stddef: Likewise.
31614         * lib/stddef.in.h: Likewise.
31615         * modules/stddef-tests: Likewise.
31616         * tests/test-stddef.c: Likewise.
31617         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31618         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31619         * doc/posix-headers/locale.texi (locale.h): Likewise.
31620         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31621         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31622         * doc/posix-headers/string.texi (string.h): Likewise.
31623         * doc/posix-headers/time.texi (time.h): Likewise.
31624         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31625         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31626
31627 2009-08-14  Eric Blake  <ebb9@byu.net>
31628
31629         doc: improve git diff of texinfo files
31630         * .gitattributes: Add rule for *.texi files, with hint on how to
31631         use it.
31632         Copied from m4, and based on a report by Bruno Haible.
31633
31634 2009-08-14  Bruno Haible  <bruno@clisp.org>
31635
31636         Disable multithread support by default on Cygwin 1.5.x for real.
31637         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31638
31639 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31640
31641         update-copyright: much ado about intervals
31642         * build-aux/update-copyright: Implement and document
31643         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31644         of copyright year intervals.
31645         Also, document UPDATE_COPYRIGHT_YEAR.
31646         * tests/test-update-copyright.sh: Test it.
31647
31648         update-copyright: convert 2-digit to 4-digit years
31649         * build-aux/update-copyright: Implement and document.
31650         * tests/test-update-copyright.sh: Update.
31651
31652 2009-08-14  Jim Meyering  <meyering@redhat.com>
31653
31654         test-exclude: avoid coreutils "make check" failure
31655         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31656         just as in test-argmatch.c.
31657
31658 2009-08-13  Eric Blake  <ebb9@byu.net>
31659
31660         test-dup2: fix bad assumption
31661         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31662         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31663
31664         test-version-etc: fix CRLF portability issue
31665         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31666         recognize \r.
31667         * tests/test-argp-version-etc-1.sh: Likewise.
31668
31669         getopt: update client modules
31670         * modules/argp (Depends-on): Use getopt-gnu.
31671         * modules/git-merge-changelog (Depends-on): Likewise.
31672         * modules/long-options (Depends-on): Likewise.
31673         * modules/xstrtol (Depends-on): Likewise.
31674
31675 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31676
31677         * tests/test-version-etc.sh: Don't fail on different
31678         project/version.  Don't fail on CRLF differences.  Rewrite to use
31679         multiple -e instead of multiple sed forks, suggested by Eric Blake
31680         <ebb9@byu.net>.
31681         * tests/test-argp-version-etc-1.sh: Likewise.
31682
31683 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31684
31685         * tests/test-version-etc.sh: Don't fail on different
31686         project/version.
31687
31688 2009-08-12  Bruno Haible  <bruno@clisp.org>
31689
31690         Tests for modules 'getopt-posix', 'getopt-gnu'.
31691         * modules/getopt-posix-tests: New file.
31692         * tests/test-getopt.c: New file.
31693         * tests/test-getopt.h: New file.
31694         * tests/test-getopt_long.h: New file.
31695
31696         New modules 'getopt-posix', 'getopt-gnu'.
31697         * modules/getopt-gnu: New file, renamed from modules/getopt.
31698         * modules/getopt-posix: New file.
31699         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31700         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31701         (gl_GETOPT): Remove macro.
31702         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31703         Disable the test against BSD systems that declare optreset. Test
31704         against mingw bug. Test against lack of support of optional arguments
31705         on many platforms.
31706         * doc/glibc-headers/getopt.texi: Update module name and list of
31707         relevant platforms.
31708         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31709         'getopt-gnu' and more portability problems.
31710         * NEWS: Mention the changes.
31711
31712 2009-08-12  Bruno Haible  <bruno@clisp.org>
31713
31714         Ensure that optarg etc. get declared by <unistd.h>.
31715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31716         AC_USE_SYSTEM_EXTENSIONS.
31717         * modules/getopt (Depends-on): Add 'extensions'.
31718
31719 2009-08-12  Bruno Haible  <bruno@clisp.org>
31720
31721         Avoid test link errors.
31722         * modules/pipe-filter-ii-tests (Makefile.am): Define
31723         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31724         * modules/pipe-filter-gi-tests (Makefile.am): Define
31725         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31727
31728 2009-08-12  Bruno Haible  <bruno@clisp.org>
31729
31730         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31731         gl_GETOPT_SUBSTITUTE before.
31732         (gl_GETOPT): Use it.
31733         * m4/argp.m4 (gl_ARGP): Update.
31734         Reported by Sergey Poznyakoff.
31735
31736         * m4/getopt.m4: Reorder macros.
31737         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31738         (gl_GETOPT_SUBSTITUTE): Remove macro.
31739
31740 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31741
31742         Minor improvement in gitlog-to-changelog
31743
31744         * build-aux/gitlog-to-changelog: New option `--format' makes
31745         output format string configurable.
31746
31747 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31748
31749         Optimize exclude: use hash tables for non-wildcard patterns.
31750
31751         * lib/exclude.c: Include hash.h and mbuiter.h
31752         (struct exclude_pattern, exclude_segment): New data types.
31753         (struct exclude): Rewrite.
31754         (fnmatch_pattern_has_wildcards): New function.
31755         (new_exclude_segment, free_exclude_segment): New functions.
31756         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31757         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31758         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31759         * modules/exclude: Depend on hash and mbuiter.
31760
31761         * modules/exclude-tests: New file.
31762         * tests/test-exclude.c: New file.
31763         * tests/test-exclude1.sh: New file.
31764         * tests/test-exclude2.sh: New file.
31765         * tests/test-exclude3.sh: New file.
31766         * tests/test-exclude4.sh: New file.
31767         * tests/test-exclude5.sh: New file.
31768         * tests/test-exclude6.sh: New file.
31769         * tests/test-exclude7.sh: New file.
31770
31771 2009-08-12  Bruno Haible  <bruno@clisp.org>
31772
31773         Ensure that getopt() gets declared by <unistd.h>.
31774         * lib/unistd.in.h: Conditionally include getopt.h.
31775         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31776         Set GNULIB_UNISTD_H_GETOPT.
31777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31778         GNULIB_UNISTD_H_GETOPT.
31779         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31780
31781 2009-08-12  Bruno Haible  <bruno@clisp.org>
31782
31783         Clarify logic.
31784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31785         gl_replace_getopt instead of GETOPT_H.
31786
31787 2009-08-12  Bruno Haible  <bruno@clisp.org>
31788
31789         * m4/getopt.m4: Add comments.
31790
31791 2009-08-12  Bruno Haible  <bruno@clisp.org>
31792
31793         Disable multithread support by default on Cygwin 1.5.x.
31794         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31795         set gl_use_threads=no if not specified otherwise.
31796
31797 2009-08-11  Bruno Haible  <bruno@clisp.org>
31798
31799         Avoid compilation error on NetBSD 5.0.
31800         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31801         * tests/test-stdio.c: Likewise.
31802         * tests/test-stdlib.c: Likewise.
31803         * tests/test-string.c: Likewise.
31804         * tests/test-unistd.c: Likewise.
31805         Reported by Greg Troxel <gdt@ir.bbn.com>
31806         at <https://savannah.gnu.org/support/?106973>.
31807
31808 2009-08-11  Bruno Haible  <bruno@clisp.org>
31809
31810         * modules/dup2-tests (Depends-on): Remove close.
31811
31812         Undo 2009-07-19 commit.
31813         * modules/acl-tests (Depends-on): Remove close.
31814         * modules/binary-io-tests (Depends-on): Likewise.
31815         * modules/closein-tests (Depends-on): Likewise.
31816         * modules/flock-tests (Depends-on): Likewise.
31817         * modules/fsync-tests (Depends-on): Likewise.
31818         * modules/lseek-tests (Depends-on): Likewise.
31819         * modules/pipe-tests (Depends-on): Likewise.
31820         * modules/posix_spawn-tests (Depends-on): Likewise.
31821         * modules/posix_spawnp-tests (Depends-on): Likewise.
31822         * modules/stat-time-tests (Depends-on): Likewise.
31823         * modules/yesno-tests (Depends-on): Likewise.
31824
31825 2009-08-10  Bruno Haible  <bruno@clisp.org>
31826
31827         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31828
31829 2009-08-10  Bruno Haible  <bruno@clisp.org>
31830
31831         Fix a gcc warning.
31832         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31833
31834 2009-08-10  Bruno Haible  <bruno@clisp.org>
31835
31836         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31837         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31838         not only the first time.
31839         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31840         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31841         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31842         is 1, not only the the first time.
31843
31844 2009-08-10  Bruno Haible  <bruno@clisp.org>
31845
31846         Make it possible to use module 'gethostname' without module 'close'.
31847         * lib/unistd.in.h (close): Evoke a link error only if
31848         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31850         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31851         * modules/unistd (Makefile.am): Substitute
31852         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31853         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31854         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31855         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31856         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31857         * modules/sys_ioctl (Makefile.am): Substitute
31858         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31859         * modules/socket (configure.ac): On native Windows, set
31860         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31861         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31862         Reported by Sam Steingold <sds@gnu.org>.
31863
31864 2009-08-10  Bruno Haible  <bruno@clisp.org>
31865
31866         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31867         * modules/ioctl (configure.ac): Likewise.
31868
31869 2009-08-10  Bruno Haible  <bruno@clisp.org>
31870
31871         Avoid collision between gnulib wrapper and libintl wrapper.
31872         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31873         already defined in intl/printf.c.
31874         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31875         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31876
31877 2009-08-09  Bruno Haible  <bruno@clisp.org>
31878
31879         Make <sys/select.h> really self-contained, also on Solaris 10.
31880         * lib/sys_select.in.h: Include <string.h>.
31881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31882         Solaris 10 problem.
31883         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31884         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31885         Reported by Jim Meyering.
31886
31887 2009-08-09  Bruno Haible  <bruno@clisp.org>
31888
31889         Avoid warnings from 'aclocal' that are due to a use of macro name
31890         AM_XGETTEXT_OPTION that is not defined in automake.
31891         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31892         automake.
31893         * modules/error (configure.ac): Likewise.
31894         * modules/propername (configure.ac): Likewise.
31895         * modules/vasprintf (configure.ac): Likewise.
31896         * modules/verror (configure.ac): Likewise.
31897         * modules/xprintf (configure.ac): Likewise.
31898         * modules/xvasprintf (configure.ac): Likewise.
31899
31900 2009-08-08  Bruno Haible  <bruno@clisp.org>
31901
31902         Avoid compilation error in C++ mode.
31903         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31904         Reported by Sam Steingold <sds@gnu.org>.
31905
31906 2009-08-08  Bruno Haible  <bruno@clisp.org>
31907
31908         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31909         for the various Unix platforms.
31910         * doc/posix-headers/limits.texi: Update platforms list regarding
31911         HOST_NAME_MAX.
31912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31913
31914 2009-08-07  Jim Meyering  <meyering@redhat.com>
31915
31916         selinux-at: fix typo in a comment
31917         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31918         Spotted by Paolo Bonzini.
31919
31920         selinux-at: remove redundant m4 code, add documentation
31921         * modules/selinux-at (configure.ac): Remove redundant code.
31922         LIB_SELINUX is already set via the dependent module, selinux-h.
31923         (Include): Add quotes around selinux-at.h.
31924         * lib/selinux-at.h: Add documentation.
31925         Reported by Bruno Haible in
31926         http://marc.info/?l=gnulib-bug&m=124958988300749
31927
31928 2009-08-07  Bruno Haible  <bruno@clisp.org>
31929
31930         Avoid link error on MacOS X 10.3 and 10.4.
31931         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31932         on non-ELF systems.
31933         * lib/argp-pv.c (argp_program_version): Likewise.
31934         Reported by Simon Josefsson.
31935
31936 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31937
31938         * tests/test-version-etc.sh: Use $EXEEXT.
31939
31940 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31941
31942         update-copyright: update documentation to point to maint.mk
31943         * build-aux/update-copyright: Here.
31944
31945 2009-08-06  Jim Meyering  <meyering@redhat.com>
31946
31947         maint.mk: support update-copyright-local
31948         * top/maint.mk (update-copyright-local): Define place-holder.
31949         (update-copyright): Depend on $(update-copyright-local).
31950
31951 2009-08-06  Jim Meyering  <meyering@redhat.com>
31952
31953         selinux-at: new module
31954         Initially written for coreutils, this module will soon be
31955         used by findutils, too.
31956         * MODULES.html.sh [Misc]: Add selinux-at.
31957         * lib/selinux-at.h: New file, from coreutils.
31958         * lib/selinux-at.c: Likewise.
31959         * modules/selinux-at: Likewise.
31960         (License): Change from LGPL to GPL, since it depends
31961         on the GPL'd openat module.
31962
31963         doc: update README
31964         * README: Remove references to cogito.
31965         Remove cvs-repo-updating instructions from 2007.
31966         Don't imply that CVS is better if you have limited disk space.
31967
31968 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31969
31970         update-copyright: support C-style comments
31971         * build-aux/update-copyright: Implement and document.
31972         * tests/test-update-copyright.sh: Test.
31973
31974 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31975
31976         update-copyright: support omitted "(C)"
31977         * build-aux/update-copyright: Implement and document.  Also,
31978         allow variable whitespace before "(C)".
31979         * tests/test-update-copyright.sh: Test.
31980
31981 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31982
31983         update-copyright: don't trip on non-FSF copyright statements
31984         * build-aux/update-copyright: Fix so that the first correctly
31985         formatted FSF copyright statement is recognized no matter what
31986         appears before it.  Update documentation.
31987         * tests/test-update-copyright.sh: Test that.
31988
31989 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31990
31991         update-copyright: clean up code a little
31992         * build-aux/update-copyright: Append "_re" to the name of any
31993         variable holding a regular expression.
31994         Replace "old" and "new" with "stmt" in variable names.
31995         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31996         handled correctly.
31997         Format code more consistently.
31998
31999 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32000
32001         update-copyright-tests: improve portability
32002         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32003         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32004
32005 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32006
32007         update-copyright: support @copyright{} and &copy;
32008         * build-aux/update-copyright: Implement and document.
32009         * tests/test-update-copyright.sh: Test.
32010
32011 2009-08-04  Jim Meyering  <meyering@redhat.com>
32012
32013         update-copyright-tests: correctly test EOL=\r\n handling
32014         * tests/test-update-copyright.sh: Put \r at the end of some lines
32015         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32016
32017         maint.mk: make update-copyright exclusion list more configurable
32018         * top/maint.mk (update-copyright): Default to excluding COPYING,
32019         but allow an override, in case someone does want to update that file.
32020
32021         maint.mk: don't update copyright date in COPYING
32022         * top/maint.mk (update-copyright): Exclude COPYING.
32023
32024         maint.mk: add a copyright-updating rule
32025         * top/maint.mk (update-copyright): New rule.
32026         Derived from coreutils/Makefile.am.
32027
32028         update-copyright: rename some variables
32029         * build-aux/update-copyright: Rename a few variables for clarity.
32030         Tweak syntax.  List Joel E. Denny as coauthor.
32031
32032 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32033
32034         update-copyright: fix bug for 2-digit last year and add tests
32035         * build-aux/update-copyright: Fix bug.
32036         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32037         specified.
32038         * modules/update-copyright-tests: New
32039         * tests/test-update-copyright.sh: New.
32040
32041 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32042
32043         update-copyright: handle leading tabs in line prefix
32044         * build-aux/update-copyright: Count leading tabs as 8 spaces
32045         when computing margin.  This helps with the formatting of
32046         ChangeLogs, for example.
32047         Fix documentation a little.
32048
32049 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32050
32051         update-copyright: support EOL=\r\n
32052         * build-aux/update-copyright: Implement that.
32053
32054 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32055
32056         update-copyright: automatically format copyright statements
32057         * build-aux/update-copyright: Implement that.
32058         Also, be a little more predictable and safer by always failing
32059         when the full copyright format is not perfectly recognized as an
32060         unbroken whole.  Discussed at
32061         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32062         Rewrite documentation.
32063
32064 2009-08-03  Bruno Haible  <bruno@clisp.org>
32065
32066         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32067
32068 2009-08-02  Bruno Haible  <bruno@clisp.org>
32069
32070         Tests for module 'uname'.
32071         * modules/uname-tests: New file.
32072         * tests/test-uname.c: New file.
32073
32074         New module 'uname'.
32075         * lib/uname.c: New file.
32076         * m4/uname.m4: New file.
32077         * modules/uname: New file.
32078         * doc/posix-functions/uname.texi: Mention the new module.
32079
32080 2009-08-02  Bruno Haible  <bruno@clisp.org>
32081
32082         Tests for module 'sys_utsname'.
32083         * modules/sys_utsname-tests: New file.
32084         * tests/test-sys_utsname.c: New file.
32085
32086         New module 'sys_utsname'.
32087         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32088         * m4/sys_utsname_h.m4: New file.
32089         * modules/sys_utsname: New file.
32090         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32091
32092 2009-08-02  Bruno Haible  <bruno@clisp.org>
32093
32094         Implicitly initialize the sockets library.
32095         * lib/gethostname.c: Include sockets.h.
32096         (rpl_gethostname): Invoke gl_sockets_startup.
32097         * lib/socket.c: Include sockets.h.
32098         (rpl_socket): Invoke gl_sockets_startup.
32099         * modules/gethostname (Depends-on): Add sockets.
32100         * modules/socket (Depends-on): Likewise.
32101         * tests/test-poll.c: Don't include sockets.h.
32102         (main): Don't invoke gl_sockets_startup.
32103         * tests/test-select.c: Don't include sockets.h.
32104         (main): Don't invoke gl_sockets_startup.
32105
32106 2009-08-02  Bruno Haible  <bruno@clisp.org>
32107
32108         Allow multiple calls to gl_sockets_startup.
32109         * lib/sockets.c (initialized_sockets_version): New variable.
32110         (gl_sockets_startup): Do nothing if already called for this or a higher
32111         version.
32112         (gl_sockets_cleanup): Reset initialized_sockets_version.
32113
32114 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32115
32116         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32117         different project/version.
32118
32119 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32120             Bruno Haible  <bruno@clisp.org>
32121
32122         Tests for module 'pipe-filter-gi'.
32123         * modules/pipe-filter-gi-tests: New file.
32124         * tests/test-pipe-filter-gi1.sh: New file.
32125         * tests/test-pipe-filter-gi1.c: New file.
32126         * tests/test-pipe-filter-gi2.sh: New file.
32127         * tests/test-pipe-filter-gi2-main.c: New file.
32128         * tests/test-pipe-filter-gi2-child.c: New file.
32129
32130         New module 'pipe-filter-gi'.
32131         * lib/pipe-filter-gi.c: New file.
32132         * modules/pipe-filter-gi: New file.
32133
32134 2009-08-02  Bruno Haible  <bruno@clisp.org>
32135             Paolo Bonzini  <bonzini@gnu.org>
32136
32137         Tests for module 'pipe-filter-ii'.
32138         * modules/pipe-filter-ii-tests: New file.
32139         * tests/test-pipe-filter-ii1.sh: New file.
32140         * tests/test-pipe-filter-ii1.c: New file.
32141         * tests/test-pipe-filter-ii2.sh: New file.
32142         * tests/test-pipe-filter-ii2-main.c: New file.
32143         * tests/test-pipe-filter-ii2-child.c: New file.
32144
32145         New module 'pipe-filter-ii'.
32146         * lib/pipe-filter.h: New file.
32147         * lib/pipe-filter-ii.c: New file.
32148         * lib/pipe-filter-aux.h: New file.
32149         * modules/pipe-filter-ii: New file.
32150
32151 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32152
32153         * lib/gc-libgcrypt.c: Change copyright to FSF.
32154         * lib/gc-gnulib.c: Likewise.
32155
32156 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32157
32158         * lib/gethostname.c: Include limits.h.
32159
32160 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32161             Bruno Haible  <bruno@clisp.org>
32162
32163         Ensure HOST_NAME_MAX as part of the gethostname module.
32164         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32165         define also HOST_NAME_MAX.
32166         * tests/test-gethostname.c: Include <limits.h>.
32167         (main): Check also HOST_NAME_MAX.
32168         * doc/posix-headers/limits.texi: Document the mingw problem.
32169
32170 2009-08-02  Bruno Haible  <bruno@clisp.org>
32171
32172         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32173         Add comments.
32174
32175 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32176
32177         * lib/gethostname.c: Add Windows wrapper.
32178         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32179         * modules/gethostname: Depend on sys_socket & errno, for also
32180         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32181         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32182
32183 2009-07-31  Jim Meyering  <meyering@redhat.com>
32184
32185         getloadavg: fix symbol name in comment
32186         * lib/getloadavg.c: Correct a typo I introduced when adding
32187         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32188         Matt Kraai spotted the problem.
32189
32190 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32191
32192         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32193         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32194         code also if ! defined N_NAME_POINTER.
32195         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32196         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32197         but the n_name member is a 12-byte array.
32198
32199 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32200
32201         update-copyright: generalize comment handling
32202         * build-aux/update-copyright: Handle copyright statements
32203         within more comment styles.
32204         Document usage.
32205         Report any file with an external copyright holder or parse failure.
32206
32207 2009-07-29  Jim Meyering  <meyering@redhat.com>
32208
32209         mktime: correct setting of REPLACE_MKTIME
32210         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32211
32212         update-copyright: new module
32213         * modules/update-copyright: New file.
32214         * build-aux/update-copyright: New file.
32215         * MODULES.html.sh (maint+release support): Add update-copyright.
32216
32217 2009-07-27  Bruno Haible  <bruno@clisp.org>
32218
32219         Fix compilation error when <ctime> is used and mktime is replaced.
32220         * lib/time.in.h (mktime): New declaration.
32221         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32222         REPLACE_MKTIME instead of defining mktime in config.h.
32223         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32224         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32225         Reported by Ross McFarland <rwmcfa1@neces.com>.
32226
32227 2009-07-27  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32230         Reported by Matt Kraai <mkraai@beckman.com>.
32231
32232 2009-07-25  Jim Meyering  <meyering@redhat.com>
32233
32234         maint.mk: avoid warnings about missing files
32235         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32236         diagnostic when .prev-version does not exist.
32237         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32238         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32239         nonexistent cfg.mk.
32240         Suggestions from Simon Josefsson.
32241
32242 2009-07-25  Bruno Haible  <bruno@clisp.org>
32243
32244         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32245         defined as macros. Needed on QNX 6.4.1.
32246         Reported by Matt Kraai <mkraai@beckman.com>.
32247
32248 2009-07-23  Jim Meyering  <meyering@redhat.com>
32249
32250         maint.mk: invoke "make dist" with a working value of XZ_OPT
32251         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32252
32253 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32254
32255         Make fseeko.c compile on QNX.
32256         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32257
32258 2009-07-22  Peter Simons  <simons@cryp.to>
32259
32260         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32261         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32262         * lib/md4.h: Likewise.
32263         * lib/md5.h: Likewise.
32264         * lib/sha1.h: Likewise.
32265         * lib/sha256.h: Likewise.
32266         * lib/sha512.h: Likewise.
32267
32268         tests-sha1: don't assign literal string to 'char *' variable
32269         * tests/test-sha1.c (main): Declare locals with "const" to match
32270         attributes of the right hand side.
32271
32272 2009-07-21  Eric Blake  <ebb9@byu.net>
32273
32274         dup2: fix more mingw problems
32275         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32276         fd to itself.
32277         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32278         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32279         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32280         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32281         care of mingw bugs.
32282
32283 2009-07-21  Jim Meyering  <meyering@redhat.com>
32284
32285         vc-list-files: avoid failure when /bin/sh is dash
32286         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32287         On some Debian based systems, /bin/sh is a symlink to dash, and running
32288         this command would omit the "/" following each 'tests' prefix:
32289           dash -x build-aux/vc-list-files -C . tests
32290         That is because bash and dash work differently:
32291           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32292           bash ok
32293           dash odd
32294
32295 2009-07-21  Eric Blake  <ebb9@byu.net>
32296
32297         dup2-tests: test previous patch
32298         * modules/dup2-tests: New file.
32299         * tests/test-dup2.c: Likewise.
32300         * tests/test-open.c (main): Avoid unspecified behavior.
32301         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32302         test.
32303
32304         dup2: work around mingw and cygwin 1.5 bug
32305         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32307         * modules/unistd (Makefile.am): Substitute it.
32308         * lib/unistd.in.h (dup2): Declare the replacement.
32309         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32310         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32311         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32312         * modules/execute (Depends-on): Add dup2.
32313         * modules/fseterr (Depends-on): Likewise.
32314         * modules/pipe (Depends-on): Likewise.
32315         * modules/posix_spawn-internal (Depends-on): Likewise.
32316
32317 2009-07-21  Bruno Haible  <bruno@clisp.org>
32318
32319         * modules/.gitattributes: New file.
32320
32321 2009-07-20  Bruno Haible  <bruno@clisp.org>
32322
32323         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32324         (main): Use it.
32325
32326 2009-07-20  Eric Blake  <ebb9@byu.net>
32327
32328         test-pipe: make a bit more robust.
32329         * tests/test-pipe.c (myerr): Allow error messages regardless of
32330         what we do to stderr.
32331         (test_pipe): Rearrange to avoid deadlock.
32332         (child_main): Try a larger read, to ensure we avoided deadlock.
32333         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32334         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32335         if misused.
32336
32337 2009-07-19  Jim Meyering  <meyering@redhat.com>
32338
32339         fts: avoid false-positive cycle-detection
32340         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32341         for each new command line argument.
32342
32343 2009-07-19  Bruno Haible  <bruno@clisp.org>
32344
32345         Fix build error on mingw with the modules sys_select and unistd.
32346         * modules/acl-tests (Depends-on): Add close.
32347         * modules/binary-io-tests (Depends-on): Likewise.
32348         * modules/closein-tests (Depends-on): Likewise.
32349         * modules/flock-tests (Depends-on): Likewise.
32350         * modules/fsync-tests (Depends-on): Likewise.
32351         * modules/lseek-tests (Depends-on): Likewise.
32352         * modules/pipe-tests (Depends-on): Likewise.
32353         * modules/posix_spawn-tests (Depends-on): Likewise.
32354         * modules/posix_spawnp-tests (Depends-on): Likewise.
32355         * modules/stat-time-tests (Depends-on): Likewise.
32356         * modules/yesno-tests (Depends-on): Likewise.
32357
32358 2009-07-19  Bruno Haible  <bruno@clisp.org>
32359
32360         Unify conditionals.
32361         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32362         macros, not at the compiler macros.
32363         * lib/pipe.c: Likewise.
32364         * lib/execute.c: Likewise.
32365         * lib/spawni.c: Likewise.
32366
32367 2009-07-19  Bruno Haible  <bruno@clisp.org>
32368
32369         Fix handling of closed stdin/stdout/stderr on mingw.
32370         * lib/w32spawn.h: Include unistd.h.
32371         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32372         file descriptor with O_NOINHERIT flag.
32373         (fd_safer_noinherit): New function, based on fd-safer.c.
32374         (dup_safer_noinherit): New function, based on dup-safer.c.
32375         (undup_safer_noinherit): New function.
32376         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32377         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32378         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32379         instead of fd_safer.
32380         * tests/test-pipe.c: Include <windows.h>.
32381         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32382         result.
32383
32384         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32385         from main.
32386         (test_pipe): Pass an extra argument for disambiguation.
32387         (main): Invoke parent_main or child_main.
32388
32389         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32390         consistently.
32391
32392 2009-07-18  Eric Blake  <ebb9@byu.net>
32393
32394         test-pipe: fix mingw build
32395         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32396
32397 2009-07-18  Bruno Haible  <bruno@clisp.org>
32398
32399         * modules/pipe-tests (Makefile.am): Fix typo.
32400
32401 2009-07-18  Eric Blake  <ebb9@byu.net>
32402
32403         error: fix mingw build
32404         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32405         Reported by Bruno Haible.
32406
32407         error: avoid undefined use of stdout
32408         * lib/error.c (error, error_at_line): Check that fd 1 is open
32409         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32410         is handling faults and the close_stdout module wants to report the
32411         detection of closed stdout as an error.
32412
32413 2009-07-17  Eric Blake  <ebb9@byu.net>
32414
32415         pipe: be robust in face of closed fds
32416         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32417         should cause child to misbehave.
32418         * modules/pipe-tests: New module.
32419         * tests/test-pipe.c: New file.
32420         * tests/test-pipe.sh: New file.
32421         Reported by Akim Demaille.
32422
32423 2009-07-14  Bruno Haible  <bruno@clisp.org>
32424
32425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32426         Reported by anonymous kc.
32427
32428 2009-07-07  Jim Meyering  <meyering@redhat.com>
32429
32430         maint.mk: don't look for translatable strings in *.m4 or *.mk
32431         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32432         when searching for translatable strings.
32433
32434 2009-07-05  Jim Meyering  <meyering@redhat.com>
32435
32436         remove superfluous parentheses in STREQ definition
32437         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32438         * lib/getugroups.c (STREQ): Likewise.
32439         * lib/fnmatch.c (STREQ): Likewise.
32440         Spotted by Bruno Haible.
32441
32442 2009-07-04  Jim Meyering  <meyering@redhat.com>
32443
32444         argv-iter: new module
32445         * MODULES.html.sh: Add argv-iter.
32446         * lib/argv-iter.c, lib/argv-iter.h: New files.
32447         * modules/argv-iter: New file.
32448         * modules/argv-iter-tests: New file.
32449         * tests/test-argv-iter.c: Test it.
32450
32451 2009-07-04  Bruno Haible  <bruno@clisp.org>
32452
32453         Fix assertion.
32454         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32455         contains more exact copies of a given entry than file2, leave the extra
32456         copies unpaired rather than aborting.
32457         Reported by Eric Blake.
32458
32459 2009-07-02  Bruno Haible  <bruno@clisp.org>
32460
32461         Speedup git-merge-changelog for git cherry-pick.
32462         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32463         (entries_mapping_get): New function, extracted from compute_mapping.
32464         (entries_mapping_reverse_get): New function.
32465         (compute_mapping): Add a 'full' argument. Return the result in a
32466         'struct entries_mapping'.
32467         (main): Update. Access the mappings through entries_mapping_get.
32468         Reported by Eric Blake.
32469
32470 2009-07-02  Bruno Haible  <bruno@clisp.org>
32471
32472         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32473         best_i.
32474
32475 2009-07-02  Bruno Haible  <bruno@clisp.org>
32476
32477         Speed up approximate search for matching ChangeLog entries.
32478         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32479         argument. Call fstrcmp_bounded instead of fstrcmp.
32480         (compute_mapping, try_split_merged_entry, main): Update callers.
32481
32482 2009-07-02  Bruno Haible  <bruno@clisp.org>
32483
32484         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32485
32486 2009-06-30  Bruno Haible  <bruno@clisp.org>
32487
32488         Reduce the number of uc_is_cased calls.
32489         * lib/unicase.h (casing_suffix_context_t): Add
32490         'first_char_except_ignorable' field.
32491         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32492         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32493         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32494         Update initializer.
32495         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32496         case-ignorable characters.
32497         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32498         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32499         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32500         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32501         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32502
32503 2009-06-30  Bruno Haible  <bruno@clisp.org>
32504
32505         Tests for module 'unicase/ignorable'.
32506         * modules/unicase/ignorable-tests: New file.
32507         * tests/unicase/test-ignorable.c: New file, generated by
32508         gen-uni-tables.
32509
32510         Tests for module 'unicase/cased'.
32511         * modules/unicase/cased-tests: New file.
32512         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32513         * tests/unicase/test-predicate-part1.h: New file, derived from
32514         tests/unictype/test-predicate-part1.h.
32515         * tests/unicase/test-predicate-part2.h: New file, same as
32516         tests/unictype/test-predicate-part2.h.
32517
32518         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32519         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32520         (output_casing_properties): New function.
32521         (main): Call it.
32522         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32523         * lib/unicase/cased.c: Include unictype/bitmap.h.
32524         (uc_is_cased): Define through a bitmap lookup.
32525         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32526         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32527         (uc_is_case_ignorable): Define through a bitmap lookup.
32528         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32529         lib/unictype/bitmap.h.
32530         (Depends-on): Add inline. Clean up.
32531         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32532         lib/unictype/bitmap.h.
32533         (Depends-on): Add inline. Clean up.
32534         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32535         recognition.
32536         * tests/unicase/test-u16-tolower.c (main): Likewise.
32537         * tests/unicase/test-u32-tolower.c (main): Likewise.
32538
32539 2009-06-30  Bruno Haible  <bruno@clisp.org>
32540
32541         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32542         * lib/unicase/u16-casemap.c: Likewise.
32543         * lib/unicase/u32-casemap.c: Likewise.
32544
32545 2009-06-29  Bruno Haible  <bruno@clisp.org>
32546
32547         Define u32_casefold as a wrapper around u32_ct_casefold.
32548         * lib/unicase/u32-casefold.c: Update.
32549         * modules/unicase/u32-casefold (Depends-on): Add
32550         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32551         unicase/empty-suffix-context. Clean up.
32552
32553         Define u16_casefold as a wrapper around u16_ct_casefold.
32554         * lib/unicase/u16-casefold.c: Update.
32555         * modules/unicase/u16-casefold (Depends-on): Add
32556         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32557         unicase/empty-suffix-context. Clean up.
32558
32559         Define u8_casefold as a wrapper around u8_ct_casefold.
32560         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32561         * lib/unicase/u8-casefold.c: Update.
32562         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32563         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32564
32565         Define u32_totitle as a wrapper around u32_ct_totitle.
32566         * lib/unicase/u32-totitle.c: Update.
32567         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32568         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32569
32570         Define u16_totitle as a wrapper around u16_ct_totitle.
32571         * lib/unicase/u16-totitle.c: Update.
32572         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32573         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32574
32575         Define u8_totitle as a wrapper around u8_ct_totitle.
32576         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32577         functions.
32578         (FUNC): Delegate to U_CT_TOTITLE.
32579         * lib/unicase/u8-totitle.c: Update.
32580         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32581         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32582
32583         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32584         invocation.
32585         * modules/unicase/u32-tolower (Depends-on): Add
32586         unicase/empty-prefix-context, unicase/empty-suffix-context.
32587
32588         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32589         invocation.
32590         * modules/unicase/u16-tolower (Depends-on): Add
32591         unicase/empty-prefix-context, unicase/empty-suffix-context.
32592
32593         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32594         * modules/unicase/u8-tolower (Depends-on): Add
32595         unicase/empty-prefix-context, unicase/empty-suffix-context.
32596
32597         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32598         invocation.
32599         * modules/unicase/u32-toupper (Depends-on): Add
32600         unicase/empty-prefix-context, unicase/empty-suffix-context.
32601
32602         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32603         invocation.
32604         * modules/unicase/u16-toupper (Depends-on): Add
32605         unicase/empty-prefix-context, unicase/empty-suffix-context.
32606
32607         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32608         * modules/unicase/u8-toupper (Depends-on): Add
32609         unicase/empty-prefix-context, unicase/empty-suffix-context.
32610
32611         New module 'unicase/u32-ct-casefold'.
32612         * lib/unicase/u32-ct-casefold.c: New file.
32613         * modules/unicase/u32-ct-casefold: New file.
32614
32615         New module 'unicase/u16-ct-casefold'.
32616         * lib/unicase/u16-ct-casefold.c: New file.
32617         * modules/unicase/u16-ct-casefold: New file.
32618
32619         New module 'unicase/u8-ct-casefold'.
32620         * lib/unicase/u8-ct-casefold.c: New file.
32621         * lib/unicase/u-ct-casefold.h: New file, derived from
32622         lib/unicase/u-casefold.h.
32623         * modules/unicase/u8-ct-casefold: New file.
32624
32625         New module 'unicase/u32-ct-totitle'.
32626         * lib/unicase/u32-ct-totitle.c: New file.
32627         * modules/unicase/u32-ct-totitle: New file.
32628
32629         New module 'unicase/u16-ct-totitle'.
32630         * lib/unicase/u16-ct-totitle.c: New file.
32631         * modules/unicase/u16-ct-totitle: New file.
32632
32633         New module 'unicase/u8-ct-totitle'.
32634         * lib/unicase/u8-ct-totitle.c: New file.
32635         * lib/unicase/u-ct-totitle.h: New file, derived from
32636         lib/unicase/u-totitle.h.
32637         * modules/unicase/u8-ct-totitle: New file.
32638
32639         New module 'unicase/u32-ct-tolower'.
32640         * lib/unicase/u32-ct-tolower.c: New file.
32641         * modules/unicase/u32-ct-tolower: New file.
32642
32643         New module 'unicase/u16-ct-tolower'.
32644         * lib/unicase/u16-ct-tolower.c: New file.
32645         * modules/unicase/u16-ct-tolower: New file.
32646
32647         New module 'unicase/u8-ct-tolower'.
32648         * lib/unicase/u8-ct-tolower.c: New file.
32649         * modules/unicase/u8-ct-tolower: New file.
32650
32651         New module 'unicase/u32-ct-toupper'.
32652         * lib/unicase/u32-ct-toupper.c: New file.
32653         * modules/unicase/u32-ct-toupper: New file.
32654
32655         New module 'unicase/u16-ct-toupper'.
32656         * lib/unicase/u16-ct-toupper.c: New file.
32657         * modules/unicase/u16-ct-toupper: New file.
32658
32659         New module 'unicase/u8-ct-toupper'.
32660         * lib/unicase/u8-ct-toupper.c: New file.
32661         * modules/unicase/u8-ct-toupper: New file.
32662
32663         Add context arguments to u*_casemap functions.
32664         * lib/unicase/unicasemap.h: Include unicase.h.
32665         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32666         suffix_context arguments.
32667         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32668         functions.
32669         (FUNC): Add prefix_context and suffix_context arguments. Use
32670         uc_is_cased and uc_is_case_ignorable.
32671         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32672         * lib/unicase/u16-casemap.c: Likewise.
32673         * lib/unicase/u32-casemap.c: Likewise.
32674         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32675         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32676         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32677         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32678         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32679         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32680
32681         New module 'unicase/u32-suffix-context'.
32682         * lib/unicase/u32-suffix-context.c: New file.
32683         * modules/unicase/u32-suffix-context: New file.
32684
32685         New module 'unicase/u16-suffix-context'.
32686         * lib/unicase/u16-suffix-context.c: New file.
32687         * modules/unicase/u16-suffix-context: New file.
32688
32689         New module 'unicase/u8-suffix-context'.
32690         * lib/unicase/u8-suffix-context.c: New file.
32691         * lib/unicase/u-suffix-context.h: New file.
32692         * modules/unicase/u8-suffix-context: New file.
32693
32694         New module 'unicase/empty-suffix-context'.
32695         * lib/unicase/empty-suffix-context.c: New file.
32696         * modules/unicase/empty-suffix-context: New file.
32697
32698         New module 'unicase/u32-prefix-context'.
32699         * lib/unicase/u32-prefix-context.c: New file.
32700         * modules/unicase/u32-prefix-context: New file.
32701
32702         New module 'unicase/u16-prefix-context'.
32703         * lib/unicase/u16-prefix-context.c: New file.
32704         * modules/unicase/u16-prefix-context: New file.
32705
32706         New module 'unicase/u8-prefix-context'.
32707         * lib/unicase/u8-prefix-context.c: New file.
32708         * lib/unicase/u-prefix-context.h: New file.
32709         * lib/unicase/context.h: New file.
32710         * modules/unicase/u8-prefix-context: New file.
32711
32712         New module 'unicase/empty-prefix-context'.
32713         * lib/unicase/empty-prefix-context.c: New file.
32714         * modules/unicase/empty-prefix-context: New file.
32715
32716         New module 'unicase/ignorable'.
32717         * lib/unicase/ignorable.c: New file.
32718         * modules/unicase/ignorable: New file.
32719
32720         New module 'unicase/cased'.
32721         * lib/unicase/caseprop.h: New file.
32722         * lib/unicase/cased.c: New file.
32723         * modules/unicase/cased: New file.
32724
32725         New functions for case mapping of substrings.
32726         * lib/unicase.h (casing_prefix_context_t): New type.
32727         (unicase_empty_prefix_context): New variable.
32728         (u8_casing_prefix_context, u16_casing_prefix_context,
32729         u32_casing_prefix_context, u8_casing_prefixes_context,
32730         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32731         declarations.
32732         (casing_suffix_context_t): New type.
32733         (unicase_empty_suffix_context): New variable.
32734         (u8_casing_suffix_context, u16_casing_suffix_context,
32735         u32_casing_suffix_context, u8_casing_suffixes_context,
32736         u16_casing_suffixes_context, u32_casing_suffixes_context,
32737         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32738         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32739         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32740         declarations.
32741
32742 2009-06-28  Jim Meyering  <meyering@redhat.com>
32743
32744         boostrap: indent only with spaces
32745         * build-aux/bootstrap: Indent only with spaces, never TABs.
32746
32747         bootstrap: split long lines
32748         * build-aux/bootstrap: Keep line length < 80.
32749
32750         bootstrap: sync from coreutils
32751         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32752         just as autoreconf does.  Verify a list of prerequisite
32753         package-name,version-number pairs if defined in bootstrap.conf.
32754         Refer to README-prereq, if prerequisites are not satisfied.
32755
32756 2009-06-27  Eric Blake  <ebb9@byu.net>
32757
32758         tests: add test for bogus NULL definition
32759         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32760         * tests/test-stdlib.c: Likewise.
32761         * tests/test-string.c: Likewise.
32762         * tests/test-locale.c: Likewise.
32763         * tests/test-unistd.c: Likewise.
32764         * modules/stdio-tests (Depends-on): Add verify.
32765         * modules/stdlib-tests (Depends-on): Likewise.
32766         * modules/string-tests (Depends-on): Likewise.
32767         * modules/locale-tests (Depends-on): Likewise.
32768         * modules/unistd-tests (Depends-on): Likewise.
32769
32770 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32771
32772         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32773         self-explaining comment.
32774         * m4/selinux-selinux-h: Update serial.
32775         (gl_LIBSELINUX): New macro, adding a warning for missing development
32776         packages to code extracted from...
32777         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32778         Add warning for missing development packages here, too.
32779
32780 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32781
32782         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32783
32784 2009-06-25  Eric Blake  <ebb9@byu.net>
32785
32786         version-etc: fix regression
32787         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32788         gcc.
32789         (version_etc): Use it, to catch bugs with trailing NULL.
32790         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32791         (version_etc_va): Fix logic bug.
32792         * modules/version-etc-tests: Add test.
32793         * tests/test-version-etc.c: New file.
32794         * tests/test-version-etc.sh: Likewise.
32795
32796 2009-06-25  Sam Steingold  <sds@gnu.org>
32797
32798         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32799         mbtowc declaration.
32800
32801 2009-06-25  Eric Blake  <ebb9@byu.net>
32802
32803         fpurge: migrate into <stdio.h>
32804         * lib/fpurge.h: Delete...
32805         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32806         * lib/fpurge.c (fpurge): Change declaring header.
32807         * modules/fpurge (Files): Drop deleted file.
32808         (Depends-on): Add stdio.
32809         (configure.ac): Set witness.
32810         * modules/stdio (Makefile.am): Support fpurge macros.
32811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32812         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32813         * lib/fflush.c: Update client.
32814         * tests/test-fpurge.c: Likewise.
32815         * NEWS: Mention the change.
32816
32817 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32818
32819         * lib/argp-version-etc.c (program_authors): Add const
32820         qualifier.
32821         * lib/version-etc.c: Fix typos in the comments.
32822         * modules/argp-version-etc: Depends on version-etc.
32823
32824 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32825
32826         argp-version-etc: new module.
32827
32828         * lib/argp-version-etc.c: New file.
32829         * lib/argp-version-etc.h: New file.
32830         * modules/argp-version-etc: New file.
32831         * modules/argp-version-etc-tests: New file.
32832         * tests/test-argp-version-etc.c: New test.
32833         * tests/test-argp-version-etc-1.sh: New test.
32834
32835 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32836
32837         Provide additional interfaces and documentation for version-etc
32838         module.
32839
32840         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32841         interfaces.
32842         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32843         prototypes.
32844
32845 2009-06-24  Bruno Haible  <bruno@clisp.org>
32846
32847         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32848         HAVE_LIB${NAME} macro.
32849         Reported by Sam Steingold <sds@gnu.org>.
32850
32851 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32852
32853         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32854         needed.
32855
32856 2009-06-21  Bruno Haible  <bruno@clisp.org>
32857
32858         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32859         work.
32860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32861         together with LIB${NAME}, LTLIB${NAME}.
32862         Reported by Sam Steingold <sds@gnu.org>.
32863
32864 2009-06-20  Jim Meyering  <meyering@redhat.com>
32865
32866         tests: make sc_require_test_exit_idiom more generic
32867         * top/maint.mk (Exit_witness_file): New overridable variable.
32868         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32869         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32870
32871 2009-06-19  Jim Meyering  <meyering@redhat.com>
32872
32873         hash: reverse order of src/dst parameters in an internal interface
32874         * lib/hash.c (transfer_entries): Reverse order of parameters to
32875         put DST before SRC.  Adjust callers.
32876
32877         tests: test-hash: avoid wholesale duplication
32878         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32879         Instead, use a loop and add a single conditional.
32880
32881         tests: test-hash: allow seed selection via a command line argument
32882         * tests/test-hash.c (get_seed): New function.
32883         (main): Use it.
32884
32885 2009-06-19  Eric Blake  <ebb9@byu.net>
32886
32887         hash: avoid memory leak on allocation failure
32888         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32889         failure.  Factor repeated algorithm...
32890         (transfer_entries): ...into new helper routine.
32891         (hash_delete): React to hash_rehash return value.
32892
32893         hash: reduce memory pressure in hash_rehash no-op case
32894         * lib/hash.c (next_prime): Avoid overflow.
32895         (hash_initialize): Factor bucket size computation...
32896         (compute_bucket_size): ...into new helper function.
32897         (hash_rehash): Use new function and open coding to reduce memory
32898         pressure, and avoid a memory leak in USE_OBSTACK code.
32899         Reported by Jim Meyering.
32900
32901 2009-06-18  Eric Blake  <ebb9@byu.net>
32902
32903         hash: make rotation more obvious
32904         * modules/hash (Depends-on): Add bitrotate and stdint.
32905         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32906         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32907         (SIZE_MAX): Rely on headers for definition.
32908         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32909         (raw_hasher): Use rotr_sz.
32910         Suggested by Jim Meyering.
32911
32912         hash: fix memory leak in last patch
32913         * lib/hash.c (hash_rehash): Avoid memory leak.
32914
32915         hash: avoid no-op rehashing
32916         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32917
32918         hash: provide default callback functions
32919         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32920         (hash_initialize): Use them as defaults.
32921         * tests/test-hash.c (main): Test this.
32922
32923         hash: minor optimization
32924         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32925         when possible.
32926         (hash_initialize): Document this promise.
32927         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32928         * tests/test-hash.c (hash_compare_strings): Test this.
32929
32930 2009-06-18  Bruno Haible  <bruno@clisp.org>
32931
32932         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32933         going to be replaced anyway.
32934
32935 2009-06-18  Bruno Haible  <bruno@clisp.org>
32936
32937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32938         in one place.
32939         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32940         be replaced anyway.
32941
32942 2009-06-18  Eric Blake  <ebb9@byu.net>
32943
32944         hash: check for resize before insertion
32945         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32946         threshold before insertion, so that a pathological hash_rehash
32947         that fills every bucket can still trigger another rehash.
32948
32949 2009-06-18  Jim Meyering  <meyering@redhat.com>
32950
32951         hash-tests: add a loop around the small tests
32952         * tests/test-hash.c (main): Repeat small tests with selected
32953         small initial table sizes.
32954
32955 2009-06-17  Eric Blake  <ebb9@byu.net>
32956
32957         hash: minor cleanups
32958         * lib/hash.h (hash_entry): Make opaque, by moving...
32959         * lib/hash.c (hash_entry): ...here.
32960         (hash_insert): Clarify restrictions on what can be inserted.
32961         (hash_get_next): Clarify when it is safe to remove an element
32962         during traversal.
32963         (check_tuning): Skip verification when tuning is known safe.
32964         (hash_initialize): Clarify restrictions on tuning.
32965
32966 2009-06-17  Jim Meyering  <jim@meyering.net>
32967         and Eric Blake  <ebb9@byu.net>
32968
32969         hash-tests: new module
32970         * modules/hash-tests: New file.
32971         * tests/test-hash.c: New file.
32972
32973 2009-06-17  Eric Blake  <ebb9@byu.net>
32974
32975         strstr-simple: document new module
32976         * MODULES.html.sh: Document new module.
32977
32978         strstr, strcasestr: replace on platforms with broken memchr
32979         * modules/strstr: Split into...
32980         * modules/strstr-simple: ...new module that does not care about
32981         performance, but does care about glibc bug.
32982         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32983         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32984         if platform memchr is broken, per Debian bug 521737.
32985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32986         memchr.
32987         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32988         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32989         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32990         * modules/mountlist (Depends-on): Add strstr-simple.
32991         * modules/gen-uni-tables (Depends-on): Likewise.
32992         * modules/argz (Depends-on): Add strstr.
32993
32994 2009-06-17  Bruno Haible  <bruno@clisp.org>
32995
32996         * modules/posix_spawn-internal (Depends-on): Add errno.
32997
32998 2009-06-17  Bruno Haible  <bruno@clisp.org>
32999
33000         Define missing ESTALE on Interix 3.5.
33001         * lib/errno.in.h (ESTALE): Assign a value if missing.
33002         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33004         missing.
33005         * doc/posix-headers/errno.texi: Mention the Interix bug.
33006         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33007
33008 2009-06-15  Eric Blake  <ebb9@byu.net>
33009
33010         memchr, memchr2: add valgrind exception
33011         * lib/memchr.valgrind: New file.
33012         * lib/memchr2.valgrind: New file.
33013         * modules/memchr (Files): Distribute valgrind file.
33014         * modules/memchr2 (Files): Likewise.
33015
33016         docs: memchr is no longer obsolete
33017         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33018         * lib/string.in.h (memchr): Simplify logic.
33019
33020 2009-06-14  Jim Meyering  <meyering@redhat.com>
33021
33022         link-follow: fix the "checking..." message to not mention trailing slash
33023         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33024         never considered trailing slashes.
33025
33026 2009-06-14  Bruno Haible  <bruno@clisp.org>
33027
33028         * m4/memchr.m4: Mention also the bug on IA-64.
33029         * doc/posix-functions/memchr.texi: Likewise.
33030
33031 2009-06-12  Eric Blake  <ebb9@byu.net>
33032
33033         memchr: detect broken x86_64 and alpha implementations
33034         * modules/memchr-tests (Depends-on): Move mmap detection...
33035         * modules/memchr (Depends-on): ...here.
33036         (configure.ac): Set indicator.
33037         * lib/string.in.h (memchr): Declare replacement.
33038         * modules/string (Makefile.am): Trigger replacement.
33039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33040         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33041         bugs.
33042         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33043         * modules/getpagesize (License): Relax license.
33044
33045 2009-06-11  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/idpriv.h: Add more references.
33048
33049 2009-06-08  Bruno Haible  <bruno@clisp.org>
33050
33051         Tests for module 'idpriv-droptemp'.
33052         * modules/idpriv-droptemp-tests: New file.
33053         * tests/test-idpriv-droptemp.sh: New file.
33054         * tests/test-idpriv-droptemp.su.sh: New file.
33055         * tests/test-idpriv-droptemp.c: New file.
33056
33057         New module 'idpriv-droptemp'.
33058         * lib/idpriv-droptemp.c: New file.
33059         * modules/idpriv-droptemp: New file.
33060
33061 2009-06-08  Bruno Haible  <bruno@clisp.org>
33062
33063         Tests for module 'idpriv-drop'.
33064         * modules/idpriv-drop-tests: New file.
33065         * tests/test-idpriv-drop.sh: New file.
33066         * tests/test-idpriv-drop.su.sh: New file.
33067         * tests/test-idpriv-drop.c: New file.
33068
33069         New module 'idpriv-drop'.
33070         * lib/idpriv.h: New file.
33071         * lib-idpriv-drop.c: New file.
33072         * m4/idpriv.m4: New file.
33073         * modules/idpriv-drop: New file.
33074
33075 2009-06-08  Bruno Haible  <bruno@clisp.org>
33076
33077         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33078         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33079         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33080         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33081         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33082         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33083         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33084
33085 2009-06-08  Eric Blake  <ebb9@byu.net>
33086
33087         test-strstr: use memory fence, when possible
33088         * tests/test-strstr.c (main): Use memory fence, in order to be
33089         more likely to trigger Debian bug 521737.
33090         * modules/strstr-tests (Files): Pull in additional files.
33091
33092         memchr: no longer obsolete, for wider field testing
33093         * modules/memchr (Status, Notice): Delete, this module is no
33094         longer obsolete.
33095         * modules/vasnprintf (Depends-on): Add memchr.
33096
33097 2009-06-07  Jim Meyering  <meyering@redhat.com>
33098
33099         hash: declare some functions with the warn_unused_result attribute
33100         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33101
33102 2009-06-07  Bruno Haible  <bruno@clisp.org>
33103
33104         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33105         Reported by Eric Blake.
33106
33107 2009-06-06  Eric Blake  <ebb9@byu.net>
33108
33109         test-alignof: fix typo with long double
33110         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33111         compiler error.
33112
33113 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33114
33115         Escape non-texinfo { and }s.
33116         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33117         markup error.
33118
33119 2009-06-04  Jim Meyering  <meyering@redhat.com>
33120
33121         gitlog-to-changelog: don't infloop on an empty commit log
33122         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33123         Reported by Boris Petersen <transacid@centerim.org>.
33124
33125 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33126
33127         version-etc: extend for packagers
33128         Add three new configure options, intended for packagers:
33129           --with-packager="packager name"
33130           --with-packager-version="packager-specific version"
33131           --with-packager-bug-reports="packager bug reporting"
33132         An example with coreutils:
33133           $ ./configure \
33134             --with-packager=Gentoo \
33135             --with-packager-bug-report=http://bugs.gentoo.org/ \
33136             --with-packager-version="patchset 1.6"
33137           $ ./src/ls --version | head -n2
33138           ls (GNU coreutils) 7.1-dirty
33139           Packaged by Gentoo (patchset 1.6)
33140         Note that the bug reporting info via --help doesn't show up because
33141         coreutils uses its own custom emit_bug_reporting_address() implementation
33142         in src/system.h.  If it didn't, it'd look like:
33143           $ ./src/ls --help | tail -n4
33144           Report bugs to <bug-coreutils@gnu.org>.
33145           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33146           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33147           General help using GNU software: <http://www.gnu.org/gethelp/>.
33148         * lib/version-etc.c: Print new information, if provided.
33149         * m4/version-etc.m4: New file.
33150         * modules/version-etc (Files): Add m4/version-etc.m4.
33151         (configure.ac): Add gl_VERSION_ETC.
33152
33153 2009-05-31  Bruno Haible  <bruno@clisp.org>
33154
33155         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33156         and 'int64_t'.
33157         * modules/alignof-tests (Dependencies): Add stdint.
33158         Reported by Eric Blake.
33159
33160 2009-05-31  Bruno Haible  <bruno@clisp.org>
33161
33162         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33163         restriction due to compiler bugs.
33164         Reported by Eric Blake.
33165
33166 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33167             Bruno Haible  <bruno@clisp.org>
33168
33169         Fix test-alignof failure.
33170         * lib/alignof.h (alignof_slot): New macro.
33171         (alignof_type): New macro, with the same semantics as the previous
33172         'alignof'.
33173         (alignof): Alias to alignof_slot.
33174         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33175         check that the results are usable as constant expressions.
33176
33177 2009-05-31  Bruno Haible  <bruno@clisp.org>
33178
33179         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33180         * tests/test-memchr.c (main): Check that memchr does not read past the
33181         first occurrence of the byte.
33182         * tests/test-strstr.c (main): Update comment.
33183         Suggested by Eric Blake.
33184
33185 2009-05-30  Bruno Haible  <bruno@clisp.org>
33186
33187         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33188         detail how to use dumpbin.
33189         Reported by David Byron <dbyron@dbyron.com>.
33190
33191 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33192
33193         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33194
33195 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33196
33197         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33198
33199 2009-05-28  Bruno Haible  <bruno@clisp.org>
33200
33201         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33202         build-aux/ files.
33203
33204 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33205
33206         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33207
33208 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33209
33210         * gnulib-tool (sed_transform_main_lib_file)
33211         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33212         regexps.
33213
33214 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33215
33216         * tests/test-strstr.c: Add another self-test.
33217         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33218         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33219
33220 2009-05-23  Bruno Haible  <bruno@clisp.org>
33221
33222         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33223         change.
33224
33225 2009-05-21  Bruno Haible  <bruno@clisp.org>
33226
33227         Simplify use of mode_t varargs.
33228         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33229         uses 'mode_t' or 'int'.
33230         * lib/openat.c (openat): Likewise.
33231         * lib/open-safer.c (open_safer): Likewise.
33232         * m4/mode_t.m4: New file.
33233         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33234         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33235         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33236         * modules/open (Files): Add m4/mode_t.m4.
33237         * modules/openat (Files): Likewise.
33238         * modules/fcntl-safer (Files): Likewise.
33239         Suggested by Eric Blake.
33240
33241 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33242
33243         * doc/glibc-functions/fallocate.texi: New file.
33244         * doc/gnulib.texi: Include it.
33245
33246 2009-05-21  Eric Blake  <ebb9@byu.net>
33247             Bruno Haible  <bruno@clisp.org>
33248
33249         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33250         invocations.
33251         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33252
33253 2009-05-21  Eric Blake  <ebb9@byu.net>
33254             Bruno Haible  <bruno@clisp.org>
33255
33256         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33257         include_next. Fix of 2008-11-20 commit.
33258         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33259         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33260         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33261         NEXT_MATH_H.
33262         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33263         instead of NEXT_MATH_H.
33264
33265 2009-05-21  Bruno Haible  <bruno@clisp.org>
33266
33267         Avoid redefinition warnings for SIZE_MAX.
33268         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33269         Reported by Simon Josefsson.
33270
33271 2009-05-21  Bruno Haible  <bruno@clisp.org>
33272
33273         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33274         AC_CACHE_VAL.
33275
33276 2009-05-20  Bruno Haible  <bruno@clisp.org>
33277
33278         Make zeroptr.h work on mingw.
33279         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33280         mprotect.
33281         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33282         * modules/memchr2-tests (configure.ac): Likewise.
33283         * modules/memcmp-tests (configure.ac): Likewise.
33284         * modules/memmem-tests (configure.ac): Likewise.
33285         * modules/memrchr-tests (configure.ac): Likewise.
33286         Reported by Simon Josefsson.
33287
33288 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33289
33290         * tests/test-glob.c: Include string.h for strcmp prototype.
33291
33292 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33293
33294         * modules/getdelim (Depends-on): Add explicit stdint, although it
33295         was implicitly already pulled in via realloc-posix.
33296         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33297
33298 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33299
33300         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33301         G. Christensen" <tgc@jupiterrise.com>.
33302         * m4/sys_socket_h.m4: Check for sa_family_t.
33303         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33304         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33305         * tests/test-sys_socket.c: Check that sa_family_t works.
33306
33307 2009-05-18  Eric Blake  <ebb9@byu.net>
33308
33309         maint.mk: allow gnulib_dir in VPATH build
33310         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33311
33312 2009-05-15  Jim Meyering  <meyering@redhat.com>
33313
33314         maint.mk: Give gnulib_dir a default definition.
33315         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33316         Thus, most packages no longer need to specify this variable in cfg.mk
33317
33318 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33319
33320         rename.m4: fix typos that would make non-mingw cross-configure fail
33321         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33322
33323 2009-05-13  Eric Blake  <ebb9@byu.net>
33324
33325         mmap-anon: avoid out-of-order autoconf expansion
33326         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33327         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33328         * modules/memchr-tests (Depends-on): Add extensions.
33329         * modules/memchr2-tests (Depends-on): Add extensions.
33330         * modules/memcmp-tests (Depends-on): Add extensions.
33331         * modules/memmem-tests (Depends-on): Add extensions.
33332         * modules/memrchr-tests (Depends-on): Add extensions.
33333
33334 2009-05-13  Bruno Haible  <bruno@clisp.org>
33335
33336         Make some tests ISO C 99 compliant.
33337         * tests/zerosize-ptr.h: New file.
33338         * tests/test-memchr.c: Include zerosize-ptr.h.
33339         (main): Use a zero-size object pointer instead of NULL.
33340         * tests/test-memchr2.c: Include zerosize-ptr.h.
33341         (main): Use a zero-size object pointer instead of NULL.
33342         * tests/test-memcmp.c: Include zerosize-ptr.h.
33343         (main): Use a zero-size object pointer instead of NULL.
33344         * tests/test-memmem.c: Include zerosize-ptr.h.
33345         (main): Use a zero-size object pointer instead of NULL.
33346         * tests/test-memrchr.c: Include zerosize-ptr.h.
33347         (main): Use a zero-size object pointer instead of NULL.
33348         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33349         m4/mmap-anon.m4.
33350         (Depends-on): Add getpagesize.
33351         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33352         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33353         m4/mmap-anon.m4.
33354         (Depends-on): Add getpagesize.
33355         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33356         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33357         m4/mmap-anon.m4.
33358         (Depends-on): Add getpagesize.
33359         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33360         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33361         m4/mmap-anon.m4.
33362         (Depends-on): Add getpagesize.
33363         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33364         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33365         m4/mmap-anon.m4.
33366         (Depends-on): Add getpagesize.
33367         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33368
33369 2009-05-12  Bruno Haible  <bruno@clisp.org>
33370
33371         Tests for module 'alignof'.
33372         * modules/alignof-tests: New file.
33373         * tests/test-alignof.c: New file.
33374
33375 2009-05-12  Bruno Haible  <bruno@clisp.org>
33376
33377         Fix alignof macro.
33378         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33379         vendor compilers that are always correct.
33380
33381 2009-05-12  Bruno Haible  <bruno@clisp.org>
33382
33383         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33384         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33385         not whether its fully works.
33386
33387 2009-05-12  Bruno Haible  <bruno@clisp.org>
33388
33389         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33390
33391 2009-05-12  Jim Meyering  <meyering@redhat.com>
33392
33393         * top/maint.mk: Adjust backslash alignment.
33394
33395 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33396
33397         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33398
33399 2009-05-11  Eric Blake  <ebb9@byu.net>
33400
33401         argp: avoid undefined behavior
33402         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33403         macros.
33404
33405 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33406
33407         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33408         user.name to prevent git commit from complaining.
33409
33410 2009-05-10  Bruno Haible  <bruno@clisp.org>
33411
33412         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33413         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33414         it rewrites every file name only once.
33415         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33416
33417 2009-05-08  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33420         instead of 'max'.
33421
33422 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33423
33424         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33425         sockaddr_storage test.
33426
33427 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33428
33429         * modules/sys_socket (Makefile.am): Substitute
33430         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33431         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33432         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33433         * tests/test-sys_socket.c: Check sockaddr_storage.
33434
33435 2009-05-08  Bruno Haible  <bruno@clisp.org>
33436
33437         New module 'alignof'.
33438         * lib/alignof.h: New file.
33439         * modules/alignof: New file.
33440
33441 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33442             Bruno Haible  <bruno@clisp.org>
33443
33444         Fix test-file-has-acl on FreeBSD.
33445         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33446         mask is implicitly added.
33447         * tests/test-file-has-acl.c: Include <signal.h>.
33448         (main): Terminate the test after 5 seconds.
33449         * modules/acl-tests (configure.ac): Check for alarm function.
33450
33451 2009-05-04  Bruno Haible  <bruno@clisp.org>
33452
33453         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33455         * modules/errno (configure.ac): Drop AC_REQUIRE.
33456         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33457         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33458
33459 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33460
33461         * modules/glob-tests: New module.
33462         * tests/test-glob.c: Add.
33463
33464 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33465
33466         * modules/fnmatch-tests: New module.
33467         * tests/test-fnmatch.c: Add.
33468
33469 2009-05-04  Eric Blake  <ebb9@byu.net>
33470
33471         maint: make the new no-submodule-changes rule VPATH-safe
33472         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33473
33474 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33475             Bruno Haible  <bruno@clisp.org>
33476
33477         acl: Fix infinite loop on FreeBSD.
33478         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33479         of return value from acl_get_entry.
33480         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33481         Likewise.
33482
33483 2009-05-03  Bruno Haible  <bruno@clisp.org>
33484
33485         * lib/acl-internal.h (acl_entries): Clarify return value.
33486         * lib/acl_entries.c (acl_entries): Likewise.
33487
33488 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33489
33490         Bug fix in acl module.
33491         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33492
33493 2009-05-03  Bruno Haible  <bruno@clisp.org>
33494
33495         Create gperf-generated file in the source dir, not in the build dir.
33496         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33497         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33498         * modules/unicase/locale-language (unicase/locale-languages.h):
33499         Likewise.
33500         * modules/unicase/special-casing (unicase/special-casing-table.h):
33501         Likewise.
33502         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33503         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33504         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33505         Reported by Ralf Wildenhues.
33506
33507 2009-05-03  Bruno Haible  <bruno@clisp.org>
33508
33509         * modules/fnmatch (Description, configure.ac): Taken from
33510         fnmatch-posix.
33511         * modules/fnmatch-posix: Turn into a symbolic reference to the
33512         'fnmatch' module, and deprecate.
33513         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33514
33515 2009-05-03  Bruno Haible  <bruno@clisp.org>
33516
33517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33518         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33519         Reported by Ralf Wildenhues.
33520
33521 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33522
33523         * m4/fnmatch.m4: Fix fnmatch re-define.
33524
33525 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33526
33527         priv-set: new module and tests; adapt write-any-file
33528         * lib/priv-set.c: New file.
33529         * lib/priv-set.h: New file.
33530         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33531         * lib/write-any-file.c: Simplify by using priv-set module.
33532         * m4/priv-set.m4: New file.
33533         * modules/priv-set: New file.
33534         * modules/unlinkdir: Add dependency on priv-set module.
33535         * modules/write-any-file: Likewise.
33536
33537         Tests for module 'priv-set'.
33538         * modules/priv-set-tests: New file.
33539         * tests/test-priv-set.c: New file.
33540
33541 2009-05-03  Jim Meyering  <meyering@redhat.com>
33542             Bruno Haible  <bruno@clisp.org>
33543
33544         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33545         use the converted UTF-8 variant of the name instead.
33546
33547 2009-05-03  Jim Meyering  <meyering@redhat.com>
33548
33549         tests: tighten some getdate tests
33550         * tests/test-getdate.c (main): Tighten tests: require equality,
33551         not just greater than.  Set TZ envvar to UTC0.
33552
33553 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33554
33555         getdate: correctly interpret "next monday" when run on a Monday
33556         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33557         that e.g., "next tues" (when run on a tuesday) results in a date
33558         that is one week in the future, and not today's date.
33559         I.e., add a week when the wday is the same as the current one.
33560         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33561         and earlier by Martin Bernreuther and Jan Minář.
33562         * tests/test-getdate.c (main): Check that "next DAY" is always in
33563         the future and that "last DAY" is always in the past.
33564
33565 2009-05-02  Jim Meyering  <meyering@redhat.com>
33566
33567         build: ensure that a release build fails when a submodule is unclean
33568         * top/maint.mk (no-submodule-changes): New rule.
33569         (alpha beta major): Depend on it.
33570
33571 2009-05-02  Bruno Haible  <bruno@clisp.org>
33572
33573         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33574         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33575         shell variable gl_fnmatch_required to detect which variant is
33576         requested.
33577         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33578         gl_FUNC_FNMATCH_POSIX.
33579         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33580         exclude fnmatch-posix.
33581
33582 2009-05-02  Bruno Haible  <bruno@clisp.org>
33583
33584         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33585         * modules/mbsrtowcs (License): Change to LGPLv2+.
33586         * modules/strnlen1 (License): Likewise.
33587         Reported by Simon Josefsson.
33588
33589 2009-05-02  Bruno Haible  <bruno@clisp.org>
33590
33591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33592         "cross".
33593         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33594         gnulib-tool was called with option --source-base=lib.
33595
33596 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33597
33598         Use automake *-local hooks without commands, for extensibility.
33599         * modules/localcharset (Makefile.am): Rename install-exec-local
33600         rule to install-exec-localcharset, and make it a prerequisite of
33601         install-exec-local.  Likewise, rename the uninstall-local rule to
33602         uninstall-localcharset, and make it a prerequisite of the former.
33603
33604 2009-05-01  Bruno Haible  <bruno@clisp.org>
33605
33606         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33607         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33608         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33610         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33611         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33612         m4/locale-zh.m4, m4/codeset.m4.
33613
33614         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33615         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33616         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33617         m4/locale-zh.m4.
33618
33619         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33620         REPLACE_WCRTOMB if mbstate_t must be replaced.
33621         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33622         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33623
33624 2009-05-01  Bruno Haible  <bruno@clisp.org>
33625
33626         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33627         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33628         dngettext, dcngettext, textdomain, bindtextdomain,
33629         bind_textdomain_codeset): Undefine before redefining.
33630
33631 2009-04-30  Bruno Haible  <bruno@clisp.org>
33632
33633         Fix bug introduced on 2009-04-25.
33634         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33635         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33636         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33637         is defined.
33638         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33639         is defined.
33640         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33641         is defined.
33642         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33643
33644 2009-04-28  Bruno Haible  <bruno@clisp.org>
33645
33646         Comment tweaks.
33647         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33648         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33649         * lib/unicase.h (u*_casexfrm): Likewise.
33650         Reported by Paolo Bonzini.
33651
33652 2009-04-28  Bruno Haible  <bruno@clisp.org>
33653
33654         Fix a compilation error.
33655         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33656         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33657         Reported by Jim Meyering.
33658
33659 2009-04-27  Bruno Haible  <bruno@clisp.org>
33660
33661         New module 'libunistring'.
33662         * modules/libunistring: New file.
33663         * m4/libunistring.m4: New file.
33664         * MODULES.html.sh (Unicode string functions): Add it.
33665
33666 2009-04-27  Eric Blake  <ebb9@byu.net>
33667
33668         maint.mk: allow package-specific header to provide <config.h>
33669         * top/maint.mk (sc_require_config_h): New variable.
33670         (sc_require_config_h, sc_require_config_h_first): Use it.
33671
33672 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33673
33674         * top/maint.mk (sc_avoid_if_before_free): Except
33675         useless-if-before-free script.
33676
33677 2009-04-27  Eric Blake  <ebb9@byu.net>
33678
33679         maintainer-makefile: depend on all required helper scripts
33680         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33681         useless-if-before-free.
33682         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33683         version, rather than assuming gnulib checkout is available.
33684         Reported by Simen Josefsson.
33685
33686 2009-04-26  Bruno Haible  <bruno@clisp.org>
33687
33688         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33689         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33690         "../" or "..".
33691
33692 2009-04-26  Bruno Haible  <bruno@clisp.org>
33693
33694         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33695         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33696         AC_LIB_HAVE_LINKFLAGS.
33697
33698 2009-04-26  Bruno Haible  <bruno@clisp.org>
33699
33700         Simplify calling convention of u*_conv_from_encoding.
33701         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33702         u32_conv_from_encoding): Expect a resultbuf argument and return the
33703         result directly as a pointer.
33704         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33705         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33706         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33707         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33708         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33709         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33710         Update.
33711         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33712         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33713         * lib/vasnprintf.c (VASNPRINTF): Update.
33714         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33715         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33716         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33717         * NEWS: Mention the change.
33718
33719 2009-04-26  Bruno Haible  <bruno@clisp.org>
33720
33721         Simplify calling convention of u*_conv_to_encoding.
33722         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33723         u32_conv_to_encoding): Expect a resultbuf argument and return the
33724         result directly as a pointer.
33725         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33726         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33727         freeing scaled_offsets if mem_iconveha failed.
33728         * lib/unicase/u-casexfrm.h (FUNC): Update.
33729         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33730         * lib/vasnprintf.c (VASNPRINTF): Update.
33731         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33732         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33733         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33734         * NEWS: Mention the change.
33735
33736 2009-04-26  Bruno Haible  <bruno@clisp.org>
33737
33738         Avoid test failures on AIX and OSF/1.
33739         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33740         malloc(0).
33741         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33742         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33743         Likewise.
33744         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33745         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33746         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33747         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33748         * doc/posix-functions/malloc.texi: Document the portability problem
33749         related to malloc(0).
33750
33751 2009-04-26  Bruno Haible  <bruno@clisp.org>
33752
33753         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33754         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33755         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33756
33757 2009-04-25  Bruno Haible  <bruno@clisp.org>
33758
33759         Avoid link error when creating a namespace clean library.
33760         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33761         as macro with arguments if already defined as an alias.
33762         * lib/signbitf.c (gl_signbitf): Don't undefine.
33763         * lib/signbitd.c (gl_signbitd): Don't undefine.
33764         * lib/signbitl.c (gl_signbitl): Don't undefine.
33765
33766 2009-04-25  Jim Meyering  <meyering@redhat.com>
33767
33768         vc-list-files: fix another quoting bug
33769         * build-aux/vc-list-files: Avoid sed backslash expansion
33770         of pathological directory names.
33771
33772 2009-04-25  Eric Blake  <ebb9@byu.net>
33773
33774         vc-list-files: fix shell quoting error
33775         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33776         timestamp.
33777
33778 2009-04-25  Jim Meyering  <meyering@redhat.com>
33779
33780         vc-list-files: restore lost functionality with subdir argument
33781         * build-aux/vc-list-files: When given a non-"." sub-directory
33782         argument, substitute the $dir/ prefix back onto each resulting name.
33783         Otherwise, coreutils' root_tests check would fail.
33784
33785 2009-04-24  Eric Blake  <ebb9@byu.net>
33786
33787         vc-list-files: ignore git symlinks
33788         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33789         than ls-files, to ignore git symlinks.
33790
33791         maint.mk: import improvements from m4
33792         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33793         (move_if_change): Delete unused macro.
33794         (news-date-check, vc-diff-check): Support VPATH builds.
33795         (announcement): Likewise.  Split --bootstrap-tools list...
33796         (boostrap-tools): ...into separate list, which can be overridden
33797         in cfg.mk.
33798         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33799         requiring dependency on useless-if-before-free module.
33800         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33801         Support VPATH builds.
33802
33803 2009-04-24  Jim Meyering  <meyering@redhat.com>
33804
33805         maint.mk: remove coreutils-specific rules and variables
33806         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33807         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33808         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33809
33810         maint.mk: remove obsolete rule
33811         * top/maint.mk (rel-check): Remove rule.
33812         (WGET, WGETFLAGS): Remove now-unused variables.
33813
33814 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33815
33816         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33817         consistency.
33818
33819         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33820         '$(PATH_SEPARATOR)' instead of ':'.
33821
33822 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33823
33824         * lib/getopt1.c (main): Use 'const' for static array.
33825
33826 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33827
33828         * top/maint.mk: Sync with coreutils.
33829         * NEWS: Explain incompatibilities.
33830
33831 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33832             Bruno Haible  <bruno@clisp.org>
33833
33834         Fix cross-compilation results.
33835         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33836         statement, as third argument of AC_TRY_RUN.
33837         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33838         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33839         Likewise.
33840         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33841         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33842         Likewise.
33843         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33844         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33845         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33846
33847 2009-04-20  Bruno Haible  <bruno@clisp.org>
33848
33849         Avoid test failure on mingw.
33850         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33851
33852 2009-04-20  Bruno Haible  <bruno@clisp.org>
33853
33854         Avoid compilation error on mingw.
33855         * modules/localename-tests (Depends-on): Add locale.
33856
33857 2009-04-19  Bruno Haible  <bruno@clisp.org>
33858
33859         Support for building a shared library on Windows platforms.
33860         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33861         (main): Test the presence of UNINORM_NFC here.
33862         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33863         (main): Test the presence of UNINORM_NFD here.
33864         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33865         (main): Test the presence of UNINORM_NFKC here.
33866         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33867         (main): Test the presence of UNINORM_NFKD here.
33868
33869 2009-04-19  Bruno Haible  <bruno@clisp.org>
33870
33871         Avoid a compiler warning.
33872         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33873         Change type of variable 'sequence'.
33874
33875 2009-04-19  Bruno Haible  <bruno@clisp.org>
33876
33877         * modules/configmake (Makefile.am): When the contents of configmake.h
33878         does not change, arrange to preserve its modification time.
33879
33880 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33881
33882         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33883         gettext domain.
33884
33885 2009-04-16  Jim Meyering  <meyering@redhat.com>
33886
33887         useless-if-before-free: improve conversion code
33888         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33889         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33890
33891 2009-04-14  Bruno Haible  <bruno@clisp.org>
33892
33893         * modules/fcntl (Depends-on): Add extensions.
33894         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33895
33896 2009-04-12  Ben Pfaff  <blp@gnu.org>
33897
33898         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33899         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33900
33901 2009-03-20  Ben Pfaff  <blp@gnu.org>
33902
33903         Make rename replace existing destinations on Windows.
33904         * m4/rename.m4: Add test for Mingw.
33905         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33906         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33907         * doc/posix-functions/rename.texi: Document.
33908
33909 2009-04-10  Bruno Haible  <bruno@clisp.org>
33910
33911         New include file "iconveh.h".
33912         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33913         * lib/striconveh.h: Include it.
33914         (enum iconv_ilseq_handler): Remove definition.
33915         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33916         striconveh.h.
33917         * lib/striconveha.c: Include striconveh.h.
33918         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33919         * modules/striconveh (Files): Add lib/iconveh.h.
33920         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33921         lib/striconveh.h.
33922
33923 2009-04-10  Bruno Haible  <bruno@clisp.org>
33924
33925         * lib/uniconv.h: Update comment.
33926
33927 2009-04-10  Bruno Haible  <bruno@clisp.org>
33928
33929         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33930         always.
33931         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33932         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33933         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33934         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33935         "unistring-notinline.h", so that the function gets defined always.
33936         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33937         * lib/unistr/u8-uctomb.c: Likewise.
33938         * lib/unistr/u16-mbtouc.c: Likewise.
33939         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33940         * lib/unistr/u16-uctomb.c: Likewise.
33941         * lib/unistr/u32-mbtouc.c: Likewise.
33942         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33943         * lib/unistr/u32-uctomb.c: Likewise.
33944
33945 2009-04-10  Bruno Haible  <bruno@clisp.org>
33946
33947         Mark 'utime' obsolete.
33948         * modules/utime (Status, Notice): New sections.
33949         Suggested by Jim Meyering.
33950
33951         Fix cross-compile guess for utime test.
33952         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33953         autoconf.
33954         * doc/posix-functions/utime.texi: Give more precisions.
33955         Reported by Jan <ipif@ymail.com>.
33956
33957 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33958
33959         filevercmp: correct today's change
33960         * lib/filevercmp.c: Also handle coreutils' test inputs.
33961         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33962
33963         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33964         for reporting it.
33965         * lib/filevercmp.c: Special handle for "", "." and "..".
33966         * tests/test-filevercmp.c: Enlarge the set suite.
33967
33968 2009-04-07  Jim Meyering  <meyering@redhat.com>
33969
33970         useless-if-before-free: show how to remove braced useless free, too
33971         * build-aux/useless-if-before-free: still only in a comment, though.
33972
33973 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33974
33975         maint.mk: import changes to syntax-check macros from coreutils
33976         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33977         Use them in the relevant macros.
33978
33979 2009-04-06  Bruno Haible  <bruno@clisp.org>
33980
33981         Fix unportable use of bit-fields.
33982         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33983         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33984         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33985
33986 2009-04-06  Bruno Haible  <bruno@clisp.org>
33987
33988         Avoid test failures on AIX and OSF/1.
33989         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33990         that malloc(0) = NULL.
33991         * tests/unicase/test-u8-tolower.c (check): Likewise.
33992         * tests/unicase/test-u8-totitle.c (check): Likewise.
33993         * tests/unicase/test-u8-toupper.c (check): Likewise.
33994         * tests/unicase/test-u16-casefold.c (check): Likewise.
33995         * tests/unicase/test-u16-tolower.c (check): Likewise.
33996         * tests/unicase/test-u16-totitle.c (check): Likewise.
33997         * tests/unicase/test-u16-toupper.c (check): Likewise.
33998         * tests/unicase/test-u32-casefold.c (check): Likewise.
33999         * tests/unicase/test-u32-tolower.c (check): Likewise.
34000         * tests/unicase/test-u32-totitle.c (check): Likewise.
34001         * tests/unicase/test-u32-toupper.c (check): Likewise.
34002         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34003         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34004         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34005         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34006         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34007         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34008         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34009         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34010         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34011         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34012         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34013         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34014
34015 2009-04-05  Bruno Haible  <bruno@clisp.org>
34016
34017         Work around an autoconf limitation.
34018         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34019         comment line if it would be longer than 3 KB.
34020
34021 2009-04-05  Bruno Haible  <bruno@clisp.org>
34022
34023         Avoid test failure with libiconv-1.13.
34024         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34025         of the expected test results.
34026
34027 2009-04-05  Bruno Haible  <bruno@clisp.org>
34028
34029         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34030         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34031         that it should be installed.
34032
34033 2009-04-05  Bruno Haible  <bruno@clisp.org>
34034
34035         * gnulib-tool: New option --copy-file.
34036         (func_usage): Document it.
34037         (func_dest_tmpfilename): Moved out of func_import.
34038         (func_add_file, func_update_file): New functions, extracted from
34039         func_import.
34040         (func_import): Update.
34041
34042 2009-04-05  Karl Berry  <karl@gnu.org>
34043
34044         * README: prominently mention gnulib-tool.
34045         Rearrange sections so getting the code is near the top.
34046
34047 2009-04-05  Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/unicase.h: Mention u*_cmp2.
34050         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34051         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34052         * lib/unicase/ulc-casecmp.c: Likewise.
34053         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34054         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34055         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34056         unistr/u8-cmp.
34057         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34058         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34059         unistr/u16-cmp.
34060         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34061         unistr/u32-cmp.
34062
34063         * lib/uninorm.h: Mention u*_cmp2.
34064         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34065         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34066         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34067         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34068         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34069         unistr/u8-cmp.
34070         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34071         unistr/u16-cmp.
34072         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34073         unistr/u32-cmp.
34074
34075         New module 'unistr/u32-cmp2'.
34076         * lib/unistr/u32-cmp2.c: New file.
34077         * modules/unistr/u32-cmp2: New file.
34078
34079         New module 'unistr/u16-cmp2'.
34080         * lib/unistr/u16-cmp2.c: New file.
34081         * modules/unistr/u16-cmp2: New file.
34082
34083         New module 'unistr/u8-cmp2'.
34084         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34085         * lib/unistr/u8-cmp2.c: New file.
34086         * lib/unistr/u-cmp2.h: New file.
34087         * modules/unistr/u8-cmp2: New file.
34088
34089 2009-04-05  Bruno Haible  <bruno@clisp.org>
34090
34091         * lib/unictype.h (uc_property_is_valid): New macro.
34092         * tests/unictype/test-pr_byname.c (main): Use it.
34093
34094         * lib/unistr.h: Doc fixes.
34095         * lib/uniconv.h: Doc fixes.
34096         * lib/unictype.h: Doc fixes.
34097
34098 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34099
34100         Port coreutils 7.2 to Solaris 8.
34101
34102         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34103         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34104         for Solaris 8.  This is a bit of a hack, as it means it's the
34105         caller's responsibility to add -lnsl if needed, but most likely it
34106         won't be needed since only getaddrinfo uses this and getaddrinfo
34107         isn't needed on Solaris 8.
34108
34109         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34110         problem to Solaris 8 encountered with coreutils 7.2, which
34111         resulted in a message "fnmatch.c:292: warning: passing argument 4
34112         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34113         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34114
34115 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34116
34117         * m4/ld-version-script.m4: Add FIXME comment.
34118
34119 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34120
34121         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34122         SOVERSION variable.
34123
34124 2009-04-02  Bruno Haible  <bruno@clisp.org>
34125
34126         * Makefile (info, html, dvi, pdf): Combine the rules.
34127         Suggested by Jim Meyering.
34128
34129 2009-04-01  Bruno Haible  <bruno@clisp.org>
34130
34131         * Makefile (info, html, dvi, pdf): New targets.
34132         Reported by Reuben Thomas <rrt@sc3d.org>.
34133
34134 2009-04-01  Bruno Haible  <bruno@clisp.org>
34135
34136         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34137         can be put into PATH.
34138         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34139
34140 2009-04-01  Bruno Haible  <bruno@clisp.org>
34141
34142         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34143
34144 2009-04-01  Bruno Haible  <bruno@clisp.org>
34145
34146         Rename module 'visibility'.
34147         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34148         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34149         * doc/gnulib.texi: Update.
34150         * MODULES.html.sh (Misc): Update.
34151         * NEWS: Mention the change.
34152
34153 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34154
34155         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34156         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34157         Eric Blake <ebb9@byu.net> for review.
34158         * MODULES.html.sh: Add lib-msvc-compat.
34159         * doc/gnulib.texi: Link to new section.
34160         * m4/ld-output-def.m4: New file.
34161         * doc/ld-output-def.texi: New file.
34162
34163 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34164
34165         Rename ld-version-script to lib-symbol-versions.  Suggested by
34166         Bruno Haible <bruno@clisp.org>.
34167         * modules/ld-version-script: Renamed to lib-symbol-versions.
34168         * doc/ld-version-script.texi: Fix module name.
34169         * MODULES.html.sh: Add lib-symbol-versions.
34170
34171 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34172
34173         * modules/u64-tests: New file.
34174         * tests/test-u64.c: New file.
34175
34176 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34177
34178         * MODULES.html.sh: Mention u64.
34179         * modules/u64: New module.
34180         * modules/crypto/sha512: Depend on u64 module instead of providing
34181         u64.h.
34182
34183 2009-03-27  Eric Blake  <ebb9@byu.net>
34184
34185         test-strerror: make debugging EAI_SYSTEM easier
34186         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34187         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34188         failure was EAI_SYSTEM.
34189
34190 2009-03-25  Bruno Haible  <bruno@clisp.org>
34191
34192         Fix a problem with --enable-relocatable on Solaris 7.
34193         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34194         since 2008-02-24.
34195
34196 2009-03-25  Eric Blake  <ebb9@byu.net>
34197
34198         test-sockets: avoid gcc warning
34199         * tests/test-sockets.c (main): Silence compiler warning.
34200
34201 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34202
34203         New modules nproc, pthread, contributed by Glen Lenker.
34204
34205         * MODULES.html.sh: Add pthread, nproc.
34206         * lib/nproc.c: New file.
34207         * lib/nproc.h: New file.
34208         * lib/pthread.in.h: New file.
34209         * m4/pthread.m4: New file.
34210         * modules/nproc: New file.
34211         * modules/pthread: New file.
34212
34213 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34214
34215         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34216         New variable.
34217
34218 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34219
34220         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34221         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34222         * tests/test-filevercmp.c: Add tests for backup suffixes.
34223
34224 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34225
34226         * modules/stdlib (Depends-on): Add stdint, needed when defining
34227         struct random_data on, for example, HP-UX 10.20.  Reported by
34228         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34229
34230 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34231
34232         * lib/readline.c (readline): Call fflush on stdout after printing
34233         prompt.
34234
34235 2009-03-20  Bruno Haible  <bruno@clisp.org>
34236
34237         Remove dependency from 'close' module to -lws2_32 on native Windows.
34238         * lib/close-hook.h: New file.
34239         * lib/close-hook.c: New file.
34240         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34241         w32sock.h.
34242         (_gl_close_fd_maybe_socket): Remove function.
34243         (rpl_close): Invoke execute_all_close_hooks instead of
34244         _gl_close_fd_maybe_socket.
34245         * lib/sockets.c: Include close-hook.h, w32sock.h.
34246         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34247         (close_sockets_hook): New variable.
34248         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34249         (gl_sockets_cleanup): Unregister it.
34250         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34251         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34252         * modules/close-hook: New file.
34253         * modules/close (Files): Remove lib/w32sock.h.
34254         (Depends-on): Add close-hook.
34255         (Link): Remove section.
34256         * modules/sockets (Files): Add lib/w32sock.h.
34257         (Depends-on): Add close-hook.
34258         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34259         invocation.
34260         * NEWS: Mention that LIB_CLOSE is gone.
34261
34262 2009-03-23  Eric Blake  <ebb9@byu.net>
34263
34264         signal-tests: test previous patch
34265         * tests/test-signal.c: New file.
34266         * modules/signal-tests: Likewise.
34267
34268         signal.h: always support 'volatile sig_atomic_t'
34269         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34270         (gl_SIGNAL_H_DEFAULTS): Add a default.
34271         * modules/signal (Makefile.am): Substitute if needed.
34272         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34273         users can blindly add volatile.
34274         * doc/posix-headers/signal.texi (signal.h): Document it.
34275         Reported by Matthew Woehlke.
34276
34277 2009-03-23  Jim Meyering  <meyering@redhat.com>
34278
34279         pathmax: PATH_MAX: use pathconf only when available
34280         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34281         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34282         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34283         This avoids a link failure in a PSP cross-compilation environment
34284         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34285
34286         * lib/vasnprintf.c (divide): Fix typo in comment.
34287
34288 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34289
34290         * gnulib-tool (func_filter_filelist): Fix comment.
34291
34292 2009-03-20  Bruno Haible  <bruno@clisp.org>
34293
34294         Make sockets.h self-contained.
34295         * lib/sockets.c: Include sockets.h first.
34296         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34297
34298 2009-03-19  Eric Blake  <ebb9@byu.net>
34299
34300         doc: mention more functions added in cygwin 1.7.0
34301         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34302         addition.
34303         * doc/posix-functions/log2f.texi: Likewise.
34304
34305 2009-03-19  Jim Meyering  <meyering@redhat.com>
34306
34307         fsusage: avoid syntax error due to statement-before-declaration
34308         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34309         after all declarations.  Reported by Matthew Woehlke in
34310         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34311
34312 2009-03-18  Eric Blake  <ebb9@byu.net>
34313
34314         build-aux/compile: sync from automake
34315         * build-aux/compile: New file, from automake.
34316         * config/srclist.txt: Mention build-aux/compile.
34317
34318 2009-03-17  Bruno Haible  <bruno@clisp.org>
34319
34320         * lib/git-merge-changelog.c: Fix typo in comment.
34321         Reported by Reuben Thomas <rrt@sc3d.org>.
34322
34323 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34324
34325         * m4/regex.m4: update and improve help for
34326         --without-included-regex.
34327
34328 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34329
34330         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34331         failure on missing include files.
34332
34333 2009-03-17  Eric Blake  <ebb9@byu.net>
34334
34335         doc: mention more functions added in cygwin 1.7.0
34336         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34337         addition.
34338         * doc/posix-functions/fwscanf.texi: Likewise.
34339         * doc/posix-functions/swprintf.texi: Likewise.
34340         * doc/posix-functions/swscanf.texi: Likewise.
34341         * doc/posix-functions/vfwprintf.texi: Likewise.
34342         * doc/posix-functions/vfwscanf.texi: Likewise.
34343         * doc/posix-functions/vswprintf.texi: Likewise.
34344         * doc/posix-functions/vswscanf.texi: Likewise.
34345         * doc/posix-functions/vwprintf.texi: Likewise.
34346         * doc/posix-functions/vwscanf.texi: Likewise.
34347         * doc/posix-functions/wcscasecmp.texi: Likewise.
34348         * doc/posix-functions/wcsdup.texi: Likewise.
34349         * doc/posix-functions/wcsftime.texi: Likewise.
34350         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34351         * doc/posix-functions/wprintf.texi: Likewise.
34352         * doc/posix-functions/wscanf.texi: Likewise.
34353         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34354
34355 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34356
34357         maint.mk: really add $(AM_MAKEFLAGS)
34358         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34359         was inadvertently omitted in the last commit.
34360         Spotted by Bruno Haible.
34361
34362         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34363         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34364         $(AM_MAKEFLAGS)' rather than plain `make'.
34365
34366         gnulib-tool: execute $MAKE not make
34367         * gnulib-tool: Default $MAKE to 'make'.
34368         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34369         than make.  Initialize $MAKE in the do-autobuild script.
34370
34371         gnulib-tool: use $MAKE not make in generated files
34372         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34373         make, in generated files.  Initialize $MAKE in the do-autobuild
34374         script.
34375
34376         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34377
34378         GNUmakefile: disable parallelism only for multiple, recursive targets
34379         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34380         additions in the Makefile.
34381         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34382         by Automake.
34383         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34384         are listed on the command line and at least one of them is
34385         listed in $(ALL_RECURSIVE_TARGETS).
34386
34387 2009-03-14  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34390         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34391         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34392         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34393         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34394         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34395         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34396         unistr/u8-uctomb.
34397         * modules/unistr/u8-strchr (Depends-on): Likewise.
34398         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34399         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34400         unistr/u16-uctomb.
34401         * modules/unistr/u16-strchr (Depends-on): Likewise.
34402         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34403
34404 2009-03-12  Bruno Haible  <bruno@clisp.org>
34405
34406         Work around select() bug on Interix 3.5.
34407         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34408         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34409         * m4/select.m4: New file.
34410         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34411         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34412         * modules/select (Files): Add m4/select.m4.
34413         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34414         * modules/nanosleep (Depends-on): Add select.
34415         * modules/poll (Depends-on): Likewise.
34416         * doc/posix-functions/select.texi: Mention the Interix bug.
34417         Reported by Markus Duft <mduft@gentoo.org>.
34418
34419         * lib/select.c: Renamed from lib/winsock-select.c.
34420         * modules/select (Files): Add lib/select.c, remove
34421         lib/winsock-select.c.
34422         (configure.ac): Update.
34423
34424 2009-03-12  Jim Meyering  <meyering@redhat.com>
34425
34426         avoid gcc warnings about unused macro definitions
34427         * lib/readtokens.c (STREQ): Remove unused definition.
34428         * lib/xmalloc.c (SIZE_MAX): Likewise.
34429         * lib/openat-die.c (N_): Likewise.
34430         * lib/mountlist.c (SIZE_MAX): Remove definition.
34431         Instead, include <stdint.h>.
34432         * lib/readutmp.c: Likewise.
34433         * modules/readutmp (Depends-on): Add stdint.
34434         * modules/mountlist (Depends-on): Add stdint.
34435         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34436
34437 2009-03-10  Bruno Haible  <bruno@clisp.org>
34438
34439         Tests for module 'mbmemcasecoll'.
34440         * modules/mbmemcasecoll-tests: New file.
34441         * tests/test-mbmemcasecoll1.sh: New file.
34442         * tests/test-mbmemcasecoll2.sh: New file.
34443         * tests/test-mbmemcasecoll3.sh: New file.
34444         * tests/test-mbmemcasecoll.c: New file.
34445
34446         New module 'mbmemcasecoll'.
34447         * lib/mbmemcasecoll.h: New file.
34448         * lib/mbmemcasecoll.c: New file.
34449         * modules/mbmemcasecoll: New file.
34450
34451         * tests/test-mbmemcasecmp.h: New file, extracted from
34452         tests/test-mbmemcasecmp.c.
34453         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34454         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34455         (main): Update.
34456         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34457
34458 2009-03-09  Bruno Haible  <bruno@clisp.org>
34459
34460         Tests for module 'mbmemcasecmp'.
34461         * modules/mbmemcasecmp-tests: New file.
34462         * tests/test-mbmemcasecmp1.sh: New file.
34463         * tests/test-mbmemcasecmp2.sh: New file.
34464         * tests/test-mbmemcasecmp3.sh: New file.
34465         * tests/test-mbmemcasecmp.c: New file.
34466
34467         New module 'mbmemcasecmp'.
34468         * lib/mbmemcasecmp.h: New file.
34469         * lib/mbmemcasecmp.c: New file.
34470         * modules/mbmemcasecmp: New file.
34471
34472 2009-03-09  Bruno Haible  <bruno@clisp.org>
34473
34474         Tests for module 'unicase/ulc-casecoll'.
34475         * modules/unicase/ulc-casecoll-tests: New file.
34476         * tests/unicase/test-ulc-casecoll1.sh: New file.
34477         * tests/unicase/test-ulc-casecoll2.sh: New file.
34478         * tests/unicase/test-ulc-casecoll.c: New file.
34479
34480         New module 'unicase/ulc-casecoll'.
34481         * lib/unicase.h (ulc_casecoll): New declaration.
34482         * lib/unicase/ulc-casecoll.c: New file.
34483         * modules/unicase/ulc-casecoll: New file.
34484
34485         New module 'unicase/ulc-casexfrm'.
34486         * lib/unicase.h (ulc_casexfrm): New declaration.
34487         * lib/unicase/ulc-casexfrm.c: New file.
34488         * modules/unicase/ulc-casexfrm: New file.
34489
34490 2009-03-09  Bruno Haible  <bruno@clisp.org>
34491
34492         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34493         invocations.
34494
34495         * m4/mbscasecmp.m4: Remove file.
34496         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34497         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34498
34499         * m4/mbscasestr.m4: Remove file.
34500         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34501         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34502
34503         * m4/mbschr.m4: Remove file.
34504         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34505         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34506
34507         * m4/mbscspn.m4: Remove file.
34508         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34509         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34510
34511         * m4/mbslen.m4: Remove file.
34512         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34513         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34514
34515         * m4/mbsncasecmp.m4: Remove file.
34516         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34517         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34518
34519         * m4/mbsnlen.m4: Remove file.
34520         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34521         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34522
34523         * m4/mbspbrk.m4: Remove file.
34524         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34525         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34526
34527         * m4/mbspcasecmp.m4: Remove file.
34528         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34529         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34530
34531         * m4/mbsrchr.m4: Remove file.
34532         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34533         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34534
34535         * m4/mbssep.m4: Remove file.
34536         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34537         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34538
34539         * m4/mbsspn.m4: Remove file.
34540         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34541         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34542
34543         * m4/mbsstr.m4: Remove file.
34544         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34545         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34546
34547         * m4/mbstok_r.m4: Remove file.
34548         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34549         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34550
34551         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34552
34553         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34554         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34555
34556         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34557
34558 2009-03-08  Bruno Haible  <bruno@clisp.org>
34559
34560         Tests for module 'unicase/ulc-casecmp'.
34561         * modules/unicase/ulc-casecmp-tests: New file.
34562         * tests/unicase/test-ulc-casecmp1.sh: New file.
34563         * tests/unicase/test-ulc-casecmp2.sh: New file.
34564         * tests/unicase/test-ulc-casecmp.c: New file.
34565
34566         New module 'unicase/ulc-casecmp'.
34567         * lib/unicase.h (ulc_casecmp): New declaration.
34568         * lib/unicase/ulc-casecmp.c: New file.
34569         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34570         'const SRC_UNIT *'.
34571         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34572         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34573         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34574         * modules/unicase/ulc-casecmp: New file.
34575
34576         Tests for module 'unicase/u32-is-cased'.
34577         * modules/unicase/u32-is-cased-tests: New file.
34578         * tests/unicase/test-u32-is-cased.c: New file.
34579
34580         Tests for module 'unicase/u16-is-cased'.
34581         * modules/unicase/u16-is-cased-tests: New file.
34582         * tests/unicase/test-u16-is-cased.c: New file.
34583
34584         Tests for module 'unicase/u8-is-cased'.
34585         * modules/unicase/u8-is-cased-tests: New file.
34586         * tests/unicase/test-u8-is-cased.c: New file.
34587         * tests/unicase/test-is-cased.h: New file.
34588
34589         New module 'unicase/u32-is-cased'.
34590         * lib/unicase/u32-is-cased.c: New file.
34591         * modules/unicase/u32-is-cased: New file.
34592
34593         New module 'unicase/u16-is-cased'.
34594         * lib/unicase/u16-is-cased.c: New file.
34595         * modules/unicase/u16-is-cased: New file.
34596
34597         New module 'unicase/u8-is-cased'.
34598         * lib/unicase/u8-is-cased.c: New file.
34599         * lib/unicase/u-is-cased.h: New file.
34600         * modules/unicase/u8-is-cased: New file.
34601
34602         Tests for module 'unicase/u32-is-casefolded'.
34603         * modules/unicase/u32-is-casefolded-tests: New file.
34604         * tests/unicase/test-u32-is-casefolded.c: New file.
34605
34606         Tests for module 'unicase/u16-is-casefolded'.
34607         * modules/unicase/u16-is-casefolded-tests: New file.
34608         * tests/unicase/test-u16-is-casefolded.c: New file.
34609
34610         Tests for module 'unicase/u8-is-casefolded'.
34611         * modules/unicase/u8-is-casefolded-tests: New file.
34612         * tests/unicase/test-u8-is-casefolded.c: New file.
34613         * tests/unicase/test-is-casefolded.h: New file.
34614
34615         New module 'unicase/u32-is-casefolded'.
34616         * lib/unicase/u32-is-casefolded.c: New file.
34617         * modules/unicase/u32-is-casefolded: New file.
34618
34619         New module 'unicase/u16-is-casefolded'.
34620         * lib/unicase/u16-is-casefolded.c: New file.
34621         * modules/unicase/u16-is-casefolded: New file.
34622
34623         New module 'unicase/u8-is-casefolded'.
34624         * lib/unicase/u8-is-casefolded.c: New file.
34625         * modules/unicase/u8-is-casefolded: New file.
34626
34627         Tests for module 'unicase/u32-is-titlecase'.
34628         * modules/unicase/u32-is-titlecase-tests: New file.
34629         * tests/unicase/test-u32-is-titlecase.c: New file.
34630
34631         Tests for module 'unicase/u16-is-titlecase'.
34632         * modules/unicase/u16-is-titlecase-tests: New file.
34633         * tests/unicase/test-u16-is-titlecase.c: New file.
34634
34635         Tests for module 'unicase/u8-is-titlecase'.
34636         * modules/unicase/u8-is-titlecase-tests: New file.
34637         * tests/unicase/test-u8-is-titlecase.c: New file.
34638         * tests/unicase/test-is-titlecase.h: New file.
34639
34640         New module 'unicase/u32-is-titlecase'.
34641         * lib/unicase/u32-is-titlecase.c: New file.
34642         * modules/unicase/u32-is-titlecase: New file.
34643
34644         New module 'unicase/u16-is-titlecase'.
34645         * lib/unicase/u16-is-titlecase.c: New file.
34646         * modules/unicase/u16-is-titlecase: New file.
34647
34648         New module 'unicase/u8-is-titlecase'.
34649         * lib/unicase/u8-is-titlecase.c: New file.
34650         * modules/unicase/u8-is-titlecase: New file.
34651
34652         Tests for module 'unicase/u32-is-lowercase'.
34653         * modules/unicase/u32-is-lowercase-tests: New file.
34654         * tests/unicase/test-u32-is-lowercase.c: New file.
34655
34656         Tests for module 'unicase/u16-is-lowercase'.
34657         * modules/unicase/u16-is-lowercase-tests: New file.
34658         * tests/unicase/test-u16-is-lowercase.c: New file.
34659
34660         Tests for module 'unicase/u8-is-lowercase'.
34661         * modules/unicase/u8-is-lowercase-tests: New file.
34662         * tests/unicase/test-u8-is-lowercase.c: New file.
34663         * tests/unicase/test-is-lowercase.h: New file.
34664
34665         New module 'unicase/u32-is-lowercase'.
34666         * lib/unicase/u32-is-lowercase.c: New file.
34667         * modules/unicase/u32-is-lowercase: New file.
34668
34669         New module 'unicase/u16-is-lowercase'.
34670         * lib/unicase/u16-is-lowercase.c: New file.
34671         * modules/unicase/u16-is-lowercase: New file.
34672
34673         New module 'unicase/u8-is-lowercase'.
34674         * lib/unicase/u8-is-lowercase.c: New file.
34675         * modules/unicase/u8-is-lowercase: New file.
34676
34677         Tests for module 'unicase/u32-is-uppercase'.
34678         * modules/unicase/u32-is-uppercase-tests: New file.
34679         * tests/unicase/test-u32-is-uppercase.c: New file.
34680
34681         Tests for module 'unicase/u16-is-uppercase'.
34682         * modules/unicase/u16-is-uppercase-tests: New file.
34683         * tests/unicase/test-u16-is-uppercase.c: New file.
34684
34685         Tests for module 'unicase/u8-is-uppercase'.
34686         * modules/unicase/u8-is-uppercase-tests: New file.
34687         * tests/unicase/test-u8-is-uppercase.c: New file.
34688         * tests/unicase/test-is-uppercase.h: New file.
34689
34690         New module 'unicase/u32-is-uppercase'.
34691         * lib/unicase/u32-is-uppercase.c: New file.
34692         * modules/unicase/u32-is-uppercase: New file.
34693
34694         New module 'unicase/u16-is-uppercase'.
34695         * lib/unicase/u16-is-uppercase.c: New file.
34696         * modules/unicase/u16-is-uppercase: New file.
34697
34698         New module 'unicase/u8-is-uppercase'.
34699         * lib/unicase/u8-is-uppercase.c: New file.
34700         * modules/unicase/u8-is-uppercase: New file.
34701
34702         New module 'unicase/u32-is-invariant'.
34703         * lib/unicase/u32-is-invariant.c: New file.
34704         * modules/unicase/u32-is-invariant: New file.
34705
34706         New module 'unicase/u16-is-invariant'.
34707         * lib/unicase/u16-is-invariant.c: New file.
34708         * modules/unicase/u16-is-invariant: New file.
34709
34710         New module 'unicase/u8-is-invariant'.
34711         * lib/unicase/u8-is-invariant.c: New file.
34712         * lib/unicase/invariant.h: New file.
34713         * lib/unicase/u-is-invariant.h: New file.
34714         * modules/unicase/u8-is-invariant: New file.
34715
34716         Tests for module 'unicase/u32-casecoll'.
34717         * modules/unicase/u32-casecoll-tests: New file.
34718         * tests/unicase/test-u32-casecoll.c: New file.
34719
34720         Tests for module 'unicase/u16-casecoll'.
34721         * modules/unicase/u16-casecoll-tests: New file.
34722         * tests/unicase/test-u16-casecoll.c: New file.
34723
34724         Tests for module 'unicase/u8-casecoll'.
34725         * modules/unicase/u8-casecoll-tests: New file.
34726         * tests/unicase/test-u8-casecoll.c: New file.
34727
34728         New module 'unicase/u32-casecoll'.
34729         * lib/unicase/u32-casecoll.c: New file.
34730         * modules/unicase/u32-casecoll: New file.
34731
34732         New module 'unicase/u16-casecoll'.
34733         * lib/unicase/u16-casecoll.c: New file.
34734         * modules/unicase/u16-casecoll: New file.
34735
34736         New module 'unicase/u8-casecoll'.
34737         * lib/unicase/u8-casecoll.c: New file.
34738         * lib/unicase/u-casecoll.h: New file.
34739         * modules/unicase/u8-casecoll: New file.
34740
34741         New module 'unicase/u32-casexfrm'.
34742         * lib/unicase/u32-casexfrm.c: New file.
34743         * modules/unicase/u32-casexfrm: New file.
34744
34745         New module 'unicase/u16-casexfrm'.
34746         * lib/unicase/u16-casexfrm.c: New file.
34747         * modules/unicase/u16-casexfrm: New file.
34748
34749         New module 'unicase/u8-casexfrm'.
34750         * lib/unicase/u8-casexfrm.c: New file.
34751         * lib/unicase/u-casexfrm.h: New file.
34752         * modules/unicase/u8-casexfrm: New file.
34753
34754         Tests for module 'unicase/u32-casecmp'.
34755         * modules/unicase/u32-casecmp-tests: New file.
34756         * tests/unicase/test-u32-casecmp.c: New file.
34757
34758         Tests for module 'unicase/u16-casecmp'.
34759         * modules/unicase/u16-casecmp-tests: New file.
34760         * tests/unicase/test-u16-casecmp.c: New file.
34761
34762         Tests for module 'unicase/u8-casecmp'.
34763         * modules/unicase/u8-casecmp-tests: New file.
34764         * tests/unicase/test-u8-casecmp.c: New file.
34765         * tests/unicase/test-casecmp.h: New file.
34766
34767         New module 'unicase/u32-casecmp'.
34768         * lib/unicase/u32-casecmp.c: New file.
34769         * modules/unicase/u32-casecmp: New file.
34770
34771         New module 'unicase/u16-casecmp'.
34772         * lib/unicase/u16-casecmp.c: New file.
34773         * modules/unicase/u16-casecmp: New file.
34774
34775         New module 'unicase/u8-casecmp'.
34776         * lib/unicase/u8-casecmp.c: New file.
34777         * lib/unicase/u-casecmp.h: New file.
34778         * modules/unicase/u8-casecmp: New file.
34779
34780         Tests for module 'unicase/u32-casefold'.
34781         * modules/unicase/u32-casefold-tests: New file.
34782         * tests/unicase/test-u32-casefold.c: New file.
34783
34784         Tests for module 'unicase/u16-casefold'.
34785         * modules/unicase/u16-casefold-tests: New file.
34786         * tests/unicase/test-u16-casefold.c: New file.
34787
34788         Tests for module 'unicase/u8-casefold'.
34789         * modules/unicase/u8-casefold-tests: New file.
34790         * tests/unicase/test-u8-casefold.c: New file.
34791
34792         New module 'unicase/u32-casefold'.
34793         * lib/unicase/u32-casefold.c: New file.
34794         * modules/unicase/u32-casefold: New file.
34795
34796         New module 'unicase/u16-casefold'.
34797         * lib/unicase/u16-casefold.c: New file.
34798         * modules/unicase/u16-casefold: New file.
34799
34800         New module 'unicase/u8-casefold'.
34801         * lib/unicase/u8-casefold.c: New file.
34802         * lib/unicase/u-casefold.h: New file.
34803         * modules/unicase/u8-casefold: New file.
34804
34805         New module 'unicase/tocasefold'.
34806         * lib/unicase/casefold.h: New file.
34807         * lib/unicase/tocasefold.c: New file.
34808         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34809         * modules/unicase/tocasefold: New file.
34810
34811         Tests for module 'unicase/u32-totitle'.
34812         * modules/unicase/u32-totitle-tests: New file.
34813         * tests/unicase/test-u32-totitle.c: New file.
34814
34815         Tests for module 'unicase/u16-totitle'.
34816         * modules/unicase/u16-totitle-tests: New file.
34817         * tests/unicase/test-u16-totitle.c: New file.
34818
34819         Tests for module 'unicase/u8-totitle'.
34820         * modules/unicase/u8-totitle-tests: New file.
34821         * tests/unicase/test-u8-totitle.c: New file.
34822
34823         New module 'unicase/u32-totitle'.
34824         * lib/unicase/u32-totitle.c: New file.
34825         * modules/unicase/u32-totitle: New file.
34826
34827         New module 'unicase/u16-totitle'.
34828         * lib/unicase/u16-totitle.c: New file.
34829         * modules/unicase/u16-totitle: New file.
34830
34831         New module 'unicase/u8-totitle'.
34832         * lib/unicase/u8-totitle.c: New file.
34833         * lib/unicase/u-totitle.h: New file.
34834         * modules/unicase/u8-totitle: New file.
34835
34836         Tests for module 'unicase/u32-tolower'.
34837         * modules/unicase/u32-tolower-tests: New file.
34838         * tests/unicase/test-u32-tolower.c: New file.
34839
34840         Tests for module 'unicase/u16-tolower'.
34841         * modules/unicase/u16-tolower-tests: New file.
34842         * tests/unicase/test-u16-tolower.c: New file.
34843
34844         Tests for module 'unicase/u8-tolower'.
34845         * modules/unicase/u8-tolower-tests: New file.
34846         * tests/unicase/test-u8-tolower.c: New file.
34847
34848         New module 'unicase/u32-tolower'.
34849         * lib/unicase/u32-tolower.c: New file.
34850         * modules/unicase/u32-tolower: New file.
34851
34852         New module 'unicase/u16-tolower'.
34853         * lib/unicase/u16-tolower.c: New file.
34854         * modules/unicase/u16-tolower: New file.
34855
34856         New module 'unicase/u8-tolower'.
34857         * lib/unicase/u8-tolower.c: New file.
34858         * modules/unicase/u8-tolower: New file.
34859
34860         Tests for module 'unicase/u32-toupper'.
34861         * modules/unicase/u32-toupper-tests: New file.
34862         * tests/unicase/test-u32-toupper.c: New file.
34863
34864         Tests for module 'unicase/u16-toupper'.
34865         * modules/unicase/u16-toupper-tests: New file.
34866         * tests/unicase/test-u16-toupper.c: New file.
34867
34868         Tests for module 'unicase/u8-toupper'.
34869         * modules/unicase/u8-toupper-tests: New file.
34870         * tests/unicase/test-u8-toupper.c: New file.
34871
34872         New module 'unicase/u32-toupper'.
34873         * lib/unicase/u32-toupper.c: New file.
34874         * modules/unicase/u32-toupper: New file.
34875
34876         New module 'unicase/u16-toupper'.
34877         * lib/unicase/u16-toupper.c: New file.
34878         * modules/unicase/u16-toupper: New file.
34879
34880         New module 'unicase/u8-toupper'.
34881         * lib/unicase/u8-toupper.c: New file.
34882         * modules/unicase/u8-toupper: New file.
34883
34884         New module 'unicase/u32-casemap'.
34885         * lib/unicase/u32-casemap.c: New file.
34886         * modules/unicase/u32-casemap: New file.
34887
34888         New module 'unicase/u16-casemap'.
34889         * lib/unicase/u16-casemap.c: New file.
34890         * modules/unicase/u16-casemap: New file.
34891
34892         New module 'unicase/u8-casemap'.
34893         * lib/unicase/unicasemap.h: New file.
34894         * lib/unicase/u8-casemap.c: New file.
34895         * lib/unicase/u-casemap.h: New file.
34896         * modules/unicase/u8-casemap: New file.
34897
34898         New module 'unicase/special-casing'.
34899         * lib/unicase/special-casing.h: New file.
34900         * lib/unicase/special-casing.c: New file.
34901         * lib/unicase/special-casing-table.gperf: New file, generated by
34902         gen-uni-tables.c.
34903         * modules/unicase/special-casing: New file.
34904
34905         Tests for module 'unicase/locale-language'.
34906         * modules/unicase/locale-language-tests: New file.
34907         * tests/unicase/test-locale-language.sh: New file.
34908         * tests/unicase/test-locale-language.c: New file.
34909
34910         New module 'unicase/locale-language'.
34911         * lib/unicase/locale-language.c: New file.
34912         * lib/unicase/locale-languages.gperf: New file.
34913         * modules/unicase/locale-language: New file.
34914
34915         Generate more tables for case conversion and case folding.
34916         * lib/gen-uni-tables.c (SCC_*): New enum items.
34917         (struct special_casing_rule): New type.
34918         (casing_rules, num_casing_rules, allocated_casing_rules): New
34919         variables.
34920         (add_casing_rule, fill_casing_rules): New functions.
34921         (struct casefold_rule): New type.
34922         (casefolding_rules, num_casefolding_rules,
34923         allocated_casefolding_rules): New variables.
34924         (fill_casefolding_rules): New function.
34925         (unicode_casefold): New variable.
34926         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34927         sort_casing_rules, output_casing_rules): New functions.
34928         (main): Accept to more arguments: SpecialCasing.txt and
34929         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34930         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34931         Output mapping for casefolding.
34932
34933         * lib/unicase.h: Include stdbool.h, uninorm.h.
34934         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34935         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34936         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34937         arguments.
34938         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34939         resultp arguments.
34940         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34941         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34942         resultp arguments.
34943         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34944         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34945         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34946         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34947         declarations.
34948         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34949
34950 2009-03-08  Bruno Haible  <bruno@clisp.org>
34951
34952         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34953         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34954         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34955         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34956
34957 2009-03-07  Bruno Haible  <bruno@clisp.org>
34958
34959         Adjust u*_normcmp, u*_normcoll API.
34960         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34961         u16_normcoll, u32_normcoll): Change failure conventions.
34962         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34963         errno and return -1.
34964         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34965
34966 2009-03-07  Bruno Haible  <bruno@clisp.org>
34967
34968         Tests for module 'uninorm/u32-normcoll'.
34969         * modules/uninorm/u32-normcoll-tests: New file.
34970         * tests/uninorm/test-u32-normcoll.c: New file.
34971
34972         Tests for module 'uninorm/u16-normcoll'.
34973         * modules/uninorm/u16-normcoll-tests: New file.
34974         * tests/uninorm/test-u16-normcoll.c: New file.
34975
34976         Tests for module 'uninorm/u8-normcoll'.
34977         * modules/uninorm/u8-normcoll-tests: New file.
34978         * tests/uninorm/test-u8-normcoll.c: New file.
34979
34980 2009-03-07  Bruno Haible  <bruno@clisp.org>
34981
34982         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34983         tests/uninorm/test-u32-normcmp.c.
34984         * tests/uninorm/test-u32-normcmp.c: Include it.
34985         (test_nonascii): New function, extracted from main. Add some more
34986         tests.
34987         (main): Invoke test_ascii and test_nonascii.
34988         * modules/uninorm/u32-normcmp-tests (Files): Add
34989         tests/uninorm/test-u32-normcmp.h.
34990         (Depends-on): Remove uninorm/u32-normcmp.
34991
34992         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34993         tests/uninorm/test-u16-normcmp.c.
34994         * tests/uninorm/test-u16-normcmp.c: Include it.
34995         (test_nonascii): New function, extracted from main. Add some more
34996         tests.
34997         (main): Invoke test_ascii and test_nonascii.
34998         * modules/uninorm/u16-normcmp-tests (Files): Add
34999         tests/uninorm/test-u16-normcmp.h.
35000         (Depends-on): Remove uninorm/u16-normcmp.
35001
35002         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35003         tests/uninorm/test-u8-normcmp.c.
35004         * tests/uninorm/test-u8-normcmp.c: Include it.
35005         (test_nonascii): New function, extracted from main. Add some more
35006         tests.
35007         (main): Invoke test_ascii and test_nonascii.
35008         * modules/uninorm/u8-normcmp-tests (Files): Add
35009         tests/uninorm/test-u8-normcmp.h.
35010         (Depends-on): Remove uninorm/u8-normcmp.
35011
35012 2009-03-07  Bruno Haible  <bruno@clisp.org>
35013
35014         New module 'uninorm/u32-normcoll'.
35015         * lib/uninorm/u32-normcoll.c: New file.
35016         * modules/uninorm/u32-normcoll: New file.
35017
35018         New module 'uninorm/u16-normcoll'.
35019         * lib/uninorm/u16-normcoll.c: New file.
35020         * modules/uninorm/u16-normcoll: New file.
35021
35022         New module 'uninorm/u8-normcoll'.
35023         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35024         declarations.
35025         * lib/uninorm/u8-normcoll.c: New file.
35026         * lib/uninorm/u-normcoll.h: New file.
35027         * modules/uninorm/u8-normcoll: New file.
35028
35029         New module 'uninorm/u32-normxfrm'.
35030         * lib/uninorm/u32-normxfrm.c: New file.
35031         * modules/uninorm/u32-normxfrm: New file.
35032
35033         New module 'uninorm/u16-normxfrm'.
35034         * lib/uninorm/u16-normxfrm.c: New file.
35035         * modules/uninorm/u16-normxfrm: New file.
35036
35037         New module 'uninorm/u8-normxfrm'.
35038         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35039         declarations.
35040         * lib/uninorm/u8-normxfrm.c: New file.
35041         * lib/uninorm/u-normxfrm.h: New file.
35042         * modules/uninorm/u8-normxfrm: New file.
35043
35044 2009-03-07  Bruno Haible  <bruno@clisp.org>
35045
35046         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35047         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35048         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35049
35050 2009-03-07  Bruno Haible  <bruno@clisp.org>
35051
35052         New module 'memxfrm'.
35053         * lib/memxfrm.h: New file.
35054         * lib/memxfrm.c: New file.
35055         * modules/memxfrm: New file.
35056
35057 2009-03-07  Bruno Haible  <bruno@clisp.org>
35058
35059         New module 'memcmp2'.
35060         * lib/memcmp2.h: New file.
35061         * lib/memcmp2.c: New file.
35062         * modules/memcmp2: New file.
35063
35064 2009-03-07  Bruno Haible  <bruno@clisp.org>
35065
35066         Tests for module 'uninorm/decomposing-form'.
35067         * modules/uninorm/decomposing-form-tests: New file.
35068         * tests/uninorm/test-decomposing-form.c: New file.
35069
35070         New module 'uninorm/decomposing-form'.
35071         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35072         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35073         Add 'decomposing_variant' field.
35074         * lib/uninorm/decomposing-form.c: New file.
35075         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35076         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35077         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35078         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35079         * modules/uninorm/decomposing-form: New file.
35080         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35081         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35082
35083 2009-03-07  Bruno Haible  <bruno@clisp.org>
35084
35085         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35086         strings.
35087
35088 2009-03-06  Bruno Haible  <bruno@clisp.org>
35089
35090         Tests for module 'uninorm/u32-normcmp'.
35091         * tests/uninorm/test-u32-normcmp.c: New file.
35092         * modules/uninorm/u32-normcmp-tests: New file.
35093
35094         Tests for module 'uninorm/u16-normcmp'.
35095         * tests/uninorm/test-u16-normcmp.c: New file.
35096         * modules/uninorm/u16-normcmp-tests: New file.
35097
35098         Tests for module 'uninorm/u8-normcmp'.
35099         * tests/uninorm/test-u8-normcmp.c: New file.
35100         * modules/uninorm/u8-normcmp-tests: New file.
35101
35102         New module 'uninorm/u32-normcmp'.
35103         * lib/uninorm/u32-normcmp.c: New file.
35104         * modules/uninorm/u32-normcmp: New file.
35105
35106         New module 'uninorm/u16-normcmp'.
35107         * lib/uninorm/u16-normcmp.c: New file.
35108         * modules/uninorm/u16-normcmp: New file.
35109
35110         New module 'uninorm/u8-normcmp'.
35111         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35112         declarations.
35113         * lib/uninorm/u8-normcmp.c: New file.
35114         * lib/uninorm/u-normcmp.h: New file.
35115         * modules/uninorm/u8-normcmp: New file.
35116
35117 2009-03-06  Bruno Haible  <bruno@clisp.org>
35118
35119         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35120         Reported by Eric Blake.
35121
35122 2009-03-06  Eric Blake  <ebb9@byu.net>
35123             Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35126         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35127         condition.
35128         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35129         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35130         condition.
35131         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35132
35133 2009-03-06  Eric Blake  <ebb9@byu.net>
35134
35135         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35136         to avoid compiler warnings.
35137         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35138
35139 2009-03-05  Bruno Haible  <bruno@clisp.org>
35140
35141         * tests/test-ftell.c (main): Disable test beyond end of file on
35142         FreeMiNT.
35143         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35144
35145 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35146
35147         * lib/filevercmp.c: Move hidden files up in ordering.
35148         * tests/test-filevercmp.c: Add tests for hidden files.
35149
35150 2009-03-04  Bruno Haible  <bruno@clisp.org>
35151
35152         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35153         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35154         AM_CFLAGS.
35155         Reported by Simon Josefsson.
35156
35157 2009-03-03  Bruno Haible  <bruno@clisp.org>
35158
35159         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35160         Reported by Simon Josefsson.
35161
35162         * doc/ld-version-script.texi: Update node reference.
35163
35164 2009-03-03  Bruno Haible  <bruno@clisp.org>
35165
35166         * modules/visibility (License): Change to 'unlimited'.
35167         Suggested by Simon Josefsson.
35168
35169 2009-03-03  Jim Meyering  <meyering@redhat.com>
35170
35171         unlinkdir: cannot_unlink_dir may modify process state
35172         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35173         it's neither thread-safe nor appropriate for use in a library.
35174
35175 2009-03-03  Eric Blake  <ebb9@byu.net>
35176
35177         test-closein: silence test under Darwin
35178         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35179         care if it dies from EPIPE or EBADF.
35180
35181 2009-03-03  Bruno Haible  <bruno@clisp.org>
35182
35183         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35184         earlier.
35185         * doc/visibility.texi: Fix @node and @section.
35186
35187 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35188
35189         * doc/gnulib.texi: Link to sections for ld version script and
35190         visibility.
35191         * doc/visibility.texi: Add @node and @section.
35192         * modules/ld-version-script: New module.
35193         * m4/ld-version-script.m4: New file.
35194         * doc/ld-version-script.texi: New file.
35195
35196 2009-03-02  David Lutterkort  <lutter@redhat.com>
35197
35198         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35200
35201 2009-03-02  Bruno Haible  <bruno@clisp.org>
35202
35203         * doc/visibility.texi: Mention libtool's -export-symbols option.
35204
35205 2009-03-02  Jim Meyering  <meyering@redhat.com>
35206
35207         announce-gen: new option: --no-print-checksums
35208         * build-aux/announce-gen (usage): Describe it.
35209         (print_checksums): Print a newline here, not in the [*] footnote.
35210         (main): Honor it.
35211
35212 2009-03-01  Bruno Haible  <bruno@clisp.org>
35213
35214         Use socklen_t in the native Windows replacements prototypes.
35215         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35216         instead of 'int'.
35217         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35218         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35219         * modules/getsockopt (Depends-on): Add socklen.
35220         * modules/setsockopt (Depends-on): Add socklen.
35221
35222 2009-03-01  Bruno Haible  <bruno@clisp.org>
35223
35224         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35225         least 4.2.
35226
35227 2009-03-01  Eric Blake  <ebb9@byu.net>
35228             Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35231         error messages.
35232         * lib/wait-process.c (wait_subprocess): Omit error message about
35233         deadly signal sent to the child of termsigp != NULL.
35234
35235 2009-03-01  Eric Blake  <ebb9@byu.net>
35236
35237         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35238
35239 2009-03-01  Bruno Haible  <bruno@clisp.org>
35240
35241         Avoid a gcc warning.
35242         * tests/test-sched.c (b): Make global.
35243         Reported by Eric Blake.
35244
35245 2009-01-19  Martin Lambers  <marlam@marlam.de>
35246
35247         Provide POSIX semantics for socket timeout options on W32.
35248         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35249         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35250         * modules/setsockopt: Depend on sys_time module for struct timeval.
35251         * modules/getsockopt: Depend on sys_time module for struct timeval.
35252
35253 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35254
35255         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35256         __USE_GNU, for consistency with netdb.in.h.
35257         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35258
35259 2009-03-01  Bruno Haible  <bruno@clisp.org>
35260
35261         More support for FreeMiNT.
35262         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35263         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35264
35265 2009-03-01  Bruno Haible  <bruno@clisp.org>
35266
35267         More support for FreeMiNT.
35268         * lib/fpurge.c (fpurge): Correct last commit.
35269         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35270
35271 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35272
35273         Fix unportable awk script in vc-list-files.
35274         * build-aux/vc-list-files: In the replacement awk script, use
35275         substr with a second argument of 1, not zero.
35276         Report by Simon Josefsson.
35277
35278 2009-02-28  Bruno Haible  <bruno@clisp.org>
35279
35280         More support for FreeMiNT.
35281         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35282         to FreeMiNT today.
35283         * lib/fwriting.c (fwriting): Likewise.
35284         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35285
35286 2009-02-28  Bruno Haible  <bruno@clisp.org>
35287
35288         * tests/test-freadseek.c (main): Disable test beyond end of file on
35289         FreeMiNT.
35290         * tests/test-ftello.c (main): Likewise.
35291         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35292
35293 2009-02-28  Bruno Haible  <bruno@clisp.org>
35294
35295         Add tentative support for FreeMiNT.
35296         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35297         * lib/fpurge.c (fpurge): Likewise.
35298         * lib/freadable.c (freadable): Likewise.
35299         * lib/freading.c (freading): Likewise.
35300         * lib/freadptr.c (freadptr): Likewise.
35301         * lib/freadseek.c (freadptrinc): Likewise.
35302         * lib/fseeko.c (rpl_fseeko): Likewise.
35303         * lib/fseterr.c (fseterr): Likewise.
35304         * lib/fwritable.c (fwritable): Likewise.
35305         * lib/fwriting.c (fwriting): Likewise.
35306         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35307         Hourihane.
35308         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35309
35310 2009-02-28  Bruno Haible  <bruno@clisp.org>
35311
35312         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35313         SIGCHLD.
35314         Reported by Jim Meyering.
35315
35316 2009-02-28  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35319         Mention the results of these tests on various platforms.
35320         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35321         order.
35322         * doc/posix-functions/printf.texi: Likewise.
35323         * doc/posix-functions/snprintf.texi: Likewise.
35324         * doc/posix-functions/sprintf.texi: Likewise.
35325         * doc/posix-functions/vfprintf.texi: Likewise.
35326         * doc/posix-functions/vprintf.texi: Likewise.
35327         * doc/posix-functions/vsnprintf.texi: Likewise.
35328         * doc/posix-functions/vsprintf.texi: Likewise.
35329         * doc/glibc-functions/obstack_printf.texi: Likewise.
35330         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35331
35332 2009-02-28  Bruno Haible  <bruno@clisp.org>
35333
35334         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35335         Reported by Loïc Minier <lool@dooz.org>.
35336
35337 2009-02-27  Bruno Haible  <bruno@clisp.org>
35338
35339         * gnulib-tool (func_import): Make the sed expression used to create the
35340         sed script for updating the .gitignore file POSIX compliant.
35341         Reported by Eric Blake.
35342
35343 2009-02-27  Bruno Haible  <bruno@clisp.org>
35344
35345         * gnulib-tool (sed): Don't alias as "sed --posix".
35346         Reported by Eric Blake.
35347
35348 2009-02-27  Bruno Haible  <bruno@clisp.org>
35349
35350         Avoid test link errors.
35351         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35352         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35353         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35354         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35356
35357 2009-02-27  Bruno Haible  <bruno@clisp.org>
35358
35359         Avoid spurious "(cached)" in configure output.
35360         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35361         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35362         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35363         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35364         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35365         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35366         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35367         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35368         Reported by Eric Blake.
35369
35370 2009-02-27  Eric Blake  <ebb9@byu.net>
35371
35372         printf: fix regression in previous patch
35373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35374
35375 2009-02-27  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35378         value.
35379         * lib/stdint.in.h: Likewise.
35380         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35381
35382 2009-02-27  Eric Blake  <ebb9@byu.net>
35383
35384         doc: mention more functions added in cygwin 1.7.0
35385         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35386         addition.
35387         * doc/posix-functions/open_wmemstream.texi: Likewise.
35388         * doc/posix-functions/wcsnlen.texi: Likewise.
35389         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35390         * doc/posix-functions/wcstod.texi: Likewise.
35391         * doc/posix-functions/wcstof.texi: Likewise.
35392         * doc/posix-functions/wcstoimax.texi: Likewise.
35393         * doc/posix-functions/wcstok.texi: Likewise.
35394         * doc/posix-functions/wcstoumax.texi: Likewise.
35395
35396         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35397         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35398         * doc/posix-functions/fprintf.texi: Update.
35399         * doc/posix-functions/printf.texi: Update.
35400         * doc/posix-functions/snprintf.texi: Update.
35401         * doc/posix-functions/sprintf.texi: Update.
35402         * doc/posix-functions/vfprintf.texi: Update.
35403         * doc/posix-functions/vprintf.texi: Update.
35404         * doc/posix-functions/vsnprintf.texi: Update.
35405         * doc/posix-functions/vsprintf.texi: Update.
35406         * doc/glibc-functions/obstack_printf.texi: Update.
35407         * doc/glibc-functions/obstack_vprintf.texi: Update.
35408
35409 2009-02-26  Eric Blake  <ebb9@byu.net>
35410
35411         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35412         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35413         compilation bug by using runtime conversion.
35414         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35415         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35416         * modules/ceill-tests (Files): Use nan.h.
35417         * modules/floorl-tests (Files): Likewise.
35418         * modules/frexpl-tests (Files): Likewise.
35419         * modules/isnanl-tests (Files): Likewise.
35420         * modules/ldexpl-tests (Files): Likewise.
35421         * modules/roundl-tests (Files): Likewise.
35422         * modules/truncl-tests (Files): Likewise.
35423         * tests/test-ceill.c (main): Use a working NaN.
35424         * tests/test-floorl.c (main): Likewise.
35425         * tests/test-frexpl.c (main): Likewise.
35426         * tests/test-isnan.c (test_long_double): Likewise.
35427         * tests/test-isnanl.h (main): Likewise.
35428         * tests/test-ldexpl.h (main): Likewise.
35429         * tests/test-roundl.h (main): Likewise.
35430         * tests/test-truncl.h (main): Likewise.
35431         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35432
35433 2009-02-26  Eric Blake  <ebb9@byu.net>
35434             Bruno Haible  <bruno@clisp.org>
35435
35436         Work around a *printf bug with %ls on Solaris.
35437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35438         precision is specified, sprintf stops converting the wide string
35439         argument when the number of bytes that have been produced by this
35440         conversion equals or exceeds the precision.
35441         * doc/posix-functions/fprintf.texi: Update.
35442         * doc/posix-functions/printf.texi: Update.
35443         * doc/posix-functions/snprintf.texi: Update.
35444         * doc/posix-functions/sprintf.texi: Update.
35445         * doc/posix-functions/vfprintf.texi: Update.
35446         * doc/posix-functions/vprintf.texi: Update.
35447         * doc/posix-functions/vsnprintf.texi: Update.
35448         * doc/posix-functions/vsprintf.texi: Update.
35449         * doc/glibc-functions/obstack_printf.texi: Update.
35450         * doc/glibc-functions/obstack_vprintf.texi: Update.
35451
35452 2009-02-26  Eric Blake  <ebb9@byu.net>
35453
35454         stdlib: favor compiler check of random.h
35455         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35456         to avoid an ObjC random.h installed by Swarm.
35457
35458 2009-02-26  Bruno Haible  <bruno@clisp.org>
35459
35460         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35461         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35462         Reported by Gary V. Vaughan <gary@gnu.org>.
35463
35464 2009-02-26  Bruno Haible  <bruno@clisp.org>
35465
35466         Fix *printf behaviour regarding the %ls directive.
35467         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35468         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35469         NEED_PRINTF_DIRECTIVE_LS.
35470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35471         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35473         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35474         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35475         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35476         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35481         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35485         * doc/posix-functions/fprintf.texi: Update.
35486         * doc/posix-functions/printf.texi: Update.
35487         * doc/posix-functions/snprintf.texi: Update.
35488         * doc/posix-functions/sprintf.texi: Update.
35489         * doc/posix-functions/vfprintf.texi: Update.
35490         * doc/posix-functions/vprintf.texi: Update.
35491         * doc/posix-functions/vsnprintf.texi: Update.
35492         * doc/posix-functions/vsprintf.texi: Update.
35493         * doc/glibc-functions/obstack_printf.texi: Update.
35494         * doc/glibc-functions/obstack_vprintf.texi: Update.
35495         Reported by Eric Blake.
35496
35497 2009-02-25  Bruno Haible  <bruno@clisp.org>
35498
35499         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35500         with known value.
35501         Reported by Gary V. Vaughan <gary@gnu.org>.
35502
35503 2009-02-25  Bruno Haible  <bruno@clisp.org>
35504
35505         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35506         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35507         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35508         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35509         Reported by Gary V. Vaughan <gary@gnu.org>.
35510
35511 2009-02-25  Bruno Haible  <bruno@clisp.org>
35512
35513         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35514         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35515         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35516         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35517         Reported by Gary V. Vaughan <gary@gnu.org>.
35518
35519 2009-02-25  Eric Blake  <ebb9@byu.net>
35520
35521         tests: skip fseek/ftell tests if ungetc is broken
35522         * m4/ungetc.m4: New file.
35523         * modules/fseek-tests: Split test, so ungetc dependency is
35524         separate from rest of test.
35525         * modules/fseeko-tests: Likewise.
35526         * modules/ftell-tests: Likewise.
35527         * modules/ftello-tests: Likewise.
35528         * tests/test-fseek.c (main): Isolate ungetc dependency.
35529         * tests/test-fseeko.c (main): Likewise.
35530         * tests/test-ftell.c (main): Likewise.
35531         * tests/test-ftello.c (main): Likewise.
35532         * tests/test-fseek2.sh: New file.
35533         * tests/test-fseeko2.sh: Likewise.
35534         * tests/test-ftell2.sh: Likewise.
35535         * tests/test-ftello2.sh: Likewise.
35536
35537 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
35538
35539         test-getaddrinfo: fix usage of skip return code 77
35540         * tests/test-gettaddrinfo.c: Return skip code 77 only
35541         for first occurance of skip (4x77 is not 77)
35542
35543 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35544
35545         strtod: avoid C99 decl-after-statement
35546         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35547
35548 2009-02-24  Eric Blake  <ebb9@byu.net>
35549
35550         strtod: detect HP-UX 11.31 bug
35551         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35552         Reported by Gary V. Vaughan.
35553
35554 2009-02-23  Bruno Haible  <bruno@clisp.org>
35555
35556         Fix invalid read past end of memory block.
35557         * lib/vasnprintf.c (DCHAR_SET): Define.
35558         (local_wcslen): Define only when needed.
35559         (local_strnlen, local_wcsnlen): New functions.
35560         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35561         directives that involve a conversion ourselves.
35562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35563         wcsnlen, mbrtowc, wcrtomb.
35564         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35565         * tests/test-vasprintf-posix.c (test_function): Likewise.
35566         * tests/test-snprintf-posix.h (test_function): Likewise.
35567         * tests/test-sprintf-posix.h (test_function): Likewise.
35568         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35569
35570 2009-02-22  Bruno Haible  <bruno@clisp.org>
35571
35572         Implement new clarified decomposition of Hangul syllables.
35573         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35574         of type LTV, return only a pairwise decomposition.
35575         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35576         Likewise.
35577         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35578         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35579         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35580
35581 2009-02-22  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35584         zero-length results and shrink excess allocated memory.
35585         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35586         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35587         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35588         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35589         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35590         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35591         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35592         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35593         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35594         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35595         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35596         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35597
35598 2009-02-21  Bruno Haible  <bruno@clisp.org>
35599
35600         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35601         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35602         spaces after a period. Put a space between a macro name and its
35603         argument list. Trivial rewordings.
35604         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35605         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35606         (main): Return 0 explicitly.
35607
35608 2009-02-21  Bruno Haible  <bruno@clisp.org>
35609
35610         Tests for module 'uninorm/filter'.
35611         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35612         * modules/uninorm/filter-tests: New file.
35613
35614         New module 'uninorm/filter'.
35615         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35616         uninorm_filter_flush, uninorm_filter_free): New declarations.
35617         * lib/uninorm/uninorm-filter.c: New file.
35618         * modules/uninorm/filter: New file.
35619
35620 2009-02-21  Bruno Haible  <bruno@clisp.org>
35621
35622         Tests for module 'uninorm/nfkc'.
35623         * tests/uninorm/test-nfkc.c: New file.
35624         * tests/uninorm/test-u8-nfkc.c: New file.
35625         * tests/uninorm/test-u16-nfkc.c: New file.
35626         * tests/uninorm/test-u32-nfkc.c: New file.
35627         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35628         * tests/uninorm/test-u32-nfkc-big.c: New file.
35629         * modules/uninorm/nfkc-tests: New file.
35630
35631         New module 'uninorm/nfkc'.
35632         * lib/uninorm/nfkc.c: New file.
35633         * modules/uninorm/nfkc: New file.
35634
35635         Tests for module 'uninorm/nfkd'.
35636         * tests/uninorm/test-nfkd.c: New file.
35637         * tests/uninorm/test-u8-nfkd.c: New file.
35638         * tests/uninorm/test-u16-nfkd.c: New file.
35639         * tests/uninorm/test-u32-nfkd.c: New file.
35640         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35641         * tests/uninorm/test-u32-nfkd-big.c: New file.
35642         * modules/uninorm/nfkd-tests: New file.
35643
35644         New module 'uninorm/nfkd'.
35645         * lib/uninorm/nfkd.c: New file.
35646         * modules/uninorm/nfkd: New file.
35647
35648         Tests for module 'uninorm/nfc'.
35649         * tests/uninorm/test-nfc.c: New file.
35650         * tests/uninorm/test-u8-nfc.c: New file.
35651         * tests/uninorm/test-u16-nfc.c: New file.
35652         * tests/uninorm/test-u32-nfc.c: New file.
35653         * tests/uninorm/test-u32-nfc-big.sh: New file.
35654         * tests/uninorm/test-u32-nfc-big.c: New file.
35655         * modules/uninorm/nfc-tests: New file.
35656
35657         New module 'uninorm/nfc'.
35658         * lib/uninorm/nfc.c: New file.
35659         * modules/uninorm/nfc: New file.
35660
35661         Tests for module 'uninorm/nfd'.
35662         * tests/uninorm/test-nfd.c: New file.
35663         * tests/uninorm/test-u8-nfd.c: New file.
35664         * tests/uninorm/test-u16-nfd.c: New file.
35665         * tests/uninorm/test-u32-nfd.c: New file.
35666         * tests/uninorm/test-u32-nfd-big.sh: New file.
35667         * tests/uninorm/test-u32-nfd-big.c: New file.
35668         * tests/uninorm/test-u32-normalize-big.h: New file.
35669         * tests/uninorm/test-u32-normalize-big.c: New file.
35670         * tests/uninorm/NormalizationTest.txt: New file, created from
35671         Unicode 5.1.0 NormalizationTest.txt.
35672         * modules/uninorm/nfd-tests: New file.
35673
35674         New module 'uninorm/nfd'.
35675         * lib/uninorm/nfd.c: New file.
35676         * modules/uninorm/nfd: New file.
35677
35678         New module 'uninorm/u32-normalize'.
35679         * lib/uninorm/u32-normalize.c: New file.
35680         * modules/uninorm/u32-normalize: New file.
35681
35682         New module 'uninorm/u16-normalize'.
35683         * lib/uninorm/u16-normalize.c: New file.
35684         * modules/uninorm/u16-normalize: New file.
35685
35686         New module 'uninorm/u8-normalize'.
35687         * lib/uninorm/u8-normalize.c: New file.
35688         * lib/uninorm/normalize-internal.h: New file.
35689         * lib/uninorm/u-normalize-internal.h: New file.
35690         * modules/uninorm/u8-normalize: New file.
35691
35692         New module 'uninorm/decompose-internal'.
35693         * lib/uninorm/decompose-internal.c: New file.
35694         * modules/uninorm/decompose-internal: New file.
35695
35696         Tests for module 'uninorm/composition'.
35697         * tests/uninorm/test-composition.c: New file.
35698         * modules/uninorm/composition-tests: New file.
35699
35700         New module 'uninorm/composition'.
35701         * lib/uninorm/composition.c: New file.
35702         * lib/uninorm/composition-table.gperf: New file, generated by
35703         gen-uni-tables.
35704         * modules/uninorm/composition: New file.
35705
35706         Tests for module 'uninorm/compat-decomposition'.
35707         * tests/uninorm/test-compat-decomposition.c: New file.
35708         * modules/uninorm/compat-decomposition-tests: New file.
35709
35710         New module 'uninorm/compat-decomposition'.
35711         * lib/uninorm/decompose-internal.h: New file.
35712         * lib/uninorm/compat-decomposition.c: New file.
35713         * modules/uninorm/compat-decomposition: New file.
35714
35715         Tests for module 'uninorm/canonical-decomposition'.
35716         * tests/uninorm/test-canonical-decomposition.c: New file.
35717         * modules/uninorm/canonical-decomposition-tests: New file.
35718
35719         New module 'uninorm/canonical-decomposition'.
35720         * lib/uninorm/canonical-decomposition.c: New file.
35721         * modules/uninorm/canonical-decomposition: New file.
35722
35723         Tests for module 'uninorm/decomposition'.
35724         * tests/uninorm/test-decomposition.c: New file.
35725         * modules/uninorm/decomposition-tests: New file.
35726
35727         New module 'uninorm/decomposition'.
35728         * lib/uninorm/decomposition.c: New file.
35729         * modules/uninorm/decomposition: New file.
35730
35731         New module 'uninorm/decomposition-table'.
35732         * lib/uninorm/decomposition-table.h: New file.
35733         * lib/uninorm/decomposition-table.c: New file.
35734         * lib/uninorm/decomposition-table1.h: New file, generated by
35735         gen-uni-tables.
35736         * lib/uninorm/decomposition-table2.h: New file, generated by
35737         gen-uni-tables.
35738         * modules/uninorm/decomposition-table: New file.
35739
35740         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35741         (UC_DECOMP_*): New enumeration items.
35742         (get_decomposition): New function.
35743         (struct decomp_table): New type.
35744         (output_decomposition, output_decomposition_tables): New functions.
35745         (unicode_composition_exclusions): New variable.
35746         (fill_composition_exclusions, debug_output_composition_tables): New
35747         functions.
35748         (main): Accept one more argument. Invoke fill_composition_exclusions.
35749         Output decomposition and composition tables.
35750
35751         New module 'uninorm/base'.
35752         * lib/uninorm.h: New file.
35753         * lib/unictype.h: Update comment.
35754         * modules/uninorm/base: New file.
35755
35756 2009-02-21  David Lutterkort  <lutter@redhat.com>
35757
35758         Tests for module 'safe-alloc'.
35759         * tests/test-safe-alloc.c: New file.
35760         * modules/safe-alloc-tests: New file.
35761
35762         New module 'safe-alloc'.
35763         * lib/safe-alloc.h: New file.
35764         * lib/safe-alloc.c: New file.
35765         * m4/safe-alloc.m4: New file.
35766         * modules/safe-alloc: New file.
35767         * doc/safe-alloc.texi: New file.
35768         * doc/gnulib.texi: Include it.
35769         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35770         safe-alloc.
35771
35772 2009-02-18  Bruno Haible  <bruno@clisp.org>
35773
35774         Fix link error on non-glibc systems.
35775         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35776         variable.
35777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35778
35779 2009-02-18  Jim Meyering  <meyering@redhat.com>
35780
35781         fts: avoid used-uninitialized error due to recent change
35782         * lib/fts.c (fts_read): Guard uses of the new member,
35783         parent->fts_n_dirs_remaining, since it's not relevant for
35784         the parent of a directory specified on the command-line.
35785
35786 2009-02-17  James Youngman  <jay@gnu.org>
35787             Bruno Haible  <bruno@clisp.org>
35788
35789         * m4/include_next.m4: Reformulate comment.
35790
35791 2009-02-16  Jim Meyering  <meyering@redhat.com>
35792
35793         fts: add #if guards so that the fts_lgpl module still builds
35794         * lib/fts.c: Guard just-added hash-table-using parts with
35795         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35796         Reported by Simon Josefsson.
35797
35798 2009-02-15  Bruno Haible  <bruno@clisp.org>
35799
35800         * modules/array-mergesort-tests: New file.
35801         * tests/test-array-mergesort.c: New file.
35802
35803         New module 'array-mergesort'.
35804         * modules/array-mergesort: New file.
35805         * lib/array-mergesort.h: New file.
35806
35807 2009-02-15  Bruno Haible  <bruno@clisp.org>
35808
35809         Fix 2009-02-07 commit.
35810         * lib/gen-uni-tables.c (output_predicate, output_category,
35811         output_combclass, output_bidi_category, output_decimal_digit,
35812         output_digit, output_numeric, output_mirror, output_scripts,
35813         output_ident_category, output_simple_mapping): Fix format directives.
35814         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35815
35816 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35817
35818         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35819         fixes are available from IBM.
35820
35821 2009-02-13  Jim Meyering  <meyering@redhat.com>
35822
35823         fts: arrange not to stat non-directories in more cases
35824         This makes GNU find (when it doesn't need to stat each file)
35825         *much* more efficient at traversing reiserfs file systems.
35826         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35827         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35828         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35829         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35830         (leaf_optimization_applies): New function.
35831         (LCO_hash, LCO_compare): New helper functions.
35832         (link_count_optimize_ok): New function.
35833         (fts_stat): Initialize new member (if dir).
35834         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35835         we've just stat'ed a directory.  Skip the stat call when possible.
35836         ---
35837         Note this AFS-related exchange:
35838         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35839         and note find's pioctl call in find/fstype.c.
35840         But that is necessary only if you want to enable the
35841         optimization for AFS, and for now, I don't.
35842
35843         fts: move a function definition "up" (no semantic change)
35844         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35845         "up" to precede upcoming use of a related function.
35846
35847 2009-02-11  Jim Meyering  <meyering@redhat.com>
35848
35849         fts: correct internal computation of nlinks (optimization-related)
35850         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35851         whether the current entry is a directory, so don't test it.
35852
35853 2009-02-10  Bruno Haible  <bruno@clisp.org>
35854
35855         Tests for module 'uniwbrk/ulc-wordbreaks'.
35856         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35857         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35858         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35859
35860         Tests for module 'uniwbrk/u32-wordbreaks'.
35861         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35862         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35863
35864         Tests for module 'uniwbrk/u16-wordbreaks'.
35865         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35866         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35867
35868         Tests for module 'uniwbrk/u8-wordbreaks'.
35869         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35870         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35871
35872 2009-02-10  Bruno Haible  <bruno@clisp.org>
35873
35874         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35875         property.
35876         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35877         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35878         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35879
35880 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35881
35882         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35883         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35884
35885 2009-02-10  Bruno Haible  <bruno@clisp.org>
35886
35887         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35888         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35889         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35890         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35891         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35892         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35893
35894 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35895
35896         * lib/sockets.h (gl_fd_to_handle): New function.
35897
35898         * tests/test-sockets.c: Call gl_fd_to_handle.
35899
35900 2009-02-09  Bruno Haible  <bruno@clisp.org>
35901
35902         * doc/havelib.texi: Document the conventions on bi-arch systems.
35903
35904 2009-02-08  Bruno Haible  <bruno@clisp.org>
35905
35906         Document the AC_LIB_LINKFLAGS macro.
35907         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35908         * doc/gnulib.texi: Include it.
35909
35910 2009-02-08  Bruno Haible  <bruno@clisp.org>
35911
35912         Fix wrong order of sections, compared to TOC.
35913         * doc/gnulib.texi: Include relocatable-maint.texi after the
35914         "Regular expressions" node, not before.
35915
35916 2009-02-08  Bruno Haible  <bruno@clisp.org>
35917
35918         Tests for module 'unicase/totitle'.
35919         * modules/unicase/totitle-tests: New file.
35920
35921         Tests for module 'unicase/tolower'.
35922         * modules/unicase/tolower-tests: New file.
35923
35924         Tests for module 'unicase/toupper'.
35925         * modules/unicase/toupper-tests: New file.
35926         * tests/unicase/test-mapping-part1.h: New file.
35927         * tests/unicase/test-mapping-part2.h: New file.
35928
35929         New module 'unicase/totitle'.
35930         * modules/unicase/totitle: New file.
35931         * lib/unicase/totitle.c: New file.
35932
35933         New module 'unicase/tolower'.
35934         * modules/unicase/tolower: New file.
35935         * lib/unicase/tolower.c: New file.
35936
35937         New module 'unicase/toupper'.
35938         * modules/unicase/toupper: New file.
35939         * lib/unicase/toupper.c: New file.
35940         * lib/unicase/simple-mapping.h: New file.
35941
35942         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35943         (mapping_table): New structure.
35944         (output_simple_mapping): New function.
35945         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35946         * modules/gen-uni-tables (Description): Update.
35947         * lib/unicase/toupper.h: New file, automatically generated by
35948         gen-uni-tables.
35949         * lib/unicase/tolower.h: New file, automatically generated by
35950         gen-uni-tables.
35951         * lib/unicase/totitle.h: New file, automatically generated by
35952         gen-uni-tables.
35953         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35954         gen-uni-tables.
35955         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35956         gen-uni-tables.
35957         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35958         gen-uni-tables.
35959
35960         New module 'unicase/base'.
35961         * modules/unicase/base: New file.
35962         * lib/unicase.h: New file.
35963
35964 2009-02-08  Bruno Haible  <bruno@clisp.org>
35965
35966         New module 'uniwbrk/ulc-wordbreaks'.
35967         * modules/uniwbrk/ulc-wordbreaks: New file.
35968         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35969
35970         New module 'uniwbrk/u32-wordbreaks'.
35971         * modules/uniwbrk/u32-wordbreaks: New file.
35972         * lib/uniwbrk/u32-wordbreaks.c: New file.
35973
35974         New module 'uniwbrk/u16-wordbreaks'.
35975         * modules/uniwbrk/u16-wordbreaks: New file.
35976         * lib/uniwbrk/u16-wordbreaks.c: New file.
35977
35978         New module 'uniwbrk/u8-wordbreaks'.
35979         * modules/uniwbrk/u8-wordbreaks: New file.
35980         * lib/uniwbrk/u8-wordbreaks.c: New file.
35981         * lib/uniwbrk/u-wordbreaks.h: New file.
35982
35983         New module 'uniwbrk/table'.
35984         * modules/uniwbrk/table: New file.
35985         * lib/uniwbrk/wbrktable.h: New file.
35986         * lib/uniwbrk/wbrktable.c: New file.
35987
35988         New module 'uniwbrk/wordbreak-property'.
35989         * modules/uniwbrk/wordbreak-property: New file.
35990         * lib/uniwbrk/wordbreak-property.c: New file.
35991
35992         * lib/gen-uni-tables.c (WBP_*): New enum items.
35993         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35994         (unicode_org_wbp): New variable.
35995         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35996         New functions.
35997         (wbp_table): New structure.
35998         (output_wbp, output_wbrk_tables): New functions.
35999         (main): Accept additional argument. Invoke fill_org_wbp,
36000         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36001         output_wbrk_tables.
36002         * modules/gen-uni-tables (Description): Update.
36003         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36004         gen-uni-tables.
36005
36006         New module 'uniwbrk/base'.
36007         * modules/uniwbrk/base: New file.
36008         * lib/uniwbrk.h: New file.
36009
36010 2009-02-08  Bruno Haible  <bruno@clisp.org>
36011
36012         Update to Unicode 5.1.0.
36013         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36014         U+2185..U+2188.
36015         (is_property_default_ignorable_code_point): Don't include characters
36016         of category Cc or Cs and not-a-characters.
36017         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36018         U+0D79, U+109E, U+109F, U+A60C.
36019         * lib/unictype/bidi_of.h: Regenerated.
36020         * lib/unictype/blocks.h: Regenerated.
36021         * lib/unictype/categ_C.h: Regenerated.
36022         * lib/unictype/categ_Cf.h: Regenerated.
36023         * lib/unictype/categ_Cn.h: Regenerated.
36024         * lib/unictype/categ_L.h: Regenerated.
36025         * lib/unictype/categ_Ll.h: Regenerated.
36026         * lib/unictype/categ_Lm.h: Regenerated.
36027         * lib/unictype/categ_Lo.h: Regenerated.
36028         * lib/unictype/categ_Lu.h: Regenerated.
36029         * lib/unictype/categ_M.h: Regenerated.
36030         * lib/unictype/categ_Mc.h: Regenerated.
36031         * lib/unictype/categ_Me.h: Regenerated.
36032         * lib/unictype/categ_Mn.h: Regenerated.
36033         * lib/unictype/categ_N.h: Regenerated.
36034         * lib/unictype/categ_Nd.h: Regenerated.
36035         * lib/unictype/categ_Nl.h: Regenerated.
36036         * lib/unictype/categ_No.h: Regenerated.
36037         * lib/unictype/categ_P.h: Regenerated.
36038         * lib/unictype/categ_Pd.h: Regenerated.
36039         * lib/unictype/categ_Pe.h: Regenerated.
36040         * lib/unictype/categ_Pf.h: Regenerated.
36041         * lib/unictype/categ_Pi.h: Regenerated.
36042         * lib/unictype/categ_Po.h: Regenerated.
36043         * lib/unictype/categ_Ps.h: Regenerated.
36044         * lib/unictype/categ_S.h: Regenerated.
36045         * lib/unictype/categ_Sk.h: Regenerated.
36046         * lib/unictype/categ_Sm.h: Regenerated.
36047         * lib/unictype/categ_So.h: Regenerated.
36048         * lib/unictype/categ_of.h: Regenerated.
36049         * lib/unictype/combining.h: Regenerated.
36050         * lib/unictype/ctype_alnum.h: Regenerated.
36051         * lib/unictype/ctype_alpha.h: Regenerated.
36052         * lib/unictype/ctype_graph.h: Regenerated.
36053         * lib/unictype/ctype_lower.h: Regenerated.
36054         * lib/unictype/ctype_print.h: Regenerated.
36055         * lib/unictype/ctype_punct.h: Regenerated.
36056         * lib/unictype/ctype_upper.h: Regenerated.
36057         * lib/unictype/decdigit.h: Regenerated.
36058         * lib/unictype/digit.h: Regenerated.
36059         * lib/unictype/mirror.h: Regenerated.
36060         * lib/unictype/numeric.h: Regenerated.
36061         * lib/unictype/pr_alphabetic.h: Regenerated.
36062         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36063         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36064         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36065         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36066         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36067         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36068         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36069         * lib/unictype/pr_combining.h: Regenerated.
36070         * lib/unictype/pr_dash.h: Regenerated.
36071         * lib/unictype/pr_decimal_digit.h: Regenerated.
36072         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36073         * lib/unictype/pr_deprecated.h: Regenerated.
36074         * lib/unictype/pr_diacritic.h: Regenerated.
36075         * lib/unictype/pr_extender.h: Regenerated.
36076         * lib/unictype/pr_format_control.h: Regenerated.
36077         * lib/unictype/pr_grapheme_base.h: Regenerated.
36078         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36079         * lib/unictype/pr_grapheme_link.h: Regenerated.
36080         * lib/unictype/pr_id_continue.h: Regenerated.
36081         * lib/unictype/pr_id_start.h: Regenerated.
36082         * lib/unictype/pr_ideographic.h: Regenerated.
36083         * lib/unictype/pr_ignorable_control.h: Regenerated.
36084         * lib/unictype/pr_lowercase.h: Regenerated.
36085         * lib/unictype/pr_math.h: Regenerated.
36086         * lib/unictype/pr_numeric.h: Regenerated.
36087         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36088         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36089         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36090         * lib/unictype/pr_other_id_continue.h: Regenerated.
36091         * lib/unictype/pr_other_lowercase.h: Regenerated.
36092         * lib/unictype/pr_other_math.h: Regenerated.
36093         * lib/unictype/pr_punctuation.h: Regenerated.
36094         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36095         * lib/unictype/pr_soft_dotted.h: Regenerated.
36096         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36097         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36098         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36099         * lib/unictype/pr_uppercase.h: Regenerated.
36100         * lib/unictype/pr_xid_continue.h: Regenerated.
36101         * lib/unictype/pr_xid_start.h: Regenerated.
36102         * lib/unictype/pr_zero_width.h: Regenerated.
36103         * lib/unictype/scripts.h: Regenerated.
36104         * lib/unictype/scripts_byname.gperf: Regenerated.
36105         * lib/unictype/sy_java_ident.h: Regenerated.
36106         * lib/unilbrk/lbrkprop1.h: Regenerated.
36107         * lib/unilbrk/lbrkprop2.h: Regenerated.
36108         * tests/unictype/test-categ_C.c: Regenerated.
36109         * tests/unictype/test-categ_Cf.c: Regenerated.
36110         * tests/unictype/test-categ_Cn.c: Regenerated.
36111         * tests/unictype/test-categ_L.c: Regenerated.
36112         * tests/unictype/test-categ_Ll.c: Regenerated.
36113         * tests/unictype/test-categ_Lm.c: Regenerated.
36114         * tests/unictype/test-categ_Lo.c: Regenerated.
36115         * tests/unictype/test-categ_Lu.c: Regenerated.
36116         * tests/unictype/test-categ_M.c: Regenerated.
36117         * tests/unictype/test-categ_Mc.c: Regenerated.
36118         * tests/unictype/test-categ_Me.c: Regenerated.
36119         * tests/unictype/test-categ_Mn.c: Regenerated.
36120         * tests/unictype/test-categ_N.c: Regenerated.
36121         * tests/unictype/test-categ_Nd.c: Regenerated.
36122         * tests/unictype/test-categ_Nl.c: Regenerated.
36123         * tests/unictype/test-categ_No.c: Regenerated.
36124         * tests/unictype/test-categ_P.c: Regenerated.
36125         * tests/unictype/test-categ_Pd.c: Regenerated.
36126         * tests/unictype/test-categ_Pe.c: Regenerated.
36127         * tests/unictype/test-categ_Pf.c: Regenerated.
36128         * tests/unictype/test-categ_Pi.c: Regenerated.
36129         * tests/unictype/test-categ_Po.c: Regenerated.
36130         * tests/unictype/test-categ_Ps.c: Regenerated.
36131         * tests/unictype/test-categ_S.c: Regenerated.
36132         * tests/unictype/test-categ_Sk.c: Regenerated.
36133         * tests/unictype/test-categ_Sm.c: Regenerated.
36134         * tests/unictype/test-categ_So.c: Regenerated.
36135         * tests/unictype/test-ctype_alnum.c: Regenerated.
36136         * tests/unictype/test-ctype_alpha.c: Regenerated.
36137         * tests/unictype/test-ctype_graph.c: Regenerated.
36138         * tests/unictype/test-ctype_lower.c: Regenerated.
36139         * tests/unictype/test-ctype_print.c: Regenerated.
36140         * tests/unictype/test-ctype_punct.c: Regenerated.
36141         * tests/unictype/test-ctype_upper.c: Regenerated.
36142         * tests/unictype/test-decdigit.h: Regenerated.
36143         * tests/unictype/test-digit.h: Regenerated.
36144         * tests/unictype/test-numeric.h: Regenerated.
36145         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36146         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36147         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36148         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36149         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36150         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36152         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36153         * tests/unictype/test-pr_combining.c: Regenerated.
36154         * tests/unictype/test-pr_dash.c: Regenerated.
36155         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36156         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36157         * tests/unictype/test-pr_deprecated.c: Regenerated.
36158         * tests/unictype/test-pr_diacritic.c: Regenerated.
36159         * tests/unictype/test-pr_extender.c: Regenerated.
36160         * tests/unictype/test-pr_format_control.c: Regenerated.
36161         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36162         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36163         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36164         * tests/unictype/test-pr_id_continue.c: Regenerated.
36165         * tests/unictype/test-pr_id_start.c: Regenerated.
36166         * tests/unictype/test-pr_ideographic.c: Regenerated.
36167         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36168         * tests/unictype/test-pr_lowercase.c: Regenerated.
36169         * tests/unictype/test-pr_math.c: Regenerated.
36170         * tests/unictype/test-pr_numeric.c: Regenerated.
36171         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36172         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36173         Regenerated.
36174         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36175         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36176         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36177         * tests/unictype/test-pr_other_math.c: Regenerated.
36178         * tests/unictype/test-pr_punctuation.c: Regenerated.
36179         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36180         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36181         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36182         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36183         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36184         * tests/unictype/test-pr_uppercase.c: Regenerated.
36185         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36186         * tests/unictype/test-pr_xid_start.c: Regenerated.
36187         * tests/unictype/test-pr_zero_width.c: Regenerated.
36188
36189         Update to Unicode 5.1.0.
36190         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36191         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36192         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36193         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36194         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36195         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36196         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36197         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36198         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36199         (nonspacing_table_ind): Update.
36200         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36201
36202         Update to Unicode 5.1.0.
36203         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36204         code transform.
36205         * lib/uniname/uniname.c (unicode_character_name,
36206         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36207         * lib/uniname/uninames.h: Regenerated.
36208         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36209
36210 2009-02-07  Bruno Haible  <bruno@clisp.org>
36211
36212         Merge gen-ctype and gen-lbrk into a single program.
36213         * lib/gen-uni-tables.c: New file, incorporating
36214         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36215         Add directory prefixes to the names of the generated files.
36216         * lib/unictype/gen-ctype.c: Remove file.
36217         * lib/unilbrk/gen-lbrk.c: Remove file.
36218         * modules/gen-uni-tables: New file.
36219         * modules/unictype/gen-ctype: Remove file.
36220         * modules/unilbrk/gen-lbrk: Remove file.
36221
36222 2009-02-07  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36225
36226         New module 'unistr/u32-strcoll'.
36227         * modules/unistr/u32-strcoll: New file.
36228         * lib/unistr/u32-strcoll.c: New file.
36229
36230         New module 'unistr/u16-strcoll'.
36231         * modules/unistr/u16-strcoll: New file.
36232         * lib/unistr/u16-strcoll.c: New file.
36233
36234         New module 'unistr/u8-strcoll'.
36235         * modules/unistr/u8-strcoll: New file.
36236         * lib/unistr/u8-strcoll.c: New file.
36237         * lib/unistr/u-strcoll.h: New file.
36238
36239 2009-02-07  Bruno Haible  <bruno@clisp.org>
36240
36241         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36242         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36243         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36244         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36245         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36246         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36247
36248 2009-02-07  Bruno Haible  <bruno@clisp.org>
36249
36250         Make 64-bit clean.
36251         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36252         output_combclass, output_bidi_category, output_decimal_digit,
36253         output_digit, output_numeric, output_mirror, output_scripts,
36254         output_ident_category): Use proper width specifier in format strings.
36255
36256 2009-02-07  Bruno Haible  <bruno@clisp.org>
36257
36258         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36259         failure behaviour.
36260
36261 2009-02-07  Jim Meyering  <meyering@redhat.com>
36262
36263         regex: avoid compilation failure with upcoming gcc-4.4
36264         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36265         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36266         "... error: integer overflow in preprocessor expression".
36267
36268 2009-02-05  Ben Pfaff  <blp@gnu.org>
36269
36270         Fix link errors on Windows when close module is used.
36271         * modules/close: Add $(LIB_CLOSE) to Link section.
36272         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36273         $(LIB_CLOSE) on Windows.
36274
36275 2009-02-05  Jim Meyering  <meyering@redhat.com>
36276
36277         still avoid unused-parameter warnings, but do it cleanly
36278         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36279         (get_fs_usage): Cast to void instead.
36280         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36281         (dev_from_mount_options, read_file_system_list): Cast to void.
36282         Prompted by Bruno Haible.
36283
36284 2009-02-04  Jim Meyering  <meyering@redhat.com>
36285
36286         fsusage.c: correct copyright year
36287         * lib/fsusage.c: Reflect year in which the change is pushed into
36288
36289         avoid misc. warnings
36290         * lib/fsusage.c (UNUSED_PARAM): Define.
36291         (get_fs_usage): Mark parameter "disk" as unused.
36292         * lib/getugroups.c (getgrent): Use "void" in prototype.
36293         * lib/mountlist.c: Mark unused parameters.
36294         (read_file_system_list): Declare a local with "const".
36295         * lib/nanosleep.c (getnow): Declare static.
36296         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36297
36298         dirfd: set errno upon failure
36299         * lib/dirfd.c: Include <errno.h>.
36300         Set errno to ENOTSUP when returning -1.
36301         * modules/dirfd (Depends-on): Add errno.
36302         Suggested by John Kodis <kodis@comcast.net>.
36303
36304 2009-02-01  Bruno Haible  <bruno@clisp.org>
36305
36306         Don't assume sizeof (long) >= sizeof (void *).
36307         * lib/memcmp.c: Include stdint.h.
36308         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36309         srcp2 to 'const byte *'.
36310         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36311         types to uintptr_t.
36312         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36313         * modules/memcmp (Depends-on): Add stdint.
36314         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36315
36316 2009-01-30  Eric Blake  <ebb9@byu.net>
36317
36318         fix more require-before-expand issues
36319         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36320         expand, AC_PROG_AWK.
36321         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36322
36323 2009-01-28  Eric Blake  <ebb9@byu.net>
36324
36325         version-etc: use consistent URL formatting
36326         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36327         Improve formatting.  Use fputs for string without %.
36328
36329 2009-01-28  Jim Meyering  <meyering@redhat.com>
36330
36331         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36332         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36333         "underquoted definition of NAME" from autoconf-2.59.
36334
36335 2009-01-28  Bruno Haible  <bruno@clisp.org>
36336
36337         * doc/gnulib.texi: Add "Obsolete modules" to index.
36338
36339 2009-01-28  Jim Meyering  <meyering@redhat.com>
36340
36341         useless-if-before-free: recognize more variants
36342         * build-aux/useless-if-before-free: Also recognize e.g.,
36343         if (NULL != p) free (p);
36344
36345 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36346
36347         test-getaddrinfo: skip (don't fail) this test when there's no network
36348         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36349         on the presumption that it means you lack network access.
36350
36351 2009-01-26  Jim Meyering  <meyering@redhat.com>
36352
36353         fflush: avoid warnings on modern systems
36354         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36355         pos and result, into scopes where they're used.
36356
36357 2009-01-26  Eric Blake  <ebb9@byu.net>
36358
36359         Silence warning reintroduced by recent extensions patch.
36360         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36361         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36362         autoconf.
36363
36364         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36365         * m4/00gnulib.m4: New file.
36366         * gnulib-tool (func_get_filelist): Always use it.
36367         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36368         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36369
36370 2009-01-25  Bruno Haible  <bruno@clisp.org>
36371
36372         Make test-quotearg work on MacOS X and AIX.
36373         * tests/test-quotearg.sh: New file.
36374         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36375         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36376         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36377         include <libintl.h>.
36378         (fake_locale): Remove variable.
36379         (gettext, dgettext, dcgettext): Remove functions.
36380         (main): Instead of setting a fake locale, set a real locale. Call
36381         textdomain and bindtextdomain.
36382         * modules/quotearg-tests (Files): Add the new files.
36383         (Depends-on): Add gettext, setenv, unsetenv.
36384         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36385         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36386         Augment TESTS_ENVIRONMENT.
36387
36388 2009-01-25  Bruno Haible  <bruno@clisp.org>
36389
36390         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36391         fr_FR.ISO8859-1 locale on MacOS X.
36392         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36393         ja_JP.eucJP locale on MacOS X.
36394         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36395         zh_CN.GB18030 locale on MacOS X.
36396
36397 2009-01-25  Bruno Haible  <bruno@clisp.org>
36398
36399         Avoid link errors on MacOS X 10.3.
36400         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36401         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36402
36403 2009-01-25  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36406         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36407         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36408         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36409         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36410         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36411         posix_spawnattr_init, posix_spawnattr_setsigmask,
36412         posix_spawnattr_setflags, posix_spawnattr_destroy.
36413
36414         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36415         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36416         * modules/execute (Files): Remove m4/posix_spawn.m4.
36417         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36418         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36419         posix_spawnattr_init, posix_spawnattr_setsigmask,
36420         posix_spawnattr_setflags, posix_spawnattr_destroy.
36421
36422 2009-01-25  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/glthread/threadlib.c: Include <stdlib.h>.
36425
36426 2009-01-25  Bruno Haible  <bruno@clisp.org>
36427
36428         * lib/glthread/threadlib.c (dummy): New declaration.
36429
36430 2009-01-25  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36433         multibyte characters also for the GB18030 encoding. Don't crash when
36434         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36435
36436 2009-01-25  Bruno Haible  <bruno@clisp.org>
36437
36438         Avoid redefining 'struct random_data' on OSF/1 5.1.
36439         * lib/stdlib.in.h: Include <random.h> if it exists.
36440         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36441         HAVE_RANDOM_H. Include <random.h> when testing whether
36442         'struct random_data' exists.
36443         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36444
36445 2009-01-25  Bruno Haible  <bruno@clisp.org>
36446
36447         Don't install charset.alias on MacOS X >= 10.3.
36448         * lib/localcharset.c (DARWIN7): New macro.
36449         (get_charset_aliases): Hardcode the result for Darwin7.
36450         * modules/localcharset (install-exec-local): Don't install
36451         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36452
36453 2009-01-25  Bruno Haible  <bruno@clisp.org>
36454
36455         Don't install charset.alias on mingw and Cygwin.
36456         * modules/localcharset (install-exec-local): Don't install
36457         charset.alias on mingw and Cygwin, if the file does not yet exist.
36458         The result for these platforms is hardcoded in localcharset.c.
36459
36460 2009-01-25  Bruno Haible  <bruno@clisp.org>
36461
36462         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36463         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36464         before requiring AC_USE_SYSTEM_EXTENSIONS.
36465
36466 2009-01-25  Jim Meyering  <meyering@redhat.com>
36467
36468         c-strtod: avoid warnings
36469         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36470         "assignment discards qualifiers from pointer target type" warnings.
36471
36472 2009-01-24  Bruno Haible  <bruno@clisp.org>
36473
36474         Add support for non-UTF-8 locales on MacOS X.
36475         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36476         canonical encodings. For Darwin 7 and newer, don't map traditional
36477         encodings to UTF-8.
36478         Reported by Vincent Lefevre <vincent@vinc17.org>
36479         at <http://savannah.gnu.org/bugs/?25235>.
36480
36481 2009-01-24  Bruno Haible  <bruno@clisp.org>
36482
36483         * doc/gnulib.texi (Obsolete modules): New section.
36484         Reported by Mike Frysinger <vapier@gentoo.org>.
36485
36486 2009-01-24  Bruno Haible  <bruno@clisp.org>
36487
36488         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36489         (%.dvi): New rule.
36490
36491 2009-01-24  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36494         Reported by Eric Blake.
36495
36496 2009-01-24  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36499         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36500         Reported by Gary V. Vaughan <gary@gnu.org>.
36501
36502 2009-01-24  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36505
36506 2009-01-23  Bruno Haible  <bruno@clisp.org>
36507
36508         Make c-strtod, c-strtold usable in libraries.
36509         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36510         (C_STRTOD): Call strdup instead of xstrdup.
36511         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36512         * modules/c-strtold (Depends-on): Likewise.
36513         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36514         * NEWS: Mention the change.
36515         Reported by Michael Gold <mgold@ncf.ca>.
36516
36517 2009-01-23  Jim Meyering  <meyering@redhat.com>
36518
36519         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36520         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36521         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36522
36523 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36524
36525         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36526         GNU CoreUtils.
36527         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36528         * modules/version-etc (Description): Update.
36529
36530 2009-01-22  Bruno Haible  <bruno@clisp.org>
36531
36532         Cache the C locale object.
36533         * lib/c-strtod.c (c_locale_cache): New variable.
36534         (c_locale): New function.
36535         (C_STRTOD): Use it, and don't call freelocale.
36536         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36537         Suggested by Paolo Bonzini.
36538
36539 2009-01-21  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36542         conditions other than overflow.
36543
36544 2009-01-21  Bruno Haible  <bruno@clisp.org>
36545
36546         * lib/c-strtod.c: Include errno.h.
36547         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36548         value from STRTOD_L and STRTOD.
36549
36550 2009-01-21  Bruno Haible  <bruno@clisp.org>
36551         and Jim Meyering  <meyering@redhat.com>
36552
36553         nanosleep: skip configure test (fail it) for apple universal builds
36554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36555         universal builds, assume that nanosleep does not work.
36556         * modules/nanosleep (Depends-on): Add multiarch.
36557
36558         mktime: skip configure test (fail it) for apple universal builds
36559         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36560         universal builds, assume that mktime does not work.
36561         * modules/mktime (Depends-on): Add multiarch.
36562
36563 2009-01-21  Eric Blake  <ebb9@byu.net>
36564
36565         multiarch: avoid expand-before-require warning
36566         * modules/multiarch (configure.ac): Require, rather than expand,
36567         gl_MULTIARCH.
36568         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36569         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36570         enforce that all clients require it.  Partial reversion of
36571         2008-12-29 patch.
36572
36573         error: avoid expand-before-require warning
36574         * modules/errno (configure.ac): Require, rather than expand,
36575         gl_HEADER_ERRNO_H.
36576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36577         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36578         enforce that all clients require it.
36579
36580         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36581         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36582         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36583         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36584
36585 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36586
36587         Revert:
36588         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36589
36590         regex: do not depend on obsolete modules.
36591         * modules/regex: Remove memcmp and memmove.
36592
36593 2009-01-20  Bruno Haible  <bruno@clisp.org>
36594
36595         Make the 'link' module link on Windows NT 4.
36596         * lib/link.c (_WIN32_WINNT): Don't define.
36597         (CreateHardLinkFuncType): New type.
36598         (CreateHardLinkFunc, initialized): New variables.
36599         (initialize): New function.
36600         (link): Invoke CreateHardLink indirectly through the function pointer.
36601
36602 2009-01-20  Bruno Haible  <bruno@clisp.org>
36603
36604         Fix compilation failure on mingw.
36605         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36606
36607 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36608
36609         * doc/c-strtod.texi: Mention a couple of restrictions.
36610
36611 2009-01-20  Jim Meyering  <meyering@redhat.com>
36612
36613         gettimeofday: move more declarations out of functions
36614         * lib/gettimeofday.c: Move extern declarations of tzset and
36615         gmtime out of containing functions.  Prompted by Bruno Haible.
36616
36617 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36618
36619         regex: do not depend on obsolete modules.
36620         * modules/regex: Remove memcmp and memmove.
36621
36622 2009-01-19  Bruno Haible  <bruno@clisp.org>
36623
36624         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36625         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36626         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36627         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36628         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36629
36630 2009-01-19  Bruno Haible  <bruno@clisp.org>
36631
36632         * tests/test-link.c: Include <errno.h>.
36633         (main): Exit with code 77 when a hard link cannot be created due to
36634         the file system.
36635         * tests/test-link.sh: Skip test when a hard link cannot be created due
36636         to the file system.
36637         Suggested by Eric Blake.
36638
36639 2009-01-19  Martin Lambers  <marlam@marlam.de>
36640
36641         * modules/link-tests: New file.
36642         * tests/test-link.sh: New file.
36643         * tests/test-link.c: New file.
36644
36645 2009-01-19  Eric Blake  <ebb9@byu.net>
36646
36647         doc: mention another function added in cygwin 1.7.0
36648         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36649         Another new function in cygwin 1.7.
36650
36651 2009-01-19  Bruno Haible  <bruno@clisp.org>
36652
36653         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36654         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36655         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36656         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36657         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36658         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36659         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36660         * m4/md4.m4 (gl_MD4): Likewise.
36661         * m4/md5.m4 (gl_MD5): Likewise.
36662         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36663         * m4/sha1.m4 (gl_SHA1): Likewise.
36664         * m4/sha256.m4 (gl_SHA256): Likewise.
36665         * m4/sha512.m4 (gl_SHA512): Likewise.
36666
36667 2009-01-19  Bruno Haible  <bruno@clisp.org>
36668
36669         * modules/uniname/uniname-tests (Depends-on): Add progname.
36670         * tests/uniname/test-uninames.c: Include progname.h.
36671         (main): Call set_program_name.
36672
36673         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36674         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36675         (main): Call set_program_name.
36676
36677         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36678         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36679         (main): Call set_program_name.
36680
36681         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36682         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36683         (main): Call set_program_name.
36684
36685         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36686         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36687         (main): Call set_program_name.
36688
36689         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36690         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36691         (main): Call set_program_name.
36692
36693         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36694         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36695         (main): Call set_program_name.
36696
36697         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36698         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36699         (main): Call set_program_name.
36700
36701         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36702         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36703         (main): Call set_program_name.
36704
36705 2009-01-19  Eric Blake  <ebb9@byu.net>
36706
36707         test-unistd: test previous patch
36708         * tests/test-unistd.c: Test *_FILENO macros.
36709
36710         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36711         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36712         Guarantee a definition.
36713         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36714         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36715         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36716         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36717         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36718         Likewise.
36719         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36720         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36721         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36722         Likewise.
36723         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36724         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36725         (STDERR_FILENO): Likewise.
36726         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36727         (STDERR_FILENO): Likewise.
36728         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36729         (STDERR_FILENO): Likewise.
36730         Reported by Elbert Pol.
36731
36732 2009-01-19  Eric Blake  <ebb9@byu.net>
36733
36734         doc: mention more functions added in cygwin 1.7.0
36735         * doc/posix-functions/abort.texi (abort): Update wording related
36736         to cygwin.
36737         * doc/posix-functions/daylight.texi (daylight): Likewise.
36738         * doc/posix-functions/optarg.texi (optarg): Likewise.
36739         * doc/posix-functions/optarg.texi (opterr): Likewise.
36740         * doc/posix-functions/optarg.texi (optind): Likewise.
36741         * doc/posix-functions/optarg.texi (optopt): Likewise.
36742         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36743         worked in 1.5.x, and was withdrawn in 1.7.
36744         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36745         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36746         cygwin versions.
36747         * doc/posix-functions/perror.texi (perror): Likewise.
36748         * doc/posix-functions/printf.texi (printf): Likewise.
36749         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36750         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36751         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36752         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36753         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36754         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36755         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36756         Likewise.
36757         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36758         Likewise.
36759         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36760         this function.
36761         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36762         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36763         Likewise.
36764         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36765         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36766         * doc/posix-functions/confstr.texi (confstr): Likewise.
36767         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36768         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36769         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36770         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36771         * doc/posix-functions/fputws.texi (fputws): Likewise.
36772         * doc/posix-functions/fwide.texi (fwide): Likewise.
36773         * doc/posix-functions/getwc.texi (getwc): Likewise.
36774         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36775         * doc/posix-functions/putwc.texi (putwc): Likewise.
36776         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36777         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36778         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36779         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36780         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36781         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36782         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36783         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36784         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36785         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36786         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36787
36788 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36789
36790         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36791         * lib/ioctl.c: Include <sys/ioctl.h>.
36792
36793 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36794
36795         * modules/getdate-tests (Depends-on): Add progname.
36796         * tests/test-getdate.c: Use progname module, to avoid link errors
36797         on non-glibc systems.
36798
36799 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36800
36801         * modules/filenamecat-tests (Depends-on): Add progname.
36802         * modules/fstrcmp-tests (Depends-on): Likewise.
36803
36804         * tests/test-filenamecat.c: Use progname module, to avoid link
36805         errors on non-glibc systems.
36806         * tests/test-fstrcmp.c: Likewise.
36807
36808 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36809
36810         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36811         * lib/gettimeofday.c: Move extern declaration out of function.
36812
36813 2009-01-18  Bruno Haible  <bruno@clisp.org>
36814
36815         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36816         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36817         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36818
36819 2009-01-18  Bruno Haible  <bruno@clisp.org>
36820
36821         * lib/strftime.c (MEMPCPY): Remove unused macro.
36822         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36823
36824 2009-01-18  Martin Lambers  <marlam@marlam.de>
36825
36826         New module 'link'.
36827         * lib/unistd.in.h (link): New declaration.
36828         * lib/link.c: New file.
36829         * m4/link.m4: New file.
36830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36831         HAVE_LINK.
36832         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36833         * modules/link: New file.
36834         * doc/posix-functions/link.texi: Mention the new module.
36835
36836 2009-01-18  Bruno Haible  <bruno@clisp.org>
36837
36838         * tests/test-avltree_list.c (main): Call set_program_name.
36839         * tests/test-avltree_oset.c (main): Likewise.
36840         * tests/test-obstack-printf.c: Include progname.h.
36841         (main): Call set_program_name.
36842         * tests/test-quotearg.c: Include progname.h.
36843         (main): Call set_program_name.
36844         * tests/test-xmemdup0.c: Include progname.h.
36845         (main): Call set_program_name.
36846
36847 2009-01-18  Bruno Haible  <bruno@clisp.org>
36848
36849         New module 'alphasort'.
36850         * lib/dirent.in.h (alphasort): New declaration.
36851         * lib/alphasort.c: New file, from glibc with modifications.
36852         * m4/alphasort.m4: New file.
36853         * modules/alphasort: New file.
36854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36855         HAVE_ALPHASORT.
36856         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36857         HAVE_ALPHASORT.
36858         * doc/posix-functions/alphasort.texi: Mention the new module and the
36859         portability problems.
36860
36861 2009-01-18  Bruno Haible  <bruno@clisp.org>
36862
36863         New module 'scandir'.
36864         * lib/dirent.in.h (scandir): New declaration.
36865         * lib/scandir.c: New file, from glibc with modifications.
36866         * m4/scandir.m4: New file.
36867         * modules/scandir: New file.
36868         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36869         HAVE_SCANDIR.
36870         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36871         HAVE_SCANDIR.
36872         * doc/posix-functions/scandir.texi: Mention the new module and the
36873         portability problems.
36874
36875 2009-01-17  Bruno Haible  <bruno@clisp.org>
36876
36877         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36878         Update documentation.
36879         (func_remove_suffix): Escape all dots in the suffix. Update
36880         documentation.
36881         (func_filter_filelist): Update documentation.
36882         Reported by Ralf Wildenhues.
36883
36884 2009-01-17  Bruno Haible  <bruno@clisp.org>
36885
36886         * modules/dprintf-posix-tests: New file.
36887         * tests/test-dprintf-posix.sh: New file.
36888         * tests/test-dprintf-posix.c: New file.
36889
36890         New modules 'dprintf', 'dprintf-posix'.
36891         * lib/stdio.in.h (dprintf): New declaration.
36892         * lib/dprintf.c: New file.
36893         * m4/dprintf.m4: New file.
36894         * m4/dprintf-posix.m4: New file.
36895         * modules/dprintf: New file.
36896         * modules/dprintf-posix: New file.
36897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36898         HAVE_DPRINTF, REPLACE_DPRINTF.
36899         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36900         HAVE_DPRINTF, REPLACE_DPRINTF.
36901         * doc/posix-functions/dprintf.texi: Mention the new modules.
36902
36903 2009-01-17  Bruno Haible  <bruno@clisp.org>
36904
36905         * modules/vdprintf-posix-tests: New file.
36906         * tests/test-vdprintf-posix.sh: New file.
36907         * tests/test-vdprintf-posix.c: New file.
36908
36909         New modules 'vdprintf', 'vdprintf-posix'.
36910         * lib/stdio.in.h (vdprintf): New declaration.
36911         * lib/vdprintf.c: New file.
36912         * m4/vdprintf.m4: New file.
36913         * m4/vdprintf-posix.m4: New file.
36914         * modules/vdprintf: New file.
36915         * modules/vdprintf-posix: New file.
36916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36917         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36918         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36919         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36920         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36921
36922 2009-01-17  Bruno Haible  <bruno@clisp.org>
36923
36924         Fix replacement of fopen on mingw.
36925         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36926         mingw.
36927
36928 2009-01-17  Bruno Haible  <bruno@clisp.org>
36929
36930         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36931         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36932
36933 2009-01-17  Bruno Haible  <bruno@clisp.org>
36934
36935         Avoid test-fflush2.sh failure on mingw.
36936         * tests/test-fflush2.c: Include binary-io.h.
36937         (main): Put standard input into binary mode.
36938         * modules/fflush-tests (Depends-on): Add binary-io.
36939
36940 2009-01-17  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/wchar.in.h: In another particular situation, include only the
36943         system's <wchar.h> file.
36944         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36945         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36946         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36947
36948 2009-01-17  Bruno Haible  <bruno@clisp.org>
36949
36950         Support for stripping executables in --enable-relocatable.
36951         * build-aux/install-reloc: Expect one more argument, or an environment
36952         variable RELOC_STRIP_PROG. If set, strip the destination program and
36953         its wrapper.
36954         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36955         RELOC_STRIP_PROG.
36956         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36957         to set RELOCATABLE_STRIP.
36958         * NEWS: Mention the new Makefile requirement.
36959
36960 2009-01-17  Bruno Haible  <bruno@clisp.org>
36961
36962         * build-aux/install-reloc: Remove debugging information left over by
36963         C compiler on MacOS X.
36964
36965 2009-01-17  Bruno Haible  <bruno@clisp.org>
36966
36967         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36968         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36969         _NSGetExecutablePath.
36970
36971 2009-01-16  Jim Meyering  <meyering@redhat.com>
36972
36973         strerror: avoid warnings about discarding "const"
36974         * lib/strerror.c (rpl_strerror): Instead of returning a const
36975         string from each and every "case", use a variable, and add a single
36976         cast after the switch.
36977
36978 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36979
36980         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36981
36982 2009-01-16  Bruno Haible  <bruno@clisp.org>
36983
36984         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36985         array initializer syntax that also works in C++ mode.
36986         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36987
36988 2009-01-16  Jim Meyering  <meyering@redhat.com>
36989
36990         poll: suppress a warning
36991         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36992         to ignore "...unsigned expression < 0 is always false" warnings.
36993
36994 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36995
36996         poll: remove declarations of unused variables
36997         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36998         sockbuf and optlen.
36999
37000 2009-01-15  Bruno Haible  <bruno@clisp.org>
37001
37002         Make fflush-after-ungetc POSIX compliant on BSD systems.
37003         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37004         (clear_ungetc_buffer): Implement also for other systems.
37005         (rpl_fflush): On glibc systems, invoke
37006         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37007         clear_ungetc_buffer after fetching the stream's position, not before.
37008
37009 2009-01-15  Bruno Haible  <bruno@clisp.org>
37010
37011         Make fflush-after-ungetc POSIX compliant on glibc systems.
37012         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37013         after ungetc.
37014         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37015         (rpl_fflush): On glibc systems, simply call the system's fflush
37016         function after clearing the ungetc buffer.
37017         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37018         Instead, lseek only to the end of file, then use the system's fseeko
37019         for the rest. On glibc systems, reset the EOF indicator bit.
37020
37021 2009-01-15  Jim Meyering  <meyering@redhat.com>
37022
37023         openmp.m4: revert quote-adding change, for portability to older autoconf
37024         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37025         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37026         Simon Josefsson noticed the problem when using autoconf-2.61.
37027
37028 2009-01-15  Bruno Haible  <bruno@clisp.org>
37029
37030         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37031         * tests/test-fflush2.c (ASSERT): Always fail.
37032         (main): Add two tests for fflush() after ungetc(), taking into account
37033         the Austin Group's clarification.
37034         Suggested by Eric Blake.
37035
37036 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37037
37038         mktime.m4: remove K&R-style function prototypes
37039         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37040         for the Sun C++ compiler.
37041
37042 2009-01-14  Bruno Haible  <bruno@clisp.org>
37043
37044         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37045         while including <wchar.h>.
37046         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37047         the system's <wchar.h> file.
37048         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37049
37050 2009-01-14  Bruno Haible  <bruno@clisp.org>
37051
37052         * m4/csharp.m4: Don't mention gettext on the serial number line.
37053         * m4/csharpexec.m4: Likewise.
37054         * m4/eaccess.m4: Likewise.
37055         * m4/javaexec.m4: Likewise.
37056         * m4/sig_atomic_t.m4: Likewise.
37057         * m4/tmpdir.m4: Likewise.
37058         * m4/intldir.m4: Bump gettext version.
37059         * m4/lib-ld.m4: Likewise.
37060
37061 2009-01-14  Bruno Haible  <bruno@clisp.org>
37062
37063         * lib/progname.c (set_program_name): Add more comments.
37064         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37065
37066 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37067
37068         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37069         were sys/stat.h does not define it.
37070
37071 2009-01-14  Jim Meyering  <meyering@redhat.com>
37072
37073         many *.m4 files: improve m4 quoting
37074         99% of this change was performed by running the following commands:
37075         git ls-files | grep '\.m4$' | xargs perl -pi \
37076           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37077           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37078           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37079           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37080         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37081         The remainder were to add Copyright dates, increment serial numbers,
37082         undo some changes in comments, exclude m4/intl.m4, and add quotes
37083         around the "1" in ",1" where the unusual spacing prohibited the
37084         above regexps from doing the job.  For more details, see
37085         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37086         * m4/acl.m4: Modified.
37087         * m4/afs.m4: Likewise.
37088         * m4/alloca.m4: Likewise.
37089         * m4/argp.m4: Likewise.
37090         * m4/argz.m4: Likewise.
37091         * m4/atexit.m4: Likewise.
37092         * m4/bison-i18n.m4: Likewise.
37093         * m4/bison.m4: Likewise.
37094         * m4/byteswap.m4: Likewise.
37095         * m4/c-stack.m4: Likewise.
37096         * m4/c-strtod.m4: Likewise.
37097         * m4/calloc.m4: Likewise.
37098         * m4/canonicalize-lgpl.m4: Likewise.
37099         * m4/chown.m4: Likewise.
37100         * m4/clock_time.m4: Likewise.
37101         * m4/codeset.m4: Likewise.
37102         * m4/copy-file.m4: Likewise.
37103         * m4/csharp.m4: Likewise.
37104         * m4/csharpcomp.m4: Likewise.
37105         * m4/csharpexec.m4: Likewise.
37106         * m4/d-ino.m4: Likewise.
37107         * m4/d-type.m4: Likewise.
37108         * m4/dirfd.m4: Likewise.
37109         * m4/double-slash-root.m4: Likewise.
37110         * m4/eaccess.m4: Likewise.
37111         * m4/eealloc.m4: Likewise.
37112         * m4/environ.m4: Likewise.
37113         * m4/errno_h.m4: Likewise.
37114         * m4/euidaccess.m4: Likewise.
37115         * m4/execute.m4: Likewise.
37116         * m4/fatal-signal.m4: Likewise.
37117         * m4/fchdir.m4: Likewise.
37118         * m4/fcntl_h.m4: Likewise.
37119         * m4/fileblocks.m4: Likewise.
37120         * m4/filenamecat.m4: Likewise.
37121         * m4/findprog.m4: Likewise.
37122         * m4/flexmember.m4: Likewise.
37123         * m4/fnmatch.m4: Likewise.
37124         * m4/fopen.m4: Likewise.
37125         * m4/fpending.m4: Likewise.
37126         * m4/fprintf-posix.m4: Likewise.
37127         * m4/free.m4: Likewise.
37128         * m4/frexp.m4: Likewise.
37129         * m4/frexpl.m4: Likewise.
37130         * m4/fsusage.m4: Likewise.
37131         * m4/ftruncate.m4: Likewise.
37132         * m4/gc-camellia.m4: Likewise.
37133         * m4/gc-random.m4: Likewise.
37134         * m4/gc.m4: Likewise.
37135         * m4/getaddrinfo.m4: Likewise.
37136         * m4/getcwd-abort-bug.m4: Likewise.
37137         * m4/getcwd-path-max.m4: Likewise.
37138         * m4/getdate.m4: Likewise.
37139         * m4/getdomainname.m4: Likewise.
37140         * m4/getgroups.m4: Likewise.
37141         * m4/gethostname.m4: Likewise.
37142         * m4/gethrxtime.m4: Likewise.
37143         * m4/getline.m4: Likewise.
37144         * m4/getloadavg.m4: Likewise.
37145         * m4/getndelim2.m4: Likewise.
37146         * m4/getpass.m4: Likewise.
37147         * m4/gettext.m4: Likewise.
37148         * m4/gettime.m4: Likewise.
37149         * m4/gettimeofday.m4: Likewise.
37150         * m4/gnulib-common.m4: Likewise.
37151         * m4/group-member.m4: Likewise.
37152         * m4/host-os.m4: Likewise.
37153         * m4/iconv.m4: Likewise.
37154         * m4/iconv_open.m4: Likewise.
37155         * m4/inet_ntop.m4: Likewise.
37156         * m4/inet_pton.m4: Likewise.
37157         * m4/inline.m4: Likewise.
37158         * m4/intldir.m4: Likewise.
37159         * m4/intlmacosx.m4: Likewise.
37160         * m4/intmax.m4: Likewise.
37161         * m4/intmax_t.m4: Likewise.
37162         * m4/inttypes.m4: Likewise.
37163         * m4/inttypes_h.m4: Likewise.
37164         * m4/inttypes-pri.m4: Likewise.
37165         * m4/isapipe.m4: Likewise.
37166         * m4/isnand.m4: Likewise.
37167         * m4/isnanf.m4: Likewise.
37168         * m4/isnanl.m4: Likewise.
37169         * m4/javacomp.m4: Likewise.
37170         * m4/javaexec.m4: Likewise.
37171         * m4/jm-winsz1.m4: Likewise.
37172         * m4/jm-winsz2.m4: Likewise.
37173         * m4/lchown.m4: Likewise.
37174         * m4/lcmessage.m4: Likewise.
37175         * m4/ldexpl.m4: Likewise.
37176         * m4/lib-ld.m4: Likewise.
37177         * m4/lib-link.m4: Likewise.
37178         * m4/libsigsegv.m4: Likewise.
37179         * m4/link-follow.m4: Likewise.
37180         * m4/localcharset.m4: Likewise.
37181         * m4/locale-fr.m4: Likewise.
37182         * m4/locale-ja.m4: Likewise.
37183         * m4/locale-tr.m4: Likewise.
37184         * m4/locale-zh.m4: Likewise.
37185         * m4/lock.m4: Likewise.
37186         * m4/longlong.m4: Likewise.
37187         * m4/ls-mntd-fs.m4: Likewise.
37188         * m4/lstat.m4: Likewise.
37189         * m4/malloc.m4: Likewise.
37190         * m4/mathl.m4: Likewise.
37191         * m4/mbrtowc.m4: Likewise.
37192         * m4/mbstate_t.m4: Likewise.
37193         * m4/mbswidth.m4: Likewise.
37194         * m4/memchr.m4: Likewise.
37195         * m4/memcmp.m4: Likewise.
37196         * m4/memcpy.m4: Likewise.
37197         * m4/memmem.m4: Likewise.
37198         * m4/memmove.m4: Likewise.
37199         * m4/mempcpy.m4: Likewise.
37200         * m4/memrchr.m4: Likewise.
37201         * m4/memset.m4: Likewise.
37202         * m4/minmax.m4: Likewise.
37203         * m4/mkdir-slash.m4: Likewise.
37204         * m4/mkdtemp.m4: Likewise.
37205         * m4/mktime.m4: Likewise.
37206         * m4/mmap-anon.m4: Likewise.
37207         * m4/mountlist.m4: Likewise.
37208         * m4/nanosleep.m4: Likewise.
37209         * m4/nls.m4: Likewise.
37210         * m4/nocrash.m4: Likewise.
37211         * m4/open.m4: Likewise.
37212         * m4/openat.m4: Likewise.
37213         * m4/openmp.m4: Likewise.
37214         * m4/pathmax.m4: Likewise.
37215         * m4/perl.m4: Likewise.
37216         * m4/physmem.m4: Likewise.
37217         * m4/pipe.m4: Likewise.
37218         * m4/po.m4: Likewise.
37219         * m4/poll.m4: Likewise.
37220         * m4/posixtm.m4: Likewise.
37221         * m4/posixver.m4: Likewise.
37222         * m4/printf-frexp.m4: Likewise.
37223         * m4/printf-frexpl.m4: Likewise.
37224         * m4/printf-posix.m4: Likewise.
37225         * m4/printf-posix-rpl.m4: Likewise.
37226         * m4/printf.m4: Likewise.
37227         * m4/progtest.m4: Likewise.
37228         * m4/putenv.m4: Likewise.
37229         * m4/readline.m4: Likewise.
37230         * m4/readlink.m4: Likewise.
37231         * m4/readutmp.m4: Likewise.
37232         * m4/realloc.m4: Likewise.
37233         * m4/regex.m4: Likewise.
37234         * m4/relocatable.m4: Likewise.
37235         * m4/relocatable-lib.m4: Likewise.
37236         * m4/rename-dest-slash.m4: Likewise.
37237         * m4/rename.m4: Likewise.
37238         * m4/rmdir-errno.m4: Likewise.
37239         * m4/rmdir.m4: Likewise.
37240         * m4/roundf.m4: Likewise.
37241         * m4/roundl.m4: Likewise.
37242         * m4/rpmatch.m4: Likewise.
37243         * m4/save-cwd.m4: Likewise.
37244         * m4/selinux-selinux-h.m4: Likewise.
37245         * m4/setenv.m4: Likewise.
37246         * m4/settime.m4: Likewise.
37247         * m4/sig2str.m4: Likewise.
37248         * m4/sig_atomic_t.m4: Likewise.
37249         * m4/signalblocking.m4: Likewise.
37250         * m4/signbit.m4: Likewise.
37251         * m4/sigpipe.m4: Likewise.
37252         * m4/sockets.m4: Likewise.
37253         * m4/sockpfaf.m4: Likewise.
37254         * m4/st_dm_mode.m4: Likewise.
37255         * m4/stat-time.m4: Likewise.
37256         * m4/stdbool.m4: Likewise.
37257         * m4/stdint.m4: Likewise.
37258         * m4/stdint_h.m4: Likewise.
37259         * m4/stpcpy.m4: Likewise.
37260         * m4/stpncpy.m4: Likewise.
37261         * m4/strcase.m4: Likewise.
37262         * m4/strchrnul.m4: Likewise.
37263         * m4/strcspn.m4: Likewise.
37264         * m4/strdup.m4: Likewise.
37265         * m4/strftime.m4: Likewise.
37266         * m4/strndup.m4: Likewise.
37267         * m4/strnlen.m4: Likewise.
37268         * m4/strpbrk.m4: Likewise.
37269         * m4/strptime.m4: Likewise.
37270         * m4/strsep.m4: Likewise.
37271         * m4/strtod.m4: Likewise.
37272         * m4/strtoimax.m4: Likewise.
37273         * m4/strtok_r.m4: Likewise.
37274         * m4/strtol.m4: Likewise.
37275         * m4/strtoll.m4: Likewise.
37276         * m4/strtoul.m4: Likewise.
37277         * m4/strtoull.m4: Likewise.
37278         * m4/strtoumax.m4: Likewise.
37279         * m4/strverscmp.m4: Likewise.
37280         * m4/threadlib.m4: Likewise.
37281         * m4/timegm.m4: Likewise.
37282         * m4/tm_gmtoff.m4: Likewise.
37283         * m4/tmpdir.m4: Likewise.
37284         * m4/tmpfile.m4: Likewise.
37285         * m4/tzset.m4: Likewise.
37286         * m4/uintmax_t.m4: Likewise.
37287         * m4/unlinkdir.m4: Likewise.
37288         * m4/unlocked-io.m4: Likewise.
37289         * m4/uptime.m4: Likewise.
37290         * m4/userspec.m4: Likewise.
37291         * m4/utimbuf.m4: Likewise.
37292         * m4/utime.m4: Likewise.
37293         * m4/utimes-null.m4: Likewise.
37294         * m4/utimes.m4: Likewise.
37295         * m4/vararrays.m4: Likewise.
37296         * m4/vasnprintf.m4: Likewise.
37297         * m4/vfprintf-posix.m4: Likewise.
37298         * m4/vprintf-posix.m4: Likewise.
37299         * m4/wait-process.m4: Likewise.
37300         * m4/wchar_t.m4: Likewise.
37301         * m4/wint_t.m4: Likewise.
37302         * m4/write-any-file.m4: Likewise.
37303         * m4/yield.m4: Likewise.
37304
37305 2009-01-13  Bruno Haible  <bruno@clisp.org>
37306
37307         Avoid test-copy-file.sh failures when ACL support insufficient.
37308         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37309         TESTS_ENVIRONMENT.
37310         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37311         Reported by Jim Meyering.
37312
37313 2009-01-13  Bruno Haible  <bruno@clisp.org>
37314
37315         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37316         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37317         * modules/unistdio/u8-printf-parse (Files): Likewise.
37318         * modules/unistdio/u32-printf-parse (Files): Likewise.
37319         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37320
37321 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37322
37323         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37324         and m4/inttypes_h.m4 too.
37325
37326 2009-01-12  Eric Blake  <ebb9@byu.net>
37327
37328         tests: IRIX 6.2 cc can't compile -0.0 into .data
37329         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37330         rather than at compile-time.
37331         * tests/test-floorl.c (minus_zero): Likewise.
37332         * tests/test-frexpl.c (minus_zero): Likewise.
37333         * tests/test-isnan.c (minus_zerol): Likewise.
37334         * tests/test-isnanl.h (minus_zero): Likewise.
37335         * tests/test-ldexpl.c (minus_zero): Likewise.
37336         * tests/test-roundl.c (minus_zero): Likewise.
37337         * tests/test-signbit.c (minus_zerol): Likewise.
37338         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37339         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37340         * tests/test-truncl.c (minus_zero): Likewise.
37341         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37342         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37343         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37344
37345 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37346
37347         regex: fix glibc bug 9697
37348         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37349         handling.
37350
37351 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37352
37353         regex: fix glibc bug 697
37354         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37355         being NULL also if there are no backreferences.
37356
37357 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37358
37359         regex: merge glibc changes
37360         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37361         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37362         re_string_skip_chars, re_string_reconstruct): Likewise.
37363         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37364
37365 2009-01-07  Jim Meyering  <meyering@redhat.com>
37366
37367         poll: filter through cppi
37368         * lib/poll.c: Indent cpp directives to reflect nesting.
37369
37370 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37371
37372         poll: don't return uninitialized
37373         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37374
37375 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37376
37377         avoid compile failure on AIX 6.1
37378         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37379         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37380
37381 2009-01-04  Jim Meyering  <meyering@redhat.com>
37382
37383         remove duplicate inclusion of <stdio.h>
37384         * tests/test-fprintf-posix.c: Likewise.
37385         * tests/test-printf-posix.c: Likewise.
37386         * tests/test-snprintf-posix.c: Likewise.
37387         * tests/test-sprintf-posix.c: Likewise.
37388         * tests/test-vasprintf-posix.c: Likewise.
37389         * tests/test-vfprintf-posix.c: Likewise.
37390         * tests/test-vprintf-posix.c: Likewise.
37391         * tests/test-vsnprintf-posix.c: Likewise.
37392         * tests/test-vsprintf-posix.c: Likewise.
37393
37394 2009-01-03  Jim Meyering  <meyering@redhat.com>
37395
37396         gnulib-tool: fix sed-based filtering
37397         * gnulib-tool (func_filter_filelist): Remove extra backslash
37398         in sed_fff_filter definition.
37399
37400 2009-01-02  Jim Meyering  <meyering@redhat.com>
37401
37402         strftime: avoid compilation failure on Solaris 2.6
37403         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37404         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37405         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37406         be available.  Reported by Tom G. Christensen.  Details in
37407         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37408
37409 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37410             Bruno Haible  <bruno@clisp.org>
37411
37412         Speed up gnulib-tool by doing more string processing through shell
37413         built-ins.
37414         * gnulib-tool (fast_func_append): New variable.
37415         (func_remove_prefix, func_remove_suffix): New functions.
37416         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37417         (func_filter_filelist): New function.
37418         (func_get_dependencies): Use func_remove_suffix instead of sed.
37419         (func_get_automake_snippet): Use func_filter_filelist instead of a
37420         subshell and sed invocation.
37421
37422 2009-01-01  Bruno Haible  <bruno@clisp.org>
37423
37424         Fix a security bug.
37425         * gnulib-tool (func_import, import, update): Don't allow the characters
37426         '"', '$', '`', '\' in macro arguments that become part of commands that
37427         are evaluated.
37428
37429 2009-01-01  Bruno Haible  <bruno@clisp.org>
37430
37431         * gnulib-tool (func_reset_sigpipe): Add more comments.
37432
37433 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37434
37435         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37436         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37437         already know the answer.
37438
37439 2009-01-01  Jim Meyering  <meyering@redhat.com>
37440
37441         * lib/version-etc.c (version_etc_va): Update copyright year.
37442
37443 2008-12-30  Bruno Haible  <bruno@clisp.org>
37444
37445         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37446         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37447         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37448
37449 2008-12-29  Eric Blake  <ebb9@byu.net>
37450
37451         multiarch: avoid autoconf AC_REQUIRE bug
37452         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37453         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37454         2.63 and older.
37455         Reported by Bruno Haible, and analyzed in
37456         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37457
37458 2008-12-29  Bruno Haible  <bruno@clisp.org>
37459
37460         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37461         files in subdirectories correctly.
37462         Reported by Ralf Wildenhues.
37463
37464 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37465
37466         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37467         rather than 'join FILE -', for Solaris join.
37468
37469 2008-12-29  Bruno Haible  <bruno@clisp.org>
37470
37471         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37472         quoting.
37473         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37474         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37475         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37476         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37477         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37478         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37479         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37480         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37481         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37482         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37483         * m4/nls.m4 (AM_NLS): Likewise.
37484         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37485         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37486         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37487         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37488         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37489         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37490         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37491         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37492         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37493         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37494         * m4/xsize.m4 (gl_XSIZE): Likewise.
37495         Suggested by Jim Meyering.
37496
37497 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37498
37499         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37500         * lib/parse-duration.c: use a switch instead of cascading if's.
37501
37502 2008-12-29  Eric Blake  <ebb9@byu.net>
37503
37504         wchar.h: supply WEOF on Irix 5.3
37505         * lib/wchar.in.h (wint_t): Also supply WEOF.
37506         * lib/wctype.in.h (wint_t): Likewise.
37507         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37508         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37509         Reported by Tom G. Christensen.
37510
37511 2008-12-26  Bruno Haible  <bruno@clisp.org>
37512
37513         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37514         i486, i586, i686.
37515
37516 2008-12-26  Bruno Haible  <bruno@clisp.org>
37517
37518         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37519
37520 2008-12-26  Bruno Haible  <bruno@clisp.org>
37521
37522         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37523         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37524         not __STDC_CONSTANT_MACROS.
37525         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37526
37527 2008-12-25  Bruno Haible  <bruno@clisp.org>
37528
37529         Add support for universal builds to vasnprintf.
37530         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37531         universal builds, guess no.
37532         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37533         * modules/vasprintf-posix (Depends-on): Likewise.
37534         * modules/fprintf-posix (Depends-on): Likewise.
37535         * modules/vfprintf-posix (Depends-on): Likewise.
37536         * modules/snprintf-posix (Depends-on): Likewise.
37537         * modules/vsnprintf-posix (Depends-on): Likewise.
37538         * modules/sprintf-posix (Depends-on): Likewise.
37539         * modules/vsprintf-posix (Depends-on): Likewise.
37540         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37541         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37542         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37543         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37544         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37545         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37546         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37547
37548         Add support for universal builds to <inttypes.h>.
37549         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37550         _SCNu64_PREFIX): In Apple
37551         universal builds, define directly, using _LP64.
37552         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37553         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37554         * modules/inttypes (Depends-on): Add multiarch.
37555         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37556
37557         Add support for universal builds to <stdint.h>.
37558         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37559         universal builds, define directly, using _LP64.
37560         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37561         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37562         and size_t.
37563         * modules/stdint (Depends-on): Add multiarch.
37564         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37565
37566         New module 'multiarch'.
37567         * modules/multiarch: New file.
37568         * m4/multiarch.m4: New file.
37569
37570 2008-12-25  Bruno Haible  <bruno@clisp.org>
37571
37572         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37573
37574 2008-12-25  Bruno Haible  <bruno@clisp.org>
37575
37576         * modules/btowc (License): Relicense under LGPLv2+.
37577         * modules/mbsinit (License): Likewise.
37578         * modules/mbrtowc (License): Likewise.
37579         * modules/wcrtomb (License): Likewise.
37580         * modules/streq (License): Likewise.
37581         Reported by David Lutterkort <lutter@redhat.com>.
37582
37583 2008-12-23  Bruno Haible  <bruno@clisp.org>
37584
37585         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37586
37587 2008-12-23  Bruno Haible  <bruno@clisp.org>
37588
37589         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37590         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37591         GETADDRINFO_LIB, not in LIBS.
37592         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37593         * modules/canon-host (Link): Likewise.
37594         * NEWS: Mention the change.
37595         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37596         GETADDRINFO_LIB.
37597
37598 2008-12-22  Bruno Haible  <bruno@clisp.org>
37599
37600         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37601         * doc/posix-functions/iswalpha_l.texi: Likewise.
37602         * doc/posix-functions/iswblank_l.texi: Likewise.
37603         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37604         * doc/posix-functions/iswctype_l.texi: Likewise.
37605         * doc/posix-functions/iswdigit_l.texi: Likewise.
37606         * doc/posix-functions/iswgraph_l.texi: Likewise.
37607         * doc/posix-functions/iswlower_l.texi: Likewise.
37608         * doc/posix-functions/iswprint_l.texi: Likewise.
37609         * doc/posix-functions/iswpunct_l.texi: Likewise.
37610         * doc/posix-functions/iswspace_l.texi: Likewise.
37611         * doc/posix-functions/iswupper_l.texi: Likewise.
37612         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37613         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37614         * doc/posix-functions/open_wmemstream.texi: Likewise.
37615         * doc/posix-functions/swscanf.texi: Likewise.
37616         * doc/posix-functions/towctrans_l.texi: Likewise.
37617         * doc/posix-functions/towlower.texi: Likewise.
37618         * doc/posix-functions/towlower_l.texi: Likewise.
37619         * doc/posix-functions/towupper.texi: Likewise.
37620         * doc/posix-functions/towupper_l.texi: Likewise.
37621         * doc/posix-functions/vfwprintf.texi: Likewise.
37622         * doc/posix-functions/vfwscanf.texi: Likewise.
37623         * doc/posix-functions/vswscanf.texi: Likewise.
37624         * doc/posix-functions/vwprintf.texi: Likewise.
37625         * doc/posix-functions/vwscanf.texi: Likewise.
37626         * doc/posix-functions/wcpcpy.texi: Likewise.
37627         * doc/posix-functions/wcpncpy.texi: Likewise.
37628         * doc/posix-functions/wcscasecmp.texi: Likewise.
37629         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37630         * doc/posix-functions/wcscoll_l.texi: Likewise.
37631         * doc/posix-functions/wcsdup.texi: Likewise.
37632         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37633         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37634         * doc/posix-functions/wcsnlen.texi: Likewise.
37635         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37636         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37637         * doc/posix-functions/wctrans_l.texi: Likewise.
37638         * doc/posix-functions/wctype_l.texi: Likewise.
37639         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37640         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37641         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37642         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37643         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37644         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37645         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37646         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37647         * doc/glibc-functions/wcschrnul.texi: Likewise.
37648         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37649         * doc/glibc-functions/wcstod_l.texi: Likewise.
37650         * doc/glibc-functions/wcstof_l.texi: Likewise.
37651         * doc/glibc-functions/wcstol_l.texi: Likewise.
37652         * doc/glibc-functions/wcstold_l.texi: Likewise.
37653         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37654         * doc/glibc-functions/wcstoq.texi: Likewise.
37655         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37656         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37657         * doc/glibc-functions/wcstouq.texi: Likewise.
37658         * doc/glibc-functions/wmempcpy.texi: Likewise.
37659
37660 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37661             Eric Blake  <ebb9@byu.net>
37662             Paolo Bonzini  <bonzini@gnu.org>
37663             Bruno Haible  <bruno@clisp.org>
37664
37665         Make c-stack work on Haiku.
37666         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37667         (c_stack_action): Use SA_ONSTACK flag.
37668
37669 2008-12-22  Bruno Haible  <bruno@clisp.org>
37670
37671         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37672
37673 2008-12-22  Bruno Haible  <bruno@clisp.org>
37674
37675         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37676         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37677         being overridden.
37678         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37679         New macros.
37680         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37682         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37683         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37684
37685 2008-12-22  Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37688         from test code.
37689
37690 2008-12-22  Eric Blake  <ebb9@byu.net>
37691
37692         Avoid gcc warnings on cygwin.
37693         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37694         Avoid unused variable.
37695         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37696         Likewise.
37697
37698 2008-12-22  Bruno Haible  <bruno@clisp.org>
37699
37700         Remove HAVE_MBRTOWC conditionals.
37701         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37702         (mbscasecmp): Assume mbrtowc function.
37703         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37704         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37705         * lib/mbschr.c: Include mbuiter.h unconditionally.
37706         (mbschr): Assume mbrtowc function.
37707         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37708         (mbscspn): Assume mbrtowc function.
37709         * lib/mbslen.c: Include mbuiter.h unconditionally.
37710         (mbslen): Assume mbrtowc function.
37711         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37712         (mbsncasecmp): Assume mbrtowc function.
37713         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37714         (mbsnlen): Assume mbrtowc function.
37715         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37716         (mbspbrk): Assume mbrtowc function.
37717         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37718         (mbspcasecmp): Assume mbrtowc function.
37719         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37720         (mbsrchr): Assume mbrtowc function.
37721         * lib/mbssep.c: Include mbuiter.h unconditionally.
37722         (mbssep): Assume mbrtowc function.
37723         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37724         (mbsspn): Assume mbrtowc function.
37725         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37726         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37727         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37728         (mbstok_r): Assume mbrtowc function.
37729         * lib/propername.c: Include mbuiter.h unconditionally.
37730         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37731         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37732         (trim2): Assume mbrtowc function.
37733         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37734         (mbsnwidth): Assume mbrtowc function.
37735         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37736         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37737         fallback definitions.
37738         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37739
37740 2008-12-22  Bruno Haible  <bruno@clisp.org>
37741
37742         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37743
37744 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37745
37746         * modules/regex: Request emulations for the mb*/wc* functions we need.
37747         * m4/regex.m4: Don't look for those functions here.
37748         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37749
37750 2008-12-22  Bruno Haible  <bruno@clisp.org>
37751
37752         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37753
37754 2008-12-21  Bruno Haible  <bruno@clisp.org>
37755
37756         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37757         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37758         (Include): Remove conditionalization.
37759         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37760         (Include): Remove conditionalization.
37761         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37762         (Include): Remove conditionalization.
37763         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37764         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37765         * NEWS: Mention the change.
37766         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37767         via Sergey Poznyakoff <gray@gnu.org.ua>.
37768
37769 2008-12-21  Bruno Haible  <bruno@clisp.org>
37770
37771         * MODULES.html.sh (Extended multibyte and wide character utilities
37772         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37773         wcrtomb, wcsrtombs.
37774         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37775         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37776         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37777         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37778
37779 2008-12-21  Bruno Haible  <bruno@clisp.org>
37780
37781         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37782
37783 2008-12-21  Bruno Haible  <bruno@clisp.org>
37784
37785         * modules/wcsnrtombs-tests: New file.
37786         * tests/test-wcsnrtombs1.sh: New file.
37787         * tests/test-wcsnrtombs2.sh: New file.
37788         * tests/test-wcsnrtombs3.sh: New file.
37789         * tests/test-wcsnrtombs4.sh: New file.
37790         * tests/test-wcsnrtombs.c: New file.
37791
37792         New module 'wcsnrtombs'.
37793         * lib/wchar.in.h (wcsnrtombs): New declaration.
37794         * lib/wcsnrtombs.c: New file.
37795         * lib/wcsrtombs-state.c: New file.
37796         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37797         (internal_state): Remove variable.
37798         * m4/wcsnrtombs.m4: New file.
37799         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37800         compilation units.
37801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37802         HAVE_WCSNRTOMBS.
37803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37804         HAVE_WCSNRTOMBS.
37805         * modules/wcsnrtombs: New file.
37806         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37807         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37808
37809 2008-12-21  Bruno Haible  <bruno@clisp.org>
37810
37811         * modules/wcsrtombs-tests: New file.
37812         * tests/test-wcsrtombs1.sh: New file.
37813         * tests/test-wcsrtombs2.sh: New file.
37814         * tests/test-wcsrtombs3.sh: New file.
37815         * tests/test-wcsrtombs4.sh: New file.
37816         * tests/test-wcsrtombs.c: New file.
37817
37818         New module 'wcsrtombs'.
37819         * lib/wchar.in.h (wcsrtombs): New declaration.
37820         * lib/wcsrtombs.c: New file.
37821         * m4/wcsrtombs.m4: New file.
37822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37823         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37825         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37826         * modules/wcsrtombs: New file.
37827         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37828         bugs.
37829
37830 2008-12-21  Bruno Haible  <bruno@clisp.org>
37831
37832         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37833         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37834         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37835         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37836         if not correct.
37837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37838         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37839         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37840         m4/locale-zh.m4, m4/codeset.m4.
37841         * doc/posix-functions/wcrtomb.texi: Document the bug.
37842
37843 2008-12-21  Bruno Haible  <bruno@clisp.org>
37844
37845         Work around a btowc() bug on IRIX 6.5.
37846         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37847         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37848         REPLACE_WTOBC if not.
37849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37850         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37851         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37852
37853 2008-12-21  Bruno Haible  <bruno@clisp.org>
37854
37855         * modules/wcrtomb-tests: New file.
37856         * tests/test-wcrtomb.sh: New file.
37857         * tests/test-wcrtomb.c: New file.
37858
37859         New module 'wcrtomb'.
37860         * lib/wchar.in.h (wcrtomb): New declaration.
37861         * lib/wcrtomb.c: New file.
37862         * m4/wcrtomb.m4: New file.
37863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37864         HAVE_WCRTOMB.
37865         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37866         HAVE_WCRTOMB.
37867         * modules/wcrtomb: New file.
37868         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37869
37870 2008-12-21  Bruno Haible  <bruno@clisp.org>
37871
37872         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37873         * modules/mbsrtowcs (Files): Likewise.
37874         * modules/wctob (Files): Likewise.
37875         * modules/c-strcase-tests (Files): Likewise.
37876         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37877         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37878         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37879         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37880         * modules/vasnprintf-posix-tests (Files): Likewise.
37881
37882 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37883
37884         gitlog-to-changelog: pass all command-line arguments to git-log
37885         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37886         it is sometimes convenient to filter the commits in various ways.
37887         gitlog-to-changelog only allows --since to specify a start date,
37888         but git-log itself supports many other filtering mechanisms.
37889         At the moment, I want to filter by branch name.  Rather than
37890         adding a --branch option to gitlog-to-changelog, it seems more
37891         flexible to simply pass all options directly to git-log and let
37892         git do the work.  Notice that this effectively makes --since a
37893         redundant option for gitlog-to-changelog, but removing it would
37894         require current usage to change since calls would then require
37895         an additional '--'.
37896
37897 2008-12-21  Bruno Haible  <bruno@clisp.org>
37898
37899         * modules/mbsnrtowcs-tests: New file.
37900         * tests/test-mbsnrtowcs1.sh: New file.
37901         * tests/test-mbsnrtowcs2.sh: New file.
37902         * tests/test-mbsnrtowcs3.sh: New file.
37903         * tests/test-mbsnrtowcs4.sh: New file.
37904         * tests/test-mbsnrtowcs.c: New file.
37905
37906         New module 'mbsnrtowcs'.
37907         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37908         * lib/mbsnrtowcs.c: New file.
37909         * lib/mbsrtowcs-state.c: New file.
37910         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37911         (internal_state): Remove variable.
37912         * m4/mbsnrtowcs.m4: New file.
37913         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37914         compilation units.
37915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37916         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37917         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37918         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37919         * modules/mbsnrtowcs: New file.
37920         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37921         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37922         portability problem.
37923
37924 2008-12-21  Bruno Haible  <bruno@clisp.org>
37925
37926         Work around mbsrtowcs bug.
37927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37928         (gl_FUNC_MBSRTOWCS): Invoke it.
37929         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37930         m4/locale-zh.m4.
37931         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37932
37933 2008-12-21  Bruno Haible  <bruno@clisp.org>
37934
37935         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37936
37937 2008-12-21  Bruno Haible  <bruno@clisp.org>
37938
37939         Update doc for AIX.
37940         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37941         16-bit wchar_t type.
37942         * doc/posix-functions/btowc.texi: Likewise.
37943         * doc/posix-functions/fgetwc.texi: Likewise.
37944         * doc/posix-functions/fgetws.texi: Likewise.
37945         * doc/posix-functions/fputwc.texi: Likewise.
37946         * doc/posix-functions/fputws.texi: Likewise.
37947         * doc/posix-functions/fwide.texi: Likewise.
37948         * doc/posix-functions/fwprintf.texi: Likewise.
37949         * doc/posix-functions/fwscanf.texi: Likewise.
37950         * doc/posix-functions/getwchar.texi: Likewise.
37951         * doc/posix-functions/getwc.texi: Likewise.
37952         * doc/posix-functions/iswalnum.texi: Likewise.
37953         * doc/posix-functions/iswalpha.texi: Likewise.
37954         * doc/posix-functions/iswblank.texi: Likewise.
37955         * doc/posix-functions/iswcntrl.texi: Likewise.
37956         * doc/posix-functions/iswctype.texi: Likewise.
37957         * doc/posix-functions/iswdigit.texi: Likewise.
37958         * doc/posix-functions/iswgraph.texi: Likewise.
37959         * doc/posix-functions/iswlower.texi: Likewise.
37960         * doc/posix-functions/iswprint.texi: Likewise.
37961         * doc/posix-functions/iswpunct.texi: Likewise.
37962         * doc/posix-functions/iswspace.texi: Likewise.
37963         * doc/posix-functions/iswupper.texi: Likewise.
37964         * doc/posix-functions/iswxdigit.texi: Likewise.
37965         * doc/posix-functions/mbrtowc.texi: Likewise.
37966         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37967         * doc/posix-functions/mbstowcs.texi: Likewise.
37968         * doc/posix-functions/mbtowc.texi: Likewise.
37969         * doc/posix-functions/putwchar.texi: Likewise.
37970         * doc/posix-functions/putwc.texi: Likewise.
37971         * doc/posix-functions/swprintf.texi: Likewise.
37972         * doc/posix-functions/tolower.texi: Likewise.
37973         * doc/posix-functions/toupper.texi: Likewise.
37974         * doc/posix-functions/towctrans.texi: Likewise.
37975         * doc/posix-functions/ungetwc.texi: Likewise.
37976         * doc/posix-functions/vswprintf.texi: Likewise.
37977         * doc/posix-functions/wcrtomb.texi: Likewise.
37978         * doc/posix-functions/wcscat.texi: Likewise.
37979         * doc/posix-functions/wcschr.texi: Likewise.
37980         * doc/posix-functions/wcscmp.texi: Likewise.
37981         * doc/posix-functions/wcscoll.texi: Likewise.
37982         * doc/posix-functions/wcscpy.texi: Likewise.
37983         * doc/posix-functions/wcscspn.texi: Likewise.
37984         * doc/posix-functions/wcsftime.texi: Likewise.
37985         * doc/posix-functions/wcslen.texi: Likewise.
37986         * doc/posix-functions/wcsncat.texi: Likewise.
37987         * doc/posix-functions/wcsncmp.texi: Likewise.
37988         * doc/posix-functions/wcsncpy.texi: Likewise.
37989         * doc/posix-functions/wcspbrk.texi: Likewise.
37990         * doc/posix-functions/wcsrchr.texi: Likewise.
37991         * doc/posix-functions/wcsrtombs.texi: Likewise.
37992         * doc/posix-functions/wcsspn.texi: Likewise.
37993         * doc/posix-functions/wcsstr.texi: Likewise.
37994         * doc/posix-functions/wcstod.texi: Likewise.
37995         * doc/posix-functions/wcstof.texi: Likewise.
37996         * doc/posix-functions/wcstoimax.texi: Likewise.
37997         * doc/posix-functions/wcstok.texi: Likewise.
37998         * doc/posix-functions/wcstold.texi: Likewise.
37999         * doc/posix-functions/wcstoll.texi: Likewise.
38000         * doc/posix-functions/wcstol.texi: Likewise.
38001         * doc/posix-functions/wcstombs.texi: Likewise.
38002         * doc/posix-functions/wcstoull.texi: Likewise.
38003         * doc/posix-functions/wcstoul.texi: Likewise.
38004         * doc/posix-functions/wcstoumax.texi: Likewise.
38005         * doc/posix-functions/wcswidth.texi: Likewise.
38006         * doc/posix-functions/wcsxfrm.texi: Likewise.
38007         * doc/posix-functions/wctob.texi: Likewise.
38008         * doc/posix-functions/wctomb.texi: Likewise.
38009         * doc/posix-functions/wctrans.texi: Likewise.
38010         * doc/posix-functions/wctype.texi: Likewise.
38011         * doc/posix-functions/wcwidth.texi: Likewise.
38012         * doc/posix-functions/wmemchr.texi: Likewise.
38013         * doc/posix-functions/wmemcmp.texi: Likewise.
38014         * doc/posix-functions/wmemcpy.texi: Likewise.
38015         * doc/posix-functions/wmemmove.texi: Likewise.
38016         * doc/posix-functions/wmemset.texi: Likewise.
38017         * doc/posix-functions/wprintf.texi: Likewise.
38018         * doc/posix-functions/wscanf.texi: Likewise.
38019
38020 2008-12-21  Bruno Haible  <bruno@clisp.org>
38021
38022         Update doc for HP-UX 11.11.
38023         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38024         in HP-UX version 11.00, not in all versions of HP-UX 11.
38025         * doc/posix-functions/fwide.texi: Likewise.
38026         * doc/posix-functions/fwprintf.texi: Likewise.
38027         * doc/posix-functions/fwscanf.texi: Likewise.
38028         * doc/posix-functions/inet_ntop.texi: Likewise.
38029         * doc/posix-functions/inet_pton.texi: Likewise.
38030         * doc/posix-functions/mbrlen.texi: Likewise.
38031         * doc/posix-functions/mbrtowc.texi: Likewise.
38032         * doc/posix-functions/mbsinit.texi: Likewise.
38033         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38034         * doc/posix-functions/swprintf.texi: Likewise.
38035         * doc/posix-functions/swscanf.texi: Likewise.
38036         * doc/posix-functions/towctrans.texi: Likewise.
38037         * doc/posix-functions/vfwprintf.texi: Likewise.
38038         * doc/posix-functions/vswprintf.texi: Likewise.
38039         * doc/posix-functions/vwprintf.texi: Likewise.
38040         * doc/posix-functions/wcrtomb.texi: Likewise.
38041         * doc/posix-functions/wcsrtombs.texi: Likewise.
38042         * doc/posix-functions/wcsstr.texi: Likewise.
38043         * doc/posix-functions/wctob.texi: Likewise.
38044         * doc/posix-functions/wctrans.texi: Likewise.
38045         * doc/posix-functions/wmemchr.texi: Likewise.
38046         * doc/posix-functions/wmemcmp.texi: Likewise.
38047         * doc/posix-functions/wmemcpy.texi: Likewise.
38048         * doc/posix-functions/wmemmove.texi: Likewise.
38049         * doc/posix-functions/wmemset.texi: Likewise.
38050         * doc/posix-functions/wprintf.texi: Likewise.
38051         * doc/posix-functions/wscanf.texi: Likewise.
38052
38053 2008-12-21  Bruno Haible  <bruno@clisp.org>
38054
38055         Work around a portability problem.
38056         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38057         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38058
38059 2008-12-20  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38062         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38063         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38065         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38066
38067         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38068         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38069         set.
38070         (GNULIB_defined_mbstate_t): New macro.
38071         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38072         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38073         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38074         reuses the system's mbrtowc function but works around the bugs.
38075         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38076         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38077         macros.
38078         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38079         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38080         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38081         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38082         REPLACE_MBSINIT if mbsinit needs to be overridden.
38083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38084         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38085         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38086         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38087         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38088         m4/locale-zh.m4.
38089         (Depends): Add mbsinit.
38090         * modules/mbsinit (Depends): Add mbrtowc.
38091         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38092
38093 2008-12-20  Bruno Haible  <bruno@clisp.org>
38094
38095         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38096         so that there are no conversion errors on AIX.
38097         * tests/test-mbsrtowcs.c (main): LIkewise.
38098
38099 2008-12-20  Bruno Haible  <bruno@clisp.org>
38100
38101         Work around wctob bug on Solaris <= 9.
38102         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38103         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38105         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38106         * modules/wctob (Files): Add m4/locale-fr.m4.
38107         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38108
38109 2008-12-20  Bruno Haible  <bruno@clisp.org>
38110
38111         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38112         /dev/null.
38113         * tests/test-select-in.sh: Likewise.
38114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38115
38116 2008-12-20  Bruno Haible  <bruno@clisp.org>
38117
38118         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38119         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38120         Cygwin 1.5.x.
38121
38122 2008-12-20  Bruno Haible  <bruno@clisp.org>
38123
38124         Ensure mbstate_t is defined on HP-UX 11.11.
38125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38126         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38127         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38128         AC_USE_SYSTEM_EXTENSIONS.
38129         * modules/fnmatch (Depends-on): Add extensions.
38130         * modules/mbrlen (Depends-on): Likewise.
38131         * modules/mbrtowc (Depends-on): Likewise.
38132         * modules/mbsinit (Depends-on): Likewise.
38133         * modules/mbsrtowcs (Depends-on): Likewise.
38134         * modules/mbswidth (Depends-on): Likewise.
38135         * modules/quotearg (Depends-on): Likewise.
38136         * modules/strftime (Depends-on): Likewise.
38137
38138 2008-12-20  Bruno Haible  <bruno@clisp.org>
38139
38140         Ensure wctob is declared on IRIX 6.5.
38141         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38142         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38143         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38145         of HAVE_WCTOB.
38146         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38147         HAVE_WCTOB.
38148         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38149
38150 2008-12-19  Bruno Haible  <bruno@clisp.org>
38151
38152         * modules/mbsrtowcs-tests: New file.
38153         * tests/test-mbsrtowcs1.sh: New file.
38154         * tests/test-mbsrtowcs2.sh: New file.
38155         * tests/test-mbsrtowcs3.sh: New file.
38156         * tests/test-mbsrtowcs4.sh: New file.
38157         * tests/test-mbsrtowcs.c: New file.
38158
38159         New module 'mbsrtowcs'.
38160         * lib/wchar.in.h (mbsrtowcs): New declaration.
38161         * lib/mbsrtowcs.c: New file.
38162         * m4/mbsrtowcs.m4: New file.
38163         * modules/mbsrtowcs: New file.
38164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38165         HAVE_MBSRTOWCS.
38166         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38167         HAVE_MBSRTOWCS.
38168         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38169
38170 2008-12-19  Bruno Haible  <bruno@clisp.org>
38171
38172         New module 'mbrlen'.
38173         * lib/wchar.in.h (mbrlen): New declaration.
38174         * lib/mbrlen.c: New file.
38175         * m4/mbrlen.m4: New file.
38176         * modules/mbrlen: New file.
38177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38178         HAVE_MBRLEN.
38179         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38180         HAVE_MBRLEN.
38181         * doc/posix-functions/mbrlen.texi: Document the new module.
38182
38183 2008-12-19  Bruno Haible  <bruno@clisp.org>
38184
38185         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38186         * modules/mbrtowc (Depends-on): Add verify.
38187         Suggested by Paul Eggert.
38188
38189 2008-12-18  Bruno Haible  <bruno@clisp.org>
38190
38191         * modules/mbsinit-tests: New file.
38192         * tests/test-mbsinit.sh: New file.
38193         * tests/test-mbsinit.c: New file.
38194
38195 2008-12-18  Bruno Haible  <bruno@clisp.org>
38196
38197         * modules/mbrtowc-tests: New file.
38198         * tests/test-mbrtowc1.sh: New file.
38199         * tests/test-mbrtowc2.sh: New file.
38200         * tests/test-mbrtowc3.sh: New file.
38201         * tests/test-mbrtowc4.sh: New file.
38202         * tests/test-mbrtowc.c: New file.
38203
38204         New module 'mbrtowc'.
38205         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38206         mbsinit and mbrtowc.
38207         (mbrtowc): New declaration.
38208         * lib/mbrtowc.c: New file.
38209         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38210         * modules/mbrtowc: New file.
38211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38212         HAVE_MBRTOWC.
38213         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38214         HAVE_MBRTOWC.
38215         * doc/posix-functions/mbrtowc.texi: Document the new module.
38216
38217 2008-12-18  Bruno Haible  <bruno@clisp.org>
38218
38219         New module 'wctob'.
38220         * lib/wchar.in.h (wctob): New declaration.
38221         * lib/wctob.c: New file.
38222         * m4/wctob.m4: New file.
38223         * modules/wctob: New file.
38224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38225         HAVE_WCTOB.
38226         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38227         * doc/posix-functions/wctob.texi: Document the new module.
38228
38229 2008-12-18  Bruno Haible  <bruno@clisp.org>
38230
38231         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38232         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38233
38234 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38235
38236         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38237         G. Christensen" <tgc@jupiterrise.com>.
38238
38239         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38240         G. Christensen" <tgc@jupiterrise.com>.
38241
38242         * lib/flock.c: Need to include string.h.  Reported by "Tom
38243         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38244         <ebb9@byu.net>.
38245
38246 2008-12-18  Bruno Haible  <bruno@clisp.org>
38247
38248         * m4/locale-ja.m4: New file, from GNU gettext.
38249
38250 2008-12-17  Bruno Haible  <bruno@clisp.org>
38251
38252         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38253         Suggested by Eric Blake.
38254
38255 2008-12-17  Bruno Haible  <bruno@clisp.org>
38256
38257         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38258
38259 2008-12-17  Bruno Haible  <bruno@clisp.org>
38260
38261         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38262         * modules/mbsinit (Depends-on): Add verify.
38263         Suggested by Paul Eggert.
38264
38265 2008-12-17  Bruno Haible  <bruno@clisp.org>
38266
38267         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38268         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38269         gl_FUNC_MBRTOWC.
38270         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38271         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38272         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38273         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38274         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38275         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38276         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38277         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38278         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38279         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38280         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38281         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38282         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38283         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38284         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38285         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38286         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38287         * modules/trim (configure.ac): Likewise.
38288
38289 2008-12-17  Bruno Haible  <bruno@clisp.org>
38290
38291         * modules/btowc-tests: New file.
38292         * tests/test-btowc1.sh: New file.
38293         * tests/test-btowc2.sh: New file.
38294         * tests/test-btowc.c: New file.
38295
38296         New module 'btowc'.
38297         * lib/wchar.in.h (btowc): New declaration.
38298         * lib/btowc.c: New file.
38299         * m4/btowc.m4: New file.
38300         * modules/btowc: New file.
38301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38302         HAVE_BTOWC.
38303         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38304         * doc/posix-functions/btowc.texi: Document the new module.
38305
38306 2008-12-17  Bruno Haible  <bruno@clisp.org>
38307
38308         New module 'mbsinit'.
38309         * lib/wchar.in.h (mbsinit): New declaration.
38310         * lib/mbsinit.c: New file.
38311         * m4/mbsinit.m4: New file.
38312         * modules/mbsinit: New file.
38313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38314         HAVE_MBSINIT.
38315         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38316         HAVE_MBSINIT.
38317         * doc/posix-functions/mbsinit.texi: Document the new module.
38318
38319 2008-12-16  Bruno Haible  <bruno@clisp.org>
38320
38321         * lib/unistd.in.h: Add comment.
38322         * tests/test-environ.c: Don't include <stdlib.h>.
38323
38324 2008-12-16  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/parse-duration.h (parse_duration): Document return value
38327         convention.
38328         * lib/parse-duration.c: Include specification header first. Add
38329         comments.
38330         (_): Remove macro.
38331         (parse_year_month_day, parse_hour_minute_second): Move side effects
38332         outside of strchr call.
38333         (parse_non_iso8601): Move side effects outside of isspace call.
38334         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38335         call.
38336
38337 2008-12-16  Bruno Haible  <bruno@clisp.org>
38338
38339         * tests/test-parse-duration.sh: Produce no output when the test
38340         succeeds.
38341
38342 2008-12-16  Bruno Haible  <bruno@clisp.org>
38343
38344         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38345         expressions.
38346
38347 2008-12-15  Bruno Haible  <bruno@clisp.org>
38348
38349         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38350         * doc/glibc-functions/flistxattr.texi: Likewise.
38351         * doc/glibc-functions/fopencookie.texi: Likewise.
38352         * doc/glibc-functions/fremovexattr.texi: Likewise.
38353         * doc/glibc-functions/fsetxattr.texi: Likewise.
38354         * doc/glibc-functions/getxattr.texi: Likewise.
38355         * doc/glibc-functions/lgetxattr.texi: Likewise.
38356         * doc/glibc-functions/listxattr.texi: Likewise.
38357         * doc/glibc-functions/llistxattr.texi: Likewise.
38358         * doc/glibc-functions/lremovexattr.texi: Likewise.
38359         * doc/glibc-functions/lsetxattr.texi: Likewise.
38360         * doc/glibc-functions/removexattr.texi: Likewise.
38361         * doc/glibc-functions/setxattr.texi: Likewise.
38362         * doc/posix-functions/open_memstream.texi: Likewise.
38363
38364 2008-12-15  Eric Blake  <ebb9@byu.net>
38365
38366         Update doc for cygwin 1.7.
38367         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38368         functions.
38369         * doc/posix-functions/fchmodat.texi: Likewise.
38370         * doc/posix-functions/fchownat.texi: Likewise.
38371         * doc/posix-functions/fdopendir.texi: Likewise.
38372         * doc/posix-functions/fmemopen.texi: Likewise.
38373         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38374         * doc/posix-functions/fstatat.texi: Likewise.
38375         * doc/posix-functions/futimens.texi: Likewise.
38376         * doc/posix-functions/gai_strerror.texi: Likewise.
38377         * doc/posix-functions/getaddrinfo.texi: Likewise.
38378         * doc/posix-functions/getnameinfo.texi: Likewise.
38379         * doc/posix-functions/if_freenameindex.texi: Likewise.
38380         * doc/posix-functions/if_indextoname.texi: Likewise.
38381         * doc/posix-functions/if_nameindex.texi: Likewise.
38382         * doc/posix-functions/if_nametoindex.texi: Likewise.
38383         * doc/posix-functions/insque.texi: Likewise.
38384         * doc/posix-functions/linkat.texi: Likewise.
38385         * doc/posix-functions/llrint.texi: Likewise.
38386         * doc/posix-functions/llrintf.texi: Likewise.
38387         * doc/posix-functions/llrintl.texi: Likewise.
38388         * doc/posix-functions/lockf.texi: Likewise.
38389         * doc/posix-functions/lrintl.texi: Likewise.
38390         * doc/posix-functions/mkdirat.texi: Likewise.
38391         * doc/posix-functions/mkfifoat.texi: Likewise.
38392         * doc/posix-functions/mknodat.texi: Likewise.
38393         * doc/posix-functions/mq_close.texi: Likewise.
38394         * doc/posix-functions/mq_getattr.texi: Likewise.
38395         * doc/posix-functions/mq_notify.texi: Likewise.
38396         * doc/posix-functions/mq_open.texi: Likewise.
38397         * doc/posix-functions/mq_receive.texi: Likewise.
38398         * doc/posix-functions/mq_send.texi: Likewise.
38399         * doc/posix-functions/mq_setattr.texi: Likewise.
38400         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38401         * doc/posix-functions/mq_timedsend.texi: Likewise.
38402         * doc/posix-functions/mq_unlink.texi: Likewise.
38403         * doc/posix-functions/open_memstream.texi: Likewise.
38404         * doc/posix-functions/openat.texi: Likewise.
38405         * doc/posix-functions/posix_fadvise.texi: Likewise.
38406         * doc/posix-functions/posix_fallocate.texi: Likewise.
38407         * doc/posix-functions/posix_madvise.texi: Likewise.
38408         * doc/posix-functions/posix_memalign.texi: Likewise.
38409         * doc/posix-functions/posix_openpt.texi: Likewise.
38410         * doc/posix-functions/readlinkat.texi: Likewise.
38411         * doc/posix-functions/remque.texi: Likewise.
38412         * doc/posix-functions/renameat.texi: Likewise.
38413         * doc/posix-functions/rintl.texi: Likewise.
38414         * doc/posix-functions/sem_unlink.texi: Likewise.
38415         * doc/posix-functions/shm_open.texi: Likewise.
38416         * doc/posix-functions/shm_unlink.texi: Likewise.
38417         * doc/posix-functions/signgam.texi: Likewise.
38418         * doc/posix-functions/sigset.texi: Likewise.
38419         * doc/posix-functions/stpcpy.texi: Likewise.
38420         * doc/posix-functions/stpncpy.texi: Likewise.
38421         * doc/posix-functions/strerror.texi: Likewise.
38422         * doc/posix-functions/strtod.texi: Likewise.
38423         * doc/posix-functions/symlinkat.texi: Likewise.
38424         * doc/posix-functions/unlinkat.texi: Likewise.
38425         * doc/posix-functions/utimensat.texi: Likewise.
38426         * doc/glibc-functions/bindresvport.texi: Likewise.
38427         * doc/glibc-functions/dn_expand.texi: Likewise.
38428         * doc/glibc-functions/exp10.texi: Likewise.
38429         * doc/glibc-functions/exp10f.texi: Likewise.
38430         * doc/glibc-functions/fgetxattr.texi: Likewise.
38431         * doc/glibc-functions/flistxattr.texi: Likewise.
38432         * doc/glibc-functions/fopencookie.texi: Likewise.
38433         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38434         * doc/glibc-functions/fremovexattr.texi: Likewise.
38435         * doc/glibc-functions/fsetxattr.texi: Likewise.
38436         * doc/glibc-functions/getifaddrs.texi: Likewise.
38437         * doc/glibc-functions/getxattr.texi: Likewise.
38438         * doc/glibc-functions/lgetxattr.texi: Likewise.
38439         * doc/glibc-functions/listxattr.texi: Likewise.
38440         * doc/glibc-functions/llistxattr.texi: Likewise.
38441         * doc/glibc-functions/lremovexattr.texi: Likewise.
38442         * doc/glibc-functions/lsetxattr.texi: Likewise.
38443         * doc/glibc-functions/pow10.texi: Likewise.
38444         * doc/glibc-functions/pow10f.texi: Likewise.
38445         * doc/glibc-functions/rcmd_af.texi: Likewise.
38446         * doc/glibc-functions/removexattr.texi: Likewise.
38447         * doc/glibc-functions/res_init.texi: Likewise.
38448         * doc/glibc-functions/res_mkquery.texi: Likewise.
38449         * doc/glibc-functions/res_query.texi: Likewise.
38450         * doc/glibc-functions/res_querydomain.texi: Likewise.
38451         * doc/glibc-functions/res_send.texi: Likewise.
38452         * doc/glibc-functions/rresvport_af.texi: Likewise.
38453         * doc/glibc-functions/setxattr.texi: Likewise.
38454         * doc/glibc-functions/strcasestr.texi: Likewise.
38455
38456 2008-12-15  Bruno Haible  <bruno@clisp.org>
38457
38458         Fix compilation error on OSF/1 4.0.
38459         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38460         <sys/time.h>, simply delegate to the system header.
38461         Reported by Daniel Richard G. <oss@teragram.com>.
38462
38463 2008-12-15  Bruno Haible  <bruno@clisp.org>
38464
38465         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38466         * doc/posix-functions/fchmodat.texi: Likewise.
38467         * doc/posix-functions/fchownat.texi: Likewise.
38468         * doc/posix-functions/fdopendir.texi: Likewise.
38469         * doc/posix-functions/fstatat.texi: Likewise.
38470         * doc/posix-functions/mkdirat.texi: Likewise.
38471         * doc/posix-functions/unlinkat.texi: Likewise.
38472
38473 2008-12-14  Bruno Haible  <bruno@clisp.org>
38474
38475         Update doc for POSIX:2008.
38476         * doc/posix-functions/faccessat.texi: New file.
38477         * doc/posix-functions/fchmodat.texi: New file.
38478         * doc/posix-functions/fchownat.texi: New file.
38479         * doc/posix-functions/fdopendir.texi: New file.
38480         * doc/posix-functions/fstatat.texi: New file.
38481         * doc/posix-functions/futimens.texi: New file.
38482         * doc/posix-functions/linkat.texi: New file.
38483         * doc/posix-functions/mkdirat.texi: New file.
38484         * doc/posix-functions/mkfifoat.texi: New file.
38485         * doc/posix-functions/mknodat.texi: New file.
38486         * doc/posix-functions/open_wmemstream.texi: New file.
38487         * doc/posix-functions/openat.texi: New file.
38488         * doc/posix-functions/psiginfo.texi: New file.
38489         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38490         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38491         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38492         * doc/posix-functions/readlinkat.texi: New file.
38493         * doc/posix-functions/renameat.texi: New file.
38494         * doc/posix-functions/strerror_l.texi: New file.
38495         * doc/posix-functions/symlinkat.texi: New file.
38496         * doc/posix-functions/unlinkat.texi: New file.
38497         * doc/posix-functions/utimensat.texi: New file.
38498         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38499
38500 2008-12-14  Bruno Haible  <bruno@clisp.org>
38501
38502         Update doc for POSIX:2008.
38503         * doc/posix-functions/alphasort.texi: Renamed from
38504         doc/glibc-functions/alphasort.texi.
38505         * doc/posix-functions/dirfd.texi: Renamed from
38506         doc/glibc-functions/dirfd.texi.
38507         * doc/posix-functions/dprintf.texi: Renamed from
38508         doc/glibc-functions/dprintf.texi.
38509         * doc/posix-functions/duplocale.texi: Renamed from
38510         doc/glibc-functions/duplocale.texi.
38511         * doc/posix-functions/fexecve.texi: Renamed from
38512         doc/glibc-functions/fexecve.texi.
38513         * doc/posix-functions/fmemopen.texi: Renamed from
38514         doc/glibc-functions/fmemopen.texi.
38515         * doc/posix-functions/freelocale.texi: Renamed from
38516         doc/glibc-functions/freelocale.texi.
38517         * doc/posix-functions/getdate_err.texi: Renamed from
38518         doc/glibc-functions/getdate_err.texi.
38519         * doc/posix-functions/isalnum_l.texi: Renamed from
38520         doc/glibc-functions/isalnum_l.texi.
38521         * doc/posix-functions/isalpha_l.texi: Renamed from
38522         doc/glibc-functions/isalpha_l.texi.
38523         * doc/posix-functions/isblank_l.texi: Renamed from
38524         doc/glibc-functions/isblank_l.texi.
38525         * doc/posix-functions/iscntrl_l.texi: Renamed from
38526         doc/glibc-functions/iscntrl_l.texi.
38527         * doc/posix-functions/isdigit_l.texi: Renamed from
38528         doc/glibc-functions/isdigit_l.texi.
38529         * doc/posix-functions/isgraph_l.texi: Renamed from
38530         doc/glibc-functions/isgraph_l.texi.
38531         * doc/posix-functions/islower_l.texi: Renamed from
38532         doc/glibc-functions/islower_l.texi.
38533         * doc/posix-functions/isprint_l.texi: Renamed from
38534         doc/glibc-functions/isprint_l.texi.
38535         * doc/posix-functions/ispunct_l.texi: Renamed from
38536         doc/glibc-functions/ispunct_l.texi.
38537         * doc/posix-functions/isspace_l.texi: Renamed from
38538         doc/glibc-functions/isspace_l.texi.
38539         * doc/posix-functions/isupper_l.texi: Renamed from
38540         doc/glibc-functions/isupper_l.texi.
38541         * doc/posix-functions/iswalnum_l.texi: Renamed from
38542         doc/glibc-functions/iswalnum_l.texi.
38543         * doc/posix-functions/iswalpha_l.texi: Renamed from
38544         doc/glibc-functions/iswalpha_l.texi.
38545         * doc/posix-functions/iswblank_l.texi: Renamed from
38546         doc/glibc-functions/iswblank_l.texi.
38547         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38548         doc/glibc-functions/iswcntrl_l.texi.
38549         * doc/posix-functions/iswctype_l.texi: Renamed from
38550         doc/glibc-functions/iswctype_l.texi.
38551         * doc/posix-functions/iswdigit_l.texi: Renamed from
38552         doc/glibc-functions/iswdigit_l.texi.
38553         * doc/posix-functions/iswgraph_l.texi: Renamed from
38554         doc/glibc-functions/iswgraph_l.texi.
38555         * doc/posix-functions/iswlower_l.texi: Renamed from
38556         doc/glibc-functions/iswlower_l.texi.
38557         * doc/posix-functions/iswprint_l.texi: Renamed from
38558         doc/glibc-functions/iswprint_l.texi.
38559         * doc/posix-functions/iswpunct_l.texi: Renamed from
38560         doc/glibc-functions/iswpunct_l.texi.
38561         * doc/posix-functions/iswspace_l.texi: Renamed from
38562         doc/glibc-functions/iswspace_l.texi.
38563         * doc/posix-functions/iswupper_l.texi: Renamed from
38564         doc/glibc-functions/iswupper_l.texi.
38565         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38566         doc/glibc-functions/iswxdigit_l.texi.
38567         * doc/posix-functions/isxdigit_l.texi: Renamed from
38568         doc/glibc-functions/isxdigit_l.texi.
38569         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38570         doc/glibc-functions/mbsnrtowcs.texi.
38571         * doc/posix-functions/mkdtemp.texi: Renamed from
38572         doc/glibc-functions/mkdtemp.texi.
38573         * doc/posix-functions/newlocale.texi: Renamed from
38574         doc/glibc-functions/newlocale.texi.
38575         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38576         doc/glibc-functions/nl_langinfo_l.texi.
38577         * doc/posix-functions/open_memstream.texi: Renamed from
38578         doc/glibc-functions/open_memstream.texi.
38579         * doc/posix-functions/opterr.texi: Renamed from
38580         doc/glibc-functions/opterr.texi.
38581         * doc/posix-functions/optind.texi: Renamed from
38582         doc/glibc-functions/optind.texi.
38583         * doc/posix-functions/optopt.texi: Renamed from
38584         doc/glibc-functions/optopt.texi.
38585         * doc/posix-functions/psignal.texi: Renamed from
38586         doc/glibc-functions/psignal.texi.
38587         * doc/posix-functions/scandir.texi: Renamed from
38588         doc/glibc-functions/scandir.texi.
38589         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38590         doc/glibc-functions/sched_get_priority_min.texi.
38591         * doc/posix-functions/signgam.texi: Renamed from
38592         doc/glibc-functions/signgam.texi.
38593         * doc/posix-functions/stpcpy.texi: Renamed from
38594         doc/glibc-functions/stpcpy.texi.
38595         * doc/posix-functions/stpncpy.texi: Renamed from
38596         doc/glibc-functions/stpncpy.texi.
38597         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38598         doc/glibc-functions/strcasecmp_l.texi.
38599         * doc/posix-functions/strcoll_l.texi: Renamed from
38600         doc/glibc-functions/strcoll_l.texi.
38601         * doc/posix-functions/strfmon_l.texi: Renamed from
38602         doc/glibc-functions/strfmon_l.texi.
38603         * doc/posix-functions/strftime_l.texi: Renamed from
38604         doc/glibc-functions/strftime_l.texi.
38605         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38606         doc/glibc-functions/strncasecmp_l.texi.
38607         * doc/posix-functions/strndup.texi: Renamed from
38608         doc/glibc-functions/strndup.texi.
38609         * doc/posix-functions/strnlen.texi: Renamed from
38610         doc/glibc-functions/strnlen.texi.
38611         * doc/posix-functions/strsignal.texi: Renamed from
38612         doc/glibc-functions/strsignal.texi.
38613         * doc/posix-functions/strxfrm_l.texi: Renamed from
38614         doc/glibc-functions/strxfrm_l.texi.
38615         * doc/posix-functions/timer_gettime.texi: Renamed from
38616         doc/glibc-functions/timer_gettime.texi.
38617         * doc/posix-functions/tolower_l.texi: Renamed from
38618         doc/glibc-functions/tolower_l.texi.
38619         * doc/posix-functions/toupper_l.texi: Renamed from
38620         doc/glibc-functions/toupper_l.texi.
38621         * doc/posix-functions/towctrans_l.texi: Renamed from
38622         doc/glibc-functions/towctrans_l.texi.
38623         * doc/posix-functions/towlower_l.texi: Renamed from
38624         doc/glibc-functions/towlower_l.texi.
38625         * doc/posix-functions/towupper_l.texi: Renamed from
38626         doc/glibc-functions/towupper_l.texi.
38627         * doc/posix-functions/uselocale.texi: Renamed from
38628         doc/glibc-functions/uselocale.texi.
38629         * doc/posix-functions/vdprintf.texi: Renamed from
38630         doc/glibc-functions/vdprintf.texi.
38631         * doc/posix-functions/wcpcpy.texi:
38632         Renamed from doc/glibc-functions/wcpcpy.texi.
38633         * doc/posix-functions/wcpncpy.texi: Renamed from
38634         doc/glibc-functions/wcpncpy.texi.
38635         * doc/posix-functions/wcscasecmp.texi: Renamed from
38636         doc/glibc-functions/wcscasecmp.texi.
38637         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38638         doc/glibc-functions/wcscasecmp_l.texi.
38639         * doc/posix-functions/wcscoll_l.texi: Renamed from
38640         doc/glibc-functions/wcscoll_l.texi.
38641         * doc/posix-functions/wcsdup.texi: Renamed from
38642         doc/glibc-functions/wcsdup.texi.
38643         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38644         doc/glibc-functions/wcsncasecmp.texi.
38645         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38646         doc/glibc-functions/wcsncasecmp_l.texi.
38647         * doc/posix-functions/wcsnlen.texi: Renamed from
38648         doc/glibc-functions/wcsnlen.texi.
38649         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38650         doc/glibc-functions/wcsnrtombs.texi.
38651         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38652         doc/glibc-functions/wcsxfrm_l.texi.
38653         * doc/posix-functions/wctrans_l.texi: Renamed from
38654         doc/glibc-functions/wctrans_l.texi.
38655         * doc/posix-functions/wctype_l.texi: Renamed from
38656         doc/glibc-functions/wctype_l.texi.
38657         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38658         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38659         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38660         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38661         these subsections.
38662         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38663         Remove sections.
38664
38665 2008-12-14  Bruno Haible  <bruno@clisp.org>
38666
38667         Update doc for POSIX:2008.
38668         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38669
38670 2008-12-14  Bruno Haible  <bruno@clisp.org>
38671
38672         Update doc for POSIX:2008.
38673         * doc/pastposix-functions/bcmp.texi: Renamed from
38674         doc/posix-functions/bcmp.texi.
38675         * doc/pastposix-functions/bcopy.texi: Renamed from
38676         doc/posix-functions/bcopy.texi.
38677         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38678         doc/posix-functions/bsd_signal.texi.
38679         * doc/pastposix-functions/bzero.texi: Renamed from
38680         doc/posix-functions/bzero.texi.
38681         * doc/pastposix-functions/ecvt.texi: Renamed from
38682         doc/posix-functions/ecvt.texi.
38683         * doc/pastposix-functions/fcvt.texi: Renamed from
38684         doc/posix-functions/fcvt.texi.
38685         * doc/pastposix-functions/ftime.texi: Renamed from
38686         doc/posix-functions/ftime.texi.
38687         * doc/pastposix-functions/gcvt.texi: Renamed from
38688         doc/posix-functions/gcvt.texi.
38689         * doc/pastposix-functions/getcontext.texi: Renamed from
38690         doc/posix-functions/getcontext.texi.
38691         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38692         doc/posix-functions/gethostbyaddr.texi.
38693         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38694         doc/posix-functions/gethostbyname.texi.
38695         * doc/pastposix-functions/getwd.texi: Renamed from
38696         doc/posix-functions/getwd.texi.
38697         * doc/pastposix-functions/h_errno.texi: Renamed from
38698         doc/posix-functions/h_errno.texi.
38699         * doc/pastposix-functions/index.texi: Renamed from
38700         doc/posix-functions/index.texi.
38701         * doc/pastposix-functions/makecontext.texi: Renamed from
38702         doc/posix-functions/makecontext.texi.
38703         * doc/pastposix-functions/mktemp.texi: Renamed from
38704         doc/posix-functions/mktemp.texi.
38705         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38706         doc/posix-functions/pthread_attr_getstackaddr.texi.
38707         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38708         doc/posix-functions/pthread_attr_setstackaddr.texi.
38709         * doc/pastposix-functions/rindex.texi: Renamed from
38710         doc/posix-functions/rindex.texi.
38711         * doc/pastposix-functions/scalb.texi: Renamed from
38712         doc/posix-functions/scalb.texi.
38713         * doc/pastposix-functions/setcontext.texi: Renamed from
38714         doc/posix-functions/setcontext.texi.
38715         * doc/pastposix-functions/swapcontext.texi: Renamed from
38716         doc/posix-functions/swapcontext.texi.
38717         * doc/pastposix-functions/ualarm.texi: Renamed from
38718         doc/posix-functions/ualarm.texi.
38719         * doc/pastposix-functions/usleep.texi: Renamed from
38720         doc/posix-functions/usleep.texi.
38721         * doc/pastposix-functions/vfork.texi: Renamed from
38722         doc/posix-functions/vfork.texi.
38723         * doc/pastposix-functions/wcswcs.texi: Renamed from
38724         doc/posix-functions/wcswcs.texi.
38725         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38726         (Function Substitutes): Update.
38727
38728 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38729
38730         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38731         m4/strerror.m4.
38732
38733 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38734             Bruno Haible  <bruno@clisp.org>
38735
38736         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38737
38738 2008-12-13  Bruno Haible  <bruno@clisp.org>
38739
38740         * modules/strtoull (Depends-on): Remove unistd.
38741
38742 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38743
38744         * modules/strtoull (Depends-on): Add stdlib.
38745
38746 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38747
38748         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38749
38750 2008-12-10  Jim Meyering  <meyering@redhat.com>
38751
38752         gl_ASSERT: don't say assertions are disabled when they're not
38753         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38754         "checking whether to enable assertions... no", when they are in
38755         fact enabled.  This is solely a bug in the output of configure.
38756         In spite of saying "no", NDEBUG was not defined in that case.
38757         Also, as noted by Eric Blake, leave assertions enabled upon
38758         --enable-assert=INVALID.
38759
38760 2008-12-10  Bruno Haible  <bruno@clisp.org>
38761
38762         Change MODULES.html to refer to POSIX:2008 where possible.
38763         * MODULES.html.sh (POSIX2008_URL): New variable.
38764         (posix_headers): Remove sys/timeb, ucontext.
38765         (posix2001_headers): New variable.
38766         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38767         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38768         index, makecontext, mktemp, pthread_attr_getstackaddr,
38769         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38770         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38771         (posix2001_functions): New variable.
38772         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38773         otherwise.
38774
38775 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38776
38777         add missing include to parse-duration.c
38778         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38779         * modules/parse-duration (Depends-on): Add xalloc.
38780
38781         fix sed script reading maint.mk
38782         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38783         (syntax-check-rules): Use it.
38784
38785 2008-12-09  Bruno Haible  <bruno@clisp.org>
38786
38787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38788         MacOS X 10.4/PowerPC.
38789         Reported by Simon Josefsson.
38790
38791 2008-12-08  Jim Meyering  <meyering@redhat.com>
38792
38793         work around mingw's lack of some S_IF definitions
38794         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38795         Reported by Simon Josefsson.
38796
38797 2008-12-08  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38800         applied to variables. Needed on MacOS X 10.4/PowerPC.
38801         Reported by Simon Josefsson.
38802
38803 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38804         and Eric Blake  <ebb9@byu.net>
38805
38806         assert: honor --enable-assert
38807         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38808         order to honor --enable-assert, rather than treating it as a
38809         synonym for --disable-assert.
38810
38811 2008-12-08  Jim Meyering  <meyering@redhat.com>
38812
38813         * lib/posixtm.c: Remove now-useless declaration of mktime.
38814
38815         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38816
38817 2008-12-07  Bruno Haible  <bruno@clisp.org>
38818
38819         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38820         test_once): Mark functions as static.
38821         * tests/test-tls.c (test_tls): Likewise.
38822
38823 2008-12-07  Bruno Haible  <bruno@clisp.org>
38824
38825         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38826         iconv_register_autodetect.
38827
38828 2008-12-07  Jim Meyering  <meyering@redhat.com>
38829
38830         posixtm.c: avoid a warning
38831         * lib/posixtm.c (posixtime): Don't initialize tm0.
38832         It's no longer needed to placate gcc4's -Wuninitialized,
38833         and the attempt to placate would elicit a new warning.
38834
38835         unicodeio.c: mark unused parameters
38836         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38837         (fallback_failure_callback): Likewise.
38838
38839 2008-12-07  Bruno Haible  <bruno@clisp.org>
38840
38841         * gnulib-tool (func_create_testdir): When building the tests
38842         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38843         Reported by Simon Josefsson.
38844
38845 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38846
38847         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38848
38849 2008-12-06  Bruno Haible  <bruno@clisp.org>
38850
38851         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38852         Suggested by Eric Blake.
38853
38854 2008-12-06  Bruno Haible  <bruno@clisp.org>
38855
38856         Fix a c-stack test failure on MacOS X.
38857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38858         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38859         handler for SIGBUS as well.
38860         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38861         install a signal handler for SIGBUS as well.
38862         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38863
38864 2008-12-06  Bruno Haible  <bruno@clisp.org>
38865
38866         Advocacy documentation.
38867         * doc/gnulib-intro.texi (Benefits): New section.
38868         * doc/gnulib.texi: Update.
38869
38870 2008-12-06  Bruno Haible  <bruno@clisp.org>
38871
38872         Document the 'manywarnings' module.
38873         * doc/manywarnings.texi: New file.
38874         * doc/gnulib.texi: Include it.
38875
38876 2008-12-05  Eric Blake  <ebb9@byu.net>
38877
38878         tests: silence some gcc warnings
38879         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38880         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38881         type mismatches.
38882
38883 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38884             Bruno Haible  <bruno@clisp.org>
38885
38886         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38887
38888 2008-11-29  Jim Meyering  <meyering@redhat.com>
38889
38890         unicodeio.c: mark unused parameters
38891         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38892         (fallback_failure_callback): Likewise.
38893
38894         fts: fix a thinko
38895         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38896         (set_stat_type): Return S_IF*-valued "type" directly.
38897         Prompted by James Youngman's spotting a related bug.
38898         Confirmed by further testing through find.
38899
38900         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38901         * lib/fts.c (D_TYPE): Define.
38902         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38903         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38904         (s_ifmt_shift_bits): New function.
38905         (set_stat_type): New function.
38906         (fts_build): When not calling fts_stat, call set_stat_type
38907         to propagate dirent.d_type info to fts_read caller.
38908         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38909         fts_statp->st_mode type information may be valid.
38910
38911 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38912
38913         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38914         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38915         <sds@gnu.org>.
38916
38917 2008-11-20  Bruno Haible  <bruno@clisp.org>
38918
38919         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38920         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38921         INCLUDE_NEXT.
38922         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38923         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38924         * modules/math (Makefile.am): Substitute
38925         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38926         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38927
38928 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38929             Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/stdint.in.h: Define all type macros so that their expansion is
38932         a single typedef'ed token. Fixes a compilation failure in Boost which
38933         does "using ::int8_t;".
38934
38935 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38936
38937         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38938         gl_MANYWARN_ALL_GCC.
38939         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38940         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38941         * modules/manywarnings: New file.
38942         * MODULES.html.sh: Mention manywarnings module.
38943
38944 2008-11-18  Bruno Haible  <bruno@clisp.org>
38945
38946         * doc/gnulib-tool.texi (Unit tests): New section.
38947
38948 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38949
38950         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38951         paths like 'lib/po/foo.po'.
38952
38953 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38954
38955         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38956         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38957
38958 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38959
38960         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38961         parameter works.
38962
38963 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38964
38965         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38966
38967 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38968
38969         * modules/parse-duration-tests: New file.
38970         * tests/test-parse-duration.sh: New file.
38971         * tests/test-parse-duration.c: New file.
38972
38973         New module 'parse-duration'.
38974         * lib/parse-duration.h: New file.
38975         * lib/parse-duration.c: New file.
38976         * modules/parse-duration: New file.
38977
38978 2008-11-17  Bruno Haible  <bruno@clisp.org>
38979
38980         * tests/test-select-out.sh: Comment out the first pipe test.
38981         Reported by Simon Josefsson.
38982
38983 2008-11-17  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38987         gl_HOSTENT.
38988
38989 2008-11-17  Bruno Haible  <bruno@clisp.org>
38990
38991         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38992         -lnetwork and -lnet. Needed for Haiku and BeOS.
38993
38994 2008-11-16  Bruno Haible  <bruno@clisp.org>
38995
38996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38997
38998 2008-11-16  Bruno Haible  <bruno@clisp.org>
38999
39000         Avoid test failure on Haiku.
39001         * tests/test-fsync.c: Include <errno.h>.
39002         (main): Don't require that fsync (0) fails.
39003
39004 2008-11-15  Bruno Haible  <bruno@clisp.org>
39005
39006         New module 'hostent'.
39007         * modules/hostent: New file.
39008         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39009
39010 2008-11-15  Bruno Haible  <bruno@clisp.org>
39011
39012         New module 'servent'.
39013         * modules/servent: New file.
39014         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39015
39016 2008-11-15  Bruno Haible  <bruno@clisp.org>
39017
39018         Avoid generating same test program with two different rules.
39019         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39020         test-frexp to test-frexp-nolibm.
39021         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39022         test-frexpl to test-frexpl-nolibm.
39023
39024 2008-11-15  Bruno Haible  <bruno@clisp.org>
39025
39026         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39027         $(FREXPL_LIBM).
39028
39029 2008-11-15  Bruno Haible  <bruno@clisp.org>
39030
39031         * lib/netdb.in.h: Activate the definitions also when the system's
39032         <netdb.h> has 'struct addrinfo'.
39033         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39034         EAI_OVERFLOW or AI_NUMERICSERV.
39035         * doc/posix-headers/netdb.texi: Document the problem.
39036
39037 2008-11-15  Bruno Haible  <bruno@clisp.org>
39038
39039         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39040
39041         Make the 'sched' module work on platforms where <sched.h> exists but
39042         is incomplete (such as Haiku).
39043         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39044         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39045         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39046         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39047         HAVE_STRUCT_SCHED_PARAM.
39048         * modules/sched (Depends-on): Add include_next.
39049         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39050         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39051         * doc/posix-headers/sched.texi: Document the issue.
39052
39053 2008-11-13  Jim Meyering  <meyering@redhat.com>
39054
39055         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39056         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39057         test would fail due to the difference in the Report bugs to ...
39058         line.  The expected address is empty, "<>", while the actual
39059         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39060
39061 2008-11-12  Bruno Haible  <bruno@clisp.org>
39062
39063         lstat: don't compile lstat.c on systems lacking lstat
39064         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39065         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39066         Reported by Daniel P. Berrange via Jim Meyering.
39067
39068 2008-11-12  Jim Meyering  <meyering@redhat.com>
39069
39070         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39071
39072 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39073
39074         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39075         instead.
39076
39077 2008-11-12  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/unicodeio.c: Include unistr.h.
39080         (utf8_wctomb): Remove function.
39081         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39082
39083 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39084
39085         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39086         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39087         <bruno@clisp.org>.
39088         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39089
39090 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39091
39092         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39093         * doc/gnulib.texi: Add section for warnings.
39094
39095 2008-11-11  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/sockets.h: Add a comment.
39098
39099 2008-11-11  Karl Berry  <karl@gnu.org>
39100
39101         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39102
39103 2008-11-11  Eric Blake  <ebb9@byu.net>
39104
39105         fdl.texi: avoid git symlinks
39106         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39107
39108 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39109
39110         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39111
39112 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39113
39114         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39115         (gl_WARN_ADD): Substitute $2 if literal.
39116
39117 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39118
39119         * m4/warning.m4: Remove.
39120
39121 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39122
39123         * m4/warnings.m4: Almost complete rewrite. :-)
39124
39125 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39126
39127         * modules/warnings: New module.
39128         * m4/warnings.m4: New file.
39129         * MODULES.html.sh: Mention warnings module.
39130         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39131         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39132
39133 2008-11-10  Eric Blake  <ebb9@byu.net>
39134
39135         fdl.texi: make a symlink to the latest version
39136         * doc/standards.texi: Revert today's earlier change.
39137         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39138         * doc/fdl.texi: ...and replace this with a symlink to the newer
39139         fdl-1.3.texi.
39140
39141 2008-11-10  Bruno Haible  <bruno@clisp.org>
39142
39143         * tests/test-select-fd.c (main): Accept the result file name as fourth
39144         argument.
39145         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39146         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39147
39148 2008-11-10  Bruno Haible  <bruno@clisp.org>
39149
39150         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39151         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39152         as autoconf-substituted macros.
39153         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39155         gl_NETDB_H_DEFAULTS. Set these variables.
39156         * modules/netdb (Makefile.am): Substitute these variables.
39157
39158 2008-11-10  Eric Blake  <ebb9@byu.net>
39159
39160         standards.texi: include correct file for FDL 1.3
39161         * doc/standards.texi (GNU Free Documentation License): Change
39162         include file to pull in FDL 1.3, not 1.2.
39163
39164         fdl.texi: revert accidental change to license
39165         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39166
39167 2008-11-10  Bruno Haible  <bruno@clisp.org>
39168
39169         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39170         cross-compiling guesses also when the native compile gives no result.
39171
39172 2008-11-10  Bruno Haible  <bruno@clisp.org>
39173
39174         * lib/spawni.c (__spawni): Force variable into the stack.
39175
39176 2008-11-10  Bruno Haible  <bruno@clisp.org>
39177
39178         Add support for Haiku.
39179         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39180         glibc and BeOS, but also on Haiku.
39181         * lib/fpurge.c (fpurge): Likewise.
39182         * lib/freadable.c (freadable): Likewise.
39183         * lib/freadahead.c (freadahead): Likewise.
39184         * lib/freading.c (freading): Likewise.
39185         * lib/freadptr.c (freadptr): Likewise.
39186         * lib/freadseek.c (freadptrinc): Likewise.
39187         * lib/fseeko.c (rpl_fseeko): Likewise.
39188         * lib/fseterr.c (fseterr): Likewise.
39189         * lib/fwritable.c (fwritable): Likewise.
39190         * lib/fwriting.c (fwriting): Likewise.
39191         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39192
39193 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39194
39195         * lib/config.charset: Treat Haiku like BeOS.
39196
39197 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39198
39199         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39200         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39201
39202 2008-11-08  Bruno Haible  <bruno@clisp.org>
39203
39204         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39205         AC_CACHE_CHECK.
39206
39207 2008-11-08  Bruno Haible  <bruno@clisp.org>
39208
39209         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39210
39211 2008-11-08  Bruno Haible  <bruno@clisp.org>
39212
39213         * tests/test-select-fd.c: New file.
39214         * tests/test-select-in.sh: New file.
39215         * tests/test-select-out.sh: New file.
39216         * tests/test-select-stdin.c: New file.
39217         * modules/select-tests (Files): Add the new files.
39218         (Depends-on): Add gettimeofday.
39219         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39220         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39221         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39222
39223 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39224             Bruno Haible  <bruno@clisp.org>
39225
39226         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39227
39228 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39229
39230         * build-aux/pmccabe2html: Added support for C++ source files.
39231
39232 2008-11-05  Ben Pfaff  <blp@gnu.org>
39233
39234         Fix lib/close.c build on Windows.
39235         * modules/close (Files): Add lib/w32sock.h.
39236
39237 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39238
39239         Accept Bison's NEWS format.
39240         * build-aux/announce-gen (print_news_deltas): Tweak
39241         $re_prefix.
39242
39243 2008-11-04  Bruno Haible  <bruno@clisp.org>
39244
39245         * modules/random_r (Maintainer): Add glibc.
39246
39247 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39248
39249         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39250         by karl@freefriends.org (Karl Berry).
39251         * doc/alloca.texi: Likewise.
39252         * doc/c-ctype.texi: Likewise.
39253         * doc/c-strcase.texi: Likewise.
39254         * doc/c-strcaseeq.texi: Likewise.
39255         * doc/c-strcasestr.texi: Likewise.
39256         * doc/c-strstr.texi: Likewise.
39257         * doc/c-strtod.texi: Likewise.
39258         * doc/c-strtold.texi: Likewise.
39259         * doc/ctime.texi: Likewise.
39260         * doc/error.texi: Likewise.
39261         * doc/fdl.texi: Likewise.
39262         * doc/gcd.texi: Likewise.
39263         * doc/getdate.texi: Likewise.
39264         * doc/gnulib-intro.texi: Likewise.
39265         * doc/gnulib-tool.texi: Likewise.
39266         * doc/gnulib.texi: Likewise.
39267         * doc/inet_ntoa.texi: Likewise.
39268         * doc/maintain.texi: Likewise.
39269         * doc/make-stds.texi: Likewise.
39270         * doc/quote.texi: Likewise.
39271         * doc/regexprops-generic.texi: Likewise.
39272         * doc/standards.texi: Likewise.
39273         * doc/verify.texi: Likewise.
39274         * doc/visibility.texi: Likewise.
39275         * doc/gnulib.texi (GNU Free Documentation License): Include
39276         fdl-1.3.texi instead of fdl.texi.
39277
39278 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39279
39280         * doc/fdl-1.3.texi: New file, from
39281         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39282         * modules/fdl-1.3: Add.
39283         * MODULES.html.sh: Add fdl-1.3.
39284
39285 2008-11-03  Bruno Haible  <bruno@clisp.org>
39286
39287         Make determination of absolute name of header file work with AIX xlc.
39288         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39289         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39290         preprocessing.
39291         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39292         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39293
39294 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39295
39296         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39297         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39298         <ludo@gnu.org>.
39299
39300 2008-11-02  Bruno Haible  <bruno@clisp.org>
39301
39302         Mark 'strpbrk' obsolete.
39303         * modules/strpbrk (Status, Notice): New sections.
39304         * modules/strtok_r (Depends-on): Add strpbrk.
39305
39306 2008-11-02  Bruno Haible  <bruno@clisp.org>
39307
39308         Mark 'strdup' obsolete.
39309         * modules/strdup (Status, Notice): New sections.
39310         * modules/findprog (Depends-on): Add strdup.
39311         * modules/getaddrinfo (Depends-on): Likewise.
39312         * modules/localename (Depends-on): Likewise.
39313         * modules/relocatable-lib (Depends-on): Likewise.
39314         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39315         * modules/relocatable-prog (Depends-on): Likewise.
39316         * modules/trim (Depends-on): Likewise.
39317         * modules/unictype/gen-ctype (Depends-on): Likewise.
39318         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39319
39320 2008-11-02  Bruno Haible  <bruno@clisp.org>
39321
39322         Mark 'strcspn' obsolete.
39323         * modules/strcspn (Status, Notice): New sections.
39324
39325 2008-11-02  Bruno Haible  <bruno@clisp.org>
39326
39327         Mark 'rmdir' obsolete.
39328         * modules/rmdir (Status, Notice): New sections.
39329         * modules/clean-temp (Depends-on): Add rmdir.
39330         * modules/openat (Depends-on): Likewise.
39331
39332 2008-11-02  Bruno Haible  <bruno@clisp.org>
39333
39334         Mark 'raise' obsolete.
39335         * modules/raise (Status, Notice): New sections.
39336         (Include): Specify <signal.h>.
39337         * modules/stdio (Depends-on): Add raise.
39338         * modules/write (Depends-on): Likewise.
39339
39340 2008-11-02  Bruno Haible  <bruno@clisp.org>
39341
39342         Mark 'memset' obsolete.
39343         * modules/memset (Status, Notice): New sections.
39344
39345 2008-11-02  Bruno Haible  <bruno@clisp.org>
39346
39347         Mark 'memmove' obsolete.
39348         * modules/memmove (Status, Notice): New sections.
39349         * modules/argp (Depends-on): Add memmove.
39350         * modules/argz (Depends-on): Likewise.
39351         * modules/canonicalize (Depends-on): Likewise.
39352         * modules/canonicalize-lgpl (Depends-on): Likewise.
39353         * modules/fts (Depends-on): Likewise.
39354         * modules/getcwd (Depends-on): Likewise.
39355         * modules/human (Depends-on): Likewise.
39356         * modules/regex (Depends-on): Likewise.
39357         * modules/striconveh (Depends-on): Likewise.
39358         * modules/trim (Depends-on): Likewise.
39359         * modules/unistr/u8-move (Depends-on): Likewise.
39360         * modules/unistr/u16-move (Depends-on): Likewise.
39361         * modules/unistr/u32-move (Depends-on): Likewise.
39362
39363 2008-11-02  Bruno Haible  <bruno@clisp.org>
39364
39365         Mark 'memcpy' obsolete.
39366         * modules/memcpy (Status, Notice): New sections.
39367
39368 2008-11-02  Bruno Haible  <bruno@clisp.org>
39369
39370         Mark 'memcmp' obsolete.
39371         * modules/memcmp (Status, Notice): New sections.
39372         * modules/argmatch (Depends-on): Add memchr.
39373         * modules/backupfile (Depends-on): Likewise.
39374         * modules/c-strcasestr (Depends-on): Likewise.
39375         * modules/crypto/des (Depends-on): Likewise.
39376         * modules/csharpcomp (Depends-on): Likewise.
39377         * modules/fnmatch (Depends-on): Likewise.
39378         * modules/git-merge-changelog (Depends-on): Likewise.
39379         * modules/isnand (Depends-on): Likewise.
39380         * modules/isnand-nolibm (Depends-on): Likewise.
39381         * modules/isnanf (Depends-on): Likewise.
39382         * modules/isnanf-nolibm (Depends-on): Likewise.
39383         * modules/isnanl (Depends-on): Likewise.
39384         * modules/isnanl-nolibm (Depends-on): Likewise.
39385         * modules/mbchar (Depends-on): Likewise.
39386         * modules/memcoll (Depends-on): Likewise.
39387         * modules/quotearg (Depends-on): Likewise.
39388         * modules/regex (Depends-on): Likewise.
39389         * modules/relocatable-prog (Depends-on): Likewise.
39390         * modules/same (Depends-on): Likewise.
39391         * modules/signbit (Depends-on): Likewise.
39392         * modules/strcasestr-simple (Depends-on): Likewise.
39393         * modules/unictype/gen-ctype (Depends-on): Likewise.
39394         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39395         * modules/uniname/uniname (Depends-on): Likewise.
39396         * modules/unistr/u8-cmp (Depends-on): Likewise.
39397
39398 2008-11-02  Bruno Haible  <bruno@clisp.org>
39399
39400         Mark 'memchr' obsolete.
39401         * modules/memchr (Status, Notice): New sections.
39402         * modules/argp (Depends-on): Add memchr.
39403         * modules/base64 (Depends-on): Likewise.
39404         * modules/c-strcasestr (Depends-on): Likewise.
39405         * modules/chdir-long (Depends-on): Likewise.
39406         * modules/fnmatch (Depends-on): Likewise.
39407         * modules/getsubopt (Depends-on): Likewise.
39408         * modules/git-merge-changelog (Depends-on): Likewise.
39409         * modules/glob (Depends-on): Likewise.
39410         * modules/strcasestr-simple (Depends-on): Likewise.
39411         * modules/strnlen (Depends-on): Likewise.
39412
39413 2008-11-02  Bruno Haible  <bruno@clisp.org>
39414
39415         Mark 'atexit' obsolete.
39416         * modules/atexit (Status, Notice): New sections.
39417         * modules/chdir-long (Depends-on): Add atexit.
39418         * modules/wait-process (Depends-on): Likewise.
39419
39420 2008-11-02  Bruno Haible  <bruno@clisp.org>
39421
39422         * gnulib-tool: New option --with-obsolete.
39423         (func_usage): Document it.
39424         (func_modules_transitive_closure): Drop obsolete dependencies if
39425         incobsolete is not true.
39426         (func_import): Read and save the incobsolete variable to the cache.
39427
39428 2008-11-02  Bruno Haible  <bruno@clisp.org>
39429
39430         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39431         * gnulib-tool: New option --extract-status.
39432         (func_usage): Document it.
39433         (sed_extract_prog): Recognize it.
39434         (func_get_status): New function.
39435
39436 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39437
39438         * modules/sockets (License): Change from LGPL to LGPLv2+.
39439
39440 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39441
39442         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39443
39444 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39445
39446         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39447         Mention times and sys_times.
39448         * modules/sys_times, modules/sys_times-tests: New modules.
39449         * modules/times, modules/times-tests: Likewise
39450         * m4/sys_times_h.m4: New file.
39451         * lib/sys_times.in.h: Likewise
39452         * lib/times.c: Likewise.
39453         * tests/test-sys_times.c: Likewise.
39454         * tests/test-times.c: Likewise.
39455         * doc/posix-headers/sys_times.texi: Update.
39456         * doc/posix-functions/times.texi: Update.
39457
39458 2008-10-28  Jim Meyering  <meyering@redhat.com>
39459
39460         * modules/tempname (Depends-on): Add lstat.
39461
39462         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39463
39464 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39465
39466         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39467         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39468         using idiom used elsewhere in gnulib.
39469
39470 2008-10-27  Jim Meyering  <meyering@redhat.com>
39471
39472         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39473
39474 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39475
39476         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39477         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39478         programs.
39479         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39480
39481 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39482
39483         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39484
39485 2008-10-27  Bruno Haible  <bruno@clisp.org>
39486
39487         * tests/test-lstat.c: Include <stdio.h>.
39488
39489 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39490
39491         * modules/lstat-tests: New module.
39492         * tests/test-lstat.c: New file.
39493
39494 2008-10-26  Jim Meyering  <meyering@redhat.com>
39495
39496         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39497
39498 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39499             Bruno Haible  <bruno@clisp.org>
39500
39501         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39502         * modules/configmake (Include): Add a note that the include must come
39503         after all system headers.
39504         * lib/javaversion.c: Include configmake.h after all other includes.
39505
39506 2008-10-26  Bruno Haible  <bruno@clisp.org>
39507
39508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39509         HAVE_STRUCT_RANDOM_DATA to 1.
39510         (gl_STDLIB_H): Simplify.
39511
39512 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39513
39514         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39515         substitute HAVE_STRUCT_RANDOM_DATA.
39516         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39517         random_data.
39518         * modules/stdlib (Makefile.am): Substitute
39519         HAVE_STRUCT_RANDOM_DATA.
39520
39521 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39522
39523         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39524         * doc/gnulib-intro.texi (Copyright): Likewise.
39525
39526 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39527
39528         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39529         findings.
39530
39531 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39532             Bruno Haible  <bruno@clisp.org>
39533
39534         * lib/unistd.in.h: Include <winsock2.h>.
39535         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39536         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39537         Provide dummy declarations.
39538         (gethostname): Override.
39539         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39540         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39541         gl_PREREQ_SYS_H_WINSOCK2.
39542         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39543         * doc/posix-functions/gethostname.texi: More details.
39544
39545 2008-10-25  Bruno Haible  <bruno@clisp.org>
39546
39547         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39548         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39549         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39550
39551         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39552         here ...
39553         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39554         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39555         gl_UNISTD_H_DEFAULTS.
39556
39557 2008-10-25  Eric Blake  <ebb9@byu.net>
39558
39559         signbit: avoid spurious compiler failure
39560         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39561         declarations inside function.
39562
39563 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39564             Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39567         * modules/random_r (Depends-on): Add stdint.
39568
39569 2008-10-24  Bruno Haible  <bruno@clisp.org>
39570
39571         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39572         Eggert.
39573         * modules/strerror (License): Likewise.
39574
39575 2008-10-24  Jim Meyering  <meyering@redhat.com>
39576
39577         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39578         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39579
39580 2008-10-24  Eric Blake  <ebb9@byu.net>
39581
39582         getgroups: fix compilation when getgroups is available
39583         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39584         but with <config.h> override of getgroups disabled.
39585
39586 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39587
39588         * doc/gnulib.texi (Header files): Add note about C++ problems.
39589         Explained by Bruno Haible <bruno@clisp.org>.
39590
39591 2008-10-23  Bruno Haible  <bruno@clisp.org>
39592
39593         Define a dummy SA_NODEFER macro on Interix.
39594         * lib/signal.in.h (SA_NODEFER): Define fallback.
39595         Reported by Aleksey Cheusov <cheusov@tut.by> via
39596         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39597
39598 2008-10-23  Bruno Haible  <bruno@clisp.org>
39599
39600         * modules/freadahead (License): Change to LGPLv2+.
39601         Suggested by Simon Josefsson.
39602
39603 2008-10-23  Jim Meyering  <meyering@redhat.com>
39604
39605         random_r: new module
39606         * modules/random_r: New file.
39607         * m4/random_r.m4: New file.
39608         * lib/random_r.c: New file, from glibc.
39609         * modules/random_r-tests: New file.
39610         * tests/test-random_r.c: New file.
39611         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39612          Declare.
39613         (RAND_MAX): Define.
39614         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39615         * modules/stdlib: Substitute them, too.
39616         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39617         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39618         * doc/glibc-functions/random_r.texi: Likewise.
39619         * doc/glibc-functions/setstate_r.texi: Likewise.
39620         * doc/glibc-functions/srandom_r.texi: Likewise.
39621         * config/srclist.txt: Mention it.
39622
39623 2008-10-23  David Lutterkort  <lutter@redhat.com>
39624
39625         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39626         link requirement
39627
39628 2008-10-23  Jim Meyering  <meyering@redhat.com>
39629
39630         selinux-h: mark parameters of stub functions as intentionally unused
39631         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39632         * lib/se-context.in.h: Likewise.
39633
39634 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39635
39636         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39637
39638 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39639
39640         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39641
39642 2008-10-22  Eric Blake  <ebb9@byu.net>
39643
39644         glthread/thread: avoid compiler warning
39645         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39646         Add unreachable abort to silence compiler.
39647
39648 2008-10-22  Eric Blake  <ebb9@byu.net>
39649
39650         netdb: also supply struct addrinfo for cygwin 1.5.x
39651         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39652         older cygwin.
39653         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39654         cygwin.
39655         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39656
39657 2008-10-22  Bruno Haible  <bruno@clisp.org>
39658
39659         * users.txt: Update entry about pspp.
39660
39661 2008-10-21  Bruno Haible  <bruno@clisp.org>
39662
39663         Simplification.
39664         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39665         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39666
39667         Simplification.
39668         * lib/ioctl.c (ioctl): Don't undefine.
39669         * lib/socket.c (socket): Don't undefine.
39670
39671         Remove unused module indicator macros.
39672         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39673         GNULIB_$1 as a C macro.
39674
39675         * doc/posix-functions/close.texi: Undo last change.
39676         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39677         Windows platforms.
39678
39679 2008-10-21  Bruno Haible  <bruno@clisp.org>
39680
39681         Add gethostname() declaration to <unistd.h>.
39682         * lib/unistd.in.h (gethostname): New declaration.
39683         * lib/gethostname.c: Include <unistd.h>.
39684         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39685         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39687         and HAVE_GETHOSTNAME.
39688         * modules/gethostname (Depends-on): Add unistd.
39689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39690         (Include): Specify <unistd.h>.
39691         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39692         HAVE_GETHOSTNAME.
39693         * tests/test-gethostname.c: Include <unistd.h> first.
39694
39695 2008-10-21  Bruno Haible  <bruno@clisp.org>
39696
39697         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39698         * modules/select-tests (Depends-on): Likewise.
39699         Reported by Simon Josefsson.
39700
39701 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39702
39703         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39704         * lib/accept.c: New file, based on winsock.c.
39705         * lib/bind.c: New file, based on winsock.c.
39706         * lib/connect.c: New file, based on winsock.c.
39707         * lib/getpeername.c: New file, based on winsock.c.
39708         * lib/getsockname.c: New file, based on winsock.c.
39709         * lib/getsockopt.c: New file, based on winsock.c.
39710         * lib/ioctl.c: New file, based on winsock.c.
39711         * lib/listen.c: New file, based on winsock.c.
39712         * lib/recv.c: New file, based on winsock.c.
39713         * lib/recvfrom.c: New file, based on winsock.c.
39714         * lib/send.c: New file, based on winsock.c.
39715         * lib/sendto.c: New file, based on winsock.c.
39716         * lib/setsockopt.c: New file, based on winsock.c.
39717         * lib/shutdown.c: New file, based on winsock.c.
39718         * lib/socket.c: New file, based on winsock.c.
39719         * lib/w32sock.h: New file, based on winsock.c.
39720         * lib/winsock.c: Remove file.
39721         * modules/accept: Likewise.
39722         * modules/bind: Likewise.
39723         * modules/connect: Likewise.
39724         * modules/getpeername: Likewise.
39725         * modules/getsockname: Likewise.
39726         * modules/getsockopt: Likewise.
39727         * modules/ioctl: Likewise.
39728         * modules/listen: Likewise.
39729         * modules/recv: Likewise.
39730         * modules/recvfrom: Likewise.
39731         * modules/send: Likewise.
39732         * modules/sendto: Likewise.
39733         * modules/setsockopt: Likewise.
39734         * modules/shutdown: Likewise.
39735         * modules/socket: Use socket.c instead of winsock.c.
39736         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39737         * doc/posix-functions/accept.texi: Doc fix.
39738         * doc/posix-functions/bind.texi: Doc fix.
39739         * doc/posix-functions/close.texi: Doc fix.
39740         * doc/posix-functions/connect.texi: Doc fix.
39741         * doc/posix-functions/getpeername.texi: Doc fix.
39742         * doc/posix-functions/getsockname.texi: Doc fix.
39743         * doc/posix-functions/getsockopt.texi: Doc fix.
39744         * doc/posix-functions/ioctl.texi: Doc fix.
39745         * doc/posix-functions/listen.texi: Doc fix.
39746         * doc/posix-functions/recv.texi: Doc fix.
39747         * doc/posix-functions/recvfrom.texi: Doc fix.
39748         * doc/posix-functions/send.texi: Doc fix.
39749         * doc/posix-functions/sendto.texi: Doc fix.
39750         * doc/posix-functions/setsockopt.texi: Doc fix.
39751         * doc/posix-functions/shutdown.texi: Doc fix.
39752         * doc/posix-functions/socket.texi: Doc fix.
39753
39754 2008-10-20  Bruno Haible  <bruno@clisp.org>
39755
39756         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39757         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39758         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39759         as an alias for SIGABRT.
39760         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39761         (sigaction): Map it to SIGABRT.
39762         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39763
39764 2008-10-20  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/fts.c: Don't include lstat.h.
39767         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39768
39769         Move the lstat() declaration to <sys/stat.h>.
39770         * lib/lstat.h: Remove file.
39771         * lib/sys_stat.in.h: Add special invocation convention.
39772         (lstat): New declaration.
39773         * lib/lstat.c (orig_lstat): New function.
39774         (rpl_lstat): Use orig_lstat instead of lstat.
39775         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39776         AC_C_INLINE. Set REPLACE_LSTAT.
39777         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39778         and REPLACE_LSTAT.
39779         * modules/lstat (Files): Remove lib/lstat.h.
39780         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39781         (Include): Specify <sys/stat.h> instead of lstat.h.
39782         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39783         REPLACE_LSTAT.
39784         * NEWS: Mention the change.
39785
39786 2008-10-20  Bruno Haible  <bruno@clisp.org>
39787
39788         * modules/posix_spawn-tests: New file.
39789         * tests/test-posix_spawn3.c: New file.
39790
39791 2008-10-20  Bruno Haible  <bruno@clisp.org>
39792
39793         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39794         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39795         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39796         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39797         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39798
39799 2008-10-20  Bruno Haible  <bruno@clisp.org>
39800
39801         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39802         of posix_spawn on AIX 5.3.
39803
39804 2008-10-20  Bruno Haible  <bruno@clisp.org>
39805
39806         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39807
39808 2008-10-20  Bruno Haible  <bruno@clisp.org>
39809
39810         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39811         of AC_LANG_PROGRAM.
39812
39813 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39814
39815         * lib/netdb.in.h: Don't define GNU specific constants until they
39816         are supported or needed.  Reported by Bruno Haible
39817         <bruno@clisp.org>.
39818
39819 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39820
39821         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39822
39823 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39824
39825         * lib/getaddrinfo.h: Remove file.
39826         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39827         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39828         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39829         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39830         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39831         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39832         * tests/test-getaddrinfo.c: Likewise.
39833         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39834         * NEWS: Mention change.
39835
39836 2008-10-19  Bruno Haible  <bruno@clisp.org>
39837
39838         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39839
39840 2008-10-19  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/wait-process.c: Include simply <sys/wait.h>.
39843         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39844         WIFSTOPPED): Remove fallback definitions.
39845         * modules/wait-process (Depends-on): Add sys_wait.
39846
39847         New module 'sys_wait'.
39848         * modules/sys_wait: New file.
39849         * lib/sys_wait.in.h: New file, partially copied from
39850         lib/wait-process.c.
39851         * m4/sys_wait_h.m4: New file.
39852         * doc/posix-headers/sys_wait.texi: Mention the new module.
39853
39854 2008-10-19  Bruno Haible  <bruno@clisp.org>
39855
39856         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39857
39858 2008-10-19  Bruno Haible  <bruno@clisp.org>
39859
39860         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39861         * lib/wait-process.c (WAIT_T): Remove type.
39862         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39863         (wait_subprocess): Update.
39864
39865 2008-10-19  Bruno Haible  <bruno@clisp.org>
39866
39867         New module 'atoll'.
39868         * modules/atoll: New file.
39869         * lib/stdlib.in.h (atoll): New declaration.
39870         * lib/atoll.c: New file, from glibc with modifications.
39871         * m4/atoll.m4: New file.
39872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39873         HAVE_ATOLL.
39874         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39875         * doc/posix-functions/atoll.texi: Mention the new module.
39876
39877 2008-10-19  Bruno Haible  <bruno@clisp.org>
39878
39879         Add strtoull() declaration to <stdlib.h>.
39880         * lib/stdlib.in.h (strtoull): New declaration.
39881         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39882         Set HAVE_STRTOULL.
39883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39884         HAVE_STRTOULL.
39885         * modules/strtoull (Depends-on): Add stdlib.
39886         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39887         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39888         HAVE_STRTOULL.
39889
39890 2008-10-19  Bruno Haible  <bruno@clisp.org>
39891
39892         Add strtoll() declaration to <stdlib.h>.
39893         * lib/stdlib.in.h (strtoll): New declaration.
39894         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39895         Set HAVE_STRTOLL.
39896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39897         HAVE_STRTOLL.
39898         * modules/strtoll (Depends-on): Add stdlib.
39899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39900         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39901
39902 2008-10-19  Bruno Haible  <bruno@clisp.org>
39903
39904         * modules/bcopy (Depends-on): Add strings.
39905         (Include): Specify <strings.h>.
39906
39907 2008-10-19  Bruno Haible  <bruno@clisp.org>
39908
39909         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39910
39911 2008-10-19  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39914         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39915         mingw.
39916
39917 2008-10-19  Bruno Haible  <bruno@clisp.org>
39918
39919         * lib/atanl.c: Don't include isnanl.h.
39920         * lib/cosl.c: Likewise.
39921         * lib/ldexpl.c: Likewise.
39922         * lib/logl.c: Likewise.
39923         * lib/sinl.c: Likewise.
39924         * lib/sqrtl.c: Likewise.
39925         * lib/tanl.c: Likewise.
39926
39927         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39928         * lib/isnanf.h: Remove file.
39929         * lib/isnand.h: Remove file.
39930         * lib/isnanl.h: Remove file.
39931         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39932         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39933         macros.
39934         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39935         HAVE_ISNANF, don't define it as a C macro.
39936         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39937         HAVE_ISNAND, don't define it as a C macro.
39938         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39939         HAVE_ISNANL, don't define it as a C macro.
39940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39941         HAVE_ISNAN[FDL].
39942         * modules/isnanf (Files): Remove lib/isnanf.h.
39943         (Depends-on): Add math.
39944         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39945         (Include): Specify <math.h> instead of isnanf.h.
39946         * modules/isnand (Files): Remove lib/isnand.h.
39947         (Depends-on): Add math.
39948         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39949         (Include): Specify <math.h> instead of isnand.h.
39950         * modules/isnanl (Files): Remove lib/isnanl.h.
39951         (Depends-on): Add math.
39952         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39953         (Include): Specify <math.h> instead of isnanl.h.
39954         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39955         HAVE_ISNAN[FDL].
39956         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39957         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39958         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39959         * NEWS: Mention the change.
39960
39961 2008-10-18  Bruno Haible  <bruno@clisp.org>
39962
39963         Add getusershell(), setusershell(), endusershell() declarations to
39964         <unistd.h>.
39965         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39966         declarations.
39967         * lib/getusershell.c: Include unistd.h.
39968         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39969         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39970         HAVE_GETUSERSHELL.
39971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39972         and HAVE_GETUSERSHELL.
39973         * modules/getusershell (Depends-on): Add unistd, extensions.
39974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39975         (Include): Specify <unistd.h>.
39976         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39977         HAVE_GETUSERSHELL.
39978
39979 2008-10-18  Bruno Haible  <bruno@clisp.org>
39980
39981         Add a getloadavg() declaration to <stdlib.h>.
39982         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39983         getloadavg declaration.
39984         (getloadavg): New declaration.
39985         * lib/getloadavg.c: Include <stdlib.h> first.
39986         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39987         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39988         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39990         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39991         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39992         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39993         (Include): Specify <stdlib.h>.
39994         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39995         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39996
39997 2008-10-18  Bruno Haible  <bruno@clisp.org>
39998
39999         * lib/dirchownmod.c: Don't include lchmod.h.
40000
40001         Move the lchmod() declaration to <sys/stat.h>.
40002         * lib/lchmod.h: Remove file.
40003         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40004         (lchmod): New declaration, moved here from lib/lchown.h.
40005         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40006         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40007         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40008         and HAVE_LCHMOD.
40009         * modules/lchmod (Files): Remove lib/lchmod.h.
40010         (Depends-on): Add sys_stat, extensions.
40011         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40012         (Include): Specify <sys/stat.h> instead of lchmod.h.
40013         * modules/sys_stat (Depends-on): Add link-warning.
40014         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40015         definition of GL_LINK_WARNING.
40016         * NEWS: Mention the change.
40017
40018 2008-10-18  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/fchdir.c: Don't include dirfd.h.
40021         * lib/fts.c: Likewise.
40022         * lib/getcwd.c: Likewise.
40023         * lib/glob.c: Likewise.
40024
40025         Move the dirfd() declaration to <dirent.h>.
40026         * lib/dirfd.h: Remove file.
40027         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40028         (dirfd): New declaration.
40029         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40030         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40031         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40032         HAVE_DECL_DIRFD.
40033         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40034         HAVE_DECL_DIRFD.
40035         * modules/dirfd (Files): Remove lib/dirfd.h.
40036         (Depends-on): Add dirent, extensions.
40037         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40038         (Include): Specify <dirent.h> instead of dirfd.h.
40039         * modules/dirent (Depends-on): Add link-warning.
40040         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40041         definition of GL_LINK_WARNING.
40042         * NEWS: Mention the change.
40043
40044 2008-10-18  Bruno Haible  <bruno@clisp.org>
40045
40046         Move the euidaccess() declaration to <unistd.h>.
40047         * lib/euidaccess.h: Remove file.
40048         * lib/unistd.in.h (euidaccess): New declaration.
40049         * lib/euidaccess.c: Don't include euidaccess.h.
40050         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40051         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40053         and HAVE_EUIDACCESS.
40054         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40055         (Depends-on): Add unistd.
40056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40057         (Include): Specify <unistd.h> instead of euidaccess.h.
40058         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40059         HAVE_EUIDACCESS.
40060         * NEWS: Mention the change.
40061
40062 2008-10-18  Bruno Haible  <bruno@clisp.org>
40063
40064         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40065
40066         Move the getdomainname() declaration to <unistd.h>.
40067         * lib/getdomainname.h: Remove file.
40068         * lib/unistd.in.h (getdomainname): New declaration.
40069         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40070         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40071         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40072         HAVE_GETDOMAINNAME.
40073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40074         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40075         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40076         (Depends-on): Add unistd, extensions.
40077         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40078         (Includes): Specify <unistd.h> instead of getdomainname.h.
40079         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40080         HAVE_GETDOMAINNAME.
40081         * NEWS: Mention the change.
40082
40083 2008-10-18  Bruno Haible  <bruno@clisp.org>
40084
40085         * modules/dirent: New file.
40086         * m4/dirent_h.m4: New file.
40087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40088         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40089         * modules/fchdir (Files): Remove lib/dirent.in.h.
40090         (Depends-on): Add dirent.
40091         (Makefile.am): Move rules to modules/dirent.
40092         * doc/posix-headers/dirent.texi: Mention the new module.
40093
40094 2008-10-18  Bruno Haible  <bruno@clisp.org>
40095
40096         Avoid -Wunused-parameter warnings in public gnulib header files.
40097         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40098         macro.
40099         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40100
40101 2008-10-18  Bruno Haible  <bruno@clisp.org>
40102
40103         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40104         * doc/glibc-functions/error.texi: Mention the module 'error'.
40105         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40106         * doc/glibc-functions/getdomainname.texi: Mention the module
40107         'getdomainname'.
40108         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40109         * doc/glibc-functions/getpagesize.texi: Mention the module
40110         'getpagesize'.
40111         * doc/glibc-functions/getusershell.texi: Mention the module
40112         'getusershell'.
40113         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40114         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40115         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40116         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40117         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40118         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40119         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40120         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40121         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40122         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40123         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40124         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40125         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40126         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40127
40128 2008-10-17  Bruno Haible  <bruno@clisp.org>
40129
40130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40131         HP-UX and IRIX, use -0.0L.
40132         * tests/test-ceill.c (minus_zero): Likewise.
40133         * tests/test-floorl.c (minus_zero): Likewise.
40134         * tests/test-frexpl.c (minus_zero): Likewise.
40135         * tests/test-isnan.c (minus_zerol): Likewise.
40136         * tests/test-isnanl.h (minus_zero): Likewise.
40137         * tests/test-ldexpl.c (minus_zero): Likewise.
40138         * tests/test-roundl.c (minus_zero): Likewise.
40139         * tests/test-signbit.c (minus_zerol): Likewise.
40140         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40141         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40142         * tests/test-truncl.c (minus_zero): Likewise.
40143         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40144         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40145         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40146         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40147
40148 2008-10-17  Bruno Haible  <bruno@clisp.org>
40149
40150         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40151         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40152         that it gets activated only for gcc >= 3.0.
40153         * lib/dirent.in.h: Likewise.
40154         * lib/errno.in.h: Likewise.
40155         * lib/fcntl.in.h: Likewise.
40156         * lib/float.in.h: Likewise.
40157         * lib/iconv.in.h: Likewise.
40158         * lib/inttypes.in.h: Likewise.
40159         * lib/locale.in.h: Likewise.
40160         * lib/math.in.h: Likewise.
40161         * lib/netdb.in.h: Likewise.
40162         * lib/netinet_in.in.h: Likewise.
40163         * lib/search.in.h: Likewise.
40164         * lib/signal.in.h: Likewise.
40165         * lib/spawn.in.h: Likewise.
40166         * lib/stdarg.in.h: Likewise.
40167         * lib/stdint.in.h: Likewise.
40168         * lib/stdio.in.h: Likewise.
40169         * lib/stdlib.in.h: Likewise.
40170         * lib/string.in.h: Likewise.
40171         * lib/strings.in.h: Likewise.
40172         * lib/sys_file.in.h: Likewise.
40173         * lib/sys_ioctl.in.h: Likewise.
40174         * lib/sys_select.in.h: Likewise.
40175         * lib/sys_socket.in.h: Likewise.
40176         * lib/sys_stat.in.h: Likewise.
40177         * lib/sys_time.in.h: Likewise.
40178         * lib/sysexits.in.h: Likewise.
40179         * lib/time.in.h: Likewise.
40180         * lib/unistd.in.h: Likewise.
40181         * lib/wchar.in.h: Likewise.
40182         * lib/wctype.in.h: Likewise.
40183         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40184
40185 2008-10-17  Jim Meyering  <meyering@redhat.com>
40186
40187         ignore-value: don't depend on inline module
40188         * modules/ignore-value (Depends-on): Remove 'inline'.
40189         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40190         Suggestion from Bruno Haible.
40191
40192 2008-10-17  Bruno Haible  <bruno@clisp.org>
40193
40194         New implementation of condition variables for Win32.
40195         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40196         (gl_linked_waitqueue_t): New type.
40197         (gl_cond_t): Use it.
40198         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40199         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40200         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40201         (glthread_cond_init_func, glthread_cond_wait_func,
40202         glthread_cond_timedwait_func, glthread_cond_signal_func,
40203         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40204         Reimplemented on the basis of gl_linked_waitqueue_t.
40205         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40206         gl_waitqueue_t.
40207         (gl_rwlock_t): Update.
40208         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40209
40210 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40211
40212         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40213         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40214
40215 2008-10-17  Jim Meyering  <meyering@redhat.com>
40216
40217         ignore-value: new module
40218         * modules/ignore-value: New file.
40219         * lib/ignore-value.h: New file.
40220         * MODULES.html.sh (Compiler warning management): New section,
40221         just for this module.  More to come.
40222
40223 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40224
40225         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40226         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40227         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40228
40229 2008-10-16  Jim Meyering  <meyering@redhat.com>
40230
40231         openat-die.c: avoid 'no previous prototype' warning
40232         * lib/openat-die.c: Include "openat.h".
40233         Reported by Reuben Thomas <rrt@sc3d.org>.
40234
40235 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40236
40237         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40238         * lib/netdb.in.h: Fix typo.
40239         Reported by Bruno Haible  <bruno@clisp.org>
40240
40241         * lib/netdb.in.h: Include sys/socket.h for platforms without
40242         netdb.h, to get structures like hostent on MinGW.
40243         * modules/netdb (Depends-on): Add sys_socket.
40244
40245 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40246
40247         * modules/netdb, modules/netdb-tests: New file.
40248         * m4/netdb_h.m4: New file.
40249         * lib/netdb.in.h: Add, currently just an empty file pending
40250         definitions.
40251         * tests/test-netdb.c: New file.
40252         * doc/posix-headers/netdb.texi: Mention that we replace it if
40253         needed.
40254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40255         netdb.
40256
40257 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40258
40259         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40260         with code.
40261
40262 2008-10-13  Bruno Haible  <bruno@clisp.org>
40263
40264         * lib/glthread/cond.c (glthread_cond_wait_func,
40265         glthread_cond_timedwait_func): Add a comment.
40266
40267 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40268
40269         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40270         * tests/test-select.c: Likewise,
40271
40272 2008-10-13  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/glthread/cond.c (glthread_cond_wait_func,
40275         glthread_cond_timedwait_func): Fix variable name.
40276         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40277
40278 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40279
40280         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40282         struct sockaddr.sa_len.
40283         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40284
40285 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40286
40287         * build-aux/pmccabe2html: Add css and css_url parameters.
40288
40289 2008-10-12  Bruno Haible  <bruno@clisp.org>
40290
40291         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40292         calling aclx_get.
40293         Reported by Rainer Tammer <tammer@tammer.net>.
40294
40295 2008-10-12  Bruno Haible  <bruno@clisp.org>
40296
40297         Use msvcrt aware primitives for creation/termination of Win32 threads.
40298         * lib/glthread/thread.c: Include <process.h>.
40299         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40300         (wrapper_func): Update signature.
40301         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40302
40303 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40304             Bruno Haible  <bruno@clisp.org>
40305
40306         Provide a Win32 implementation of the 'cond' module.
40307         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40308         * lib/glthread/cond.c (glthread_cond_init_func,
40309         glthread_cond_wait_func, glthread_cond_timedwait_func,
40310         glthread_cond_signal_func, glthread_cond_broadcast_func,
40311         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40312         * modules/cond (Dependencies): Add gettimeofday.
40313
40314 2008-10-11  Bruno Haible  <bruno@clisp.org>
40315
40316         Make sleep work on older versions of mingw.
40317         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40318         only whether it exists.
40319         * doc/posix-functions/sleep.texi: Mention the problem with older
40320         versions of mingw.
40321
40322 2008-10-11  Bruno Haible  <bruno@clisp.org>
40323
40324         New module 'shutdown'.
40325         * modules/shutdown: New file.
40326         * lib/sys_socket.in.h (shutdown): New declaration.
40327         * lib/winsock.c (shutdown): New function.
40328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40329         GNULIB_SHUTDOWN.
40330         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40331         * doc/posix-functions/shutdown.texi: Document the new module.
40332
40333 2008-10-11  Jim Meyering  <meyering@redhat.com>
40334
40335         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40336
40337 2008-10-11  Bruno Haible  <bruno@clisp.org>
40338
40339         New module 'fclose'.
40340         * modules/fclose: New file.
40341         * lib/stdio.in.h (fclose): New declaration.
40342         * lib/fclose.c: New file.
40343         * m4/fclose.m4: New file.
40344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40345         REPLACE_FCLOSE.
40346         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40347         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40348         REPLACE_FCLOSE.
40349         * modules/close (Depends-on): fclose.
40350         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40351
40352 2008-10-11  Bruno Haible  <bruno@clisp.org>
40353
40354         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40355         set errno and don't call _close.
40356
40357 2008-10-10  Bruno Haible  <bruno@clisp.org>
40358
40359         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40360         ACL, not afterwards. Fixes test failure on Cygwin.
40361
40362 2008-10-09  Ben Pfaff  <blp@gnu.org>
40363
40364         * build-aux/announce-gen: Fix gnulib version related part of usage
40365         message.  Die with a useful error message if no tarballs are
40366         found.
40367
40368 2008-10-10  Jim Meyering  <meyering@redhat.com>
40369
40370         bootstrap: use git's --depth=N option only if it's supported
40371         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40372         recognize the --depth option.  Reported by Pádraig Brady.
40373
40374 2008-10-09  Bruno Haible  <bruno@clisp.org>
40375
40376         New module 'ioctl'.
40377         * modules/ioctl: New file.
40378         * lib/sys_socket.in.h (ioctl): Remove declaration.
40379         * lib/winsock.c: Include <sys/ioctl.h>.
40380         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40381         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40382         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40383         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40384         * doc/posix-functions/ioctl.texi: Mention the new module.
40385
40386 2008-10-09  Bruno Haible  <bruno@clisp.org>
40387
40388         New module 'sys_ioctl'.
40389         * lib/sys_ioctl.in.h: New file.
40390         * m4/sys_ioctl_h.m4: New file.
40391         * modules/sys_ioctl: New file.
40392         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40393
40394 2008-10-09  Bruno Haible  <bruno@clisp.org>
40395
40396         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40397         * lib/winsock.c: Include <stdarg.h>.
40398         (rpl_ioctl): Change to second argument 'int' and then varargs.
40399
40400 2008-10-09  Bruno Haible  <bruno@clisp.org>
40401
40402         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40403         when the sys_socket module is present and the system has <winsock2.h>.
40404
40405 2008-10-09  Bruno Haible  <bruno@clisp.org>
40406
40407         * doc/posix-functions/close.texi: Mention module 'close' instead of
40408         module 'sys_socket'.
40409
40410 2008-10-09  Bruno Haible  <bruno@clisp.org>
40411
40412         * doc/glibc-headers/sys_ioctl.texi: New file.
40413         * doc/gnulib.texi: Include it.
40414
40415 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40416             Bruno Haible  <bruno@clisp.org>
40417
40418         Combine the two replacements of 'close'.
40419         * lib/sys_socket.in.h (close): Define to a reminder to include
40420         <unistd.h>.
40421         (_gl_close_fd_maybe_socket): New declaration.
40422         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40423         * lib/winsock.c (close): Remove undefinition.
40424         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40425         needed for the gnulib module 'close'.
40426         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40427         define to an error symbol or to a warning, if suitable.
40428         * lib/close.c: Include <sys/socket.h>.
40429         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40430         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40431         UNISTD_H_HAVE_WINSOCK2_H.
40432         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40434         UNISTD_H_HAVE_WINSOCK2_H.
40435         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40436         (configure.ac): Set a module indicator.
40437         (Makefile.am): Substitute GNULIB_CLOSE.
40438         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40439         * modules/poll-tests (Depends-on): Add close.
40440         * modules/select-tests (Depends-on): Likewise.
40441
40442 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40443             Bruno Haible  <bruno@clisp.org>
40444
40445         New module 'close'.
40446         * modules/close: New file.
40447         * lib/unistd.in.h (close): Move declaration out of the
40448         FCHDIR_REPLACEMENT scope.
40449         (_gl_unregister_fd): New declaration.
40450         * lib/close.c: New file.
40451         * lib/fchdir.c (rpl_close): Remove function.
40452         * m4/close.m4: New file.
40453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40454         close.
40455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40456         REPLACE_CLOSE.
40457         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40458         REPLACE_CLOSE.
40459         * modules/fchdir (Depends-on): Add close.
40460
40461 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40462             Bruno Haible  <bruno@clisp.org>
40463
40464         * lib/fcntl.in.h (open): Simplify conditionals.
40465         (_gl_register_fd): New declaration.
40466         * lib/fchdir.c (rpl_open): Remove function.
40467         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40468         also.
40469         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40471         open.
40472
40473 2008-10-09  Jim Meyering  <meyering@redhat.com>
40474
40475         GNUmakefile: use the more name-space-friendly "_version"
40476         * top/GNUmakefile (_dummy): Update.
40477         (_version): Rename from "version".
40478
40479 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40480             Bruno Haible  <bruno@clisp.org>
40481
40482         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40483         rpl_close.
40484         (_gl_register_fd): New function, extracted from rpl_open.
40485         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40486         (rpl_open, rpl_opendir): Use _gl_register_fd.
40487
40488 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40489
40490         Fix organization of 'open' replacement.
40491         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40492         (gl_FUNC_OPEN): Use it.
40493         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40494
40495 2008-10-08  Bruno Haible  <bruno@clisp.org>
40496
40497         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40498
40499 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40500
40501         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40502         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40503         listen).
40504
40505 2008-10-08  Eric Blake  <ebb9@byu.net>
40506
40507         GNUmakefile: add 'make version' target
40508         * top/GNUmakefile (_curr-ver): Split version update rules...
40509         (version): ...into a target.
40510
40511 2008-10-07  Bruno Haible  <bruno@clisp.org>
40512
40513         Use a more portable replacement expression for -0.0L.
40514         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40515         instead of -0.0L. Fix m4 quotation.
40516
40517         * tests/test-signbit.c: Include <float.h>.
40518         (minus_zero): New variable.
40519         (test_signbitl): Use minus_zero instead of -zero.
40520         * modules/signbit-tests (Depends-on): Add float.
40521
40522         * tests/test-ceill.c: Include <float.h>.
40523         (zero): Remove variable.
40524         (minus_zero): New variable.
40525         (main): Use minus_zero instead of -zero.
40526         * modules/ceill-tests (Depends-on): Add float.
40527
40528         * tests/test-floorl.c: Include <float.h>.
40529         (zero): Remove variable.
40530         (minus_zero): New variable.
40531         (main): Use minus_zero instead of -zero.
40532         * modules/floorl-tests (Depends-on): Add float.
40533
40534         * tests/test-roundl.c: Include <float.h>.
40535         (zero): Remove variable.
40536         (minus_zero): New variable.
40537         (main): Use minus_zero instead of -zero.
40538         * modules/roundl-tests (Depends-on): Add float.
40539
40540         * tests/test-truncl.c: Include <float.h>.
40541         (zero): Remove variable.
40542         (minus_zero): New variable.
40543         (main): Use minus_zero instead of -zero.
40544         * modules/truncl-tests (Depends-on): Add float.
40545
40546         * tests/test-frexpl.c (zero): Remove variable.
40547         (minus_zero): New variable.
40548         (main): Use minus_zero instead of -zero.
40549         * modules/frexpl-tests (Depends-on): Add float.
40550
40551         * tests/test-isnan.c (zerol): Remove variable.
40552         (minus_zerol): New variable.
40553         (test_long_double): Use minus_zerol instead of -zerol.
40554         * modules/isnan-tests (Depends-on): Add float.
40555
40556         * tests/test-isnanl.h (zero): Remove variable.
40557         (minus_zero): New variable.
40558         (main): Use minus_zero instead of -zero.
40559         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40560         * modules/isnanl-tests (Depends-on): Add float.
40561
40562         * tests/test-ldexpl.c (zero): Remove variable.
40563         (minus_zero): New variable.
40564         (main): Use minus_zero instead of -zero.
40565         * modules/ldexpl-tests (Depends-on): Add float.
40566
40567         * tests/test-snprintf-posix.h (zerol): Remove variable.
40568         (minus_zerol): New variable.
40569         (test_function): Use minus_zerol instead of -zerol.
40570         * modules/snprintf-posix-tests (Depends-on): Add float.
40571         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40572
40573         * tests/test-sprintf-posix.h (zerol): Remove variable.
40574         (minus_zerol): New variable.
40575         (test_function): Use minus_zerol instead of -zerol.
40576         * modules/sprintf-posix-tests (Depends-on): Add float.
40577         * modules/vsprintf-posix-tests (Depends-on): Add float.
40578
40579         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40580         (minus_zerol): New variable.
40581         (test_function): Use minus_zerol instead of -zerol.
40582         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40583
40584         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40585         (minus_zerol): New variable.
40586         (test_function): Use minus_zerol instead of -zerol.
40587         * modules/vasprintf-posix-tests (Depends-on): Add float.
40588
40589 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40590
40591         * MODULES.html.sh (Support for building documentation): Mention
40592         pmccabe2html.  Sort entries.
40593
40594         Add pmccabe2html module, from gnupdf.
40595         * build-aux/pmccabe.css: New file.
40596         * build-aux/pmccabe2html: New file.
40597         * m4/pmccabe2html.m4: New file.
40598         * modules/pmccabe2html: New file.
40599
40600 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40601
40602         flock: new module
40603         * MODULES.html.sh: Add to list of modules.
40604         * lib/flock.c: flock implementation for Windows and Unix systems
40605         which have fcntl.
40606         * doc/glibc-functions/flock.texi: Update documentation.
40607         * lib/sys_file.in.h: <sys/file.h> header file.
40608         * m4/flock.m4: M4 macros.
40609         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40610         * modules/flock: flock module.
40611         * modules/flock-tests: flock tests module.
40612         * modules/sys_file: sys/file.h module.
40613         * tests/test-flock.c: test suite for flock.
40614
40615 2008-10-06  Jim Meyering  <meyering@redhat.com>
40616
40617         bootstrap: check for LT_INIT more portably still ;-)
40618         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40619         Spotted by Bruno Haible.
40620
40621 2008-10-06  Eric Blake  <ebb9@byu.net>
40622
40623         test-signbit: avoid tripping Irix cc bug on -0.0L
40624         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40625         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40626         entire testsuite consistent and avoids an Irix 6.2 bug.
40627
40628 2008-10-05  Bruno Haible  <bruno@clisp.org>
40629             Jim Meyering  <jim@meyering.net>
40630
40631         Add an option for ignoring EPIPE during close_stdout.
40632         * lib/closeout.h: Include <stdbool.h>.
40633         (close_stdout_set_ignore_EPIPE): New declaration.
40634         * lib/closeout.c: Include <stdbool.h>.
40635         (ignore_EPIPE): New variable.
40636         (close_stdout_set_ignore_EPIPE): New function.
40637         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40638         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40639         failure.
40640         * modules/closeout (Depends-on): Add stdbool.
40641
40642 2008-10-05  Bruno Haible  <bruno@clisp.org>
40643
40644         * modules/accept: New file.
40645         * modules/bind: New file.
40646         * modules/connect: New file.
40647         * modules/getpeername: New file.
40648         * modules/getsockname: New file.
40649         * modules/getsockopt: New file.
40650         * modules/listen: New file.
40651         * modules/recv: New file.
40652         * modules/recvfrom: New file.
40653         * modules/send: New file.
40654         * modules/sendto: New file.
40655         * modules/setsockopt: New file.
40656         * modules/socket: New file.
40657         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40658         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40659         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40660         the particular module is requested. Add a link warning when the
40661         particular module is not requested.
40662         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40663         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40664         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40665         the particular module is requested.
40666         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40667         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40668         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40669         * modules/sys_socket (Depends-on): Add link-warning.
40670         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40671         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40672         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40673         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40674         GL_LINK_WARNING.
40675         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40676         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40677         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40678         * doc/posix-functions/getpeername.texi: Mention the new module
40679         'getpeername'.
40680         * doc/posix-functions/getsockname.texi: Mention the new module
40681         'getsockname'.
40682         * doc/posix-functions/getsockopt.texi: Mention the new module
40683         'getsockopt'.
40684         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40685         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40686         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40687         * doc/posix-functions/send.texi: Mention the new module 'send'.
40688         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40689         * doc/posix-functions/setsockopt.texi: Mention the new module
40690         'setsockopt'.
40691         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40692         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40693         listen, connect, accept.
40694         * modules/select-tests (Depends-on): Likewise.
40695
40696 2008-10-05  Bruno Haible  <bruno@clisp.org>
40697
40698         * lib/winsock.c (strerror): Remove unused #undef.
40699         (rpl_close): Remove unused local variable.
40700
40701         * modules/sys_socket (Depends-on); Add errno.
40702
40703 2008-10-05  Bruno Haible  <bruno@clisp.org>
40704
40705         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40706         (select): Add a link warning when the 'select' module is not used.
40707         * modules/sys_select (Depends-on): Add link-warning.
40708         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40709         Suggested by Paolo Bonzini.
40710
40711 2008-10-05  Jim Meyering  <meyering@redhat.com>
40712
40713         bootstrap: check for LT_INIT more portably
40714         * build-aux/bootstrap: Avoid using grep -E, since it's not
40715         portable enough.  Suggestion from Bruno Haible.
40716
40717 2008-10-05  Bruno Haible  <bruno@clisp.org>
40718
40719         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40720         as being fixed by gnulib.
40721
40722 2008-10-05  Bruno Haible  <bruno@clisp.org>
40723
40724         * modules/select-tests: New file, mostly copied from
40725         modules/sys_select-tests.
40726         * tests/test-select.c: New file, mostly copied from
40727         tests/test-sys_select.c.
40728         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40729         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40730         (Makefile.am): Remove test_sys_select_LDADD.
40731
40732         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40733         to an undefined symbol, for an error message.
40734         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40735         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40736         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40737         winsock-select.c here.
40738         * modules/sys_select (Files): Remove lib/winsock-select.c.
40739         (Depends-on): Remove alloca.
40740         (Makefile.am): Substitute GNULIB_SELECT.
40741         * modules/select: New file.
40742         * doc/posix-functions/select.texi: Update.
40743
40744 2008-10-05  Bruno Haible  <bruno@clisp.org>
40745
40746         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40747         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40748         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40749         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40750         getdtablesize.
40751         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40752         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40753
40754 2008-10-05  Bruno Haible  <bruno@clisp.org>
40755
40756         * modules/getdtablesize-tests: New file.
40757         * tests/test-getdtablesize.c: New file.
40758
40759         New module 'getdtablesize'.
40760         * lib/unistd.in.h (getdtablesize): New declaration.
40761         * lib/getdtablesize.c: New file.
40762         * m4/getdtablesize.m4: New file.
40763         * modules/getdtablesize: New file.
40764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40765         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40766         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40767         HAVE_GETDTABLESIZE.
40768         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40769
40770 2008-10-05  Bruno Haible  <bruno@clisp.org>
40771
40772         * modules/sched (Makefile.am): Fix typo.
40773         Reported by Simon Josefsson.
40774
40775 2008-10-05  Jim Meyering  <meyering@redhat.com>
40776
40777         bootstrap: check for LT_INIT, too
40778         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40779         are deprecated.  Suggestion from Ralf Wildenhues.
40780
40781 2008-10-05  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40784         overriding them by ours.
40785         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40786
40787 2008-10-05  Jim Meyering  <meyering@redhat.com>
40788
40789         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40790         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40791         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40792
40793 2008-10-04  Bruno Haible  <bruno@clisp.org>
40794
40795         * modules/dup2 (License): Change to LGPLv2+.
40796         * modules/sleep (License): Likewise.
40797         * modules/perror (License): Likewise.
40798         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40799         Blake.
40800         * modules/signal (License): Likewise.
40801         * modules/sigprocmask (License): Likewise.
40802         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40803         Meyering.
40804
40805 2008-10-04  Bruno Haible  <bruno@clisp.org>
40806
40807         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40808         Reported by Rainer Tammer <tammer@tammer.net>.
40809
40810 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40811             Bruno Haible  <bruno@clisp.org>
40812
40813         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40814         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40815         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40816
40817 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40818
40819         filevercmp: new module
40820         * lib/filevercmp.h: New function filevercmp comparing version strings.
40821         * lib/filevercmp.c: Implementation of filevercmp function.
40822         * modules/filevercmp: Module metadata.
40823         * tests/test-filevercmp.c: Unit test for new module.
40824         * modules/filevercmp-tests: Unit test metadata.
40825         * MODULES.html.sh: Add filevercmp module.
40826
40827 2008-10-03  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/c-ctype.h: Add comment.
40830         Reported by Jim Meyering.
40831
40832 2008-10-02  Bruno Haible  <bruno@clisp.org>
40833
40834         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40835
40836 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40837
40838         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40839         name of bootstrap.conf accordingly.
40840
40841 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40842
40843         * build-aux/bootstrap: Install git-merge-changelog configuration
40844         items into .gitconfig if needed.
40845
40846 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40847
40848         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40849         git repository, and initialize/update it accordingly.
40850
40851 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40852
40853         * modules/fsync-tests: New file.
40854         * tests/test-fsync.c: New file.
40855
40856         New module 'fsync'.
40857         * lib/fsync.c: New file.
40858         * m4/fsync.m4: New file.
40859         * modules/fsync: New file.
40860         * lib/unistd.in.h (fsync): New declaration.
40861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40862         GNULIB_FSYNC and HAVE_FSYNC.
40863         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40864         * MODULES.html.sh (posix_functions): Add fsync.
40865         * doc/posix-functions/fsync.texi: Mention the new module.
40866
40867 2008-10-02  Jim Meyering  <meyering@redhat.com>
40868
40869         fts.c: sync with similar code from coreutils' remove.c
40870         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40871         Guard also with "#if defined __linux__", since for now at least,
40872         this code is Linux-kernel-specific.
40873
40874 2008-10-02  Jim Meyering  <meyering@redhat.com>
40875
40876         fts: bug fixes
40877         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40878         Include <sys/vfs.h>, not <sys/statfs.h>.
40879
40880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40881         Include <sys/vfs.h>, not <sys/statfs.h>.
40882
40883 2008-10-01  Bruno Haible  <bruno@clisp.org>
40884
40885         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40886         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40887         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40888         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40889         * doc/posix-functions/posix_spawnp.texi: Likewise.
40890         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40891         whether posix_spawn actually works.
40892         * m4/pipe.m4 (gl_PIPE): Likewise.
40893         * modules/execute (Files): Add m4/posix_spawn.m4.
40894         * modules/pipe (Files): Add m4/posix_spawn.m4.
40895         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40896
40897 2008-10-01  Jim Meyering  <meyering@redhat.com>
40898
40899         remove trailing spaces
40900         * NEWS: Likewise.
40901         * lib/poll.c (poll): Likewise.
40902         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40903         * lib/winsock.c (rpl_close): Likewise.
40904         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40905         * modules/yield: Likewise.
40906         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40907         * tests/test-sys_select.c (connect_to_socket): Likewise.
40908
40909         fts.c: adjust a new interface to be more generally useful
40910         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40911         (fts_build): Adjust caller.
40912
40913 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40914
40915         * modules/cond-tests: New file.
40916         * tests/test-cond.c: New file.
40917
40918 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40919             Bruno Haible  <bruno@clisp.org>
40920
40921         * modules/cond (Dependencies): Add errno, time.
40922         * lib/glthread/cond.h: Include <time.h>.
40923         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40924         across platforms.
40925
40926 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40927             Bruno Haible  <bruno@clisp.org>
40928
40929         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40930
40931 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40932             Bruno Haible  <bruno@clisp.org>
40933
40934         * modules/tls-tests (Depends-on): Add thread, yield.
40935         (configure.ac): Remove all checks.
40936         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40937         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40938         gl_thread_self): Remove definitions. Include glthread/thread.h and
40939         glthread/yield.h instead.
40940         (test_tls): Pass an additional NULL argument to gl_thread_join.
40941
40942 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40943             Bruno Haible  <bruno@clisp.org>
40944
40945         * modules/lock-tests (Depends-on): Add thread, yield.
40946         (configure.ac): Remove all checks.
40947         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40948         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40949         gl_thread_self): Remove definitions. Include glthread/thread.h and
40950         glthread/yield.h instead.
40951         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40952         additional NULL argument to gl_thread_join.
40953
40954 2008-09-30  Bruno Haible  <bruno@clisp.org>
40955
40956         Fix the Win32 implementation of the 'thread' module.
40957         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40958         pointer type.
40959         (gl_thread_self): Invoke gl_thread_self_func.
40960         (gl_thread_self_func): New declaration.
40961         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40962         (do_init_self_key, init_self_key): New functions.
40963         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40964         Remove some fields.
40965         (running_threads, running_lock): Remove variables.
40966         (get_current_thread_handle): New function.
40967         (gl_thread_self_func, wrapper_func, glthread_create_func,
40968         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40969         simplified.
40970
40971 2008-09-30  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40974         files.
40975
40976 2008-09-30  Jim Meyering  <meyering@redhat.com>
40977
40978         fts.m4: correct the test for statfs.f_type
40979         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40980         when checking for statfs.f_type.
40981
40982 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40983
40984         tests: avoid some compiler warnings
40985         * tests/test-memchr.c (main): Pass NULL indirectly.
40986         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40987
40988 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
40989
40990         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40991         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40992         exactly specified dayshifts.
40993         (dayshift): New rule.
40994         (rel): Add dayshift.
40995         (relative_time_table) [tomorrow, yesterday, today, now]:
40996         Use tDAY_SHIFT in place of tDAY_UNIT.
40997         * tests/test-getdate.c: Add tests for now-disallowed countable
40998         dayshifts, e.g., "4 yesterday ago".
40999
41000 2008-09-29  Bruno Haible  <bruno@clisp.org>
41001
41002         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41003         * tests/test-posix_spawn1.in.sh: Renamed from
41004         tests/test-posix_spawn.in.sh.
41005         * tests/test-posix_spawn2.c: New file.
41006         * tests/test-posix_spawn2.in.sh: New file.
41007         * modules/posix_spawnp-tests (Files): Update.
41008         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41009
41010 2008-09-29  Bruno Haible  <bruno@clisp.org>
41011
41012         Propagate effects of putenv/setenv/unsetenv to child processes.
41013         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41014         * lib/pipe.c (create_pipe): Likewise.
41015
41016 2008-09-29  Bruno Haible  <bruno@clisp.org>
41017
41018         Enable use of shell scripts as executables in mingw.
41019         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41020         run the program as a shell script.
41021         * lib/pipe.c (create_pipe): Likewise.
41022         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41023         resulting array.
41024
41025 2008-09-29  Eric Blake  <ebb9@byu.net>
41026
41027         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41028
41029 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41030
41031         * doc/posix-functions/accept.texi: Update mingw problems.
41032         * doc/posix-functions/bind.texi: Update mingw problems.
41033         * doc/posix-functions/close.texi: Update mingw problems.
41034         * doc/posix-functions/connect.texi: Update mingw problems.
41035         * doc/posix-functions/getpeername.texi: Update mingw problems.
41036         * doc/posix-functions/getsockname.texi: Update mingw problems.
41037         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41038         * doc/posix-functions/ioctl.texi: Update mingw problems.
41039         * doc/posix-functions/listen.texi: Update mingw problems.
41040         * doc/posix-functions/recv.texi: Update mingw problems.
41041         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41042         * doc/posix-functions/select.texi: Update mingw problems.
41043         * doc/posix-functions/send.texi: Update mingw problems.
41044         * doc/posix-functions/sendto.texi: Update mingw problems.
41045         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41046         * doc/posix-functions/socket.texi: Update mingw problems.
41047
41048 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41049             Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/sys_select.in.h: Include sys/time.h.
41052         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41053         * modules/sys_select: Depend on sys_time.
41054         * tests/test-sys_select.c: Test that sys/select.h defines struct
41055         timeval fully.
41056
41057 2008-09-29  Bruno Haible  <bruno@clisp.org>
41058
41059         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41060         * lib/sys_select.in.h: Likewise.
41061
41062 2008-09-29  Bruno Haible  <bruno@clisp.org>
41063
41064         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41065
41066 2008-09-29  Bruno Haible  <bruno@clisp.org>
41067
41068         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41069         Set LIBSOCKET instead of augmenting LIBS.
41070         * modules/sockets (Link): New section.
41071         * modules/sockets-tests (test_sockets_LDADD): New variable.
41072         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41073         * modules/poll-tests (test_poll_LDADD): New variable.
41074         * NEWS: Document the change.
41075
41076 2008-09-29  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41079         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41080         ARPA_INET_H directly.
41081         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41082
41083 2008-09-28  Bruno Haible  <bruno@clisp.org>
41084
41085         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41086         from gl_HEADER_SYS_SOCKET.
41087         (gl_HEADER_SYS_SOCKET): Invoke it.
41088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41089
41090 2008-09-28  Bruno Haible  <bruno@clisp.org>
41091
41092         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41093         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41094         Needed on OSF/1 4.0.
41095
41096 2008-09-28  Bruno Haible  <bruno@clisp.org>
41097
41098         Override open more carefully.
41099         * lib/open.c (orig_open): New function.
41100         (rpl_open): Use orig_open instead of open.
41101         * lib/fcntl.in.h: Add special invocation convention.
41102         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41103         (gl_FUNC_OPEN): Invoke it.
41104
41105         Override freopen more carefully.
41106         * lib/freopen.c (orig_freopen): New function.
41107         (rpl_freopen): Use orig_freopen instead of freopen.
41108         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41109         (gl_FUNC_FREOPEN): Invoke it.
41110
41111         Override fopen more carefully.
41112         * lib/fopen.c (orig_fopen): New function.
41113         (rpl_fopen): Use orig_fopen instead of fopen.
41114         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41115         (gl_FUNC_FOPEN): Invoke it.
41116         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41117
41118 2008-09-28  Bruno Haible  <bruno@clisp.org>
41119
41120         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41121         SIGPIPE.
41122
41123 2008-09-28  Bruno Haible  <bruno@clisp.org>
41124
41125         * tests/test-sigaction.c (handler, main): Disable the check whether
41126         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41127         glibc systems with LinuxThreads.
41128
41129 2008-09-28  Bruno Haible  <bruno@clisp.org>
41130
41131         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41132
41133         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41134         with AIX xlc.
41135         * lib/fcntl.in.h (open): Likewise.
41136         Reported by Rainer Tammer <tammer@tammer.net>.
41137
41138 2008-09-28  Bruno Haible  <bruno@clisp.org>
41139
41140         * modules/posix_spawnp-tests: New file.
41141         * tests/test-posix_spawn.c: New file.
41142         * tests/test-posix_spawn.in.sh: New file.
41143
41144         New module 'posix_spawnp'.
41145         * modules/posix_spawnp: New file.
41146         * lib/spawnp.c: New file, from GNU libc with modifications.
41147         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41148
41149         New module 'posix_spawn'.
41150         * modules/posix_spawn: New file.
41151         * lib/spawn.c: New file, from GNU libc with modifications.
41152         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41153
41154         New module 'posix_spawnattr_destroy'.
41155         * modules/posix_spawnattr_destroy: New file.
41156         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41157         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41158         module.
41159
41160         New module 'posix_spawnattr_setsigmask'.
41161         * modules/posix_spawnattr_setsigmask: New file.
41162         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41163         modifications.
41164         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41165         new module.
41166
41167         New module 'posix_spawnattr_getsigmask'.
41168         * modules/posix_spawnattr_getsigmask: New file.
41169         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41170         modifications.
41171         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41172         new module.
41173
41174         New module 'posix_spawnattr_setsigdefault'.
41175         * modules/posix_spawnattr_setsigdefault: New file.
41176         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41177         modifications.
41178         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41179         new module.
41180
41181         New module 'posix_spawnattr_getsigdefault'.
41182         * modules/posix_spawnattr_getsigdefault: New file.
41183         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41184         modifications.
41185         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41186         new module.
41187
41188         New module 'posix_spawnattr_setschedpolicy'.
41189         * modules/posix_spawnattr_setschedpolicy: New file.
41190         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41191         modifications.
41192         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41193         new module.
41194
41195         New module 'posix_spawnattr_getschedpolicy'.
41196         * modules/posix_spawnattr_getschedpolicy: New file.
41197         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41198         modifications.
41199         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41200         new module.
41201
41202         New module 'posix_spawnattr_setschedparam'.
41203         * modules/posix_spawnattr_setschedparam: New file.
41204         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41205         modifications.
41206         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41207         new module.
41208
41209         New module 'posix_spawnattr_getschedparam'.
41210         * modules/posix_spawnattr_getschedparam: New file.
41211         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41212         modifications.
41213         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41214         new module.
41215
41216         New module 'posix_spawnattr_setpgroup'.
41217         * modules/posix_spawnattr_setpgroup: New file.
41218         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41219         modifications.
41220         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41221         module.
41222
41223         New module 'posix_spawnattr_getpgroup'.
41224         * modules/posix_spawnattr_getpgroup: New file.
41225         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41226         modifications.
41227         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41228         module.
41229
41230         New module 'posix_spawnattr_setflags'.
41231         * modules/posix_spawnattr_setflags: New file.
41232         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41233         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41234         module.
41235
41236         New module 'posix_spawnattr_getflags'.
41237         * modules/posix_spawnattr_getflags: New file.
41238         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41239         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41240         module.
41241
41242         New module 'posix_spawnattr_init'.
41243         * modules/posix_spawnattr_init: New file.
41244         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41245         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41246         module.
41247
41248         New module 'posix_spawn_file_actions_destroy'.
41249         * modules/posix_spawn_file_actions_destroy: New file.
41250         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41251         modifications.
41252         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41253         the new module.
41254
41255         New module 'posix_spawn_file_actions_addopen'.
41256         * modules/posix_spawn_file_actions_addopen: New file.
41257         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41258         modifications.
41259         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41260         the new module.
41261
41262         New module 'posix_spawn_file_actions_adddup2'.
41263         * modules/posix_spawn_file_actions_adddup2: New file.
41264         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41265         modifications.
41266         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41267         the new module.
41268
41269         New module 'posix_spawn_file_actions_addclose'.
41270         * modules/posix_spawn_file_actions_addclose: New file.
41271         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41272         modifications.
41273         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41274         the new module.
41275
41276         New module 'posix_spawn_file_actions_init'.
41277         * modules/posix_spawn_file_actions_init: New file.
41278         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41279         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41280         new module.
41281
41282         New module 'posix_spawn-internal'.
41283         * modules/posix_spawn-internal: New file.
41284         * lib/spawn_int.h: New file, from GNU libc with modifications.
41285         * lib/spawni.c: New file, from GNU libc with modifications.
41286         * m4/posix_spawn.m4: New file.
41287
41288         New module 'spawn'.
41289         * modules/spawn: New file.
41290         * lib/spawn.in.h: New file, from GNU libc with modifications.
41291         * m4/spawn_h.m4: New file.
41292         * doc/posix-headers/spawn.texi: Mention the new module.
41293
41294 2008-09-28  Bruno Haible  <bruno@clisp.org>
41295
41296         * modules/sched-tests: New file.
41297         * tests/test-sched.c: New file.
41298
41299         New module 'sched'.
41300         * modules/sched: New file.
41301         * lib/sched.in.h: New file.
41302         * m4/sched_h.m4: New file.
41303         * doc/posix-headers/sched.texi: Mention the new module.
41304
41305 2008-09-27  Eric Blake  <ebb9@byu.net>
41306
41307         Fix previous patch, and tweak references to $0.
41308         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41309         (func_version, func_gnulib_dir): Don't call this program
41310         gnulib-tool.
41311         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41312         with using $0 in function.
41313         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41314         (func_fatal_error): Reuse the name the user invoked us with.
41315
41316 2008-09-27  Bruno Haible  <bruno@clisp.org>
41317
41318         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41319         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41320         (gl_ICONV_H): Not here.
41321         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41322         instead of assigning ICONV_H directly.
41323
41324         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41326         WCHAR_H directly.
41327
41328 2008-09-27  Bruno Haible  <bruno@clisp.org>
41329
41330         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41331         * modules/arpa_inet (Depends-on): Add link-warning.
41332         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41333         * modules/unistd (Makefile.am): Likewise.
41334
41335 2008-09-26  Bruno Haible  <bruno@clisp.org>
41336
41337         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41338         variables.
41339         (func_version): Essentially copied from gnulib-tool.
41340         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41341         func_readlink): Copied from gnulib-tool.
41342
41343 2008-09-26  Bruno Haible  <bruno@clisp.org>
41344
41345         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41346         invoking git-version-gen.
41347
41348 2008-09-26  Bruno Haible  <bruno@clisp.org>
41349
41350         * posix-modules: Update to directory names changed on 2008-01-19.
41351         Remove commas in output before splitting into words. No more need to
41352         avoid 'ftruncate' since 2007-02-19.
41353
41354 2008-09-26  Bruno Haible  <bruno@clisp.org>
41355
41356         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41357
41358 2008-09-26  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41361         * modules/fwriteerror (Depends-on): Add errno.
41362
41363 2008-09-26  Bruno Haible  <bruno@clisp.org>
41364
41365         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41366         * tests/test-vc-list-files-cvs.sh: Likewise.
41367
41368 2008-09-26  Bruno Haible  <bruno@clisp.org>
41369
41370         * doc/posix-headers/sys_resource.texi: Reorder items.
41371
41372 2008-09-26  Jim Meyering  <meyering@redhat.com>
41373
41374         fts: tweak inode comparison function
41375         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41376         inode numbers, as documented.
41377
41378         fts: sort dirent entries on inode number before traversing
41379         This avoids a quadratic, seek-related performance penalty when
41380         operating on a directory containing many entries (measurable at 10k;
41381         3.5 hours at 2 million entries with a cold cache) on certain types
41382         of file systems, including ext3 and ext4, but not tmpfs.
41383         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41384         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41385         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41386         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41387         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41388         (fts_build): Set the stat.st_ino member from D_INO.
41389         If it is likely to be useful, sort dirent entries on inode number.
41390
41391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41392         and the struct statfs.f_type member.
41393         * modules/fts (Depends-on): Add d-ino.
41394
41395 2008-09-26  Bruno Haible  <bruno@clisp.org>
41396
41397         * modules/sigpipe-die (Depends-on): Add sigpipe.
41398
41399         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41400         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41401         and GNULIB_STDIO_H_SIGPIPE are set.
41402         * lib/stdio-write.c: New file.
41403         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41404         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41405         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41406         REPLACE_STDIO_WRITE_FUNCS.
41407         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41408         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41409         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41410         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41411         * modules/stdio (Files): Add lib/stdio-write.c.
41412         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41413         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41414         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41415         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41416         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41417         REPLACE_FPRINTF_POSIX.
41418         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41419         REPLACE_PRINTF_POSIX.
41420         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41421         REPLACE_VFPRINTF_POSIX.
41422         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41423         REPLACE_VPRINTF_POSIX.
41424         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41425         SIGPIPE issue.
41426         * doc/posix-functions/fputc.texi: Likewise.
41427         * doc/posix-functions/fputs.texi: Likewise.
41428         * doc/posix-functions/fwrite.texi: Likewise.
41429         * doc/posix-functions/printf.texi: Likewise.
41430         * doc/posix-functions/putc.texi: Likewise.
41431         * doc/posix-functions/putchar.texi: Likewise.
41432         * doc/posix-functions/puts.texi: Likewise.
41433         * doc/posix-functions/vfprintf.texi: Likewise.
41434         * doc/posix-functions/vprintf.texi: Likewise.
41435
41436         * modules/safe-write (Depends-on): Add write.
41437
41438         * modules/sigpipe-tests: New file.
41439         * tests/test-sigpipe.c: New file.
41440         * tests/test-sigpipe.sh: New file.
41441
41442         * modules/write: New file.
41443         * lib/unistd.in.h: Include <sys/types.h>.
41444         (write): New declaration.
41445         * lib/write.c: New file.
41446         * m4/write.m4: New file.
41447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41448         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41449         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41450         GNULIB_WRITE, REPLACE_WRITE.
41451         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41452         and the SIGPIPE issue.
41453
41454         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41455         (raise): New declaration.
41456         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41457         (ext_signal): New function.
41458         (rpl_raise): New function.
41459         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41460         GNULIB_SIGNAL_H_SIGPIPE.
41461         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41462         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41463
41464         * modules/sigpipe: New file.
41465         * m4/sigpipe.m4: New file.
41466
41467 2008-09-25  Derek Price  <derek@ximbiot.com>
41468             Bruno Haible  <bruno@clisp.org>
41469
41470         * gnulib-tool (func_import): Report all license incompatibilities, not
41471         just the first one.
41472
41473 2008-09-25  Bruno Haible  <bruno@clisp.org>
41474
41475         * gnulib-tool (func_import): When computing the edits, consider not
41476         only the Makefile.ams that exist but also those that will be generated.
41477
41478 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41479
41480         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41481         fixes gnulib-tool --test warning about duplicate dependency.
41482
41483 2008-09-25  Bruno Haible  <bruno@clisp.org>
41484
41485         * gnulib-tool: Don't ask the user to perform edits in the generated
41486         Makefile.ams.
41487         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41488         apply to the Makefile.am being generated.
41489         (func_emit_tests_Makefile_am): Execute edits that apply to the
41490         Makefile.am being generated.
41491         (func_import): Setup list of Makefile.am edits before emitting the
41492         Makefile.ams, not at the end.
41493         (func_create_testdir): Update.
41494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41495
41496 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41497
41498         * gnulib-tool (func_import): Store the --tests-base option in the
41499         comment in gnulib-cache.m4.
41500
41501 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41502
41503         * NEWS: Document increased portability that sys_select now provides.
41504
41505         * lib/sys_select.in.h: Install select wrapper.
41506         * lib/sys_socket.in.h: Use more descriptive name when there is no
41507         select wrapper.
41508         * lib/winsock-select.c: New.
41509         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41510         Require gl_HEADER_SYS_SOCKET.
41511         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41512         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41513         * tests/test-sys_select.c: Add functional tests.
41514
41515 2008-09-24  Eric Blake  <ebb9@byu.net>
41516
41517         open, fopen: close fd leak in last patch
41518         * lib/open.c (rpl_open): Close fd before returning error.
41519         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41520         * doc/posix-functions/open.texi (open): Document that Irix also
41521         has the bug.
41522         * doc/posix-functions/fopen.texi (fopen): Likewise.
41523         Reported by Paolo Bonzini.
41524
41525 2008-09-24  Bruno Haible  <bruno@clisp.org>
41526
41527         Ensure that a filename ending in a slash cannot be used to access a
41528         non-directory.
41529         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41530         to check whether it's really a directory.
41531         * lib/fopen.c: Include fcntl.h, unistd.h.
41532         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41533         and fdopen().
41534         * modules/fopen (Depends-on): Add unistd.
41535         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41536         * tests/test-fopen.c (main): Likewise.
41537         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41538         * doc/posix-functions/fopen.texi: Likewise.
41539         Reported by Eric Blake.
41540
41541 2008-09-23  Eric Blake  <ebb9@byu.net>
41542
41543         c-stack: avoid compiler optimizations when provoking overflow
41544         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41545         recursion harder to optimize, to ensure a stack overflow occurs.
41546         * tests/test-c-stack.c (recurse): Likewise.
41547         Borrowed from libsigsegv.
41548
41549         c-stack: work around Irix sigaltstack bug
41550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41551         whether sigaltstack uses wrong end of stack_t (copied in part from
41552         libsigsegv).
41553         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41554         Irix bug, without requiring an over-allocation.
41555         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41556         bug.
41557
41558         fopen: document mingw bug on directories
41559         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41560         not allowing a stream visiting a directory, even though reading
41561         from such a stream is not portable.
41562
41563 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41564
41565         * lib/poll.c: Rewrite.
41566         * modules/poll: Depend on alloca.
41567
41568 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41569
41570         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41571         instead define prototypes for a full set of wrappers.  Ensure
41572         that Cygwin does not use the compatibility code, which is only
41573         for MinGW.
41574         * lib/winsock.c: New.
41575         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41576         * modules/sys_socket: Add lib/winsock.c.
41577
41578         * modules/poll-tests: Add errno and perror.
41579         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41580
41581 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41582
41583         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41584
41585 2008-09-23  Bruno Haible  <bruno@clisp.org>
41586
41587         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41588         * doc/glibc-functions/*: Likewise.
41589
41590 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41591
41592         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41593         success.
41594
41595 2008-09-22  Eric Blake  <ebb9@byu.net>
41596             Bruno Haible  <bruno@clisp.org>
41597
41598         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41599         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41600         supply %A but mishandle pseudo-NaN.
41601         Reported by Simon Josefsson.
41602
41603 2008-09-21  Bruno Haible  <bruno@clisp.org>
41604
41605         * tests/test-lock.c (main): Tweak skip message.
41606         * tests/test-tls.c (main): Likewise.
41607
41608 2008-09-21  Bruno Haible  <bruno@clisp.org>
41609
41610         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41611         whether 'struct sigaction' has sa_sigaction here...
41612         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41613         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41614
41615 2008-09-21  Bruno Haible  <bruno@clisp.org>
41616
41617         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41618         section.
41619         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41620         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41621         the new section.
41622         (Support for obsolete systems lacking POSIX:2001): New section.
41623         (String handling <string.h>): Move strdup to the new section.
41624         Suggested by Simon Josefsson and Paolo Bonzini.
41625
41626 2008-09-21  Bruno Haible  <bruno@clisp.org>
41627
41628         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41629         exponents in %e and %g results on 'long double'. Needed for mingw's
41630         improved *printf functions.
41631         * tests/test-vasprintf-posix.c (test_function): Likewise.
41632         * tests/test-snprintf-posix.h (test_function): Likewise.
41633         * tests/test-sprintf-posix.h (test_function): Likewise.
41634         Reported by Eric Blake.
41635
41636 2008-09-21  Bruno Haible  <bruno@clisp.org>
41637
41638         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41639         * tests/test-sprintf-posix.h (test_function): Likewise.
41640
41641 2008-09-21  Bruno Haible  <bruno@clisp.org>
41642
41643         * modules/getpass (Depends-on): Add strdup-posix.
41644
41645         New module 'strdup-posix'.
41646         * modules/strdup-posix: New file.
41647         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41648         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41650         REPLACE_STRDUP.
41651         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41652         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41654         strdup-posix.
41655
41656         * modules/strdup (Depends-on): Remove malloc-posix.
41657
41658 2008-09-20  Bruno Haible  <bruno@clisp.org>
41659
41660         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41661         Wildenhues.
41662
41663 2008-09-20  Bruno Haible  <bruno@clisp.org>
41664
41665         Ensure that wint_t gets defined on IRIX 5.3.
41666         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41667         * lib/wctype.in.h (wint_t): Likewise.
41668         (__wctype_wint_t): Remove type.
41669         (isw*): Use wint_t instead of __wctype_wint_t.
41670         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41671         * modules/wchar (Files): Add m4/wint_t.m4.
41672         (Makefile.am): Substitute HAVE_WINT_T.
41673         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41674         * tests/test-wctype.c: Check that wint_t is defined.
41675         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41676         * doc/posix-headers/wctype.texi: Likewise.
41677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41678
41679 2008-09-18  Bruno Haible  <bruno@clisp.org>
41680
41681         * gnulib-tool (func_exit): Update comment.
41682
41683 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41684
41685         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41686         assumes strdup exists and does not depend on strdup to return
41687         ENOMEM on out of memory conditions.
41688
41689 2008-09-18  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
41692         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41693         digits for the exponent.
41694
41695 2008-09-18  Jim Meyering  <meyering@redhat.com>
41696             Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/vasnprintf.c (decimal_point_char): Define also if
41699         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41700
41701 2008-09-16  Bruno Haible  <bruno@clisp.org>
41702         and Eric Blake  <ebb9@byu.net>
41703
41704         vasnprintf: support Irix 5.3
41705         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41706         that mishandle long double infinity.
41707         Reported by Tom G. Christensen.
41708
41709 2008-09-16  Bruno Haible  <bruno@clisp.org>
41710
41711         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41712         Solaris 9.
41713         * doc/glibc-functions/alphasort.texi: Likewise.
41714         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41715
41716 2008-09-16  Jim Meyering  <meyering@redhat.com>
41717
41718         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41719         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41720         a umask modification leak out of a subshell.  Otherwise, the
41721         opensolaris /bin/sh would be accepted and thus cause unwarranted
41722         failures in the coreutils test suite.
41723
41724 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41725
41726         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41727         to succeed.
41728
41729 2008-09-16  Jim Meyering  <meyering@redhat.com>
41730
41731         avoid spurious test failure when library is built without ACL support
41732         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41733         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41734         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41735         * tests/test-copy-acl.sh: Likewise.
41736
41737 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41738
41739         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41740         based on character occurrence counts.
41741
41742 2008-09-15  Eric Blake  <ebb9@byu.net>
41743
41744         tests: avoid some compiler warnings
41745         * tests/test-memchr.c (main): Pass NULL indirectly.
41746         * tests/test-closein.c (main): Avoid unused variable.
41747
41748 2008-09-15  Bruno Haible  <bruno@clisp.org>
41749
41750         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41751         are missing on OpenBSD 4.0 individually.
41752         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41753
41754 2008-09-15  Bruno Haible  <bruno@clisp.org>
41755
41756         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41757         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41758         * doc/posix-functions/perror.texi: Likewise.
41759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41760         is missing.
41761         Reported by Eric Blake.
41762
41763         * lib/errno.in.h: Use replacement values >= 2000.
41764         Reported by Eric Blake.
41765
41766 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41767
41768         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41769         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41770         limit.
41771         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41772         compareseq was aborted.
41773
41774 2008-09-14  Bruno Haible  <bruno@clisp.org>
41775
41776         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41777         yvec_edit_count.
41778         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41779         (fstrcmp_bounded): Simplify result computation accordingly.
41780
41781 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41782
41783         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41784         (fstrcmp): Define in terms of fstrcmp_bounded.
41785         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41786         lower_bound argument.
41787         Return quickly if the result is certainly < lower_bound.
41788         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41789
41790 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41791
41792         * lib/diffseq.h (EARLY_ABORT): New macro.
41793         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41794         evaluates to true.
41795
41796 2008-09-14  Bruno Haible  <bruno@clisp.org>
41797
41798         * modules/perror-tests: New file.
41799         * tests/test-perror.sh: New file.
41800         * tests/test-perror.c: New file.
41801
41802         New module 'perror'.
41803         * lib/stdio.in.h (perror): New declaration.
41804         * lib/perror.c: New file.
41805         * m4/perror.m4: New file.
41806         * modules/perror: New file.
41807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41808         * doc/posix-functions/perror.texi: Mention the perror module.
41809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41810         REPLACE_PERROR.
41811         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41812         REPLACE_PERROR.
41813
41814 2008-09-14  Bruno Haible  <bruno@clisp.org>
41815
41816         * modules/stdio (Makefile.am): Reorder to match the order in
41817         lib/stdio.in.h.
41818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41819
41820 2008-09-13  Bruno Haible  <bruno@clisp.org>
41821
41822         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41823
41824 2008-09-13  Bruno Haible  <bruno@clisp.org>
41825
41826         Extend strerror to cover the added errno values.
41827         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41828         (rpl_strerror): Provide error messages for the added errno values and
41829         for the WSA* values.
41830         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41831         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41832         strerror.
41833         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41834         * modules/strerror (Depends-on): Add errno.
41835         * doc/posix-functions/strerror.texi: Document the change.
41836         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41837         and EOVERFLOW.
41838
41839 2008-09-13  Bruno Haible  <bruno@clisp.org>
41840
41841         * modules/EOVERFLOW: Remove file.
41842         * m4/eoverflow.m4: Remove file.
41843         * modules/EOVERFLOW-tests: Remove file.
41844         * tests/test-EOVERFLOW.c: Remove file.
41845         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41846         * modules/ftell (Depends-on): Likewise.
41847         * modules/getdelim (Depends-on): Likewise.
41848         * modules/getugroups (Depends-on): Likewise.
41849         * modules/poll (Depends-on): Likewise.
41850         * modules/snprintf (Depends-on): Likewise.
41851         * modules/sprintf-posix (Depends-on): Likewise.
41852         * modules/vasnprintf (Depends-on): Likewise.
41853         * modules/vasprintf (Depends-on): Likewise.
41854         * modules/vfprintf-posix (Depends-on): Likewise.
41855         * modules/vsnprintf (Depends-on): Likewise.
41856         * modules/vsprintf-posix (Depends-on): Likewise.
41857         * modules/xvasprintf (Depends-on): Likewise.
41858         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41859         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41860         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41861         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41862         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41863         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41864         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41865         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41866         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41867         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41868         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41869         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41870         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41871         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41872         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41873         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41874         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41875         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41876         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41877         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41878         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41879         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41880         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41881         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41882         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41883         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41884         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41885         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41886         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41887         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41888         * MODULES.html.sh: Remove EOVERFLOW.
41889         * NEWS: Mention the change.
41890
41891 2008-09-13  Bruno Haible  <bruno@clisp.org>
41892
41893         * modules/errno-tests: New file.
41894         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41895
41896         * lib/errno.in.h: New file.
41897         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41898         * modules/errno: New file.
41899         * doc/posix-headers/errno.texi: Update documentation.
41900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41901
41902 2008-09-13  Bruno Haible  <bruno@clisp.org>
41903
41904         * tests/test-poll.c: Use #if for native Windows, rather than testing
41905         __MSVCRT__.
41906
41907 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41908             Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/glob.c: Don't include <pwd.h> on native Windows.
41911         (WINDOWS32): New macro.
41912         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41913
41914 2008-09-13  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41917         (ETIMEDOUT): Remove macro.
41918         (glthread_cond_timedwait_multithreaded): New declaration.
41919         (glthread_cond_timedwait): Use it.
41920         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41921         (glthread_cond_timedwait_multithreaded): New function.
41922
41923 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41924
41925         * modules/poll-tests: Do not check for io.h.
41926         * tests/test-poll.c: Check for __MSVCRT__ instead.
41927
41928 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41929
41930         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41931         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41932         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41933
41934 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41935
41936         * modules/poll-tests: New.
41937         * tests/test-poll.c: New.
41938
41939 2008-09-12  Eric Blake  <ebb9@byu.net>
41940
41941         frexp: test for NetBSD failure on -0.0
41942         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41943         not all, bugs from NetBSD 3.0 have been fixed.
41944         * doc/posix-functions/frexp.texi (frexp): Document bug.
41945         Reported by Thomas Klausner.
41946
41947         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41949         literal -0.0.
41950         Reported by Jonathan C. Patschke <jp@centtech.com>.
41951
41952 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41953
41954         * lib/glthread/cond.h: Use dummy implementation also if
41955         USE_WIN32_THREADS.
41956
41957 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41958
41959         * modules/fnmatch-posix (License): Change to LGPLv2+.
41960         * modules/fnmatch-gnu (License): Likewise.
41961
41962 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41963
41964         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41965
41966 2008-09-11  Jim Meyering  <meyering@redhat.com>
41967
41968         * users.txt: Add gtk-vnc.
41969
41970 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41971
41972         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41973         rotate amounts.
41974
41975         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41976         required for 16-bit and 8-bit rotates.
41977         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41978         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41979         UINT8_MAX instead of hard-coded constants.
41980         Suggested by Paul Eggert.
41981
41982 2008-09-07  Bruno Haible  <bruno@clisp.org>
41983
41984         * tests/test-striconveh.c (main): Check behaviour when converting from
41985         UTF-7.
41986
41987         Make striconveh work better with stateful encodings.
41988         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41989         that iconv does not increment the inptr when returning -1/EINVAL.
41990
41991 2008-09-07  Bruno Haible  <bruno@clisp.org>
41992
41993         * build-aux/config.rpath: Update according to libtool-2.2.6.
41994         * build-aux/config.libpath: Likewise.
41995
41996 2008-09-06  Bruno Haible  <bruno@clisp.org>
41997
41998         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41999         * lib/freadptr.c (freadptr): Likewise.
42000         * lib/freadseek.c (freadptrinc): Likewise.
42001         Reported by Simon Josefsson.
42002
42003 2008-09-06  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/freadptr (License): Change to LGPLv2+.
42006         * modules/freadseek (License): Likewise.
42007         Suggested by Eric Blake.
42008
42009         * modules/memchr2 (License): Change to LGPLv2+.
42010         Approved by Eric Blake.
42011
42012 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42013             Bruno Haible  <bruno@clisp.org>
42014
42015         Make gnulib-tool work with native 'sed' on AIX.
42016         * gnulib-tool (sed_noop): New variable.
42017         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42018         func_add_or_update, func_create_testdir): Use it to initialize sed
42019         script variables.
42020         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42021
42022 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42023             Bruno Haible  <bruno@clisp.org>
42024
42025         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42026         also works after #include directives.
42027
42028 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
42029
42030         getdate.y: reject an out-of-range timezone value
42031         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42032         the range [-24...+24].  When specified with only one or two digits,
42033         * tests/test-getdate.c: Tests for the fix.
42034         * doc/getdate.texi: Document this change.
42035
42036 2008-09-03  Bruno Haible  <bruno@clisp.org>
42037
42038         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42039
42040 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42041
42042         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42043         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42044         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42045         Blake <ebb9@byu.net>.
42046
42047         * tests/test-bitrotate.c: Add more test vectors.
42048
42049 2008-09-02  Eric Blake  <ebb9@byu.net>
42050
42051         vasnprintf-posix: handle large precision via %.*d
42052         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42053         when handling it ourselves.
42054         * tests/test-vasnprintf-posix.c (test_function): Add test.
42055         * tests/test-snprintf-posix.h (test_function): Likewise.
42056         * tests/test-sprintf-posix.h (test_function): Likewise.
42057         * tests/test-vasprintf-posix.c (test_function): Likewise.
42058         Reported by Alain Guibert.
42059
42060 2008-09-01  Eric Blake  <ebb9@byu.net>
42061
42062         c-stack: make configure-time check more robust
42063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42064         successful sigaction call.
42065         Reported by Tom G. Christensen.
42066
42067 2008-09-01  Bruno Haible  <bruno@clisp.org>
42068
42069         New module 'findprog-lgpl'.
42070         * modules/findprog-lgpl: New file.
42071         * lib/findprog-lgpl.c: New file.
42072         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42073         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42074         to decide whether to use strdup or xstrdup, concatenated_filename or
42075         xconcatenated_filename.
42076
42077 2008-09-01  Bruno Haible  <bruno@clisp.org>
42078
42079         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42080         'xconcat-filename' (GPL).
42081         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42082         (License): Change to LGPLv2+.
42083         * modules/xconcat-filename: New file.
42084         * lib/concat-filename.h (concatenated_filename): Change specification.
42085         (xconcatenated_filename): New declaration.
42086         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42087         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42088         memory situations.
42089         * lib/xconcat-filename.c: New file.
42090         * NEWS: Mention the change.
42091         * lib/findprog.c: Include concat-filename.h, not filename.h.
42092         (find_in_path): Use xconcatenated_filename instead of
42093         concatenated_filename.
42094         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42095         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42096         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42097         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42098         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42099         instead of concatenated_filename.
42100         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42101         (execute_java_class): Use xconcatenated_filename instead of
42102         concatenated_filename.
42103         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42104         * modules/javacomp (Depends-on): Likewise.
42105         * modules/javaexec (Depends-on): Likewise.
42106
42107 2008-09-01  Bruno Haible  <bruno@clisp.org>
42108
42109         Split module 'filename' into 'filename' and 'concat-filename'.
42110         * modules/filename: Keep only lib/filename.h.
42111         (License): Change to LGPLv2+.
42112         * modules/concat-filename: New file, extracted from modules/filename.
42113         * lib/filename.h (concatenated_filename): Remove declaration.
42114         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42115         * lib/concat-filename.c: Include concat-filename.h.
42116         * NEWS: Mention the change.
42117
42118 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42119
42120         * lib/bitrotate.h (rotl8, rotr8): Add.
42121
42122         * modules/bitrotate (configure.ac): Need
42123         AC_REQUIRE([AC_C_INLINE]).
42124         (Description): Mention stdint.h.  Reported by Bruno Haible
42125         <bruno@clisp.org>.
42126
42127         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42128         Paolo Bonzini <bonzini@gnu.org>.
42129
42130 2008-08-31  Bruno Haible  <bruno@clisp.org>
42131
42132         Assume Solaris specific bi-arch conventions on Solaris systems.
42133         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42134         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42135         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42136         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42137         like acl_libdirstem.
42138         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42139         acl_libdirstem.
42140         * NEWS: Mention the change.
42141         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42142
42143 2008-08-31  Jim Meyering  <meyering@redhat.com>
42144
42145         * lib/strftime.h: Add comments describing the two added arguments.
42146
42147         remove duplicate #include directives
42148         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42149         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42150
42151 2008-08-31  Bruno Haible  <bruno@clisp.org>
42152
42153         New module 'sigpipe-die'.
42154         * modules/sigpipe-die: New file.
42155         * lib/sigpipe-die.h: New file.
42156         * lib/sigpipe-die.c: New file.
42157         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42158
42159 2008-08-31  Bruno Haible  <bruno@clisp.org>
42160
42161         Don't override previously installed signal handlers.
42162         * lib/fatal-signal.c (saved_sigactions): New variable.
42163         (uninstall_handlers): Reset the signal to the saved handler, not
42164         to SIG_DFL (except when ignored).
42165         (install_handlers): Save the previous handlers.
42166
42167 2008-08-30  Bruno Haible  <bruno@clisp.org>
42168
42169         * gnulib-tool (func_reset_sigpipe): New function.
42170         (func_get_automake_snippet, func_modules_transitive_closure,
42171         func_import): Invoke it before a join command that reads from stdin,
42172         to avoid "echo: write error: Broken pipe" error messages on stderr.
42173         Reported by Sam Steingold <sds@gnu.org>.
42174
42175 2008-08-30  Bruno Haible  <bruno@clisp.org>
42176
42177         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42178         Code copied from m4/open.m4.
42179         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42180         access and the filename ends in a slash. Code copied from lib/open.c.
42181         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42182         * tests/test-fopen.c (main): Check against bug with trailing slash.
42183
42184 2008-08-29  Bruno Haible  <bruno@clisp.org>
42185
42186         Avoid some "gcc -pedantic" warnings.
42187         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42188         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42189         * lib/dirent.in.h: Likewise.
42190         * lib/fcntl.in.h: Likewise.
42191         * lib/float.in.h: Likewise.
42192         * lib/iconv.in.h: Likewise.
42193         * lib/inttypes.in.h: Likewise.
42194         * lib/locale.in.h: Likewise.
42195         * lib/math.in.h: Likewise.
42196         * lib/netinet_in.in.h: Likewise.
42197         * lib/search.in.h: Likewise.
42198         * lib/signal.in.h: Likewise.
42199         * lib/stdarg.in.h: Likewise.
42200         * lib/stdint.in.h: Likewise.
42201         * lib/stdio.in.h: Likewise.
42202         * lib/stdlib.in.h: Likewise.
42203         * lib/string.in.h: Likewise.
42204         * lib/strings.in.h: Likewise.
42205         * lib/sys_select.in.h: Likewise.
42206         * lib/sys_socket.in.h: Likewise.
42207         * lib/sys_stat.in.h: Likewise.
42208         * lib/sys_time.in.h: Likewise.
42209         * lib/sysexits.in.h: Likewise.
42210         * lib/time.in.h: Likewise.
42211         * lib/unistd.in.h: Likewise.
42212         * lib/wchar.in.h: Likewise.
42213         * lib/wctype.in.h: Likewise.
42214         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42215         * modules/fchdir (Makefile.am): Likewise.
42216         * modules/fcntl (Makefile.am): Likewise.
42217         * modules/float (Makefile.am): Likewise.
42218         * modules/iconv_open (Makefile.am): Likewise.
42219         * modules/inttypes (Makefile.am): Likewise.
42220         * modules/locale (Makefile.am): Likewise.
42221         * modules/math (Makefile.am): Likewise.
42222         * modules/netinet_in (Makefile.am): Likewise.
42223         * modules/search (Makefile.am): Likewise.
42224         * modules/signal (Makefile.am): Likewise.
42225         * modules/stdarg (Makefile.am): Likewise.
42226         * modules/stdint (Makefile.am): Likewise.
42227         * modules/stdio (Makefile.am): Likewise.
42228         * modules/stdlib (Makefile.am): Likewise.
42229         * modules/string (Makefile.am): Likewise.
42230         * modules/strings (Makefile.am): Likewise.
42231         * modules/sys_select (Makefile.am): Likewise.
42232         * modules/sys_socket (Makefile.am): Likewise.
42233         * modules/sys_stat (Makefile.am): Likewise.
42234         * modules/sys_time (Makefile.am): Likewise.
42235         * modules/sysexits (Makefile.am): Likewise.
42236         * modules/time (Makefile.am): Likewise.
42237         * modules/unistd (Makefile.am): Likewise.
42238         * modules/wchar (Makefile.am): Likewise.
42239         * modules/wctype (Makefile.am): Likewise.
42240         Reported by Reuben Thomas <rrt@sc3d.org>.
42241
42242 2008-08-29  Bruno Haible  <bruno@clisp.org>
42243
42244         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42245         any more.
42246
42247 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42248
42249         * MODULES.html.sh (Misc): Add bitrotate.
42250
42251         * modules/bitrotate: New file.
42252
42253         * lib/bitrotate.h: New file.
42254
42255         * modules/bitrotate-tests: New file.
42256
42257         * tests/test-bitrotate.c: New file.
42258
42259         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42260         on the bitrotate module.
42261
42262         * lib/arctwo.c: Use new bitrotate module.
42263
42264 2008-08-29  Jim Meyering  <meyering@redhat.com>
42265
42266         bootstrap: merge changes from coreutils
42267         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42268         of copied files.  Remove a kludge, now that this is fixed.
42269         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42270         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42271         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42272
42273 2008-08-29  Bruno Haible  <bruno@clisp.org>
42274
42275         * MODULES.html.sh: Remove --cvs-urls option.
42276
42277 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42278
42279         maint.mk: adjust to file name change
42280         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42281
42282 2008-08-28  Jim Meyering  <meyering@redhat.com>
42283
42284         * modules/getndelim2 (License): Relicense to LGPLv2+.
42285         Approved by Richard Stallman for the version of 1995, and by
42286         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42287
42288 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42289
42290         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42291         dummy if one is not available.  Do not touch them if
42292         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42293         (getc_maybe_unlocked): New.
42294         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42295
42296 2008-08-26  Eric Blake  <ebb9@byu.net>
42297
42298         doc/INSTALL: resync from autoconf
42299         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42300         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42301         moving...
42302         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42303         * INSTALL: Regenerate.
42304         * INSTALL.ISO: New file.
42305         * INSTALL.UTF-8: Likewise.
42306
42307 2008-08-26  Jim Meyering  <meyering@redhat.com>
42308
42309         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42310         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42311         these definitions conditional, so that they may be overridden, too.
42312
42313 2008-08-26  Bruno Haible  <bruno@clisp.org>
42314
42315         Generate INSTALL file variants with prettier quotes.
42316         * doc/Makefile (INSTALL_PRELUDE): New macro.
42317         (INSTALL): Use it.
42318         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42319
42320 2008-08-26  Bruno Haible  <bruno@clisp.org>
42321
42322         Run makeinfo in an English locale.
42323         * doc/Makefile (MAKEINFO): New variable.
42324
42325 2008-08-26  Bruno Haible  <bruno@clisp.org>
42326
42327         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42328         Suggested by Eric Blake.
42329
42330 2008-08-25  Bruno Haible  <bruno@clisp.org>
42331
42332         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42333
42334 2008-08-25  Eric Blake  <ebb9@byu.net>
42335
42336         c-stack: test that stack overflow can be caught
42337         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42338         that platform allows handling stack overflow; at least OS/2 EMX
42339         has sigaltstack, but crashes before transferring control to
42340         handler on stack overflow.
42341         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42342         check for HAVE_STACK_OVERFLOW_HANDLING.
42343         Reported by Elbert Pol.
42344
42345 2008-08-25  Bruno Haible  <bruno@clisp.org>
42346
42347         * doc/posix-functions/strftime.texi: Fix description of strftime
42348         module.
42349
42350 2008-08-24  Bruno Haible  <bruno@clisp.org>
42351
42352         * tests/uniwidth/test-uc_width2.c: New file.
42353         * tests/uniwidth/test-uc_width2.sh: New file.
42354         * modules/uniwidth/width-tests (Files): Add the new files.
42355         (TESTS): Add uniwidth/test-uc_width2.sh.
42356         (TESTS_ENVIRONMENT): New variable.
42357         (check_PROGRAMS): Add test-uc_width2.
42358         (test_uc_width2_SOURCES): New variable.
42359
42360         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42361         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42362         not 0x00AB.
42363         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42364
42365 2008-08-22  Eric Blake  <ebb9@byu.net>
42366
42367         test-lock, test-tls: mention why a test is skipped
42368         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42369         skipped.
42370         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42371
42372         count-one-bits: relax license
42373         * modules/count-one-bits (License): Relicense to LGPLv2+.
42374         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42375
42376 2008-08-22  Andreas Schwab  <schwab@suse.de>
42377
42378         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42379         Remove spurious space in assignment.
42380
42381 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42382
42383         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42384         Paul Eggert <eggert@CS.UCLA.EDU>.
42385
42386 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42387
42388         * modules/gettext: Add m4/threadlib.m4.
42389
42390 2008-08-19  Eric Blake  <ebb9@byu.net>
42391
42392         test-c-stack: fix compilation failure on FreeBSD 5.0
42393         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42394         headers before <sys/resource.h>.
42395         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42396         the bug.
42397         Reported by Nelson H. F. Beebe.
42398
42399         strverscmp: migrate from "strverscmp.h" to <string.h>
42400         * modules/string (Makefile.am): Add new hooks.
42401         * modules/strverscmp (Files): Remove strverscmp.h.
42402         (Depends-on): Add string.
42403         (configure.ac): Add indicator.
42404         (Include): Mention new header.
42405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42406         defaults.
42407         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42408         results.
42409         * lib/strverscmp.h: Delete.
42410         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42411         * tests/test-strverscmp.c (includes): Adjust client.
42412         * lib/check-version.c (includes): Likewise.
42413         * NEWS: Document the change.
42414
42415         strverscmp: add unit test
42416         * modules/strverscmp-tests: New file.
42417         * tests/test-strverscmp.c: Likewise.
42418
42419 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42420
42421         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42422         regarding Windows crypto stuff, from Mono.
42423
42424 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42425
42426         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42427         if present, for intel RND.  Return error on failures.
42428
42429 2008-08-18  Ben Pfaff  <blp@gnu.org>
42430
42431         gitlog-to-changelog: give better diagnostic for failed pipe-open
42432         * build-aux/gitlog-to-changelog: Improve error message: suggest
42433         that the version of Git may be too old.
42434
42435 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42436
42437         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42438         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42439
42440 2008-08-18  Bruno Haible  <bruno@clisp.org>
42441
42442         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42443         pthread_in_use().
42444
42445 2008-08-18  Bruno Haible  <bruno@clisp.org>
42446
42447         * lib/glthread/threadlib.c: Include <pthread.h>.
42448
42449 2008-08-18  Bruno Haible  <bruno@clisp.org>
42450
42451         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42452         glthread_recursive_lock_* macros.
42453         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42454         Fix syntax error.
42455
42456 2008-08-18  Bruno Haible  <bruno@clisp.org>
42457
42458         * lib/glthread/thread.c: Avoid forcing a context switch right after
42459         thread creation.
42460
42461 2008-08-17  Bruno Haible  <bruno@clisp.org>
42462
42463         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42464         * lib/glthread/thread.h: Provide Win32 specific implementation.
42465         * modules/thread (Files): Add lib/glthread/thread.c.
42466         (Depends-on): Add lock.
42467         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42468
42469 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42470
42471         New module 'yield'.
42472         * modules/yield: New file.
42473         * lib/glthread/yield.h: New file.
42474         * m4/yield.m4: New file.
42475         * MODULES.html.sh (Multithreading): Add yield.
42476
42477 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42478
42479         New module 'thread'.
42480         * modules/thread: New file.
42481         * lib/glthread/thread.h: New file.
42482         * m4/thread.m4: New file.
42483         * MODULES.html.sh (Multithreading): Add thread.
42484
42485 2008-08-17  Bruno Haible  <bruno@clisp.org>
42486
42487         * lib/glthread/lock.h: Include <stdlib.h> always.
42488         * lib/glthread/tls.h: Likewise.
42489         * lib/glthread/cond.h: Likewise.
42490
42491 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42492
42493         New module 'cond'.
42494         * modules/cond: New file.
42495         * lib/glthread/cond.h: New file.
42496         * lib/glthread/cond.c: New file.
42497         * m4/cond.m4: New file.
42498         * MODULES.html.sh (Multithreading): Add cond.
42499
42500 2008-08-16  Eric Blake  <ebb9@byu.net>
42501
42502         c-stack: fix regression on Irix 5.3 from 2008-06-21
42503         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42504         sa_sigaction...
42505         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42506         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42507         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42508         * modules/signal (Makefile.am): Use the value.
42509         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42510         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42511         * doc/posix-headers/signal.texi (signal.h): Document this
42512         portability issue.
42513         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42514         Reported by Tom G. Christensen.
42515
42516 2008-08-17  Bruno Haible  <bruno@clisp.org>
42517
42518         New module 'threadlib'.
42519         * modules/threadlib: New file.
42520         * lib/glthread/threadlib.c: New file, extracted from
42521         lib/glthread/lock.c.
42522         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42523         functions.
42524         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42525         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42526         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42527         macros.
42528         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42529         (gl_DISABLE_THREADS): Remove macro.
42530         * modules/lock (Files): Remove build-aux/config.rpath.
42531         (Depends-on): Remove havelib. Add threadlib.
42532         (configure.ac-early): Remove section.
42533         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42534         * modules/tls (Depends-on): Remove lock. Add threadlib.
42535         (Link): New section, copied from threadlib.
42536         * MODULES.html.sh (Multithreading): Add threadlib.
42537
42538 2008-08-14  Bruno Haible  <bruno@clisp.org>
42539
42540         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42541         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42542         glthread_rwlock_unlock, glthread_rwlock_destroy,
42543         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42544         glthread_recursive_lock_destroy): Define as macros always.
42545         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42546         glthread_lock_lock.
42547         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42548         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42549         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42550         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42551         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42552         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42553         (glthread_recursive_lock_lock_func): Renamed from
42554         glthread_recursive_lock_lock.
42555         (glthread_recursive_lock_unlock_func): Renamed from
42556         glthread_recursive_lock_unlock.
42557         (glthread_recursive_lock_destroy_func): Renamed from
42558         glthread_recursive_lock_destroy.
42559
42560 2008-08-14  Bruno Haible  <bruno@clisp.org>
42561
42562         * lib/glthread/lock.h: Renamed from lib/lock.h.
42563         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42564         * lib/glthread/tls.h: Renamed from lib/tls.h.
42565         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42566         * lib/fstrcmp.c: Update includes.
42567         * lib/strsignal.c: Update includes.
42568         * modules/lock (Files, Makefile.am): Update.
42569         (Include): Change to "glthread/lock.h".
42570         * modules/tls (Files, Makefile.am): Update.
42571         (Include): Change to "glthread/tls.h".
42572         * tests/test-lock.c: Update includes.
42573         * tests/test-tls.c: Update includes.
42574         * NEWS: Mention the renamed header files.
42575
42576 2008-08-11  Jim Meyering  <meyering@redhat.com>
42577
42578         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42579
42580 2008-08-11  Eric Blake  <ebb9@byu.net>
42581
42582         test-c-stack: avoid C99-ism
42583         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42584         before statement.
42585         Reported by Alain Guibert.
42586
42587 2008-08-10  Jim Meyering  <meyering@redhat.com>
42588
42589         ensure that return value of uinttostr et al are not ignored
42590         * lib/inttostr.h (__GNUC_PREREQ): Define.
42591         (__attribute_warn_unused_result__): Define.
42592         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42593
42594 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42595
42596         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42597         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42598
42599 2008-08-07  Jim Meyering  <meyering@redhat.com>
42600
42601         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42602
42603         * modules/mkstemp (License): Relicense under LGPLv2+.
42604         * modules/tempname (License): Likewise.
42605
42606 2008-08-06  Bruno Haible  <bruno@clisp.org>
42607
42608         * lib/poll.c (poll): Further micro-optimization.
42609
42610 2008-08-06  Jim Meyering  <meyering@redhat.com>
42611
42612         inet_pton.c: use locale-independent tolower
42613         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42614         (inet_pton6): Use c_tolower rather than tolower.
42615         * modules/inet_pton (Depends-on): Add c-ctype.
42616
42617 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42618
42619         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42620         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42621
42622 2008-08-06  Jim Meyering  <meyering@redhat.com>
42623
42624         * modules/inet_pton (License): Relicense under LGPLv2+.
42625
42626 2008-08-03  Bruno Haible  <bruno@clisp.org>
42627
42628         Additional non-aborting API for lock and tls.
42629         * lib/lock.h: Include <errno.h>.
42630         (glthread_lock_init): New macro/function.
42631         (gl_lock_init): Define as wrapper around glthread_lock_init.
42632         (glthread_lock_lock): New macro/function.
42633         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42634         (glthread_lock_unlock): New macro/function.
42635         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42636         (glthread_lock_destroy): New macro/function.
42637         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42638         (glthread_rwlock_init): New macro/function.
42639         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42640         (glthread_rwlock_rdlock): New macro/function.
42641         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42642         (glthread_rwlock_wrlock): New macro/function.
42643         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42644         (glthread_rwlock_unlock): New macro/function.
42645         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42646         (glthread_rwlock_destroy): New macro/function.
42647         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42648         (glthread_recursive_lock_init): New macro/function.
42649         (gl_recursive_lock_init): Define as wrapper around
42650         glthread_recursive_lock_init.
42651         (glthread_recursive_lock_lock): New macro/function.
42652         (gl_recursive_lock_lock): Define as wrapper around
42653         glthread_recursive_lock_lock.
42654         (glthread_recursive_lock_unlock): New macro/function.
42655         (gl_recursive_lock_unlock): Define as wrapper around
42656         glthread_recursive_lock_unlock.
42657         (glthread_recursive_lock_destroy): New macro/function.
42658         (gl_recursive_lock_destroy): Define as wrapper around
42659         glthread_recursive_lock_destroy.
42660         (glthread_once): New macro/function.
42661         (gl_once): Define as wrapper around glthread_once.
42662         Update function declarations.
42663         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42664         glthread_rwlock_init. Return error code.
42665         (glthread_rwlock_rdlock_multithreaded): Renamed from
42666         glthread_rwlock_rdlock. Return error code.
42667         (glthread_rwlock_wrlock_multithreaded): Renamed from
42668         glthread_rwlock_wrlock. Return error code.
42669         (glthread_rwlock_unlock_multithreaded): Renamed from
42670         glthread_rwlock_unlock. Return error code.
42671         (glthread_rwlock_destroy_multithreaded): Renamed from
42672         glthread_rwlock_destroy. Return error code.
42673         (glthread_recursive_lock_init_multithreaded): Renamed from
42674         glthread_recursive_lock_init. Return error code.
42675         (glthread_recursive_lock_lock_multithreaded): Renamed from
42676         glthread_recursive_lock_lock. Return error code.
42677         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42678         glthread_recursive_lock_unlock. Return error code.
42679         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42680         glthread_recursive_lock_destroy. Return error code.
42681         (glthread_once_call): Make static.
42682         (glthread_once_multithreaded): Renamed from glthread_once.
42683         * lib/tls.h: Include <errno.h>.
42684         (glthread_tls_key_init): New macro/function.
42685         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42686         (glthread_tls_set): New macro/function.
42687         (gl_tls_set): Define as wrapper around glthread_tls_set.
42688         (glthread_tls_key_destroy): New macro/function.
42689         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42690         Update function declarations.
42691         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42692         glthread_tls_get.
42693         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42694
42695 2008-08-04  Eric Blake  <ebb9@byu.net>
42696
42697         gnumakefile: use space, not TAB, outside of targets
42698         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42699
42700 2008-08-02  Jim Meyering  <meyering@redhat.com>
42701
42702         getdate.y: avoid locale-dependent date parsing failure
42703         In Turkish locales, getdate would fail to recognize keywords
42704         containing a lowercase "i".  The solution is not to rely on
42705         locale-sensitive case-conversion.
42706         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42707         (lookup_word): Use c_toupper in place of toupper.
42708         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42709         Reported by Vefa Bicakci <bicave@superonline.com> in
42710         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42711         * modules/getdate (Depends-on): Add c-ctype.
42712
42713 2008-08-02  Bruno Haible  <bruno@clisp.org>
42714
42715         * gnulib-tool (func_import): When updating or creating a .gitignore
42716         file, prepend each added line with a slash, and ignore leading slashes
42717         from the existing lines.
42718         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42719
42720 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42721
42722         Portability fix for GNU make 3.79.1.
42723         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42724         versions do not understand.
42725
42726 2008-08-01  Bruno Haible  <bruno@clisp.org>
42727
42728         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42729         * tests/test-isnanf.h (zero): New variable.
42730         (main): Avoid literal -0.0f.
42731         * tests/test-isnand.h (zero): New variable.
42732         (main): Avoid literal -0.0.
42733         * tests/test-isnanl.h (zero): New variable.
42734         (main): Avoid literal -0.0L.
42735         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42736         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42737         -0.0, -0.0L.
42738         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42739         (test_signbitd): Avoid literal -0.0.
42740         (test_signbitl): Avoid literal -0.0L.
42741         * tests/test-ceilf1.c (zero): New variable.
42742         (main): Avoid literal -0.0f.
42743         * tests/test-ceill.c (zero): New variable.
42744         (main): Avoid literal -0.0L.
42745         * tests/test-floorf1.c (zero): New variable.
42746         (main): Avoid literal -0.0f.
42747         * tests/test-floorl.c (zero): New variable.
42748         (main): Avoid literal -0.0L.
42749         * tests/test-roundf1.c (zero): New variable.
42750         (main): Avoid literal -0.0f.
42751         * tests/test-round1.c (zero): New variable.
42752         (main): Avoid literal -0.0.
42753         * tests/test-roundl.c (zero): New variable.
42754         (main): Avoid literal -0.0L.
42755         * tests/test-truncf1.c (zero): New variable.
42756         (main): Avoid literal -0.0f.
42757         * tests/test-trunc1.c (zero): New variable.
42758         (main): Avoid literal -0.0.
42759         * tests/test-truncl.c (zero): New variable.
42760         (main): Avoid literal -0.0L.
42761         * tests/test-frexp.c (zero): New variable.
42762         (main): Avoid literal -0.0.
42763         * tests/test-frexpl.c (zero): New variable.
42764         (main): Avoid literal -0.0L.
42765         * tests/test-ldexpl.c (zero): New variable.
42766         (main): Avoid literal -0.0L.
42767         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42768         (zerod, zerol): New variables.
42769         (test_function): Avoid literals -0.0, -0.0L.
42770         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42771         (zerod, zerol): New variables.
42772         (test_function): Avoid literals -0.0, -0.0L.
42773         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42774         (zerod, zerol): New variables.
42775         (test_function): Avoid literals -0.0, -0.0L.
42776         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42777         (zerod, zerol): New variables.
42778         (test_function): Avoid literals -0.0, -0.0L.
42779         * tests/test-strtod.c (zero): New variable.
42780         (main): Avoid literal -0.0.
42781         Reported by Jonathan C. Patschke <jp@centtech.com>.
42782
42783 2008-07-31  Jim Meyering  <meyering@redhat.com>
42784
42785         sha256.h: correct definition of SHA224_DIGEST_SIZE
42786         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42787         Reported by Paulie Pena IV <paulie4@gmail.com>.
42788         Define as 224 / 8, rather than as a literal.
42789         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42790         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42791         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42792
42793 2008-07-31  Bruno Haible  <bruno@clisp.org>
42794
42795         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42796         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42797         Reported by Jonathan Patschke <jp@centtech.com>.
42798
42799 2008-07-31  Bruno Haible  <bruno@clisp.org>
42800
42801         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42802         Reported by Paolo Bonzini <bonzini@gnu.org>.
42803
42804 2008-07-30  Eric Blake  <ebb9@byu.net>
42805
42806         test-strtod: allow compilation without -lm
42807         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42808         Reported by Dennis Clarke <blastwave@gmail.com>.
42809
42810 2008-07-28  Jim Meyering  <meyering@redhat.com>
42811
42812         bootstrap: work also when there are no .po files in po/
42813         * build-aux/bootstrap (update_po_files): Complete the change
42814         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42815
42816 2008-07-27  Jim Meyering  <meyering@redhat.com>
42817
42818         * users.txt: Add zile.
42819
42820 2008-07-26  Ben Pfaff  <blp@gnu.org>
42821
42822         Add missing dependencies on new m4/exponent[fdl].m4 files.
42823         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42824         * modules/isnand-nolibm: Add m4/exponentd.m4.
42825         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42826         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42827         m4/isnan[fdl].m4, because the macros actually used moved.
42828         Reported by Jim Meyering.
42829
42830 2008-07-14  Ben Pfaff  <blp@gnu.org>
42831
42832         Add isinf module.
42833         * lib/isinf.c: New file.
42834         * lib/math.in.h: Define isinf macro if we have decided to replace
42835         it.
42836         * m4/isinf.m4: New file.
42837         * m4/math_h.m4: Initialize and substitute variables for isinf
42838         module.
42839         * modules/isinf: New file.
42840         * modules/isinf-tests: New file.
42841         * modules/math: Add substitutions for new module.
42842         * tests/test-isinf.c: New file.
42843         * doc/posix-functions/isinf.texi: Mention new module.
42844         * MODULES.html.sh: Mention new module.
42845
42846 2008-07-14  Ben Pfaff  <blp@gnu.org>
42847
42848         Factor out some macros for use by additional modules.
42849         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42850         exponentf.m4.
42851         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42852         exponentd.m4.
42853         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42854         file exponentl.m4.
42855         * m4/exponentf.m4: New file.
42856         * m4/exponentd.m4: New file.
42857         * m4/exponentl.m4: New file.
42858         * modules/isnanf: Use new file m4/exponentf.m4.
42859         * modules/isnand: Use new file m4/exponentd.m4.
42860         * modules/isnanl: Use new file m4/exponentl.m4.
42861
42862 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42863
42864         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42865         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42866         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42867         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42868
42869         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42870         readlink on platforms without PATH_MAX.
42871
42872 2008-07-21  Eric Blake  <ebb9@byu.net>
42873
42874         Warn, not fail, on stale version.
42875         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42876
42877         Don't allow installation with stale devel version number.
42878         * top/GNUmakefile (_is-install-target): New macro.
42879         (_curr-ver): Forbid installation with stale version number.
42880
42881 2008-07-20  Bruno Haible  <bruno@clisp.org>
42882
42883         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42884         TESTS_ENVIRONMENT.
42885         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42886
42887 2008-07-20  Bruno Haible  <bruno@clisp.org>
42888
42889         * lib/c-stack.h (c_stack_action): Add documentation.
42890         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42891
42892 2008-07-20  Bruno Haible  <bruno@clisp.org>
42893
42894         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42895         * modules/readlink (License): Likewise.
42896
42897 2008-07-17  Eric Blake  <ebb9@byu.net>
42898
42899         * modules/c-stack (Link): Fix typo.
42900
42901         Make c-stack use libsigsegv, when available.
42902         * modules/c-stack (Depends-on): Add libsigsegv.
42903         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42904         needed.
42905         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42906         (segv_handler, overflow_handler, c_stack_action)
42907         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42908         implementation when libsigsegv is available, but only when using
42909         the library is necessary.
42910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42911         comment, explaining why XSI check fails on Linux.
42912         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42913         * tests/test-c-stack2.sh: Tweak skip message.
42914         * NEWS: Document new link-time requirements.
42915
42916 2008-07-16  Eric Blake  <ebb9@byu.net>
42917
42918         c-stack: Expose false positives when not using libsigsegv.
42919         * modules/c-stack-tests (Files): Expand test.
42920         * tests/test-c-stack.c (main): Add means to conditionally trigger
42921         non-overflow SIGSEGV.
42922         * tests/test-c-stack2.sh: New file.
42923
42924 2008-07-14  Bruno Haible  <bruno@clisp.org>
42925
42926         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42927         Reported by Eric Blake.
42928
42929 2008-07-14  Sam Steingold  <sds@gnu.org>
42930             Bruno Haible  <bruno@clisp.org>
42931
42932         New module libsigsegv.
42933         * modules/libsigsegv: New file.
42934         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42935         modifications.
42936         * MODULES.html.sh (Signal handling): New section.
42937
42938 2008-07-14  Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/unictype/ctype-* (Description): Add the word "function".
42941         Improves the resulting doc in MODULES.html.
42942
42943 2008-07-12  Ben Pfaff  <blp@gnu.org>
42944
42945         Add longlong module.
42946         * modules/longlong: New file.
42947
42948 2008-07-12  Bruno Haible  <bruno@clisp.org>
42949
42950         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42951         to empty.
42952
42953 2008-07-10  Ben Pfaff  <blp@gnu.org>
42954
42955         Add isnan module.
42956         * doc/posix-functions/isnan.texi: Mention new module.
42957         * lib/math.in.h: Define isnan macro if we have decided to replace
42958         it.
42959         * m4/isnan.m4: New file.
42960         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42961         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42962         also.
42963         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42964         redundancy.
42965         * m4/math_h.m4: Initialize and substitute variables for isnan
42966         module.
42967         * modules/isnan: New file.
42968         * modules/isnan-tests: New file.
42969         * modules/math: Add substitutions for new module.
42970         * tests/test-isnan.c: New file.
42971         * MODULES.html.sh: Mention new module.
42972
42973 2008-07-10  Ben Pfaff  <blp@gnu.org>
42974
42975         Add isnanf module.
42976         * lib/isnanf.m4: New file.
42977         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42978         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42979         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42980         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42981         * modules/isnanf: New file.
42982         * modules/isnanf-tests: New file.
42983         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42984         files.
42985         * tests/test-isnanf-nolibm.c: factored most of its contents into
42986         new file tests/test-isnanf.h.
42987         * tests/test-isnanf.h: New file.
42988         * tests/test-isnanf.c: New file.
42989         * MODULES.html.sh: Mention new module.
42990         * doc/glibc-functions/isnanf.texi: Mention new module.
42991
42992 2008-07-10  Ben Pfaff  <blp@gnu.org>
42993
42994         Add isnand module.
42995         * lib/isnand.h: New file.
42996         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42997         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42998         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42999         functionality also.
43000         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43001         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43002         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43003         * modules/isnand: New file.
43004         * modules/isnand-tests: New file.
43005         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43006         files.
43007         * tests/test-isnand-nolibm.c: factored most of its contents into
43008         new file tests/test-isnand.h.
43009         * tests/test-isnand.h: New file.
43010         * tests/test-isnand.c: New file.
43011         * MODULES.html.sh: Mention new module.
43012
43013 2008-07-10  Ben Pfaff  <blp@gnu.org>
43014
43015         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43016         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43017         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43018         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43019         * modules/isnanf-nolibm: Update references to renamed files.
43020         * modules/isnand-nolibm: Likewise.
43021         * modules/isnanf-nolibm-tests: Likewise.
43022         * modules/isnand-nolibm-tests: Likewise.
43023         * lib/frexp.c: Likewise.
43024         * lib/isfinite.c: Likewise.
43025         * lib/signbitd.c: Likewise.
43026         * lib/signbitf.c: Likewise.
43027         * lib/vasnprintf.c: Likewise.
43028         * tests/test-ceilf1.c: Likewise.
43029         * tests/test-ceilf2.c: Likewise.
43030         * tests/test-floorf1.c: Likewise.
43031         * tests/test-floorf2.c: Likewise.
43032         * tests/test-frexp.c: Likewise.
43033         * tests/test-round1.c: Likewise.
43034         * tests/test-round2.c: Likewise.
43035         * tests/test-roundf1.c: Likewise.
43036         * tests/test-strtod.c: Likewise.
43037         * tests/test-trunc1.c: Likewise.
43038         * tests/test-trunc2.c: Likewise.
43039         * tests/test-truncf1.c: Likewise.
43040         * tests/test-truncf2.c: Likewise.
43041         * NEWS: Mention the renamed header files.
43042
43043 2008-07-11  Jim Meyering  <meyering@redhat.com>
43044
43045         vc-list-files: make the last-resort awk code more portable
43046         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43047         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43048         does not support it.
43049
43050 2008-07-10  Eric Blake  <ebb9@byu.net>
43051
43052         Work with tar's bootstrap.
43053         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43054         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43055         an m4 comment.
43056
43057 2008-07-09  Jim Meyering  <meyering@redhat.com>
43058
43059         posix-shell.m4: fix typo that made this test malfunction
43060         * m4/posix-shell.m4: Remove capitalization in variable name.
43061
43062 2008-07-08  Bruno Haible  <bruno@clisp.org>
43063
43064         * m4/onceonly.m4: Update comments.
43065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43066
43067 2008-07-04  Jim Meyering  <meyering@redhat.com>
43068
43069         * users.txt: Add vc-dwim.
43070         (bison, coreutils): Use the gitweb URL.
43071
43072 2008-07-03  Jim Meyering  <meyering@redhat.com>
43073
43074         * users.txt: Add libffcall.  From Sam Steingold.
43075
43076 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
43077
43078         getdate.y: do not ignore TZ with relative day, month or year offset
43079         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43080         relative-date-handling, since otherwise, the latter would clobber the
43081         sole output (an updated Start value) of the tz-handling block.
43082         * tests/test-getdate.c: Tests for the fix
43083
43084 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43085
43086         Recognize 'foo_LIBRARIES += libgnu.a'.
43087         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43088         makefile snippet has already specified an installation location,
43089         also using '+='.
43090
43091 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
43092
43093         getdate.y: factor out common actions
43094         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43095         Use them in place of open-coded actions.
43096
43097 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43098
43099         Add self-test for getdate module.
43100         * modules/getdate-tests: New file.
43101         * tests/test-getdate.c: New file.
43102
43103 2008-06-29  Bruno Haible  <bruno@clisp.org>
43104
43105         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43106         .gitignore.
43107         Reported by Sylvain Beucler <beuc@beuc.net>.
43108
43109 2008-06-29  Bruno Haible  <bruno@clisp.org>
43110
43111         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43112         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43113
43114 2008-06-29  Bruno Haible  <bruno@clisp.org>
43115
43116         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43117         EXTRA_DIST.
43118         Reported by Sylvain Beucler <beuc@beuc.net>.
43119
43120 2008-06-26  Jim Meyering  <meyering@redhat.com>
43121
43122         make several modules depend on the "open" module
43123         This provides slightly increased consistency when opening-for-write
43124         the name of a non-directory spelled with a trailing slash.
43125         * modules/chdir-safer: Likewise.
43126         * modules/chown: Likewise.
43127         * modules/clean-temp: Likewise.
43128         * modules/copy-file: Likewise.
43129         * modules/fchdir: Likewise.
43130         * modules/fcntl-safer: Likewise.
43131         * modules/pipe: Likewise.
43132         * modules/utime: Likewise.
43133         Prompted by Eric Blake and Bruno Haible.
43134
43135 2008-06-24  Andreas Schwab  <schwab@suse.de>
43136
43137         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43138         literals can be used as initializers for global variables.
43139
43140 2008-06-23  Eric Blake  <ebb9@byu.net>
43141
43142         Make gnulib-cache.m4 easier to diff.
43143         * gnulib-tool (func_import): Allow newlines when reading cached
43144         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43145
43146 2008-06-23  Bruno Haible  <bruno@clisp.org>
43147
43148         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43149         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43150         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43151         m4/signalblocking.m4.
43152         (gl_PREREQ_SIGACTION): Don't invoke it.
43153         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43154         gl_PREREQ_SIG_HANDLER_H.
43155         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43156         Don't check for sigaction here.
43157
43158 2008-06-23  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43161         (install_handlers): Don't set the SA_RESETHAND flag.
43162
43163 2008-06-23  Bruno Haible  <bruno@clisp.org>
43164
43165         * m4/sigaction.m4: Comment fixes.
43166         * lib/signal.in.h: Likewise.
43167
43168 2008-06-23  Eric Blake  <ebb9@byu.net>
43169
43170         Fix typo.
43171         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43172
43173         Avoid SA_ namespace.
43174         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43175         Reported by Ralf Wildenhues.
43176
43177         Avoid test failure due to SA_RESTORER.
43178         * tests/test-sigaction.c (SA_MASK): New macro.
43179         (main): Avoid failing due to extension flags being set.
43180         Reported by Jim Meyering.
43181
43182         Revert use of sig-handler.h in sigprocmask.c.
43183         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43184         it requires the existence of struct sigaction.
43185         * lib/sigprocmask.c (handler_t): Restore typedef.
43186         (rpl_signal, old_handlers): Use local type.
43187
43188 2008-06-22  Bruno Haible  <bruno@clisp.org>
43189
43190         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43191         conditionally.
43192         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43193
43194 2008-06-22  Bruno Haible  <bruno@clisp.org>
43195
43196         * doc/posix-functions/siginterrupt.texi: Move note.
43197
43198         * lib/signal.in.h (SA_RESTART): New macro.
43199         * lib/sigaction.c: Update comment.
43200
43201         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43202
43203         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43204         (gl_PREREQ_SIGPROCMASK): Invoke it.
43205         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43206
43207         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43208
43209         * lib/sigprocmask.c: Update a comment.
43210
43211 2008-06-21  Eric Blake  <ebb9@byu.net>
43212
43213         Use sigaction module rather than signal().
43214         * modules/c-stack (Depends-on): Add sigaction.
43215         * modules/fatal-signal (Depends-on): Likewise.
43216         * modules/nanosleep (Depends-on): Likewise.
43217         * modules/sigprocmask (Files): Add sig-handler.h.
43218         * modules/sigaction (Files): Likewise.
43219         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43220         Eggert.
43221         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43222         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43223         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43224         (init_fatal_signals): Likewise.
43225         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43226         (siginterrupt): Delete fallback.
43227         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43228         instead.
43229         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43230         siginterrupt.
43231
43232         New module sigaction, for mingw.
43233         * modules/sigaction: New module...
43234         * modules/sigaction-tests: ...and its test.
43235         * m4/sigaction.m4: New file.
43236         * lib/sigaction.c: Likewise.
43237         * tests/test-sigaction.c: Likewise.
43238         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43239         * modules/signal (Makefile.am): Likewise.
43240         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43241         needed.
43242         * doc/posix-headers/signal.texi (signal.h): Mention provided
43243         types.
43244         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43245         that sigaction is preferable.
43246         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43247         module.
43248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43249         sigaction.
43250
43251         Improve robustness of sigprocmask by overriding signal.
43252         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43253         is in use.
43254         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43255         (SIGKILL, SIGSTOP): Provide fallbacks.
43256         (rpl_signal): Implement.
43257         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43258         signal can be called inside handlers.
43259
43260         Fix nanosleep module on mingw.
43261         * modules/nanosleep (Depends-on): Add sys_select.
43262         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43263
43264         Fix licensing of sigprocmask.
43265         * modules/raise (License): Relicense as LGPL.
43266
43267 2008-06-21  Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43270         result if it contains question marks.
43271         Reported by Michael Geng <linux@michaelgeng.de>.
43272
43273 2008-06-19  Bruno Haible  <bruno@clisp.org>
43274
43275         Fix CVS-ism.
43276         * doc/gnulib.texi: Include updated-stamp.texi.
43277         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43278         (updated-stamp.texi): New rule.
43279         (gnulib.info): Depend on it.
43280         * doc/.gitignore: Add updated-stamp.texi.
43281         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43282
43283 2008-06-19  Bruno Haible  <bruno@clisp.org>
43284
43285         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43286         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43287
43288 2008-06-19  Eric Blake  <ebb9@byu.net>
43289
43290         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43291         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43292         Reported by Stepan Kasal.
43293
43294 2008-06-18  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43297         Reported by Eric Blake.
43298
43299 2008-06-18  Eric Blake  <ebb9@byu.net>
43300
43301         Work around cygwin 1.5.25 strsignal bug.
43302         * tests/test-strsignal.c: Allow for const char *.
43303         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43304
43305 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43306
43307         * users.txt: Update URL to article and add author/date
43308         information.
43309
43310 2008-06-17  Bruno Haible  <bruno@clisp.org>
43311
43312         New macro gl_DISABLE_THREADS.
43313         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43314         if the user did not pass --enable-threads or --disable-threads option.
43315         (gl_DISABLE_THREADS): New macro.
43316         Reported by Eric Blake <ebb9@byu.net>.
43317
43318 2008-06-17  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43321         when the macro ignores it.
43322         Based on a patch by Eric Blake <ebb9@byu.net>.
43323
43324 2008-06-17  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/tls (License): Change to LGPLv2+.
43327         Reported by Eric Blake.
43328
43329 2008-06-17  Eric Blake  <ebb9@byu.net>
43330
43331         Simplify c-stack prerequisites.
43332         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43333         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43334         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43335         check.
43336         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43337         <sys/resource.h>.
43338
43339         Move c-stack test into testsuite.
43340         * modules/c-stack-tests: New file.
43341         * lib/c-stack.c [DEBUG]: Move test program...
43342         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43343         fail test if sigaltstack is lacking.
43344         * tests/test-c-stack.sh: New driver file.
43345
43346 2008-06-16  Eric Blake  <ebb9@byu.net>
43347
43348         Use raise module consistently.
43349         * modules/fatal-signal (Depends-on): Add raise.
43350         * modules/sigprocmask (Depends-on): Likewise.
43351         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43352         * lib/sigprocmask.c (sigprocmask): Likewise.
43353         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43354         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43355
43356         Fix compliance bug in sigpending.
43357         * lib/sigprocmask.c (sigpending): Return pending array via
43358         parameter, not return value.
43359
43360 2008-06-14  Eric Blake  <ebb9@byu.net>
43361
43362         Improve obstack-printf test code.
43363         * tests/test-obstack-printf.c (test_function): Fix comment, and
43364         simplify usage of obstack_* in macros.  Add a test for coverage.
43365         Reported by Bruno Haible.
43366
43367 2008-06-14  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43370         array size as a constant, not as a const variable.
43371         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43372         AC_USE_SYSTEM_EXTENSIONS.
43373         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43374         Test whether the obstack_printf function actually exists.
43375         * modules/obstack-printf (Depends-on): Add extensions.
43376         (Include): Remove obstack.h.
43377         * modules/obstack-printf-posix (Depends-on): Add extensions.
43378         (Include): Remove obstack.h.
43379
43380 2008-06-13  Eric Blake  <ebb9@byu.net>
43381
43382         Add obstack-printf and obstack-printf-posix modules.
43383         * modules/obstack-printf: New file.
43384         * modules/obstack-printf-posix: Likewise.
43385         * MODULES.html.sh (Misc): Mention them.
43386         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43387         Likewise.
43388         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43389         Likewise.
43390         * modules/stdio (Makefile.am): Accomodate new modules.
43391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43392         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43393         Declare.
43394         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43395         functions.
43396         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43397         (gl_REPLACE_OBSTACK_PRINTF): New macros
43398         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43399         * tests/test-obstack-printf.c: New file.
43400         * modules/obstack-printf-tests: Likewise.
43401         * modules/obstack-printf-posix-tests: Likewise.
43402
43403 2008-06-11  Bruno Haible  <bruno@clisp.org>
43404
43405         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43406         * lib/open.c: Include errno.h.
43407         (open): Fail when attempting to write to a file that has a trailing
43408         slash.
43409         * tests/test-open.c (main): Test against trailing slash bug.
43410         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43411
43412 2008-06-10  Bruno Haible  <bruno@clisp.org>
43413
43414         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43415         for $? to work inside the trap command, with various /bin/sh-s.
43416         * tests/test-vc-list-files-cvs.sh: Likewise.
43417
43418 2008-06-10  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/acl-internal.h: Don't include gettext.h here.
43421         * lib/set-mode-acl.c: Include gettext.h here.
43422         * lib/copy-acl.c: Likewise.
43423
43424 2008-06-10  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43427         * lib/wait-process.c (wait_subprocess): Likewise.
43428         * lib/execute.h (execute): Add termsigp argument.
43429         * lib/execute.c (execute): Likewise.
43430         * lib/csharpcomp.c (compile_csharp_using_pnet,
43431         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43432         * lib/csharpexec.c (execute_csharp_using_pnet,
43433         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43434         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43435         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43436         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43437         is_jikes_present): Update.
43438         * lib/javaexec.c (execute_java_class): Update.
43439         * lib/javaversion.c (execute_and_read_line): Update.
43440         * NEWS: Document the changes.
43441         Reported by Eric Blake.
43442
43443 2008-06-10  Eric Blake  <ebb9@byu.net>
43444
43445         Add missing include.
43446         * tests/test-strstr.c (includes): Add <signal.h>.
43447         * tests/test-strcasestr.c (includes): Likewise.
43448         * tests/test-memmem.c (includes): Likewise.
43449
43450 2008-06-10  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/wait-process.c (wait_subprocess): Add an assertion.
43453
43454 2008-06-10  Bruno Haible  <bruno@clisp.org>
43455
43456         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43457
43458 2008-06-10  Bruno Haible  <bruno@clisp.org>
43459
43460         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43461         using alarm().
43462         * tests/test-strcasestr.c (main): Likewise.
43463         * tests/test-strstr.c (main): Likewise.
43464
43465 2008-06-09  Bruno Haible  <bruno@clisp.org>
43466
43467         Work around the Solaris 10 ACE ACLs ABI change.
43468         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43469         declare if ACL_NO_TRIVIAL is present.
43470         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43471         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43472         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43473         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43474         define if ACL_NO_TRIVIAL is present.
43475         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43476         and use the current ABI.
43477         (file_has_acl): Use same #if condition as elsewhere.
43478         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43479         in use, and use the current ABI.
43480         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43481         Reported by Jim Meyering.
43482
43483 2008-06-09  Eric Blake  <ebb9@byu.net>
43484
43485         Work around environments that (stupidly) ignore SIGALRM.
43486         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43487         before using alarm().
43488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43489         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43490         Reported by Ian Beckwith <ianb@erislabs.net>.
43491
43492         Produce autobuild blurb earlier in log.
43493         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43494
43495 2008-06-09  Jim Meyering  <meyering@redhat.com>
43496         and Ondřej Vašík  <ovasik@redhat.com>
43497
43498         utimens.c: correct kernel bug work-around
43499         Ondřej Vašík found that the invalid return value of 280 indicates
43500         failure, not success, and the kernel bug we're trying to work
43501         around affects not just the utimensat call, but also the fallback
43502         futimens call.
43503         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43504         not success.
43505         [HAVE_FUTIMENS]: Use the same work-around, here.
43506
43507 2008-06-09  Jim Meyering  <meyering@redhat.com>
43508
43509         add more guards around definition of ACE_-related code
43510         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43511         ALLOW and ACE_OWNER are also defined.
43512
43513 2008-06-08  Bruno Haible  <bruno@clisp.org>
43514
43515         * lib/acl-internal.h: Add me as co-author.
43516         * lib/file-has-acl.c: Likewise.
43517         * lib/set-mode-acl.c: Likewise.
43518         * lib/copy-acl.c: Likewise.
43519
43520 2008-06-08  Bruno Haible  <bruno@clisp.org>
43521
43522         Add support for AIX ACLs.
43523         * lib/acl-internal.h (acl_nontrivial): New declaration.
43524         * lib/file-has-acl.c (acl_nontrivial): New function.
43525         (file_has_acl): Add implementation using AIX 4 ACL API.
43526         * lib/set-mode-acl.c (qset_acl): Likewise.
43527         * lib/copy-acl.c (qcopy_acl): Likewise.
43528
43529 2008-06-08  Bruno Haible  <bruno@clisp.org>
43530
43531         Add support for HP-UX ACLs.
43532         * lib/acl-internal.h (acl_nontrivial): New declaration.
43533         * lib/file-has-acl.c (acl_nontrivial): New function.
43534         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43535         * lib/set-mode-acl.c (qset_acl): Likewise.
43536         * lib/copy-acl.c (qcopy_acl): Likewise.
43537
43538 2008-06-08  Bruno Haible  <bruno@clisp.org>
43539
43540         Add support for Cygwin ACLs.
43541         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43542         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43543         the chmod_or_fchmod call.
43544         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43545
43546 2008-06-08  Bruno Haible  <bruno@clisp.org>
43547
43548         Fix bug with setuid modes in Solaris 10+ code.
43549         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43550         succeeded, when the mode contains some special bits.
43551
43552 2008-06-08  Bruno Haible  <bruno@clisp.org>
43553
43554         Add support for Solaris 7..10 ACLs.
43555         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43556         declarations.
43557         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43558         functions.
43559         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43560         * lib/set-mode-acl.c (qset_acl): Likewise.
43561         * lib/copy-acl.c (qcopy_acl): Likewise.
43562
43563 2008-06-08  Bruno Haible  <bruno@clisp.org>
43564
43565         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43566         declaration.
43567         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43568         (acl_access_nontrivial): Remove MacOS X case.
43569         (file_has_acl): Use acl_extended_nontrivial.
43570         * lib/copy-acl.c (qcopy_acl): Likewise.
43571
43572 2008-06-08  Bruno Haible  <bruno@clisp.org>
43573
43574         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43575
43576 2008-06-08  Jim Meyering  <meyering@redhat.com>
43577
43578         * modules/acl (Maintainer): Add Bruno Haible.
43579
43580 2008-06-07  Bruno Haible  <bruno@clisp.org>
43581
43582         Improve support for Tru64 ACLs.
43583         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43584         ACL on OSF/1.
43585
43586 2008-06-07  Bruno Haible  <bruno@clisp.org>
43587
43588         Add support for MacOS X ACLs.
43589         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43590         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43591         * lib/set-mode-acl.c (qset_acl): Likewise.
43592         * lib/copy-acl.c (qcopy_acl): Likewise.
43593
43594 2008-06-07  Bruno Haible  <bruno@clisp.org>
43595
43596         Fix memory leak introduced on 2008-05-22.
43597         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43598         use.
43599
43600 2008-06-07  Bruno Haible  <bruno@clisp.org>
43601
43602         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43603         to construct an empty ACL.
43604
43605 2008-06-07  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43608         precisely.
43609         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43610
43611 2008-06-07  Bruno Haible  <bruno@clisp.org>
43612
43613         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43614         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43615
43616 2008-06-07  Bruno Haible  <bruno@clisp.org>
43617
43618         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43619         regardless of POSIX.
43620         * doc/posix-functions/_longjmp.texi: Likewise.
43621         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43622         SystemV platform in this case.
43623
43624 2008-06-06  Eric Blake  <ebb9@byu.net>
43625
43626         Document abort() bugs.
43627         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43628
43629         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43630         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43631         sigsetjmp.
43632         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43633         siglongjmp, but only as a macro.
43634         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43635         is obsolete.
43636         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43637
43638         Tweak documentation to cover cygwin argz bugs.
43639         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43640         argz bug fix; no code change needed since no cygwin releases
43641         occurred between the last fix and the bug being tested.
43642         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43643         module and recently fixed cygwin bugs.
43644         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43645         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43646         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43647         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43648         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43649         Likewise.
43650         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43651         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43652         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43653         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43654         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43655         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43656         Likewise.
43657
43658         Avoid gcc warning on cygwin.
43659         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43660         !ACL_NO_TRIVIAL]: Avoid unused variable.
43661
43662 2008-06-05  Eric Blake  <ebb9@byu.net>
43663
43664         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43665         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43666         git-version-gen fails to come up with a version.
43667         Reported by Simon Josefsson.
43668
43669 2008-06-05  Jim Meyering  <meyering@redhat.com>
43670             Paul Eggert  <eggert@cs.ucla.edu>
43671
43672         utimens.c: work around a probable Linux kernel bug
43673         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43674         appears to be a kernel bug that causes utimensat to return 280
43675         instead of 0, indicating success.
43676
43677 2008-06-04  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43680         2008-06-01 commit.
43681
43682 2008-06-04  Bruno Haible  <bruno@clisp.org>
43683
43684         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43685         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43686         (file_has_acl): Use it. Save errno afterwards.
43687         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43688
43689 2008-06-03  Bruno Haible  <bruno@clisp.org>
43690
43691         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43692         draft code. Simplify #ifs.
43693         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43694         Put Solaris code after POSIX-draft code. Fix comments regarding
43695         Solaris 10, HP-UX. Mention Cygwin.
43696         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43697
43698 2008-06-03  Eric Blake  <ebb9@byu.net>
43699
43700         Provide fallback for older kernels.
43701         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43702         Provide runtime fallback if kernel lacks support.
43703         Reported by Mike Frysinger.
43704
43705 2008-06-02  Bruno Haible  <bruno@clisp.org>
43706
43707         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43708         it exists.
43709
43710 2008-06-02  Bruno Haible  <bruno@clisp.org>
43711
43712         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43713         * lib/copy-acl.c (qcopy_acl): Update comment.
43714
43715 2008-06-02  Bruno Haible  <bruno@clisp.org>
43716
43717         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43718         like ACL APIs.
43719
43720 2008-06-02  Bruno Haible  <bruno@clisp.org>
43721
43722         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43723         * tests/test-set-mode-acl.sh: Likewise.
43724         * tests/test-copy-acl.sh: Likewise.
43725         * tests/test-copy-file.sh: Likewise.
43726
43727 2008-06-02  Bruno Haible  <bruno@clisp.org>
43728
43729         * tests/test-file-has-acl.sh: Remove unused code.
43730
43731 2008-06-01  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43734         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43735         messages.
43736         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43737
43738 2008-06-01  Bruno Haible  <bruno@clisp.org>
43739
43740         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43741         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43742         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43743         APIs.
43744         * modules/acl-tests (configure.ac): Remove tests now contained in
43745         m4/acl.m4.
43746
43747 2008-06-02  Jim Meyering  <meyering@redhat.com>
43748
43749         announce-gen: use a better key-server host name
43750         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43751         it may be more consistently reliable.  Suggested by Werner Koch
43752         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43753
43754 2008-06-01  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43757         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43758
43759 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43760
43761         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43762
43763 2008-06-01  Bruno Haible  <bruno@clisp.org>
43764
43765         New ACL tests.
43766         * tests/test-file-has-acl.sh: New file.
43767         * tests/test-file-has-acl.c: New file.
43768         * tests/test-set-mode-acl.sh: New file.
43769         * tests/test-set-mode-acl.c: New file.
43770         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43771         * tests/test-copy-acl.c: New file.
43772         * modules/acl-tests: New file, based on modules/copy-file-tests.
43773         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43774         (Depends-on): Add acl-tests.
43775         (configure.ac): Remove checks.
43776         (Makefile.am): Don't create test-sameacls program here any more.
43777
43778 2008-06-01  Bruno Haible  <bruno@clisp.org>
43779
43780         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43781         * tests/test-sameacls.c: Include progname.h.
43782         (main): Invoke set_program_name. Portability fixes for MacOS X,
43783         Solaris, HP-UX.
43784
43785 2008-06-01  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43788         function.
43789         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43790
43791 2008-06-01  Bruno Haible  <bruno@clisp.org>
43792
43793         * modules/rpmatch (Depends-on): Add strdup.
43794
43795 2008-06-01  Bruno Haible  <bruno@clisp.org>
43796
43797         * lib/pipe.c: Include unistd-safer.h.
43798         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43799         * modules/pipe (Depends-on): Add unistd-safer.
43800
43801 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43802
43803         * modules/autobuild (configure.ac): Call AB_INIT.
43804
43805 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43806
43807         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43808         Suggested by Bruno Haible <bruno@clisp.org>.
43809
43810 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43811
43812         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43813         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43814         <bruno@clisp.org>.
43815
43816 2008-05-29  Eric Blake  <ebb9@byu.net>
43817
43818         Prefer new POSIX 200x interfaces over futimesat.
43819         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43820         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43821         when available.
43822         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43823
43824 2008-05-28  Bruno Haible  <bruno@clisp.org>
43825
43826         * modules/stpcpy (License): Change to LGPLv2+.
43827         Requested by David Lutterkort <dlutter@redhat.com>.
43828
43829 2008-05-27  Bruno Haible  <bruno@clisp.org>
43830
43831         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43832         current mingw.
43833         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43834
43835 2008-05-27  Bruno Haible  <bruno@clisp.org>
43836
43837         * modules/iconv_open (Link): New section, from module 'iconv'.
43838         * modules/striconv (Link): Likewise.
43839         * modules/striconveh (Link): Likewise.
43840         * modules/xstriconv (Link): Likewise.
43841         * modules/unicodeio (Link): Likewise.
43842         * modules/propername (Link): Likewise.
43843         Reported by Jim Meyering.
43844
43845 2008-05-26  Jim Meyering  <meyering@redhat.com>
43846
43847         sha256: do not artificially restrict buffer length to be < 2^32
43848         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43849         uint32_t to size_t.
43850         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43851         to match.
43852
43853         avoid unaligned access errors, e.g., on sparc
43854         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43855         direct access through a possibly-unaligned uint64* pointer.
43856         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43857         direct access through a possibly-unaligned uint32* pointer.
43858         Prompted by this patch from Tom "spot" Callaway:
43859         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43860
43861         sha512.c: fix typo in comment
43862         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43863
43864 2008-05-25  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43867         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43868         (Makefile.am): Update lib_SOURCES.
43869
43870 2008-05-25  Bruno Haible  <bruno@clisp.org>
43871
43872         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43873
43874 2008-05-25  Jim Meyering  <meyering@redhat.com>
43875
43876         useless-if-before-free: freed expr may have white-space differences
43877         * build-aux/useless-if-before-free: Recognize cases in which the
43878         freed expression differs from the tested one in embedded white
43879         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43880         $1 was used, so we can't make any regexp shy.  Improved tests now
43881         detect this.
43882
43883         useless-if-before-free: accept white space in the expression.
43884         * build-aux/useless-if-before-free: For now, any white space
43885         in the expression must be identical in the free argument.
43886
43887         useless-if-before-free: efficiency tweak
43888         * build-aux/useless-if-before-free: Make the expression-matching
43889         regexp "shy".
43890         Make the *outer* regexp shy, not the expr-matching one.
43891
43892         update code-in-comment to accept cast of free arg
43893         * build-aux/useless-if-before-free: Update regexp.
43894
43895 2008-05-25  Bruno Haible  <bruno@clisp.org>
43896
43897         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43898         * modules/copy-file-tests (Files, Makefile.am): Update.
43899         * tests/test-copy-file.c (func_test_copy): Update.
43900
43901 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43902
43903         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43904
43905 2008-05-23  Bruno Haible  <bruno@clisp.org>
43906
43907         Improve support for ACLs on OSF/1.
43908         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43909         Remove fallback for unknown flavors of ACLs.
43910
43911 2008-05-22  Bruno Haible  <bruno@clisp.org>
43912
43913         Add support for ACLs on OSF/1.
43914         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43915         replacements.
43916         (acl_free_text): New macro fallback.
43917         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43918         acl_free.
43919         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43920         acl_free_text function. Require AC_C_INLINE.
43921
43922 2008-05-22  Bruno Haible  <bruno@clisp.org>
43923
43924         Make copy_acl work on MacOS X 10.5.
43925         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43926         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43927         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43928         If MODE_INSIDE_ACL, don't assume that every system has the same text
43929         representation for ACLs as FreeBSD.
43930         * lib/copy-acl.c (copy_acl): Add support for platforms with
43931         !MODE_INSIDE_ACL.
43932         * lib/file-has-acl.c (file_has_acl): Likewise.
43933         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43934         FreeBSD, MacOS X, or IRIX, respectively.
43935
43936 2008-05-22  Bruno Haible  <bruno@clisp.org>
43937
43938         * lib/acl.h: Don't include <sys/acl.h>.
43939         (GETACLCNT): Move fallback to lib/acl-internal.h.
43940         * lib/acl-internal.h: Include <sys/acl.h> here.
43941         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43942
43943 2008-05-22  Bruno Haible  <bruno@clisp.org>
43944
43945         Split off copy_acl function to separate file.
43946         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43947         * lib/acl.c (copy_acl): Moved function to separate file.
43948         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43949         * modules/acl (Files): Add lib/copy-acl.c.
43950         (Makefiles.am): Augment lib_SOURCES.
43951
43952 2008-05-22  Bruno Haible  <bruno@clisp.org>
43953
43954         * modules/copy-file-tests: New file.
43955         * tests/test-copy-file.sh: New file.
43956         * tests/test-copy-file.c: New file.
43957         * tests/test-copy-file-sameacls.c: New file.
43958
43959 2008-05-22  Eric Blake  <ebb9@byu.net>
43960
43961         Avoid gcc warning.
43962         * tests/test-memcmp.c (main): Pass NULL indirectly.
43963
43964 2008-05-21  Bruno Haible  <bruno@clisp.org>
43965
43966         Add reference doc about ACLs.
43967         * doc/acl-resources.txt: New file.
43968         * doc/acl-cygwin.txt: New file.
43969
43970 2008-05-21  Bruno Haible  <bruno@clisp.org>
43971
43972         Avoid one more warning from gcc.
43973         * lib/vasnprintf.c (IF_LINT): Update comments.
43974         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43975
43976 2008-05-21  Jim Meyering  <meyering@redhat.com>
43977
43978         avoid a warning from gcc
43979         * lib/vasnprintf.c (IF_LINT): Define.
43980         (scale10_round_decimal_long_double):
43981         Use it to avoid a "may be used uninitialized" warning.
43982         (scale10_round_decimal_double): Likewise.
43983
43984 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43985
43986         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43987         declared.
43988
43989 2008-05-20  Bruno Haible  <bruno@clisp.org>
43990
43991         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43992         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43993
43994 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43995
43996         * modules/memcmp-tests: New file.
43997         * tests/test-memcmp.c: New file.
43998
43999 2008-05-19  Bruno Haible  <bruno@clisp.org>
44000
44001         * modules/propername (Notice, configure.ac): Put quoted "..." into
44002         --keyword option.
44003         * lib/propername.h: Update comments accordingly.
44004         Reported by Eric Blake.
44005
44006 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44007
44008         * modules/getpass-gnu (Depends-on): Add fseeko.
44009
44010 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44011
44012         * modules/base64-tests: New file.
44013
44014 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44015
44016         * lib/base64.c (base64_decode_ctx): If a decode context structure
44017         was passed in use it to ignore newlines.  If a context structure
44018         was _not_ passed in, continue to treat newlines as garbage (this
44019         is the historical behavior).  Formerly base64_decode.
44020         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44021         takes a decode context structure.
44022         * lib/base64.h (base64_decode): Macro for four-argument calls.
44023         (base64_decode_alloc): Likewise.
44024         * lib/base64.c (base64_decode_ctx): If a decode context structure
44025         was passed in use it to ignore newlines.  If a context structure
44026         was _not_ passed in, continue to treat newlines as garbage (this
44027         is the historical behavior).  Formerly base64_decode.
44028         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44029         takes a decode context structure.
44030         * lib/base64.h (base64_decode): Macro for four-argument calls.
44031         (base64_decode_alloc): Likewise.
44032
44033 2008-05-19  Jim Meyering  <meyering@redhat.com>
44034
44035         avoid a warning from gcc
44036         * lib/trim.c (IF_LINT): Define.
44037         (trim2): Use it to avoid a "may be used uninitialized" warning.
44038
44039         Fix doc typo.
44040         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44041
44042 2008-05-19  Bruno Haible  <bruno@clisp.org>
44043
44044         * doc/glibc-functions/getpass.texi: Document limits of other
44045         implementations.
44046
44047 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44048             Bruno Haible <bruno@clisp.org>
44049
44050         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44051
44052 2008-05-18  Bruno Haible  <bruno@clisp.org>
44053
44054         * modules/propername: New file, from GNU gettext.
44055         * lib/propername.h: New file, from GNU gettext.
44056         * lib/propername.c: New file, from GNU gettext.
44057         * MODULES.html.sh (Internationalization functions): Add propername.
44058
44059 2008-05-16  Jim Meyering  <meyering@redhat.com>
44060             Bruno Haible  <bruno@clisp.org>
44061
44062         Avoid some warnings from "gcc -Wshadow".
44063         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44064
44065 2008-05-15  Eric Blake  <ebb9@byu.net>
44066
44067         Extend previous patch to cygwin 1.7.0.
44068         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44069         fast implementation in cygwin >= 1.7.0.
44070         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44071         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44072
44073 2008-05-15  Bruno Haible  <bruno@clisp.org>
44074
44075         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44076         implementation in glibc >= 2.9.
44077         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44079
44080 2008-05-15  Bruno Haible  <bruno@clisp.org>
44081
44082         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44083         (Unicode string functions): Add unilbrk/*.
44084         Reported by Karl Berry.
44085
44086 2008-05-15  Eric Blake  <ebb9@byu.net>
44087
44088         Fix violation of <stdbool.h> replacement in regex.
44089         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44090         * lib/regexec.c (re_search_internal): Likewise.
44091         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44092
44093 2008-05-15  Jim Meyering  <meyering@redhat.com>
44094
44095         avoid distracting test output when git or cvs is not found
44096         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44097         * tests/test-vc-list-files-git.sh: Likewise.
44098
44099 2008-05-15  Eric Blake  <ebb9@byu.net>
44100
44101         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44102         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44103         glibc version.
44104         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44105         * doc/posix-functions/strstr.texi (strstr): Likewise.
44106         * lib/str-two-way.h (MAX): Sychronize with glibc.
44107
44108 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44109
44110         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44111         opr.ctx_type.
44112         (calc_first): Initialize constraint field.
44113         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44114         Fix grammar.
44115         (duplicate_node): Merge constraint field for all node types.
44116         (calc_eclosure_iter): Look at constraint field for all node types.
44117         * lib/regex_internal.c (create_cd_newstate): Don't look at
44118         opr.ctx_type.
44119
44120 2008-05-14  Bruno Haible  <bruno@clisp.org>
44121
44122         Help GCC to do better code generation.
44123         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44124         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44125         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44126         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44127         Declare with attribute 'malloc' if supported.
44128
44129 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44130
44131         use "echo STR|wc -c" rather than unportable "expr length STR"
44132         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44133         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44134
44135 2008-05-14  Jim Meyering  <meyering@redhat.com>
44136
44137         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44138         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44139         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44140         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44141         via Collin Lasse.
44142
44143 2008-05-14  Eric Blake  <ebb9@byu.net>
44144
44145         Avoid quadratic growth in gl_LIBSOURCES.
44146         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44147         Suggested by Bruno Haible.
44148
44149         Test xmemdup0.
44150         * modules/xmemdup0-tests: New file.
44151         * tests/test-xmemdup0.c: Likewise.
44152
44153 2008-05-13  Eric Blake  <ebb9@byu.net>
44154
44155         Split xmemdup0 into its own module.
44156         * modules/xmemdup0: New file.
44157         * lib/xmemdup0.h: Likewise.
44158         * lib/xmemdup0.c: Likewise.
44159         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44160         * lib/xalloc.h (xmemdup0): Remove.
44161         * lib/xmalloc.c (xmemdup0): Likewise.
44162
44163 2008-05-13  Eric Blake  <ebb9@byu.net>
44164             Bruno Haible  <bruno@clisp.org>
44165
44166         Reduce number of forks required during autoconf.
44167         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44168         and gl_LIBSOURCES_DIR.
44169         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44170         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44171         m4_syscmd per file.
44172         <m4_foreach_w>: Move...
44173         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44174
44175 2008-05-13  Eric Blake  <ebb9@byu.net>
44176
44177         * gnulib-tool: Fix various comment typos.
44178
44179 2008-05-12  Bruno Haible  <bruno@clisp.org>
44180
44181         Tailor the linebreaking algorithm.
44182         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44183
44184 2008-05-12  Bruno Haible  <bruno@clisp.org>
44185
44186         Update to Unicode 5.0.0.
44187         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44188         LBP_JV, LBP_JT. Redistribute values.
44189         (unilbrk_table): Change size.
44190         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44191         Unicode TR#14 rev. 22.
44192         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44193         LBP_JV, LBP_JT. Redistribute values.
44194         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44195         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44196         Update.
44197         * lib/unilbrk/lbrkprop1.h: Regenerated.
44198         * lib/unilbrk/lbrkprop2.h: Regenerated.
44199         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44200         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44201         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44202         Likewise.
44203         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44204         Likewise.
44205         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44206         result.
44207         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44208         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44209         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44210         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44211         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44212         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44213
44214 2008-05-11  Bruno Haible  <bruno@clisp.org>
44215
44216         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44217
44218 2008-05-11  Bruno Haible  <bruno@clisp.org>
44219
44220         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44221         * modules/unilbrk/gen-lbrk: New file.
44222
44223 2008-05-11  Bruno Haible  <bruno@clisp.org>
44224
44225         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44226         * m4/sha512.m4 (gl_SHA512): Likewise.
44227
44228 2008-05-11  Jim Meyering  <meyering@redhat.com>
44229
44230         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44231         * modules/crypto/sha256: New file.
44232         * modules/crypto/sha512: Likewise.
44233         * lib/sha256.c: Likewise.
44234         * lib/sha256.h: Likewise.
44235         * lib/sha512.c: Likewise.
44236         * lib/sha512.h: Likewise.
44237         * lib/u64.h: Likewise.
44238         * m4/sha256.m4: Likewise.
44239         * m4/sha512.m4: Likewise.
44240         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44241
44242 2008-05-10  Bruno Haible  <bruno@clisp.org>
44243
44244         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44245         (Input/Output <stdio.h>): Add xprintf.
44246         (Signal handling <signal.h>): Add strsignal.
44247         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44248         (Core language properties): Add func.
44249         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44250         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44251         strings.
44252         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44253         (Input/output): New section.
44254         (File system functions): Add openat-die, stat-macros.
44255         (Networking functions): Add sockets.
44256         (Unicode string functions): Add unictype/*.
44257         (Support for building libraries and executables): Add gperf.
44258         (Support for building documentation): Add agpl-3.0.
44259         (Misc): Add nocrash.
44260
44261 2008-05-10  Bruno Haible  <bruno@clisp.org>
44262
44263         * modules/unictype/gen-ctype: New file.
44264
44265 2008-05-10  Jim Meyering  <meyering@redhat.com>
44266
44267         Make chdir-safer.c more efficient on a system with no symlinks.
44268         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44269         also if ELOOP is zero.  Suggested by Bruno Haible.
44270
44271         Make chdir-safer.c slightly safer.
44272         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44273         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44274
44275         Avoid compile failure on systems without ELOOP (like mingw).
44276         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44277         Reported by Bruno Haible.
44278
44279 2008-05-10  Bruno Haible  <bruno@clisp.org>
44280
44281         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44282         (is_utf8_encoding): Use a case-insensitive comparison.
44283         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44284         streq.
44285
44286 2008-05-10  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44289         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44290         * lib/unilbrk/ulc-common.h (iconv_string_length,
44291         iconv_string_keeping_offsets): Remove declarations.
44292         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44293         Don't include <iconv.h>, streq.h, xsize.h.
44294         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44295         conversion.
44296         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44297         <iconv.h>, streq.h, xsize.h.
44298         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44299         conversion.
44300         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44301         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44302         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44303         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44304
44305 2008-05-10  Bruno Haible  <bruno@clisp.org>
44306
44307         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44308         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44309
44310         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44311         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44312
44313         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44314         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44315
44316         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44317         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44318
44319         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44320         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44321
44322         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44323         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44324
44325         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44326         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44327
44328         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44329         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44330
44331 2008-05-10  Bruno Haible  <bruno@clisp.org>
44332
44333         Split up 'linebreak' module.
44334         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44335         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44336         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44337         modifications.
44338         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44339         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44340         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44341         lib/linebreak.c.
44342         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44343         lib/linebreak.c.
44344         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44345         lib/linebreak.c.
44346         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44347         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44348         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44349         lib/linebreak.c.
44350         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44351         lib/linebreak.c.
44352         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44353         lib/linebreak.c.
44354         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44355         lib/linebreak.c.
44356         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44357         lib/linebreak.c.
44358         * modules/unilbrk/base: New file.
44359         * modules/unilbrk/tables: New file.
44360         * modules/unilbrk/u8-possible-linebreaks: New file.
44361         * modules/unilbrk/u16-possible-linebreaks: New file.
44362         * modules/unilbrk/u32-possible-linebreaks: New file.
44363         * modules/unilbrk/ulc-common: New file.
44364         * modules/unilbrk/ulc-possible-linebreaks: New file.
44365         * modules/unilbrk/u8-width-linebreaks: New file.
44366         * modules/unilbrk/u16-width-linebreaks: New file.
44367         * modules/unilbrk/u32-width-linebreaks: New file.
44368         * modules/unilbrk/ulc-width-linebreaks: New file.
44369         * lib/linebreak.h: Remove file.
44370         * lib/linebreak.c: Remove file.
44371         * m4/linebreak.m4: Remove file.
44372         * modules/linebreak: Remove file.
44373         * NEWS: Mention the changes.
44374
44375 2008-05-09  Eric Blake  <ebb9@byu.net>
44376
44377         Add xmemdup0.
44378         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44379         implementation.
44380         * lib/xmalloc.c (xmemdup0): New C implementation.
44381
44382 2008-05-08  Bruno Haible  <bruno@clisp.org>
44383
44384         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44385
44386 2008-05-07  Eric Blake  <ebb9@byu.net>
44387
44388         Support cross-compilation of <wctype.h>.
44389         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44390         AC_CACHE_CHECK.
44391
44392 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44393
44394         * build-aux/vc-list-files: Add support for bzr.
44395
44396 2008-05-03  Jim Meyering  <meyering@redhat.com>
44397
44398         avoid failed assertion with tight malloc
44399         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44400
44401 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44402
44403         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44404         are needed from arpa/inet.h.
44405         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44406         Reported by Bruno Haible.
44407
44408 2008-05-02  Jim Meyering  <meyering@redhat.com>
44409
44410         avoid compilation error on FreeBSD 6
44411         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44412
44413 2008-05-01  Jim Meyering  <meyering@redhat.com>
44414
44415         useless-if-before-free: correct --help's exit status description
44416         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44417         for one or more matches, etc.  Reported by Bruno Haible.
44418
44419         vc-list-files: make the stand-alone gnulib test work
44420         * modules/vc-list-files-tests (configure.ac):
44421         Define and AC_SUBST abs_aux_dir.
44422         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44423         $(abs_top_srcdir) to each script and having each of them
44424         duplicate the work of setting PATH, set PATH here, using
44425         the new variable, abs_aux_dir instead.
44426         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44427         * tests/test-vc-list-files-git.sh: Likewise.
44428         Reported by Bruno Haible.
44429
44430 2008-05-01  Bruno Haible  <bruno@clisp.org>
44431
44432         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44433         reallocation. Rename 'done' to 'found_delimiter'.
44434
44435 2008-05-01  Jim Meyering  <meyering@redhat.com>
44436
44437         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44438         * build-aux/vc-list-files: Use `...`, not $(...).
44439
44440 2008-04-30  Jim Meyering  <meyering@redhat.com>
44441
44442         add tests for vc-list-files
44443         * modules/vc-list-files-tests: New module.
44444         * tests/test-vc-list-files-cvs.sh: New file.
44445         * tests/test-vc-list-files-git.sh: New file.
44446
44447         avoid a warning from gcc
44448         * lib/getndelim2.c (IF_LINT): Define.
44449         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44450
44451         vc-list-files: work properly with build-aux/cvsu, too
44452         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44453         to all cvs-based clauses.
44454
44455         vc-list-files: work properly in the CVS+awk case, too
44456         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44457
44458         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44459         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44460         take more than one file argument, so .  Add quotes, just in case $dir
44461         ever contains a shell meta-character.  Prompted by Soren Hansen in
44462         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44463
44464 2008-04-29  Eric Blake  <ebb9@byu.net>
44465
44466         Optimize getndelim2 to use block operations when possible.
44467         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44468         freadseek, and memchr2.
44469         * lib/getndelim2.c (getndelim2): Use them for block reads.
44470
44471 2008-04-29  Bruno Haible  <bruno@clisp.org>
44472
44473         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44474         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44475         * modules/inet_ntop (Depends-on): Add extensions.
44476         * modules/inet_pton (Depends-on): Likewise.
44477         Reported by Simon Josefsson.
44478
44479 2008-04-29  Jim Meyering  <meyering@redhat.com>
44480
44481         When the is more than one match in a block, match all of them.
44482         * build-aux/useless-if-before-free: Iterate through each block
44483         until there are no more matches.
44484
44485         Fix broken useless-if-before-free script.
44486         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44487         the expression to match cast of argument to free-like function.
44488
44489 2008-04-29  Eric Blake  <ebb9@byu.net>
44490
44491         Use new header.
44492         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44493
44494 2008-04-29  Jim Meyering  <meyering@redhat.com>
44495
44496         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44497         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44498         by gnulib to exist and to declare e.g., inet_ntop.
44499         Don't include "inet_ntop.h", now removed.
44500
44501         * m4/arpa_inet_h.m4: Remove trailing blanks.
44502
44503 2008-04-29  Eric Blake  <ebb9@byu.net>
44504
44505         Silence valgrind on safe reads beyond potential array bounds.
44506         * lib/rawmemchr.valgrind: New file.
44507         * lib/strchrnul.valgrind: Likewise.
44508         * modules/rawmemchr (Files): Distribute new file.
44509         * modules/strchrnul (Files): Likewise.
44510         Suggested by Bruno Haible.
44511
44512 2008-04-29  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44515         (inet_ntop, inet_pton): Change portability warning's wording.
44516         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44517         Invoke gl_CHECK_NEXT_HEADERS.
44518         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44519         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44520         set ARPA_INET_H.
44521         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44522         * modules/arpa_inet (Description): No longer only for systems that
44523         lack it.
44524         (Depends-on): Add include_next.
44525         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44526         HAVE_ARPA_INET_H.
44527
44528 2008-04-29  Jim Meyering  <meyering@redhat.com>
44529
44530         * modules/mkdir (License): Re-license as LGPLv2+.
44531
44532 2008-04-29  Bruno Haible  <bruno@clisp.org>
44533
44534         * modules/rawmemchr (Maintainer): Set to Eric.
44535         * modules/strchrnul (Maintainer): Likewise.
44536
44537 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44538
44539         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44540         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44541
44542         * modules/arpa_inet (arpa/inet.h): Use them.
44543
44544 2008-04-28  Eric Blake  <ebb9@byu.net>
44545
44546         Test getndelim2.
44547         * modules/getndelim2-tests: New file.
44548         * tests/test-getndelim2.c: Likewise.
44549         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44550         stream.
44551         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44552
44553         * MODULES.html.sh: Document new module.
44554
44555 2008-04-20  Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/c-stack.c (die): Use raise.
44558         * modules/c-stack (Depends-on): Add raise.
44559
44560 2008-04-28  Bruno Haible  <bruno@clisp.org>
44561
44562         Expect rpmatch to be declared.
44563         * lib/yesno.c (rpmatch): Remove declaration.
44564
44565         Declare rpmatch.
44566         * lib/stdlib.in.h (rpmatch): New declaration.
44567         * lib/rpmatch.c: Include <stdlib.h> first.
44568         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44569         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44571         HAVE_RPMATCH.
44572         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44573         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44574         (Include): Set to <stdlib.h>.
44575         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44576         HAVE_RPMATCH.
44577         * NEWS: Document the change.
44578
44579 2008-04-28  Bruno Haible  <bruno@clisp.org>
44580
44581         Change rpmatch to use nl_langinfo when appropriate.
44582         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44583         (N_): New macro.
44584         (localized_pattern): New function/macro.
44585         (try): Remove match, nomatch arguments. Copy the pattern into safe
44586         memory before caching it.
44587         (rpmatch): Use localized_pattern. Add translator comments.
44588         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44589         Suggested by Eric Blake.
44590         * modules/rpmatch (Depends-on): Add stdbool.
44591
44592 2008-04-28  Eric Blake  <ebb9@byu.net>
44593
44594         Add rawmemchr module, matching glibc.
44595         * modules/string (Makefile.am): New indicator.
44596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44597         * lib/string.in.h (rawmemchr): Declare when appropriate.
44598         * modules/rawmemchr: New file.
44599         * m4/rawmemchr.m4: Likewise.
44600         * lib/rawmemchr.c: Likewise.
44601         * modules/rawmemchr-tests: Likewise.
44602         * tests/test-rawmemchr.c: Likewise.
44603         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44604         module.
44605         * modules/strchrnul (Depends-on): Add rawmemchr.
44606         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44607
44608         Whitespace cleanup.
44609         * tests/test-strchrnul.c: Reindent.
44610         * lib/strchrnul.c: Likewise.
44611
44612         Optimize and test strchrnul.
44613         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44614         * modules/strchrnul-tests: New file.
44615         * tests/test-strchrnul.c: Likewise.
44616
44617         Remove intprops dependency.
44618         * modules/memchr (Depends-on): Remove intprops.
44619         * modules/memrchr (Depends-on): Likewise.
44620         * modules/memchr2 (Depends-on): Likewise.
44621         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44622         * lib/memrchr.c (__memrchr): Likewise.
44623         * lib/memrchr2.c (memchr2): Likewise.
44624         Reported by Simon Josefsson.
44625
44626 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44627
44628         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44629         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44630
44631 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44632
44633         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44634
44635         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44636
44637         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44638
44639         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44640         declarations.
44641         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44642
44643         * m4/inet_pton.m4: Don't check for header files.
44644
44645         * m4/inet_ntop.m4: Don't check for header files.
44646
44647 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44648
44649         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44650         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44651         trigger for cygwin).
44652         Reported by Bruno Haible  <bruno@clisp.org>.
44653
44654 2008-04-28  Bruno Haible  <bruno@clisp.org>
44655
44656         * doc/posix-functions/strdup.texi: Mention mingw problem.
44657
44658 2008-04-27  Bruno Haible  <bruno@clisp.org>
44659
44660         * modules/stat-time-tests (Depends-on): Add sleep.
44661         * tests/test-stat-time.c (force_unlink): New function.
44662         (cleanup): Use it.
44663         (test_mtime): Remove the ctime related tests.
44664         (test_ctime): New function, containing the ctime related tests.
44665         (main): Call test_ctime, except on native Windows platforms.
44666
44667 2008-04-27  Bruno Haible  <bruno@clisp.org>
44668
44669         * lib/rpmatch.c (rpmatch): Add some comments.
44670         Reported by James Youngman <jay@gnu.org>.
44671
44672 2008-04-27  Bruno Haible  <bruno@clisp.org>
44673
44674         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44675         quiet NaNs.
44676
44677 2008-04-27  Bruno Haible  <bruno@clisp.org>
44678
44679         Make test-yesno.sh work on mingw.
44680         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44681         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44682         (main): Set stdin to binary mode.
44683         * modules/yesno-tests (Depends-on): Add binary-io.
44684
44685 2008-04-27  Bruno Haible  <bruno@clisp.org>
44686
44687         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44688         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44689         argument that lie outside the IEEE 854 domain.
44690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44691         (gl_ISFINITE): Use it.
44692         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44693
44694 2008-04-27  Bruno Haible  <bruno@clisp.org>
44695
44696         Allow local renaming in config.h.
44697         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44698
44699 2008-04-27  Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/memchr.c (__memchr): Change type of 'i'.
44702         * lib/memchr2.c (memchr2): Likewise.
44703
44704 2008-04-26  Eric Blake  <ebb9@byu.net>
44705         and Bruno Haible  <bruno@clisp.org>
44706
44707         Optimize and test memrchr.
44708         * modules/memrchr (Depends-on): Add intprops.
44709         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44710         * modules/memrchr-tests: New file.
44711         * tests/test-memrchr.c: New file.
44712
44713 2008-04-26  Bruno Haible  <bruno@clisp.org>
44714
44715         Add tentative support for DragonFly BSD.
44716         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44717         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44718         fp.
44719         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44720         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44721         * lib/fpurge.c (fpurge): Likewise.
44722         * lib/freadable.c (freaadable): Likewise.
44723         * lib/freadahead.c (freadahead): Likewise.
44724         * lib/freading.c (freading): Likewise.
44725         * lib/freadptr.c (freadptr): Likewise.
44726         * lib/freadseek.c (freadptrinc): Likewise.
44727         * lib/fseeko.c (fseeko): Likewise.
44728         * lib/fseterr.c (fseterr): Likewise.
44729         * lib/fwritable.c (fwritable): Likewise.
44730         * lib/fwriting.c (fwriting): Likewise.
44731
44732 2008-04-26  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/stdio-impl.h: New file.
44735         * lib/fbufmode.c: Include stdio-impl.h.
44736         (fbufmode): Use fp_, remove redundant #defines.
44737         * lib/fflush.c: Include stdio-impl.h.
44738         (clear_ungetc_buffer): Remove redundant #defines.
44739         * lib/fpurge.c: Include stdio-impl.h.
44740         (fpurge): Remove redundant #defines.
44741         * lib/freadable.c: Include stdio-impl.h.
44742         (freadable): Remove redundant #defines.
44743         * lib/freadahead.c: Include stdio-impl.h.
44744         (freadahead): Remove redundant #defines.
44745         * lib/freading.c: Include stdio-impl.h.
44746         (freading): Remove redundant #defines.
44747         * lib/freadptr.c: Include stdio-impl.h.
44748         (freadptr): Remove redundant #defines.
44749         * lib/freadseek.c: Include stdio-impl.h.
44750         (freadptrinc): Remove redundant #defines.
44751         * lib/fseeko.c: Include stdio-impl.h.
44752         (rpl_fseeko): Remove redundant #defines.
44753         * lib/fseterr.c: Include stdio-impl.h.
44754         (fseterr): Remove redundant #defines.
44755         * lib/fwritable.c: Include stdio-impl.h.
44756         (fwritable: Remove redundant #defines.
44757         * lib/fwriting.c: Include stdio-impl.h.
44758         (fwriting): Remove redundant #defines.
44759         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44760         * modules/fflush (Files): Likewise.
44761         * modules/fpurge (Files): Likewise.
44762         * modules/freadable (Files): Likewise.
44763         * modules/freadahead (Files): Likewise.
44764         * modules/freading (Files): Likewise.
44765         * modules/freadptr (Files): Likewise.
44766         * modules/freadseek (Files): Likewise.
44767         * modules/fseeko (Files): Likewise.
44768         * modules/fseterr (Files): Likewise.
44769         * modules/fwritable (Files): Likewise.
44770         * modules/fwriting (Files): Likewise.
44771
44772 2008-04-26  Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44775         restore_seek_optimization, update_fpos_cache): New functions, extracted
44776         from rpl_fflush.
44777         (rpl_fflush): Use them.
44778         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44779         (gl_REPLACE_FFLUSH): Use it.
44780
44781 2008-04-26  Bruno Haible  <bruno@clisp.org>
44782
44783         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44784         on Solaris.
44785         * tests/test-xstrtoimax.sh: Likewise.
44786         * tests/test-xstrtoumax.sh: Likewise.
44787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44788
44789 2008-04-26  Bruno Haible  <bruno@clisp.org>
44790
44791         * modules/memchr-tests: New file.
44792         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44793
44794 2008-04-26  Eric Blake  <ebb9@byu.net>
44795             Bruno Haible  <bruno@clisp.org>
44796
44797         * lib/memchr.c: Include intprops.h.
44798         (__memchr): Optimize parallel detection of matching bytes. Rename local
44799         variables. Add explanatory comments.
44800
44801 2008-04-26  Bruno Haible  <bruno@clisp.org>
44802
44803         Fix module 'memchr', broken since 2000-10-28.
44804         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44805
44806 2008-04-26  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44809         comments.
44810
44811 2008-04-25  Eric Blake  <ebb9@byu.net>
44812
44813         Use native fstatat on cygwin 1.7.0.
44814         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44815         first.
44816
44817 2008-04-23  Eric Blake  <ebb9@byu.net>
44818
44819         Improve memchr2 performance.
44820         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44821         NUL bytes.
44822         * modules/memchr2 (Depends-on): Use intprops.h.
44823
44824 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44825
44826         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44827         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44828         <blp@cs.stanford.edu>.
44829
44830 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44831
44832         * lib/arpa_inet.in.h: New file.
44833
44834         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44835         (Makefile.am): Sed in substitute header file.
44836
44837         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44838         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44839
44840         * modules/inet_ntop (configure.ac): Use
44841         gl_ARPA_INET_MODULE_INDICATOR.
44842
44843         * modules/inet_pton (configure.ac): Use
44844         gl_ARPA_INET_MODULE_INDICATOR.
44845
44846 2008-04-22  Jim Meyering  <meyering@redhat.com>
44847
44848         * modules/verify (License): Re-license as LGPLv2+.
44849
44850 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44851
44852         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44853         parameter to void* as per POSIX standard (MinGW uses char*).
44854
44855 2008-04-21  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44858         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44859         Define to replacements if REPLACE_ISWCNTRL is 1.
44860         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44861         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44862         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44863         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44864         what it fixes.
44865         * doc/posix-functions/iswalpha.texi: Likewise.
44866         * doc/posix-functions/iswblank.texi: Likewise.
44867         * doc/posix-functions/iswcntrl.texi: Likewise.
44868         * doc/posix-functions/iswdigit.texi: Likewise.
44869         * doc/posix-functions/iswgraph.texi: Likewise.
44870         * doc/posix-functions/iswlower.texi: Likewise.
44871         * doc/posix-functions/iswprint.texi: Likewise.
44872         * doc/posix-functions/iswpunct.texi: Likewise.
44873         * doc/posix-functions/iswspace.texi: Likewise.
44874         * doc/posix-functions/iswupper.texi: Likewise.
44875         * doc/posix-functions/iswxdigit.texi: Likewise.
44876         Reported by Alain Guibert.
44877
44878 2008-04-21  Bruno Haible  <bruno@clisp.org>
44879
44880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44881         Patch by Alain Guibert.
44882
44883 2008-04-21  Bruno Haible  <bruno@clisp.org>
44884
44885         Fix test failures on mingw.
44886         * tests/test-xstrtol.c (print_no_progname): New function.
44887         (main): Install it in error_print_progname hook.
44888         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44889         * tests/test-xstrtoimax.sh: Likewise.
44890         * tests/test-xstrtoumax.sh: Likewise.
44891
44892 2008-04-21  Bruno Haible  <bruno@clisp.org>
44893
44894         Fix test failure on mingw.
44895         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44896
44897 2008-04-21  Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44900         Actually assign a value.
44901
44902 2008-04-20  Bruno Haible  <bruno@clisp.org>
44903
44904         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44905         take 2.
44906         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44907         'canonicalize-lgpl' module is also used.
44908         * lib/canonicalize-lgpl.c: Undo last change.
44909         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44910
44911 2008-04-20  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44914         config.h. Provide _mkdir based fallback for mingw.
44915         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44916         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44917         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44918         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44919         rather than defining mkdir in config.h.
44920         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44921         (gl_SYS_STAT_H_DEFAULTS): New macro.
44922         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44923         HAVE_IO_H any more.
44924         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44925         HAVE_DECL_MKDIR and HAVE_IO_H.
44926
44927 2008-04-20  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/isapipe.c: Port to native Windows platforms.
44930
44931 2008-04-20  Bruno Haible  <bruno@clisp.org>
44932
44933         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44934
44935 2008-04-21  Eric Blake  <ebb9@byu.net>
44936
44937         Work around preprocessors that don't handle UINTMAX_MAX.
44938         * lib/memchr2.c (memchr2): Avoid embedded #if.
44939         Reported by Alain Guibert, fix suggested by Bruno Haible.
44940
44941 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44942
44943         * doc/posix-functions/strftime.texi (strftime): Explain better
44944         Windows incompatibility.  Suggested by Micah Cowan
44945         <micah@cowan.name>.
44946
44947 2008-04-20  Bruno Haible  <bruno@clisp.org>
44948
44949         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44950         unistr/u8-mblen.
44951
44952 2008-04-20  Bruno Haible  <bruno@clisp.org>
44953
44954         Fix test failure on platforms with non-GNU iconv.
44955         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44956         (U_TO_U8): Use it, rather than u16_to_u8.
44957         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44958         units at the end of the input string.
44959         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44960
44961 2008-04-20  Bruno Haible  <bruno@clisp.org>
44962
44963         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44964         when the resulting length is 0.
44965         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44966
44967 2008-04-20  Bruno Haible  <bruno@clisp.org>
44968
44969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44970         works.
44971         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44972
44973 2008-04-20  Bruno Haible  <bruno@clisp.org>
44974
44975         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44976         * modules/tsearch-tests (configure.ac): Test for initstate function.
44977
44978 2008-04-20  Bruno Haible  <bruno@clisp.org>
44979
44980         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44981         for nlink_t if missing.
44982         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44983
44984 2008-04-19  Bruno Haible  <bruno@clisp.org>
44985
44986         Work around snprintf bug on Linux libc5.
44987         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44988         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44989         gl_SNPRINTF_SIZE1.
44990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44991         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44992         that test failed.
44993         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44994         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44995         * modules/snprintf (Files): Add m4/printf.m4.
44996         * modules/vsnprintf (Files): Likewise.
44997         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44998         * doc/posix-functions/vsnprintf.texi: Likewise.
44999
45000 2008-04-19  Bruno Haible  <bruno@clisp.org>
45001
45002         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45003         from 0.0058 to less than 10^-7.
45004
45005 2008-04-19  Bruno Haible  <bruno@clisp.org>
45006
45007         Fix rounding when a precision is given.
45008         * lib/vasnprintf.c (is_borderline): New function.
45009         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45010         9...9x.
45011         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45012         %e, %g.
45013         * tests/test-vasprintf-posix.c (test_function): Likewise.
45014         * tests/test-snprintf-posix.h (test_function): Likewise.
45015         * tests/test-sprintf-posix.h (test_function): Likewise.
45016         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45017         * tests/test-printf-posix.h (test_function): Likewise.
45018         * tests/test-printf-posix.output: Update.
45019         Reported by John Darrington <john@darrington.wattle.id.au> via
45020         Ben Pfaff <blp@cs.stanford.edu>.
45021
45022 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45023
45024         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45025         Suggested by Bruno Haible <bruno@clisp.org>.
45026
45027 2008-04-17  Bruno Haible  <bruno@clisp.org>
45028
45029         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45030         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45031         implementation.
45032         Patch by Bruce Merry <bmerry@gmail.com>.
45033
45034 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45035
45036         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45037         doesn't work under Windows.
45038
45039 2008-04-16  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45042         New macros.
45043         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45044         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45045         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45046         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45047         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45048         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45049         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45050         macros.
45051         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45052         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45053         Northern Sotho, Uighur.
45054
45055 2008-04-16  Bruno Haible  <bruno@clisp.org>
45056
45057         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45058         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45059         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45060         Reported by Daniel Bergström <daniel@octocode.com>.
45061
45062 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45063             Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45066         function.
45067         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45068         New functions, mostly extracted from gl_locale_name_default.
45069         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45070
45071 2008-04-16  Eric Blake  <ebb9@byu.net>
45072
45073         Adjust strtod detection to catch glibc 2.7 bug.
45074         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45075         Reported by John Gatewood Ham.
45076
45077 2008-04-16  Bruno Haible  <bruno@clisp.org>
45078
45079         Add tentative support for Linux libc5.
45080         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45081         * lib/fpurge.c (fpurge): Likewise.
45082         * lib/freadable.c (freadable): Likewise.
45083         * lib/freadahead.c (freadahead): Likewise.
45084         * lib/freading.c (freading): Likewise.
45085         * lib/freadptr.c (freadptr): Likewise.
45086         * lib/freadseek.c (freadptrinc): Likewise.
45087         * lib/fseeko.c (rpl_fseeko): Likewise.
45088         * lib/fseterr.c (fseterr): Likewise.
45089         * lib/fwritable.c (fwritable): Likewise.
45090         * lib/fwriting.c (fwriting): Likewise.
45091         Reported by Alain Guibert <alguibert+bts@free.fr>.
45092
45093 2008-04-15  Bruno Haible  <bruno@clisp.org>
45094
45095         * modules/mathl (configure.ac): Define module indicator.
45096
45097 2008-04-15  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/logl.c (logl): Remove unused variables.
45100
45101 2008-04-15  Bruno Haible  <bruno@clisp.org>
45102
45103         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45104         fails.
45105
45106 2008-04-15  Bruno Haible  <bruno@clisp.org>
45107
45108         * lib/trim.c (trim2): Fix argument of isspace() macro.
45109
45110 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45111
45112         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45113         to 0.
45114         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45115
45116 2008-04-14  Bruno Haible  <bruno@clisp.org>
45117
45118         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45119         AC_LANG_PROGRAM argument.
45120         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45121         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45123         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45124         * m4/math_h.m4 (gl_MATH_H): Likewise.
45125         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45126         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45127         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45128         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45129         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45130         * m4/regex.m4 (gl_REGEX): Likewise.
45131         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45132         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45133         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45134         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45135         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45136         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45137         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45139
45140 2008-04-14  Jim Meyering  <meyering@redhat.com>
45141
45142         test-strtod: fix typos: s/abs/fabs/
45143         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45144
45145 2008-04-13  Bruno Haible  <bruno@clisp.org>
45146
45147         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45148         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45149         module is also used and while not building the reloc-wrapper.
45150
45151 2008-04-13  Bruno Haible  <bruno@clisp.org>
45152
45153         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45154
45155 2008-04-13  Bruno Haible  <bruno@clisp.org>
45156
45157         Fix AIX compilation failure introduced on 2008-04-02.
45158         * tests/test-frexp.c (exp): Undefine before redefining.
45159         * tests/test-frexpl.c (exp): Likewise.
45160
45161 2008-04-13  Bruno Haible  <bruno@clisp.org>
45162
45163         Work around a HP-UX stdio bug.
45164         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45165         * tests/test-ftello.c (main): Likewise.
45166         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45167         * doc/posix-functions/ftello.texi: Likewise.
45168
45169 2008-04-13  Bruno Haible  <bruno@clisp.org>
45170
45171         Make test-signbit pass on HP-UX/hppa.
45172         * tests/test-signbit.c (minus_zerol): New variable.
45173         (test_signbitl): Use it.
45174
45175 2008-04-13  Bruno Haible  <bruno@clisp.org>
45176
45177         Make truncl work on OSF/1 4.0.
45178         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45179         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45180         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45182         HAVE_DECL_TRUNCL.
45183         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45184         HAVE_DECL_TRUNCL.
45185         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45186
45187 2008-04-13  Bruno Haible  <bruno@clisp.org>
45188
45189         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45190
45191 2008-04-13  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45194         expression, so as to avoid HP-UX 11 cc compiler bug.
45195
45196 2008-04-13  Bruno Haible  <bruno@clisp.org>
45197
45198         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45199
45200 2008-04-13  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/git-merge-changelog.c: Remove empty declaration outside of
45203         functions.
45204
45205 2008-04-13  Bruno Haible  <bruno@clisp.org>
45206
45207         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45208
45209 2008-04-13  Bruno Haible  <bruno@clisp.org>
45210
45211         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45212         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45213         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45214         also if it exists but lacks definitions of the SHUT_* macros.
45215         * modules/sys_socket (Description): Update.
45216         Reported by Elbert Pol <e.pol@chello.nl>.
45217
45218 2008-04-13  Bruno Haible  <bruno@clisp.org>
45219
45220         * lib/localcharset.c (OS2): Don't redefine if already defined.
45221         Reported by Elbert Pol <e.pol@chello.nl>.
45222
45223 2008-04-13  Bruno Haible  <bruno@clisp.org>
45224
45225         * lib/binary-io.h [__EMX__]: Include <io.h>.
45226         Reported by Elbert Pol <e.pol@chello.nl>.
45227
45228 2008-04-12  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/fpucw.h: Enable the definitions also for x86_64.
45231         Needed for NetBSD/x86_64.
45232         Reported by Thomas Klausner <tk@giga.or.at>.
45233
45234 2008-04-12  Bruno Haible  <bruno@clisp.org>
45235
45236         * tests/test-strtod.c: Include isnand.h.
45237         (main): Use isnand instead of isnan.
45238         Reported by Jim Meyering.
45239
45240 2008-04-12  Bruno Haible  <bruno@clisp.org>
45241
45242         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45243         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45244
45245 2008-04-12  Jim Meyering  <meyering@redhat.com>
45246
45247         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45248
45249 2008-04-12  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45252         Reported by Elbert Pol <e.pol@chello.nl>.
45253
45254 2008-04-12  Eric Blake  <ebb9@byu.net>
45255
45256         Work around Solaris 10 math.h bug.
45257         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45258         (gl_MATH_H_DEFAULTS): Set up default.
45259         * modules/math (Makefile.am): Replace new indicators.
45260         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45261         * tests/test-math.c (main): Test this.
45262         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45263         * doc/posix-headers/math.texi (math.h): Mention bug.
45264         Reported by Nelson H. F. Beebe and Jim Meyering.
45265
45266 2008-04-11  Bruno Haible  <bruno@clisp.org>
45267
45268         Adapt to future versions of Apple GCC.
45269         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45270         Reported by Peter O'Gorman <peter@pogma.com>.
45271
45272 2008-04-11  Bruno Haible  <bruno@clisp.org>
45273
45274         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45275
45276 2008-04-11  Bruno Haible  <bruno@clisp.org>
45277
45278         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45279
45280         * modules/getaddrinfo-tests (Makefile.am): Define
45281         test_getaddrinfo_LDADD.
45282
45283 2008-04-11  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45286         (init): Fix syntax error.
45287         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45288         is declared.
45289
45290 2008-04-11  Bruno Haible  <bruno@clisp.org>
45291
45292         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45293         * modules/glob (Depends-on): Add stdbool.
45294
45295 2008-04-11  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/trim.c: Include <string.h>.
45298
45299 2008-04-11  Eric Blake  <ebb9@byu.net>
45300
45301         Avoid compile failure on OS/2.
45302         * lib/regex_internal.h (internal_function): Disable optimization
45303         on OS/2 (__EMX__), where it caused compiler error.
45304         Reported by Elbert Pol.
45305
45306 2008-04-11  Bruno Haible  <bruno@clisp.org>
45307
45308         Flush the standard error stream before aborting. Needed on mingw.
45309         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45310         * tests/test-array_list.c (ASSERT): Likewise.
45311         * tests/test-array_oset.c (ASSERT): Likewise.
45312         * tests/test-avltree_list.c (ASSERT): Likewise.
45313         * tests/test-avltree_oset.c (ASSERT): Likewise.
45314         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45315         * tests/test-binary-io.c (ASSERT): Likewise.
45316         * tests/test-byteswap.c (ASSERT): Likewise.
45317         * tests/test-c-ctype.c (ASSERT): Likewise.
45318         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45319         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45320         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45321         * tests/test-c-strstr.c (ASSERT): Likewise.
45322         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45323         * tests/test-canonicalize.c (ASSERT): Likewise.
45324         * tests/test-carray_list.c (ASSERT): Likewise.
45325         * tests/test-ceilf1.c (ASSERT): Likewise.
45326         * tests/test-ceilf2.c (ASSERT): Likewise.
45327         * tests/test-ceill.c (ASSERT): Likewise.
45328         * tests/test-count-one-bits.c (ASSERT): Likewise.
45329         * tests/test-fbufmode.c (ASSERT): Likewise.
45330         * tests/test-fflush2.c (ASSERT): Likewise.
45331         * tests/test-floorf1.c (ASSERT): Likewise.
45332         * tests/test-floorf2.c (ASSERT): Likewise.
45333         * tests/test-floorl.c (ASSERT): Likewise.
45334         * tests/test-fopen.c (ASSERT): Likewise.
45335         * tests/test-fpending.c (ASSERT): Likewise.
45336         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45337         * tests/test-fpurge.c (ASSERT): Likewise.
45338         * tests/test-freadable.c (ASSERT): Likewise.
45339         * tests/test-freadahead.c (ASSERT): Likewise.
45340         * tests/test-freading.c (ASSERT): Likewise.
45341         * tests/test-freadptr.c (ASSERT): Likewise.
45342         * tests/test-freadptr2.c (ASSERT): Likewise.
45343         * tests/test-freadseek.c (ASSERT): Likewise.
45344         * tests/test-freopen.c (ASSERT): Likewise.
45345         * tests/test-frexp.c (ASSERT): Likewise.
45346         * tests/test-frexpl.c (ASSERT): Likewise.
45347         * tests/test-fseek.c (ASSERT): Likewise.
45348         * tests/test-fseeko.c (ASSERT): Likewise.
45349         * tests/test-fstrcmp.c (ASSERT): Likewise.
45350         * tests/test-ftell.c (ASSERT): Likewise.
45351         * tests/test-ftello.c (ASSERT): Likewise.
45352         * tests/test-func.c (ASSERT): Likewise.
45353         * tests/test-fwritable.c (ASSERT): Likewise.
45354         * tests/test-fwriting.c (ASSERT): Likewise.
45355         * tests/test-getdelim.c (ASSERT): Likewise.
45356         * tests/test-getline.c (ASSERT): Likewise.
45357         * tests/test-i-ring.c (ASSERT): Likewise.
45358         * tests/test-iconv-utf.c (ASSERT): Likewise.
45359         * tests/test-iconv.c (ASSERT): Likewise.
45360         * tests/test-isfinite.c (ASSERT): Likewise.
45361         * tests/test-isnand.c (ASSERT): Likewise.
45362         * tests/test-isnanf.c (ASSERT): Likewise.
45363         * tests/test-isnanl.h (ASSERT): Likewise.
45364         * tests/test-ldexpl.c (ASSERT): Likewise.
45365         * tests/test-linked_list.c (ASSERT): Likewise.
45366         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45367         * tests/test-localename.c (ASSERT): Likewise.
45368         * tests/test-lseek.c (ASSERT): Likewise.
45369         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45370         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45371         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45372         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45373         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45374         * tests/test-mbschr.c (ASSERT): Likewise.
45375         * tests/test-mbscspn.c (ASSERT): Likewise.
45376         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45377         * tests/test-mbspbrk.c (ASSERT): Likewise.
45378         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45379         * tests/test-mbsrchr.c (ASSERT): Likewise.
45380         * tests/test-mbsspn.c (ASSERT): Likewise.
45381         * tests/test-mbsstr1.c (ASSERT): Likewise.
45382         * tests/test-mbsstr2.c (ASSERT): Likewise.
45383         * tests/test-mbsstr3.c (ASSERT): Likewise.
45384         * tests/test-memchr2.c (ASSERT): Likewise.
45385         * tests/test-memmem.c (ASSERT): Likewise.
45386         * tests/test-open.c (ASSERT): Likewise.
45387         * tests/test-printf-frexp.c (ASSERT): Likewise.
45388         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45389         * tests/test-printf-posix.c (ASSERT): Likewise.
45390         * tests/test-quotearg.c (ASSERT): Likewise.
45391         * tests/test-rbtree_list.c (ASSERT): Likewise.
45392         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45393         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45394         * tests/test-round1.c (ASSERT): Likewise.
45395         * tests/test-roundf1.c (ASSERT): Likewise.
45396         * tests/test-roundl.c (ASSERT): Likewise.
45397         * tests/test-signbit.c (ASSERT): Likewise.
45398         * tests/test-sleep.c (ASSERT): Likewise.
45399         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45400         * tests/test-snprintf.c (ASSERT): Likewise.
45401         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45402         * tests/test-stat-time.c (ASSERT): Likewise.
45403         * tests/test-strcasestr.c (ASSERT): Likewise.
45404         * tests/test-strerror.c (ASSERT): Likewise.
45405         * tests/test-striconv.c (ASSERT): Likewise.
45406         * tests/test-striconveh.c (ASSERT): Likewise.
45407         * tests/test-striconveha.c (ASSERT): Likewise.
45408         * tests/test-strsignal.c (ASSERT): Likewise.
45409         * tests/test-strstr.c (ASSERT): Likewise.
45410         * tests/test-strtod.c (ASSERT): Likewise.
45411         * tests/test-trunc1.c (ASSERT): Likewise.
45412         * tests/test-trunc2.c (ASSERT): Likewise.
45413         * tests/test-truncf1.c (ASSERT): Likewise.
45414         * tests/test-truncf2.c (ASSERT): Likewise.
45415         * tests/test-truncl.c (ASSERT): Likewise.
45416         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45417         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45418         * tests/test-vasnprintf.c (ASSERT): Likewise.
45419         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45420         * tests/test-vasprintf.c (ASSERT): Likewise.
45421         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45422         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45423         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45424         * tests/test-vsnprintf.c (ASSERT): Likewise.
45425         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45426         * tests/test-wcwidth.c (ASSERT): Likewise.
45427         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45428         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45429         * tests/test-xvasprintf.c (ASSERT): Likewise.
45430         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45431         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45432         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45433         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45434         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45435         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45436         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45437         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45438         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45439         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45440         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45441         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45442         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45443         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45444         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45445         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45446         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45447         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45448         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45449         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45450         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45451         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45452         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45453         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45454         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45455         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45456         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45457         * tests/unictype/test-combining.c (ASSERT): Likewise.
45458         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45459         * tests/unictype/test-digit.c (ASSERT): Likewise.
45460         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45461         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45462         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45463         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45464         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45465         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45466         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45467         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45468         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45469         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45470         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45471         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45472         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45473         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45474         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45475         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45476         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45477         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45478         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45479         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45480         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45481         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45482         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45483         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45484         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45485         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45486         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45487         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45488         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45489         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45490         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45491         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45492         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45493         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45494         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45495         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45496         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45497         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45498         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45499         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45500         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45501         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45502         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45503         Reported by Eric Blake.
45504
45505 2008-04-11  Bruno Haible  <bruno@clisp.org>
45506
45507         * lib/wchar.in.h: Tweak comment.
45508
45509 2008-04-11  Bruno Haible  <bruno@clisp.org>
45510
45511         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45512         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45513         gl_COMMON.
45514         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45515
45516 2008-04-11  Bruno Haible  <bruno@clisp.org>
45517
45518         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45519
45520 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45521
45522         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45523         of attempting to use non-existing /dev/*random.  Based on patch
45524         from Adam Strzelecki <ono@java.pl> in
45525         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45526
45527 2008-04-08  Bruno Haible  <bruno@clisp.org>
45528
45529         Add tentative support for emx+gcc.
45530         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45531         * lib/fpurge.c (fpurge): Likewise.
45532         * lib/freadable.c (freadable): Likewise.
45533         * lib/freadahead.c (freadahead): Likewise.
45534         * lib/freading.c (freading): Likewise.
45535         * lib/freadptr.c (freadptr): Likewise.
45536         * lib/freadseek.c (freadptrinc): Likewise.
45537         * lib/fseeko.c (rpl_fseeko): Likewise.
45538         * lib/fseterr.c (fseterr): Likewise.
45539         * lib/fwritable.c (fwritable): Likewise.
45540         * lib/fwriting.c (fwriting): Likewise.
45541         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45542
45543 2008-04-09  Eric Blake  <ebb9@byu.net>
45544
45545         Avoid some autoconf warnings.
45546         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45547         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45548         * m4/afs.m4 (gl_AFS): Likewise.
45549         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45550         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45552         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45553         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45554         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45555         (AC_CHECK_DECLS_ONCE): Likewise.
45556         Rename file...
45557         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45558         gnulib-tool requires autoconf 2.59 or better.
45559         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45560
45561 2008-04-08  Eric Blake  <ebb9@byu.net>
45562
45563         Use 'git describe --match' if present (added in git 1.5.5).
45564         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45565         if possible.
45566
45567 2008-04-08  Bruno Haible  <bruno@clisp.org>
45568
45569         Add tentative support for OpenServer.
45570         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45571         _ptr, _cnt.
45572         * lib/fpurge.c (fpurge): Likewise.
45573         * lib/freadable.c (freadable): Likewise.
45574         * lib/freadahead.c (freadahead): Likewise.
45575         * lib/freading.c (freading): Likewise.
45576         * lib/freadptr.c (freadptr): Likewise.
45577         * lib/freadseek.c (freadptrinc): Likewise.
45578         * lib/fseeko.c (rpl_fseeko): Likewise.
45579         * lib/fseterr.c (fseterr): Likewise.
45580         * lib/fwritable.c (fwritable): Likewise.
45581         * lib/fwriting.c (fwriting): Likewise.
45582         Reported by Roger Cornelius <rac@tenzing.org> and
45583         Brian K. White <brian@aljex.com>.
45584
45585 2008-04-06  Jim Meyering  <meyering@redhat.com>
45586
45587         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45588
45589 2008-04-06  Bruno Haible  <bruno@clisp.org>
45590
45591         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45592         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45593         * tests/test-printf-posix.sh: Likewise.
45594         * tests/test-vfprintf-posix.sh: Likewise.
45595         * tests/test-vprintf-posix.sh: Likewise.
45596         * tests/test-xprintf-posix.sh: Likewise.
45597
45598 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45599
45600         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45601         hide error from 'ls', needed on OS/2.
45602         Report by Elbert Pol <elbert.pol@gmail.com>.
45603
45604 2008-04-04  Eric Blake  <ebb9@byu.net>
45605
45606         Make test-fseeko.c failures meaningful.
45607         * tests/test-fseeko.c: Print line number on failure.
45608         * tests/test-fseek.c: Likewise.
45609         Reported by Nelson H. F. Beebe.
45610
45611         Improve strtod bug detection check.
45612         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45613         required for Solaris 10.
45614         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45615
45616 2008-04-04  Bruno Haible  <bruno@clisp.org>
45617
45618         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45619         by m4/setenv.m4.
45620
45621 2008-04-03  Eric Blake  <ebb9@byu.net>
45622
45623         Ensure sane .version contents.
45624         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45625         version string.
45626         * build-aux/git-version-gen: Improve documentation.
45627
45628         Make GNU make output nicer.
45629         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45630         MAKECMDGOALS to enforce message for all command line targets.  Set
45631         srcdir for use in maint.mk.
45632
45633         Another maintainer tweak.
45634         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45635         a target that regenerates version.
45636
45637 2008-04-03  Jim Meyering  <meyering@redhat.com>
45638
45639         vc-list-files: don't cause coreutils "make po-check" failure
45640         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45641
45642 2008-04-03  Eric Blake  <ebb9@byu.net>
45643
45644         Allow VPATH usage of vc-list-files.
45645         * build-aux/vc-list-files (scriptversion): Add timestamp.
45646         (options): Add --help, --version, -C.
45647         (CVS): Support installed cvsu.
45648
45649 2008-04-02  Bruno Haible  <bruno@clisp.org>
45650
45651         Avoid some "statement with no effect" warnings from gcc.
45652         * tests/test-wctype.c (main): Explicitly ignore unused values.
45653         Reported by Jim Meyering.
45654
45655 2008-04-02  Jim Meyering  <meyering@redhat.com>
45656
45657         Avoid some warnings from "gcc -Wshadow".
45658         * tests/test-frexp.c (exp): Define to a different identifier.
45659         * tests/test-frexpl.c (exp): Likewise.
45660
45661 2008-04-03  Jim Meyering  <meyering@redhat.com>
45662
45663         bootstrap: remove dangling *.[ch] symlinks from lib
45664         * build-aux/bootstrap [dangling symlink removal]: Move find's
45665         -depth option to precede all others, to avoid a warning.
45666         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45667
45668 2008-04-02  Bruno Haible  <bruno@clisp.org>
45669
45670         Avoid some warnings from "gcc -Wshadow".
45671         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45672         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45673         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45674         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45675         Reported by Jim Meyering.
45676
45677 2008-04-01  Bruno Haible  <bruno@clisp.org>
45678
45679         Fix test to work on IRIX 6.5 with cc.
45680         * tests/test-math.c (numeric_equal): New function.
45681         (main): Use it.
45682
45683 2008-04-01  Bruno Haible  <bruno@clisp.org>
45684
45685         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45686
45687 2008-04-01  Bruno Haible  <bruno@clisp.org>
45688
45689         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45690         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45691         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45692         (Depends-on): Remove math.
45693
45694         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45695         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45696         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45697         (Depends-on): Remove math.
45698
45699         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45700         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45701         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45702         (Depends-on): Remove math.
45703         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45704         (Depends-on): Remove math.
45705
45706         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45707         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45708         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45709         (Depends-on): Remove math.
45710         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45711         (Depends-on): Remove math.
45712
45713         * tests/test-round1.c: Include nan.h.
45714         (main): Use NaNd instead of NAN.
45715         * modules/round-tests (Files): Add tests/nan.h.
45716
45717         * tests/test-trunc1.c: Include nan.h.
45718         (main): Use NaNd instead of NAN.
45719         * modules/trunc-tests (Files): Add tests/nan.h.
45720
45721         * tests/test-roundf1.c: Include nan.h.
45722         (main): Use NaNf instead of NAN.
45723         * modules/roundf-tests (Files): Add tests/nan.h.
45724
45725         * tests/test-truncf1.c: Include nan.h.
45726         (main): Use NaNf instead of NAN.
45727         * modules/truncf-tests (Files): Add tests/nan.h.
45728
45729         * tests/test-ceilf1.c: Include nan.h.
45730         (main): Use NaNf instead of NAN.
45731         * modules/ceilf-tests (Files): Add tests/nan.h.
45732
45733         * tests/test-floorf1.c: Include nan.h.
45734         (main): Use NaNf instead of NAN.
45735         * modules/floorf-tests (Files): Add tests/nan.h.
45736
45737         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45738         (main): Use NaNf instead of NAN.
45739         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45740
45741         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45742         (main): Use NaNd instead of NAN.
45743         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45744
45745         * tests/test-frexp.c: Include nan.h.
45746         (main): Use NaNd instead of NAN.
45747         * modules/frexp-tests (Files): Add tests/nan.h.
45748
45749         * lib/isnan.c: Don't include <math.h>.
45750         (FUNC): Don't use NAN macro.
45751         * modules/isnand-nolibm (Depends-on): Remove math.
45752         * modules/isnanf-nolibm (Depends-on): Remove math.
45753         * modules/isnanl (Depends-on): Remove math.
45754         * modules/isnanl-nolibm (Depends-on): Remove math.
45755
45756         * tests/nan.h: New file.
45757
45758 2008-04-01  Eric Blake  <ebb9@byu.net>
45759
45760         Fix typos.
45761         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45762         values to be the right type.
45763
45764         For now, cater to gnulib strtod inaccuracies.
45765         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45766         fractional results.  While not as nice from a QoI perspective, it
45767         is a quicker patch than correctly implementing decimal to binary
45768         rounding.
45769
45770 2008-03-31  Eric Blake  <ebb9@byu.net>
45771
45772         Guarantee a definition of NAN.
45773         * lib/math.in.h (NAN): Define if missing.
45774         * tests/test-math.c (main): Test it.
45775         * doc/posix-headers/math.texi (math.h): Document this.
45776         * lib/isnan.c (rpl_isnand): Use it.
45777         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45778         * tests/test-floorf1.c (NaN): Likewise.
45779         * tests/test-frexp.c (NaN): Likewise.
45780         * tests/test-isnand.c (NaN): Likewise.
45781         * tests/test-isnanf.c (NaN): Likewise.
45782         * tests/test-round1.c (NaN): Likewise.
45783         * tests/test-roundf1.c (NaN): Likewise.
45784         * tests/test-snprintf-posix.h (NaN): Likewise.
45785         * tests/test-sprintf-posix.h (NaN): Likewise.
45786         * tests/test-trunc1.c (NaN): Likewise.
45787         * tests/test-truncf1.c (NaN): Likewise.
45788         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45789         * tests/test-vasprintf-posix.c (NaN): Likewise.
45790         * modules/isnand-nolibm (Depends-on): Add math.
45791         * modules/isnanf-nolibm (Depends-on): Likewise.
45792         * modules/isnanl (Depends-on): Likewise.
45793         * modules/isnanl-nolibm (Depends-on): Likewise.
45794         * modules/snprintf-posix-tests (Depends-on): Likewise.
45795         * modules/sprintf-posix-tests (Depends-on): Likewise.
45796         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45797         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45798         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45799         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45800
45801 2008-03-31  Bruno Haible  <bruno@clisp.org>
45802
45803         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45804         * doc/posix-functions/strtod.texi: Likewise.
45805
45806 2008-03-31  Bruno Haible  <bruno@clisp.org>
45807
45808         * tests/test-strtod.c (main): Don't use C99 syntax.
45809
45810 2008-03-31  Bruno Haible  <bruno@clisp.org>
45811
45812         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45813         Reported by Eric Blake.
45814
45815 2008-03-31  Jim Meyering  <meyering@redhat.com>
45816
45817         Don't compare actual signbit return values.
45818         * tests/test-strtod.c (main): Rather, compare only their
45819         zero/non-zero nature.
45820
45821 2008-03-31  Eric Blake  <ebb9@byu.net>
45822
45823         More strtod documentation.
45824         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45825         failures as distinct bugs.
45826
45827 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45828
45829         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45830         Problem reported by Erik Benada in
45831         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45832
45833 2008-03-30  Bruno Haible  <bruno@clisp.org>
45834
45835         * tests/test-strtod.c: Add comments about which assertion fails on which
45836         platform.
45837         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45838
45839 2008-03-30  Eric Blake  <ebb9@byu.net>
45840
45841         Test signbit behavior on zeros.
45842         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45843         (test_signbitd, test_signbitl): Likewise.
45844
45845         More strtod touchups.
45846         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45847         sign of negative underflow, for now.  Use .5, not .1.
45848         * doc/posix-functions/strtod.texi (strtod): Mention these
45849         limitations.
45850         Reported by Jim Meyering.
45851
45852 2008-03-30  Bruno Haible  <bruno@clisp.org>
45853
45854         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45855         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45856
45857 2008-03-30  Bruno Haible  <bruno@clisp.org>
45858
45859         Avoid failure when attempting to return empty iconv results on some
45860         platforms.
45861         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45862         allocation, don't report ENOMEM when the resulting string is empty.
45863
45864 2008-03-30  Bruno Haible  <bruno@clisp.org>
45865
45866         Fix buffer overrun.
45867         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45868         Don't consider the width for tmp_length. Check count against tmp_length
45869         before doing the padding. Ensure enough allocation during padding.
45870
45871 2008-03-30  Eric Blake  <ebb9@byu.net>
45872
45873         strtod touchups.
45874         * lib/strtod.c (strtod): Avoid compiler warnings.
45875         Reported by Jim Meyering.
45876
45877 2008-03-30  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45880         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45881         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45882         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45883         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45884         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45885         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45886         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45887
45888         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45889         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45890         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45891         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45892         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45893         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45894         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45895         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45896
45897         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45898         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45899         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45900         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45901         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45902         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45903         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45904         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45905
45906         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45907         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45908
45909         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45910         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45911
45912         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45913         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45914
45915         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45917         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45918
45919         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45920         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45921         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45922
45923         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45925         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45926
45927         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45929         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45930
45931         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45932         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45934         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45935         (Depends-on): Add EOVERFLOW.
45936         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45937         (Depends-on): Add EOVERFLOW.
45938         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45939         (Depends-on): Add EOVERFLOW.
45940         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45941         (Depends-on): Add EOVERFLOW.
45942         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45943         (Depends-on): Add EOVERFLOW.
45944         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45945         (Depends-on): Add EOVERFLOW.
45946         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45947         (Depends-on): Add EOVERFLOW.
45948         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45949         (Depends-on): Add EOVERFLOW.
45950
45951         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45953         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45954
45955         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45957         * modules/snprintf (Depends-on): Add EOVERFLOW.
45958
45959         * lib/poll.c (EOVERFLOW): Remove fallback.
45960         * modules/poll (Depends-on): Add EOVERFLOW.
45961
45962         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45963         * modules/getugroups (Depends-on): Add EOVERFLOW.
45964
45965         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45966         * modules/getdelim (Depends-on): Add EOVERFLOW.
45967
45968         * lib/ftell.c (EOVERFLOW): Remove fallback.
45969         * modules/ftell (Depends-on): Add EOVERFLOW.
45970
45971         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45972         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45973         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45974
45975         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45976
45977         * modules/EOVERFLOW-tests: New file.
45978         * tests/test-EOVERFLOW.c: New file.
45979
45980         * modules/EOVERFLOW: New file.
45981         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45982
45983 2008-03-30  Bruno Haible  <bruno@clisp.org>
45984
45985         Fix bug introduced on 2007-06-10.
45986         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45987         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45988
45989 2008-03-30  Bruno Haible  <bruno@clisp.org>
45990
45991         Improve freadseek's efficiency after ungetc.
45992         * lib/freadseek.c: Include freadahead.h.
45993         (freadptrinc): New function, extracted from freadseek.
45994         (freadseek): Use it in a loop. Use freadahead to determine the number
45995         of loop iterations.
45996         * modules/freadseek (Depends-on): Add freadahead.
45997         (configure.ac): Require AC_C_INLINE.
45998
45999 2008-03-30  Bruno Haible  <bruno@clisp.org>
46000
46001         * lib/freadseek.c (freadseek): Don't ignore the return value of
46002         freadptr.
46003
46004 2008-03-29  Eric Blake  <ebb9@byu.net>
46005
46006         Add hex float support.
46007         * modules/strtod (Depends-on): Add c-ctype.
46008         (Link): Mention POW_LIB.
46009         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46010         whitespace between 'e' and exponent.
46011         * tests/test-strtod.c (main): Enable hex float tests.
46012         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46013         now provides.
46014
46015         Document various strtod bugs, with some fixes.
46016         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46017         "-0x", "inf", "nan", and hex constants.
46018         * doc/posix-functions/atof.texi (atof): Likewise.
46019         * modules/stdlib (Makefile.am): Support strtod.
46020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46021         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46022         detect additional strtod bugs.
46023         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46024         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46025         bool where appropriate.  Parse 'inf' and 'nan'.
46026         * tests/test-strtod.c: New file.
46027         * modules/strtod (Depends-on): Add stdbool, stdlib.
46028         (configure.ac): Turn on module indicator.
46029         * modules/strtod-tests: New module.
46030
46031 2008-03-29  Eric Blake  <ebb9@byu.net>
46032
46033         Fix ftell on mingw.
46034         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46035         * modules/ftell-tests (Depends-on): Add binary-io.
46036         * modules/ftello-tests (Depends-on): Likewise.
46037         * tests/test-ftell.c (main): Enhance test to cover behavior after
46038         ungetc.  Enforce binary mode.
46039         * tests/test-ftello.c (main): Likewise.
46040
46041         Pass test-freadseek on cygwin.
46042         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46043         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46044         ungetc buffer.
46045
46046         * tests/test-fflush2.c (main): Fix typo.
46047
46048 2008-03-29  Bruno Haible  <bruno@clisp.org>
46049
46050         * tests/test-fflush2.c (main): Temporarily disable the contents of
46051         this test.
46052         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46053         Reported by Eric Blake.
46054
46055 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46056
46057         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46058         (GC_SHA224_DIGEST_SIZE): Add.
46059
46060         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46061         (gc_hash_digest_length): Likewise.
46062         (gc_hash_buffer): Likewise.
46063
46064 2008-03-25  Bruno Haible  <bruno@clisp.org>
46065
46066         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46067         detail which gettext release to use.
46068         Reported by Simon Josefsson.
46069
46070 2008-03-26  Jim Meyering  <meyering@redhat.com>
46071
46072         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46073         * modules/gnumakefile (clean-GNUmakefile): Also, use
46074         test ... && ... || : syntax rather than if-then ... fi.
46075
46076         gnumakefile: Don't double-quote-expand $(VPATH) value.
46077         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46078
46079 2008-03-24  Eric Blake  <ebb9@byu.net>
46080
46081         Alter GNUmakefile to install into top directory.
46082         * modules/maintainer-makefile: Split, and add dependency...
46083         * modules/gnumakefile: to this new module.
46084         * build-aux/GNUmakefile: Move...
46085         * top/GNUmakefile: ...here.
46086         * build-aux/maint.mk: Move...
46087         * top/maint.mk: ...here.
46088         * MODULES.html.sh (Support for maintaining...): Document new
46089         module.
46090
46091 2008-03-23  Bruno Haible  <bruno@clisp.org>
46092
46093         * gnulib-tool: New options --vc-files, --no-vc-files.
46094         (func_usage): Document them.
46095         (vc_files): New variable.
46096         (func_import): Consider vc_files.
46097         (func_create_testdir): Set vc_files to empty.
46098         Suggested by Jim Meyering and Karl Berry.
46099
46100 2008-03-23  Bruno Haible  <bruno@clisp.org>
46101
46102         Fix regex compilation error on HP-UX 11.
46103         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46104         * modules/regex (Files): Add m4/mbstate_t.m4.
46105         Reported by Ton Voon <ton.voon@altinity.com>.
46106
46107 2008-03-23  Bruno Haible  <bruno@clisp.org>
46108
46109         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46110
46111 2008-03-23  Eric Blake  <ebb9@byu.net>
46112             Bruno Haible  <bruno@clisp.org>
46113
46114         Install files from top/ in the destination directory.
46115         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46116         augmentation also for the files from top/.
46117         (func_import, func_create_testdir): Rewrite file names:
46118         top/filename -> filename.
46119
46120 2008-03-23  Bruno Haible  <bruno@clisp.org>
46121
46122         Tweak "gnulib --version" output.
46123         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46124
46125 2008-03-23  Bruno Haible  <bruno@clisp.org>
46126
46127         Tweak "gnulib --version" output.
46128         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46129         rather than contents of ChangeLog, when possible.
46130
46131 2008-03-21  Eric Blake  <ebb9@byu.net>
46132
46133         More --version tweaks.
46134         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46135         date of last ChangeLog entry.
46136
46137 2008-03-21  Jim Meyering  <meyering@redhat.com>
46138
46139         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46140
46141 2008-03-20  Eric Blake  <ebb9@byu.net>
46142
46143         VPATH fix.
46144         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46145
46146 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46147
46148         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46149         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46150
46151 2008-03-20  Eric Blake  <ebb9@byu.net>
46152
46153         Sync GNUmakefile with coreutils.
46154         * build-aux/GNUmakefile (have-Makefile): Rename...
46155         (_have-Makefile): ...to this, for namespace consideration.
46156         (GNUmakefile.cfg): Include, if present.
46157         (_autoreconf): Define a default.
46158         (_is-dist-target): New rule for rebuilds to pick up intra-release
46159         version.
46160         (maint-cfg.mk): Rename...
46161         (cfg.mk): ...to this.
46162
46163 2008-03-18  Jim Meyering  <meyering@redhat.com>
46164
46165         New script and module: mktempd
46166         * MODULES.html.sh (maint+release support): Add mktempd.
46167         * build-aux/mktempd: New file.
46168         * modules/mktempd: New file.
46169
46170 2008-03-15  Jim Meyering  <meyering@redhat.com>
46171
46172         Undo last change.
46173         * lib/sha1.c, lib/md5.c: 63 != ~63.
46174         Reported by Andreas Schwab.
46175
46176         sha1.c, md5.c: Hoist a redundant expression.
46177         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46178         "ctx->buflen" only once, before calling *_process_block.
46179         * lib/md5.c (md5_process_bytes): Likewise.
46180
46181 2008-03-14  Eric Blake  <ebb9@byu.net>
46182
46183         Bump copyright year in files generated by gnulib-tool.
46184         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46185         gnulib-tool, rather than hard-coding it.
46186
46187         Fix 'gnulib-tool --version' output to work with git.
46188         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46189         (startup): ...here.
46190         (func_version): Use it to invoke git-version-gen, rather than
46191         relying on CVS keyword expansion.  Modernize wording.
46192         (cvsdatestamp, last_checkin_date, version): Kill unused
46193         variables.
46194
46195 2008-03-12  Jim Meyering  <meyering@redhat.com>
46196
46197         Recognize optional cast of the argument to free.
46198         * build-aux/useless-if-before-free: Update regexps.
46199
46200         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46201
46202 2008-03-11  Bruno Haible  <bruno@clisp.org>
46203
46204         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46205         by a single package.
46206         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46207         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46208         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46209         Reported by Sam Steingold <sds@gnu.org>.
46210
46211 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46212
46213         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46214         repositories.
46215
46216 2008-03-11  Bruno Haible  <bruno@clisp.org>
46217
46218         Avoid conflicts between local macro definitions.
46219         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46220         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46221
46222 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46223             Bruno Haible  <bruno@clisp.org>
46224
46225         Make va_copy work with some version of xlc on AIX 5.1.
46226         * lib/stdarg.in.h: New file.
46227         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46228         On AIX, use a <stdarg.h> file substitute.
46229         * modules/stdarg (Files): Add lib/stdarg.in.h.
46230         (Depends-on): Add include_next.
46231         (Makefile.am): Build a stdarg.h substitute if requested.
46232         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46233
46234 2008-03-10  Bruno Haible  <bruno@clisp.org>
46235
46236         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46238         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46239
46240 2008-03-10  Bruno Haible  <bruno@clisp.org>
46241
46242         * modules/stdlib (Depends-on): Add include_next, remove
46243         absolute-header.
46244
46245 2008-03-09  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/freadahead.h (freadahead): Document more precisely.
46248         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46249         the sum of both buffer sizes.
46250         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46251         * NEWS: Document the change.
46252
46253 2008-03-09  Bruno Haible  <bruno@clisp.org>
46254
46255         Extend freadptr to return also the buffer size.
46256         * lib/freadptr.h (freadptr): Add sizep argument.
46257         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46258         (freadptr): Add sizep argument. Determine buffer size like freadahead
46259         does.
46260         * tests/test-freadptr.c: Don't include freadahead.h.
46261         (main): Adapt for new calling convention of freadptr.
46262         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46263         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46264         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46265         tests/test-freadptr2.sh.
46266         (Depends): Remove freadahead.
46267         (TESTS): Add test-freadptr2.sh.
46268         (check_PROGRAMS): Add test-freadptr2.
46269
46270 2008-03-09  Bruno Haible  <bruno@clisp.org>
46271
46272         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46273         Report and solution by Simon Josefsson.
46274
46275 2008-03-06  Bruno Haible  <bruno@clisp.org>
46276
46277         Make fflush after ungetc work on BSD platforms.
46278         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46279         * tests/test-fflush2.c: New file.
46280         * tests/test-fflush2.sh: New file.
46281         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46282         tests/test-fflush2.c.
46283         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46284         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46285
46286 2008-03-06  Eric Blake  <ebb9@byu.net>
46287
46288         Likewise for ftello.
46289         * modules/ftello (Dependencies): Add extensions.
46290         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46291
46292 2008-03-06  Bruno Haible  <bruno@clisp.org>
46293
46294         * modules/fseeko (Dependencies): Add extensions.
46295         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46296         Needed on glibc systems.
46297
46298 2008-03-06  Bruno Haible  <bruno@clisp.org>
46299
46300         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46301         email address.
46302         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46303
46304 2008-03-06  Bruno Haible  <bruno@clisp.org>
46305
46306         * users.txt: Add libgnupdf.
46307
46308 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46309
46310         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46311         (Header File Substitutes, Function Substitutes,
46312         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46313         (Build robot for gnulib): Fix typo.
46314
46315 2008-03-06  Bruno Haible  <bruno@clisp.org>
46316
46317         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46318         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46319
46320 2008-03-06  Bruno Haible  <bruno@clisp.org>
46321
46322         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46323         * doc/gnulib.texi: Include it.
46324
46325 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46326
46327         * modules/func (License): Change license to unlimited; there was
46328         no LGPL parts in the module anyway.
46329
46330 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46331
46332         * modules/__func__: Renamed to modules/func.
46333         * modules/__func__-tests: Renamed to modules/func-tests.
46334         * tests/test-__func__.c: Renamed to tests/test-func.c.
46335         * m4/__func__.m4: Renamed to m4/func.m4.
46336         * doc/gnulib.texi (__func__): Section renamed to func.
46337         Suggested by Eric Blake <ebb9@byu.net>.
46338
46339 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46340
46341         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46342         about __func__.  Make example self-contained.  Suggested by Eric
46343         Blake <ebb9@byu.net>.
46344
46345         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46346         Suggested by Eric Blake <ebb9@byu.net>.
46347
46348 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46349
46350         * modules/__func__: New file.
46351         * modules/__func__-tests: New file.
46352         * tests/test-__func__.c: New file.
46353         * m4/__func__.m4: New file.
46354         * doc/gnulib.texi (__func__): Document __func__ module.
46355
46356 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46357
46358         * modules/byteswap (License): Re-license as LGPLv2+.
46359
46360 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46361
46362         * doc/Makefile: Add pdf target.
46363
46364 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46365
46366         * modules/inline (License): Use 'unlimited', since there are only
46367         *.m4 files in this module.
46368
46369 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46370             Bruno Haible  <bruno@clisp.org>
46371
46372         Add support for HP C 7.1 on OpenVMS 8.3.
46373         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46374
46375 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46376
46377         Update VMS specifics.
46378         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46379
46380 2008-03-02  Jim Meyering  <meyering@redhat.com>
46381
46382         Remove the last dependency on the "free" module.
46383         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46384         Reported by Bob Proulx.
46385
46386         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46387
46388         Remove useless "if" tests before free.  Deprecate "free" module.
46389         * doc/posix-functions/free.texi: Mention that this
46390         module is no longer useful.
46391         * modules/free (Notice): Say this module is obsolete.
46392         * modules/readutmp (Depends-on): Remove free.
46393         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46394         * lib/putenv.c (putenv): Likewise.
46395         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46396         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46397         * tests/test-c-strcasestr.c (main): Likewise.
46398         * tests/test-c-strstr.c (main): Likewise.
46399         * tests/test-mbscasestr1.c (main): Likewise.
46400         * tests/test-mbscasestr2.c (main): Likewise.
46401         * tests/test-mbsstr1.c (main): Likewise.
46402         * tests/test-mbsstr2.c (main): Likewise.
46403         * tests/test-memmem.c (main): Likewise.
46404         * tests/test-strcasestr.c (main): Likewise.
46405         * tests/test-striconv.c (main): Likewise.
46406         * tests/test-striconveh.c (main): Likewise.
46407         * tests/test-striconveha.c (main): Likewise.
46408         * tests/test-strstr.c (main): Likewise.
46409
46410         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46411
46412         bootstrap: sync from coreutils again
46413         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46414
46415 2008-03-01  Jim Meyering  <meyering@redhat.com>
46416
46417         bootstrap: sync from coreutils
46418         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46419         also when the target doesn't exist.
46420
46421 2008-03-01  Eric Blake  <ebb9@byu.net>
46422
46423         Fix bugs in last patch.
46424         * lib/memchr2.c (memchr2): Fix typo.
46425         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46426         extension.
46427         Reported by Bruce Korb.
46428
46429         New module 'memchr2'.
46430         * modules/memchr2: New file.
46431         * modules/memchr2-tests: Likewise.
46432         * lib/memchr2.h: Likewise.
46433         * lib/memchr2.c: Likewise, based on memchr.c.
46434         * tests/test-memchr2.c: New test.
46435         * MODULES.html.sh (String handling): Add memchr2.
46436
46437 2008-02-29  Bruno Haible  <bruno@clisp.org>
46438
46439         * modules/freadseek-tests: New file.
46440         * tests/test-freadseek.sh: New file.
46441         * tests/test-freadseek.c: New file.
46442
46443         New module 'freadseek'.
46444         * modules/freadseek: New file.
46445         * lib/freadseek.h: New file.
46446         * lib/freadseek.c: New file.
46447         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46448
46449 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46450
46451         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46452         wydawca.
46453
46454         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46455         program_invocation_name and program_invocation_short_name are
46456         present.
46457
46458 2008-02-28  Bruno Haible  <bruno@clisp.org>
46459
46460         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46461         * tests/test-freadptr.sh: Also test non-seekable stdin.
46462
46463 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46464
46465         * build-aux/bootstrap (source_base, m4_base)
46466         (doc_base, tests_base): New variables.
46467         (gnulib_tool_options): Do not hardcode base directories, use
46468         the above variables instead.
46469
46470 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46471
46472         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46473
46474 2008-02-28  Bruno Haible  <bruno@clisp.org>
46475
46476         * modules/freadptr-tests: New file.
46477         * tests/test-freadptr.sh: New file.
46478         * tests/test-freadptr.c: New file.
46479
46480         New module 'freadptr'.
46481         * modules/freadptr: New file.
46482         * lib/freadptr.h: New file.
46483         * lib/freadptr.c: New file.
46484         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46485
46486 2008-02-26  Karl Berry  <karl@freefriends.org>
46487
46488         Sync from Libtool:
46489         * libltdl/argz.c (argz_add, argz_count): New functions.
46490         * libltdl/argz.in.h: Declare them.
46491         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46492
46493 2008-02-22  Bruno Haible  <bruno@clisp.org>
46494
46495         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46496         is a pointer type.  Needed for HP-UX 10.
46497         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46498         * doc/posix-functions/gmtime_r.texi: Likewise.
46499         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46500
46501 2008-02-24  Bruno Haible  <bruno@clisp.org>
46502
46503         * modules/environ-tests: New file.
46504         * tests/test-environ.c: New file.
46505
46506         New module 'environ'.
46507         * modules/environ: New file.
46508         * lib/unistd.in.h (environ): New declaration.
46509         * m4/environ.m4: New file.
46510         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46511         after use.
46512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46513         HAVE_DECL_ENVIRON.
46514         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46515         HAVE_DECL_ENVIRON.
46516         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46517         wrong claim that 'environ' is missing on some systems.
46518         * modules/execute (Depends-on): Add environ.
46519         * lib/execute.c (environ): Remove fallback declaration.
46520         * modules/pipe (Depends-on): Add environ.
46521         * lib/pipe.c (environ): Remove fallback declaration.
46522         * modules/setenv (Depends-on): Add environ.
46523         * lib/setenv.c (environ): Remove fallback declaration.
46524         * modules/unsetenv (Depends-on): Add environ.
46525         * lib/unsetenv.c (environ): Remove fallback declaration.
46526         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46527         m4/environ.m4.
46528         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46529         (gl_PREREQ_UNSETENV): Likewise.
46530
46531 2008-02-24  Bruno Haible  <bruno@clisp.org>
46532
46533         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46534
46535 2008-02-20  Bob Proulx  <bob@proulx.com>
46536
46537         Enable use of older two part flavor 'git describe'.
46538         * build-aux/git-version-gen: If using the older two part flavor of
46539         git version then recreate the third part now present in the
46540         newer three part flavor of git describe.
46541
46542 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46543
46544         * lib/fts.c (fts_build): Typo correction to comment.
46545
46546 2008-02-17  Bruno Haible  <bruno@clisp.org>
46547
46548         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46549         generating no-op conflicts.
46550
46551 2008-02-17  Bruno Haible  <bruno@clisp.org>
46552
46553         Speed up by 10%.
46554         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46555         result_entries, rather than an index-based loop.
46556
46557 2008-02-17  Bruno Haible  <bruno@clisp.org>
46558
46559         Speed up by 25%.
46560         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46561         'hashcode_cached'.
46562         (entry_create): New function.
46563         (entry_hashcode): Use the cached hashcode if possible.
46564         (read_changelog_file, try_split_merged_entry): Use entry_create.
46565
46566 2008-02-17  Bruno Haible  <bruno@clisp.org>
46567
46568         Speed up from O(n^2) to O(n) for long ChangeLog files.
46569         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46570         (read_changelog_file): Change implementation of entries_reversed list
46571         to rbtreehash.
46572         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46573
46574 2008-02-17  Bruno Haible  <bruno@clisp.org>
46575
46576         New option --split-merged-entry.
46577         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46578         (find_paragraph_end, try_split_merged_entry): New functions.
46579         (long_options): Add option --split-merged-entry.
46580         (usage): Document option --split-merged-entry.
46581         (main): Implement option --split-merged-entry.
46582         Reported by Eric Blake.
46583
46584 2008-02-17  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/git-merge-changelog.c: Include c-strstr.h.
46587         (main): Support the "git pull --rebase" situation.
46588         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46589         Reported by Eric Blake.
46590
46591 2008-02-16  Eric Blake  <ebb9@byu.net>
46592
46593         Avoid doubling \ in common case of "c-maybe" quoting style.
46594         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46595         eliding outer quotes.
46596         * lib/quotearg.h: Document this.
46597         * tests/test-quotearg.c (result_strings, inputs, results_g)
46598         (flag_results, locale_results): Test it by adding a new string to
46599         each test group.
46600         (compare_strings): Test new string.
46601
46602 2008-02-13  Eric Blake  <ebb9@byu.net>
46603
46604         Avoid trigraph quoting in default output.
46605         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46606         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46607         unless explicitly requested.
46608         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46609
46610 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46611
46612         Don't rely on signed integer overflowing to negative value.
46613         * lib/getugroups.c (getugroups): Include <limits.h>.
46614         Instead, compare against INT_MAX, and increment only if the test passes.
46615
46616 2008-02-13  Jim Meyering  <meyering@redhat.com>
46617         and Eric Blake  <ebb9@byu.net>
46618
46619         Avoid shadowing warning and compile errors on Linux.
46620         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46621         forwarding macros on Linux.
46622         (dcgettext): Define a stub, for Linux.
46623         (results_g, main): Avoid warnings.
46624
46625 2008-02-12  Eric Blake  <ebb9@byu.net>
46626
46627         Silence warning in last patch.
46628         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46629
46630         Quotearg part 4: add tests, fix c-maybe colon quoting.
46631         * lib/quotearg.h: Improve documentation.
46632         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46633         escapes when adding outer quotes.  When quoting trigraphs, use
46634         valid C notation.  When quoting NUL, omit extra characters if next
46635         character is not digit.  Alter prototype.
46636         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46637         callers.
46638         * modules/quotearg-tests: New module.
46639         * tests/test-quotearg.c: New test.
46640
46641 2008-02-07  Eric Blake  <ebb9@byu.net>
46642
46643         Quotearg part 3: add flag to control outer quote elision.
46644         * lib/quotearg.h (c_maybe_quoting_style): New style.
46645         (enum quoting_flags): Better documentation of flags.
46646         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46647         c-maybe style.
46648         (quotearg_buffer_restyled): Handle new flag to elide outer
46649         quotes.
46650
46651         Quotearg part 2: add flag that can control NUL elision.
46652         * lib/quotearg.h (set_quoting_flags): New prototype.
46653         * lib/quotearg.c (struct quoting_options): Add flag field.
46654         (set_quoting_flags): New function.
46655         (quotearg_buffer_restyled): Add flags parameter.
46656         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46657         (quotearg_n_options): Set the flag, since length cannot be
46658         returned.
46659         (quoting_options_from_style): Default flags correctly.
46660
46661         Quotearg part 1: more wrappers, restore quotearg_char state.
46662         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46663         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46664         (quotearg_colon_mem): New wrappers.
46665         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46666         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46667         functions.
46668         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46669         (quotearg_colon_mem): New functions.
46670
46671 2008-02-11  Bruno Haible  <bruno@clisp.org>
46672
46673         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46674         library in the current directory: it does not work with parallel make.
46675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46676
46677 2008-02-11  Bruno Haible  <bruno@clisp.org>
46678
46679         * .gitattributes: New file.
46680
46681 2008-02-11  Jim Meyering  <meyering@redhat.com>
46682
46683         useless-if-before-free: Fix reversed exit values.
46684         * build-aux/useless-if-before-free: Use correct values
46685         for EXIT_MATCH and EXIT_NO_MATCH.
46686
46687         * build-aux/useless-if-before-free: Close stdout carefully.
46688
46689 2008-02-10  Bruno Haible  <bruno@clisp.org>
46690
46691         New module 'git-merge-changelog'.
46692         * modules/git-merge-changelog: New file.
46693         * lib/git-merge-changelog.c: New file.
46694
46695 2008-02-10  Jim Meyering  <meyering@redhat.com>
46696
46697         useless-if-before-free: New option: --list (-l).
46698
46699         useless-if-before-free: Don't exit immediately upon open failure.
46700         * build-aux/useless-if-before-free: Exit 2 for errors.
46701         Upon failure to open a file, don't exit immediately.
46702         Rather, just warn and continue with any remaining files.
46703
46704 2008-02-10  Bruno Haible  <bruno@clisp.org>
46705
46706         New abstract list operation 'node_set_value'.
46707         * lib/gl_list.h (gl_list_node_set_value): New function.
46708         (struct gl_list_implementation): New field node_set_value.
46709         * lib/gl_list.c (gl_list_node_set_value): New function.
46710         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46711         (gl_array_list_implementation): Update.
46712         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46713         (gl_carray_list_implementation): Update.
46714         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46715         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46716         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46717         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46718         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46719         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46720         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46721         Update.
46722         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46723         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46724         (gl_sublist_list_implementation): Update.
46725
46726 2008-02-10  Bruno Haible  <bruno@clisp.org>
46727
46728         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46729         Needed when ELEMENT is #defined to 'some_type *'.
46730
46731 2008-02-10  Jim Meyering  <meyering@redhat.com>
46732
46733         New script and module: useless-if-before-free
46734         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46735         * build-aux/useless-if-before-free: New file.
46736         * modules/useless-if-before-free: New file.
46737
46738         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46739
46740         xstrtol_error: Fix typo.
46741         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46742         s/exit_failure/exit_status/.
46743
46744 2008-02-09  Jim Meyering  <meyering@redhat.com>
46745
46746         New script and module: gitlog-to-changelog
46747         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46748         * modules/gitlog-to-changelog: New file.
46749         * build-aux/gitlog-to-changelog: New file.
46750
46751 2008-02-08  Jim Meyering  <meyering@redhat.com>
46752
46753         Avoid two "parameter unused" warnings.
46754         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46755         Mark "st" as used.
46756
46757         Use "git COMMAND", not "git-COMMAND".
46758         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46759         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46760         * build-aux/git-version-gen: Use "git status", not "git-status".
46761
46762 2008-02-07  Bruno Haible  <bruno@clisp.org>
46763
46764         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46765         Avoids a crash on Windows Vista.
46766         Reported by Adam Strzelecki <ono@java.pl> via
46767         Simon Josefsson <simon@josefsson.org>.
46768
46769 2008-02-06  Bruno Haible  <bruno@clisp.org>
46770
46771         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46772         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46773         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46775         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46776         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46777         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46778         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46780         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46786         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46787         left-adjust flag.
46788         * tests/test-snprintf-posix.h (test_function): Likewise.
46789         * tests/test-sprintf-posix.h (test_function): Likewise.
46790         * tests/test-vasprintf-posix.c (test_function): Likewise.
46791         * doc/posix-functions/fprintf.texi: Update.
46792         * doc/posix-functions/printf.texi: Update.
46793         * doc/posix-functions/snprintf.texi: Update.
46794         * doc/posix-functions/sprintf.texi: Update.
46795         * doc/posix-functions/vfprintf.texi: Update.
46796         * doc/posix-functions/vprintf.texi: Update.
46797         * doc/posix-functions/vsnprintf.texi: Update.
46798         * doc/posix-functions/vsprintf.texi: Update.
46799         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46800
46801 2008-02-06  Bruno Haible  <bruno@clisp.org>
46802
46803         Fix bug introduced on 2008-01-26.
46804         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46805
46806 2008-02-06  Bruno Haible  <bruno@clisp.org>
46807
46808         Fix bug introduced on 2007-06-10.
46809         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46810         !NEED_PRINTF_FLAG_ZERO.
46811
46812 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46813
46814         getloadavg: use libperfstat on AIX5
46815         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46816
46817 2008-02-03  Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/diffseq.h: Add comments about required #includes.
46820         Reported by Michael Biggs <gnulib@doubleplum.net>.
46821
46822 2008-02-01  Bruno Haible  <bruno@clisp.org>
46823
46824         * users.txt: Add gnuit.
46825
46826 2008-01-31  Bruno Haible  <bruno@clisp.org>
46827
46828         * lib/md4.c (set_uint32): Mark as inline.
46829         * lib/md5.c (set_uint32): Likewise.
46830         * lib/sha1.c (set_uint32): Likewise.
46831         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46832         * m4/md5.m4 (gl_MD5): Likewise.
46833         * m4/sha1.m4 (gl_SHA1): Likewise.
46834
46835 2008-01-31  Jim Meyering  <meyering@redhat.com>
46836
46837         Use "sizeof VAR", rather than a literal "4".
46838         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46839         * lib/md4.c (md4_read_ctx): Likewise.
46840         * lib/sha1.c (sha1_read_ctx): Likewise.
46841
46842 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46843
46844         * tests/test-sha1.c: New file, based on test-md5.c.
46845
46846         * modules/crypto/sha1-tests: New file.
46847
46848 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46849
46850         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46851
46852 2008-01-31  Jim Meyering  <meyering@redhat.com>
46853
46854         Prefer "sizeof v" over the equivalent "4".
46855         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46856         * lib/md5.c (set_uint32): Likewise.
46857         * lib/sha1.c (set_uint32): Likewise.
46858
46859 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46860
46861         * lib/sha1.c (set_uint32): Mark function as static.
46862
46863 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46864
46865         md2: clarify comments to say that alignment is not required.
46866         * lib/md2.h: Remove warning about alignment in comment.
46867         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46868         never been required.
46869
46870 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46871
46872         md4: adapt alignment constraint fix from sha1.
46873         * lib/md4.c (set_uint32): New function, from sha1.c
46874         (md4_read_ctx): Use it.
46875         (md4_finish_ctx): Doc fix.
46876         * lib/md4.h: Doc fix.
46877
46878 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46879
46880         md5: adapt alignment constraint fix from sha1.
46881         * lib/md5.c (set_uint32): New function, from sha1.c
46882         (md5_read_ctx): Use it.
46883         (md5_finish_ctx): Doc fix.
46884         * lib/md5.h: Doc fix.
46885
46886 2008-01-30  Peter Palfrader  <weasel@debian.org>
46887
46888         sha1: remove the result buffer alignment constraint
46889         * lib/sha1.c (set_uint32): New function.
46890         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46891         constraint.
46892         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46893         * lib/sha1.h: Likewise.
46894
46895 2008-01-30  Andreas Schwab  <schwab@suse.de>
46896             Bruno Haible  <bruno@clisp.org>
46897
46898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46899         correct definition of LDBL_MIN_EXP.
46900
46901 2008-01-30  Karl Berry  <karl@gnu.org>
46902
46903         * config/srclist-update: try to preserve x bit on updates.
46904         * config/srclistvars.sh: update for karl.
46905
46906 2008-01-29  Jim Meyering  <meyering@redhat.com>
46907
46908         vasnprintf.c: Avoid warning about unused label
46909         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46910         "overflow" label definition and associated code with the
46911         same cpp condition that guards the sole use of that label.
46912
46913 2008-01-26  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46916         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46917         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46918         * lib/isnanl-nolibm.h (isnanl): Likewise.
46919         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46920
46921 2008-01-26  Bruno Haible  <bruno@clisp.org>
46922
46923         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46924         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46925
46926 2008-01-26  Bruno Haible  <bruno@clisp.org>
46927
46928         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46929         GCC >= 4.0 built-in.
46930         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46931
46932 2008-01-26  Bruno Haible  <bruno@clisp.org>
46933
46934         Rename isnan, applicable to 'double' only, to isnand.
46935         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46936         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46937         (configure.ac): Update.
46938         (Include): Replace "isnan.h" with "isnand.h".
46939         * m4/isnand.m4: Renamed from m4/isnan.m4.
46940         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46941         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46942         instead of isnan.c.
46943         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46944         instead of HAVE_ISNAN_IN_LIBC.
46945         (isnand): Renamed from isnan.
46946         * lib/isnand.c: New file.
46947         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46948         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46949         (Makefile.am): Update.
46950         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46951         Include isnand.h instead of isnan.h.
46952         (main): Test isnand instead of isnan.
46953         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46954         isnan-nolibm.
46955         * modules/frexp (Depends-on): Likewise.
46956         * modules/frexp-tests (Depends-on): Likewise.
46957         * modules/frexp-nolibm (Depends-on): Likewise.
46958         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46959         * modules/isfinite (Depends-on): Likewise.
46960         * modules/round-tests (Depends-on): Likewise.
46961         * modules/signbit (Depends-on): Likewise.
46962         * modules/signbit-tests (Depends-on): Likewise.
46963         * modules/snprintf-posix (Depends-on): Likewise.
46964         * modules/sprintf-posix (Depends-on): Likewise.
46965         * modules/trunc-tests (Depends-on): Likewise.
46966         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46967         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46968         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46969         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46970         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46971         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46972         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46973         * modules/vasnprintf-posix (Depends-on): Likewise.
46974         * modules/vasprintf-posix (Depends-on): Likewise.
46975         * modules/vfprintf-posix (Depends-on): Likewise.
46976         * modules/vsnprintf-posix (Depends-on): Likewise.
46977         * modules/vsprintf-posix (Depends-on): Likewise.
46978         * lib/frexp.c: Include isnand.h instead of isnan.h.
46979         (ISNAN): Set to isnand instead of isnan.
46980         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46981         (gl_isfinited): Use isnand instead of isnan.
46982         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46983         (gl_signbitd): Use isnand instead of isnan.
46984         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46985         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46986         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46987         (main): Use isnand instead of isnan.
46988         * tests/test-round1.c: Include isnand.h.
46989         (main): Use isnand instead of isnan.
46990         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46991         (ISNAN): Set to isnand instead of isnan.
46992         * tests/test-trunc1.c: Include isnand.h.
46993         (main): Use isnand instead of isnan.
46994         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46995         (equal): Use isnand instead of isnan.
46996         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46997         isnand-nolibm.
46998         * NEWS: Mention the change.
46999
47000 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47001             Bruno Haible  <bruno@clisp.org>
47002
47003         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47004         the GCC builtins for signbits are present and set
47005         REPLACE_SIGNBIT_USING_GCC if so.
47006         * lib/math.in.h (signbit): Define using GCC builtins if
47007         REPLACE_SIGNBIT_USING_GCC is set.
47008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47009         REPLACE_SIGNBIT_USING_GCC.
47010         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47011
47012 2008-01-25  Jim Meyering  <meyering@redhat.com>
47013
47014         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47015         * lib/poll.c: Include <config.h>, not "config.h".
47016         * tests/test-getaddrinfo.c: Likewise.
47017
47018 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47019
47020         * modules/sockets-tests: New file.
47021
47022 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47023
47024         * modules/sockets: New module, can be used to call WSA_Startup and
47025         WSA_Cleanup when needed.
47026
47027         * lib/sockets.h, lib/sockets.c: New files.
47028
47029         * m4/sockets.m4: New file.
47030
47031         * tests/test-sockets.c: New file.
47032
47033 2008-01-19  Bruno Haible  <bruno@clisp.org>
47034
47035         * doc/posix-headers: Renamed from doc/headers.
47036         * doc/posix-functions: Renamed from doc/functions.
47037         * doc/gnulib.texi: Update.
47038
47039 2008-01-19  Bruno Haible  <bruno@clisp.org>
47040
47041         * doc/glibc-functions/strcasestr.texi: Include contents of
47042         doc/functions/strcasestr.texi, fixing the list of platforms.
47043         * doc/functions/strcasestr.texi: Remove file.
47044
47045 2008-01-19  Bruno Haible  <bruno@clisp.org>
47046
47047         * doc/glibc-functions/memmem.texi: Include contents of
47048         doc/functions/memmem.texi.
47049         * doc/functions/memmem.texi: Remove file.
47050
47051 2008-01-18  Bruno Haible  <bruno@clisp.org>
47052
47053         * doc/glibc-functions/*.texi: New files.
47054         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47055         to use the new files.
47056
47057 2008-01-17  Bruno Haible  <bruno@clisp.org>
47058
47059         * tests/test-gethostname.c (main): Fix printf statement.
47060
47061 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47062
47063         * modules/gethostname-tests: New file.
47064
47065         * tests/test-gethostname.c: New file.
47066
47067 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47068
47069         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47070         used by the UNAME case.  Reported by Bruno Haible
47071         <bruno@clisp.org>.
47072
47073 2008-01-17  Eric Blake  <ebb9@byu.net>
47074
47075         Convert c-strcasestr to be more efficient.
47076         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47077         (Depends-on): Add c-strcase, remove malloca, strnlen.
47078         * tests/test-c-strcasestr.c (main): Enhance test.
47079         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47080
47081 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47082
47083         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47084         Use it in creating po/Makevars.
47085
47086 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47087
47088         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47089         Applications that requires it should initialize libgcrypt
47090         manually.
47091
47092 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47093
47094         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47095
47096 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47097
47098         Fix problem with getdate on mingw32 reported by Simon Josefsson
47099         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47100         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47101         tzname", when deciding whether to declare tzname.
47102         * lib/strftime.c (tzname): Likewise.
47103
47104 2008-01-15  Bruno Haible  <bruno@clisp.org>
47105
47106         Work around a MacOS X 10.5 bug in frexpl().
47107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47108         * doc/functions/frexpl.texi: Document the bug.
47109         Reported by Elias Pipping <pipping@gentoo.org>.
47110
47111 2008-01-14  Eric Blake  <ebb9@byu.net>
47112
47113         Touch up previous patch.
47114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47115         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47116
47117         Convert strcasestr module to use Two-Way algorithm.
47118         * modules/strcasestr-simple: New module, based on the old
47119         strcasestr, but with Two-Way rather than KMP.
47120         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47121         * lib/string.in.h (rpl_strcasestr): Declare.
47122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47123         performance.
47124         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47125         * modules/string (Makefile.am): Support strcasestr.
47126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47127         * modules/strcasestr-tests (Depends-on): Check for alarm.
47128         * tests/test-strcasestr.c: Augment test.
47129         * lib/str-two-way.h: Clean up stray macro.
47130         * NEWS: Document new module.
47131         * MODULES.html.sh (string handling): Likewise.
47132         * doc/functions/strcasestr.texi: New file.
47133         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47134         here, since it is not a POSIX function.
47135
47136 2008-01-14  Colin Watson  <cjwatson@debian.org>
47137             Bruno Haible  <bruno@clisp.org>
47138
47139         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47140         works fine; if not, set REPLACE_STRSIGNAL.
47141         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47143         REPLACE_STRSIGNAL.
47144         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47145         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47146         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47147
47148 2008-01-14  Bruno Haible  <bruno@clisp.org>
47149
47150         * modules/strsignal (Include): Change to <string.h>.
47151
47152 2008-01-14  Colin Watson  <cjwatson@debian.org>
47153
47154         * modules/argp (Notice): Add a notice recommending to change
47155         XGETTEXT_OPTIONS.
47156         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47157
47158 2008-01-13  Colin Watson  <cjwatson@debian.org>
47159
47160         * modules/strsignal-tests: New file.
47161         * tests/test-strsignal.c: New file.
47162
47163         * lib/strsignal.c: New file, from glibc with modifications.
47164         * lib/siglist.h: New file, from glibc with modifications.
47165         * lib/string.in.h (strsignal): New declaration.
47166         * m4/strsignal.m4: New file.
47167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47168         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47169         * modules/strsignal: New file.
47170         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47171         HAVE_DECL_STRSIGNAL.
47172
47173 2008-01-13  Bruno Haible  <bruno@clisp.org>
47174
47175         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47176         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47177         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47178         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47179
47180 2008-01-13  Bruno Haible  <bruno@clisp.org>
47181
47182         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47183         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47184         * lib/argp.h (__attribute__): Likewise.
47185         * lib/c-stack.c (__attribute__): Likewise.
47186         * lib/error.h (__attribute__): Likewise.
47187         * lib/fts.c (__attribute__): Likewise.
47188         * lib/openat.h (__attribute__): Likewise.
47189         * lib/stdio.in.h (__attribute__): Likewise.
47190         * lib/string.in.h (__attribute__): Likewise.
47191         * lib/utimens.c (__attribute__): Likewise.
47192         * lib/vasnprintf.h (__attribute__): Likewise.
47193         * lib/xalloc.h (__attribute__): Likewise.
47194         * lib/xprintf.h (__attribute__): Likewise.
47195         * lib/xstrtol.h (__attribute__): Likewise.
47196         * lib/xvasprintf.h (__attribute__): Likewise.
47197
47198 2008-01-12  Bruno Haible  <bruno@clisp.org>
47199
47200         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47201         * doc/glibc-headers/a.out.texi: New file.
47202         * doc/glibc-headers/aliases.texi: New file.
47203         * doc/glibc-headers/alloca.texi: New file.
47204         * doc/glibc-headers/ar.texi: New file.
47205         * doc/glibc-headers/argp.texi: New file.
47206         * doc/glibc-headers/argz.texi: New file.
47207         * doc/glibc-headers/byteswap.texi: New file.
47208         * doc/glibc-headers/crypt.texi: New file.
47209         * doc/glibc-headers/endian.texi: New file.
47210         * doc/glibc-headers/envz.texi: New file.
47211         * doc/glibc-headers/err.texi: New file.
47212         * doc/glibc-headers/error.texi: New file.
47213         * doc/glibc-headers/execinfo.texi: New file.
47214         * doc/glibc-headers/fpu_control.texi: New file.
47215         * doc/glibc-headers/fstab.texi: New file.
47216         * doc/glibc-headers/fts.texi: New file.
47217         * doc/glibc-headers/getopt.texi: New file.
47218         * doc/glibc-headers/ieee754.texi: New file.
47219         * doc/glibc-headers/ifaddrs.texi: New file.
47220         * doc/glibc-headers/libintl.texi: New file.
47221         * doc/glibc-headers/mcheck.texi: New file.
47222         * doc/glibc-headers/mntent.texi: New file.
47223         * doc/glibc-headers/obstack.texi: New file.
47224         * doc/glibc-headers/paths.texi: New file.
47225         * doc/glibc-headers/printf.texi: New file.
47226         * doc/glibc-headers/pty.texi: New file.
47227         * doc/glibc-headers/resolv.texi: New file.
47228         * doc/glibc-headers/shadow.texi: New file.
47229         * doc/glibc-headers/sysexits.texi: New file.
47230         * doc/glibc-headers/ttyent.texi: New file.
47231
47232 2008-01-12  Jim Meyering  <meyering@redhat.com>
47233
47234         announce-gen: emit Gnulib's git-based version string.
47235         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47236         New option --gnulib-version=V, where V is expected to be
47237         the output of running git describe in the gnulib directory.
47238         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47239         not useful, and plan to stop publishing an xdelta file with each
47240         coreutils release.
47241
47242         * build-aux/announce-gen: Also check for lzma-compressed files.
47243
47244 2008-01-11  Bruno Haible  <bruno@clisp.org>
47245
47246         * tests/test-memmem.c (main): Increase maximum allowed time.
47247         * tests/test-strstr.c (main): Likewise.
47248
47249 2008-01-11  Bruno Haible  <bruno@clisp.org>
47250
47251         * doc/functions/memmem.texi: Add more precisions about platforms.
47252         * doc/functions/strstr.texi: Likewise.
47253
47254 2008-01-10  Eric Blake  <ebb9@byu.net>
47255
47256         * m4/strstr.m4: Delete cruft from copy-n-paste.
47257         Reported by Bruno Haible.
47258
47259 2008-01-10  Bruno Haible  <bruno@clisp.org>
47260
47261         Make c-strstr rely on strstr.
47262         * lib/c-strstr.c: Don't include str-kmp.h.
47263         (c_strstr): Define in terms of strstr.
47264         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47265         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47266
47267 2008-01-10  Bruno Haible  <bruno@clisp.org>
47268
47269         * doc/gnulib.texi (String Functions in C Locale): New section.
47270         * doc/c-ctype.texi: New file.
47271         * doc/c-strcase.texi: New file.
47272         * doc/c-strcaseeq.texi: New file.
47273         * doc/c-strcasestr.texi: New file.
47274         * doc/c-strstr.texi: New file.
47275         * doc/c-strtod.texi: New file.
47276         * doc/c-strtold.texi: New file.
47277
47278 2008-01-10  Eric Blake  <ebb9@byu.net>
47279
47280         * lib/relocatable.h: Fix a comment.
47281
47282 2008-01-10  Eric Blake  <ebb9@byu.net>
47283
47284         Share two-way algorithm.
47285         * lib/str-two-way.h: New file, merged from...
47286         * lib/memmem.c: ...here...
47287         * lib/strstr.c: ...and here.
47288         * modules/memmem (Files): Use it.
47289         * modules/strstr (Files): Likewise.
47290
47291         Avoid quadratic strstr implementations.
47292         * lib/strstr.c: New file.
47293         * m4/strstr.m4: Likewise.
47294         * modules/strstr: Likewise.
47295         * modules/strstr-tests: Likewise.
47296         * tests/test-strstr.c: Likewise.
47297         * lib/string.in.h (rpl_strstr): Declare.
47298         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47300         * modules/string (Makefile.am): Likewise.
47301         * MODULES.html.sh (string handling): Mention new module.
47302         * doc/functions/strstr.texi (strstr): Document the bug.
47303
47304 2008-01-10  Bruno Haible  <bruno@clisp.org>
47305
47306         * lib/relocatable.h (relocate): State whether result is freshly
47307         allocated or not.
47308         * lib/relocatable.c (relocate): Return a freshly allocated string
47309         instead of a pointer to a privately held string.
47310         Reported by Sylvain Beucler <beuc@gnu.org>.
47311
47312 2008-01-10  Colin Watson  <cjwatson@debian.org>
47313
47314         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47315         s/S_ISNLK/S_ISLNK/.
47316
47317 2008-01-09  Bruno Haible  <bruno@clisp.org>
47318
47319         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47320         and other files.
47321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47322         if it's only a guess.
47323         * modules/memmem: Simplify by depending on memmem-simple.
47324
47325 2008-01-09  Bruno Haible  <bruno@clisp.org>
47326
47327         Work around OpenBSD 4.0 tdelete() bug.
47328         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47329         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47330         macros and don't redefine the enum values.
47331         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47332         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47333         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47334
47335 2008-01-09  Bruno Haible  <bruno@clisp.org>
47336
47337         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47338         (main): Don't perform the tests if setlocale did not install a UTF-8
47339         locale. Needed on OpenBSD 4.0.
47340         * modules/wcwidth-tests (Depends-on): Add localcharset.
47341
47342 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47343
47344         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47345         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47346         * NEWS: announce this.
47347         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47348
47349 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47350         and Eric Blake  <ebb9@byu.net>
47351
47352         Add memmem-simple module.
47353         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47354         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47355         * modules/memmem-simple: New file.
47356         * modules/memmem (Description): Tweak.
47357         * MODULES.html.sh (string handling): Mention new module.
47358         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47359         addressed by memmem-simple.
47360         * NEWS: Document the difference.
47361
47362 2008-01-09  Eric Blake  <ebb9@byu.net>
47363
47364         Give gcc some memmem optimization hints.
47365         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47366         (strcasestr): Declare as pure.
47367         * modules/memmem (Maintainer): Claim my implementation.
47368
47369 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47370
47371         Support AIX 6.1 and higher.
47372         * build-aux/config.libpath: Likewise.
47373         * build-aux/config.rpath: Likewise.
47374
47375 2008-01-08  Jim Meyering  <meyering@redhat.com>
47376             Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47379         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47380         Reported by Peter Fales in
47381         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47382
47383 2008-01-08  Bruno Haible  <bruno@clisp.org>
47384
47385         * modules/unictype/category-of (Depends-on): Add
47386         unictype/category-none.
47387         * modules/unictype/category-and-tests (Depends-on): Add
47388         unictype/category-{L,N,Lu,Nd}.
47389         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47390         * modules/unictype/category-or-tests (Depends-on): Add
47391         unictype/category-{L,N}.
47392         * modules/unictype/category-name-tests (Depends-on): Add
47393         unictype/category-{Z,Nl}.
47394         Reported by Simon Josefsson.
47395
47396 2008-01-08  Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47399         convention better.
47400         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47401         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47402         Reported by Peter Miller <millerp@canb.auug.org.au>.
47403
47404 2008-01-08  Eric Blake  <ebb9@byu.net>
47405
47406         Rewrite memmem to guarantee linear complexity without malloc.
47407         * lib/memmem.c (memmem): Use Two-Way rather than
47408         Knuth-Morris-Pratt, to allow O(1) space usage.
47409         (critical_factorization, two_way_short_needle)
47410         (two_way_long_needle): New functions.
47411         (knuth_morris_pratt): Delete.
47412         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47413         Add stdint.
47414         * tests/test-memmem.c (main): Add tests for periodic needle and
47415         sublinear performance.
47416         * doc/functions/memmem.texi (memmem): Document other deficiencies
47417         in cygwin and older glibc.
47418
47419 2008-01-08  Bruno Haible  <bruno@clisp.org>
47420
47421         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47422         augmentation.
47423
47424 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47425
47426         Add a configure time option: --disable-acl.
47427         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47428         AC_ARG_ENABLE(acl).
47429
47430 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47431
47432         * tests/test-localename.c: Don't include obsolete "setenv.h".
47433
47434         * modules/localename-tests (Depends-on): Need unsetenv.
47435
47436 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47437
47438         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47439
47440 2008-01-06  Colin Watson  <cjwatson@debian.org>
47441
47442         * users.txt: Add man-db.
47443
47444 2008-01-07  Bruno Haible  <bruno@clisp.org>
47445
47446         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47447         previous section name.
47448
47449 2008-01-07  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/progname.c (set_program_name): Don't strip off a leading
47452         "lt-" prefix outside a .libs directory.
47453         Suggested by Paul Eggert.
47454
47455 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47456             Bruno Haible  <bruno@clisp.org>
47457
47458         Improve memory cleanup in 'relocatable' module.
47459         * lib/relocatable.h (compute_curr_prefix): Change return type to
47460         'char *'.
47461         * lib/relocatable.c (compute_curr_prefix): Change return type to
47462         'char *'. Free curr_installdir after use.
47463         (relocate): Free curr_prefix_better after use.
47464         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47465
47466 2008-01-01  Bruno Haible  <bruno@clisp.org>
47467
47468         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47469         failure on older glibc systems.
47470         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47471
47472 2008-01-05  Eric Blake  <ebb9@byu.net>
47473
47474         Avoid quadratic system memmem.
47475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47476         Reported by Ralf Wildenhues.
47477
47478         Fix memmem test for mingw.
47479         * modules/memmem-tests (configure.ac): Check for alarm.
47480         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47481         it.
47482         * doc/functions/memmem.texi: New file.
47483         * doc/gnulib.texi (Function Substitutes): Add memmem.
47484         Reported by Bruno Haible.
47485
47486 2008-01-04  Bruno Haible  <bruno@clisp.org>
47487
47488         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47489         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47490         gl_HEADER_STRING_H_DEFAULTS.
47491
47492 2008-01-04  Eric Blake  <ebb9@byu.net>
47493
47494         Shorten duration of memmem test.
47495         * tests/test-memmem.c (main): Use alarm to declare failure if test
47496         is taking too long.
47497         Reported by Ralf Wildenhues.
47498
47499 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47500
47501         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47502         string, needed by strerror.
47503
47504 2008-01-03  Colin Watson  <cjwatson@debian.org>
47505             Bruno Haible  <bruno@clisp.org>
47506
47507         * doc/gnulib-tool.texi (Localization): New section.
47508
47509 2008-01-02  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47512         variables to 'unsigned char *' type.
47513         Reported by Paul Eggert.
47514
47515 2008-01-02  Jim Meyering  <jim@meyering.net>
47516
47517         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47518
47519 2007-12-31  Jim Meyering  <jim@meyering.net>
47520
47521         Avoid use of private FTS type name.
47522         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47523
47524 2007-12-30  Karl Berry  <karl@gnu.org>
47525
47526         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47527         work around defect in Texinfo and/or the standalone Info browser.
47528
47529 2007-12-30  Bruno Haible  <bruno@clisp.org>
47530
47531         Unify 5 copies of the KMP code.
47532         * lib/str-kmp.h: New file.
47533         * lib/c-strcasestr.c: Include str-kmp.h.
47534         (knuth_morris_pratt): Remove function.
47535         (c_strcasestr): Update.
47536         * lib/c-strstr.c: Include str-kmp.h.
47537         (knuth_morris_pratt): Remove function.
47538         (c_strcasestr): Update.
47539         * lib/mbscasestr.c: Include str-kmp.h.
47540         (knuth_morris_pratt_unibyte): Remove function.
47541         * lib/mbsstr.c: Include str-kmp.h.
47542         (knuth_morris_pratt_unibyte): Remove function.
47543         * lib/strcasestr.c: Include str-kmp.h.
47544         (knuth_morris_pratt): Remove function.
47545         (strcasestr): Update.
47546         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47547         * modules/c-strstr (Files): Likewise.
47548         * modules/mbscasestr (Files): Likewise.
47549         * modules/mbsstr (Files): Likewise.
47550         * modules/strcasestr (Files): Likewise.
47551         Suggested by Paul Eggert.
47552
47553 2007-12-30  Bruno Haible  <bruno@clisp.org>
47554
47555         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47556         defined.
47557
47558 2007-12-30  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/xmalloca.h: Include xalloc.h.
47561         (xnmalloca): New macro.
47562
47563 2007-12-30  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/malloca.h (nmalloca): New macro.
47566         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47567         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47568         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47569         knuth_morris_pratt_multibyte): Likewise.
47570         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47571         knuth_morris_pratt_multibyte): Likewise.
47572         * lib/memmem.c (knuth_morris_pratt): Likewise.
47573         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47574
47575 2007-12-25  Bruno Haible  <bruno@clisp.org>
47576
47577         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47578         * lib/glob.c: Don't include openat.h.
47579         (link_exists2_p): Add back the code that deals with the
47580         !GLOB_ALTDIRFUNC case.
47581         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47582         let it do the filename concatenation.
47583         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47584         * modules/glob (Depends-on): Remove openat.
47585
47586 2007-12-31  Bruno Haible  <bruno@clisp.org>
47587
47588         * modules/dirfd (License): Change to LGPLv2+.
47589         Approved by Jim Meyering.
47590
47591 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47592
47593         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47594         when multiplying M by sizeof (size_t).
47595
47596 2007-12-10  Martin Lambers  <marlam@marlam.de>
47597
47598         Override getpagesize on mingw.
47599         * lib/getpagesize.c: New file.
47600         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47601         * modules/getpagesize (Files): Add lib/getpagesize.c.
47602         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47604         REPLACE_GETPAGESIZE.
47605         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47606
47607 2007-12-25  Bruno Haible  <bruno@clisp.org>
47608
47609         * modules/localcharset (Notice): New field.
47610         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47611         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47612
47613 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47614             Bruno Haible  <bruno@clisp.org>
47615
47616         Avoid using the syntax symbol() in formatted documentation.
47617         * MODULES.html.sh (func_module): When replacing symbol() with a
47618         hyperlink, remove the parentheses. Show an error if some remain.
47619         Recognize and render the '...' syntax.
47620         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47621         Rework. Add paragraph about GCC's inlining.
47622         * doc/alloca.texi: Likewise.
47623         * doc/error.texi: Remove parentheses from symbol reference.
47624         * doc/gnulib-intro.texi: Likewise.
47625         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47626         * modules/fnmatch (Description): Reword to say "the ... function".
47627         * modules/full-read (Description): Likewise.
47628         * modules/full-write (Description): Likewise.
47629         * modules/safe-read (Description): Likewise.
47630         * modules/safe-write (Description): Likewise.
47631         * modules/strchrnul (Description): Likewise.
47632         * modules/trim (Description): Likewise.
47633         * modules/error (Description): Remove parentheses from symbol
47634         references.
47635         * modules/verror (Description): Likewise.
47636         Reported by Karl Berry.
47637
47638 2007-12-25  Bruno Haible  <bruno@clisp.org>
47639
47640         Fixup after 2007-10-16 commit.
47641         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47642
47643 2007-12-24  Bruno Haible  <bruno@clisp.org>
47644
47645         Make --enable-relocatable work with DESTDIR.
47646         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47647         to compute installdir from destprog.
47648         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47649         also set the RELOC_DESTDIR variable.
47650         Reported by Левашев Иван <octagram@bluebottle.com>.
47651
47652 2007-12-24  Bruno Haible  <bruno@clisp.org>
47653
47654         Fix link error due to xalloc_die().
47655         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47656         of xreadlink.
47657         * lib/relocwrapper.c: Update comments.
47658         * build-aux/install-reloc: Remove xreadlink.c from file list.
47659         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47660         xreadlink.c.
47661         Reported by Левашев Иван <octagram@bluebottle.com>.
47662
47663 2007-12-24  Bruno Haible  <bruno@clisp.org>
47664
47665         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47666         * lib/setenv.h: Remove file.
47667         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47668         lib/setenv.h.
47669         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47670         (Depends-on): Add stdlib.
47671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47672         gl_FUNC_UNSETENV.
47673         (Include): Replace setenv.h with <stdlib.h>.
47674         * modules/unsetenv: New file.
47675         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47676         * lib/unsetenv.c: Include <stdlib.h> first.
47677         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47678         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47679         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47680         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47681         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47682         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47684         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47685         * doc/functions/unsetenv.texi: Update.
47686         * modules/xsetenv (Depends-on): Add unsetenv.
47687         * modules/getdate (Depends-on): Likewise.
47688         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47689         * lib/xsetenv.c: Don't include setenv.h.
47690         * lib/getdate.y: Likewise.
47691         * lib/relocwrapper.c: Likewise.
47692         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47693         (Depends-on): Add stdlib.
47694         * NEWS: Mention the changes.
47695         Reported by Левашев Иван <octagram@bluebottle.com>.
47696
47697 2007-12-23  Bruno Haible  <bruno@clisp.org>
47698
47699         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47700         indentation.
47701
47702 2007-12-23  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/c-strcasestr.c: Add more comments.
47705         * lib/c-strstr.c: Likewise.
47706         * lib/mbscasestr.c: Likewise.
47707         * lib/mbsstr.c: Likewise.
47708         * lib/strcasestr.c: Likewise.
47709         * lib/memmem.c: Likewise.
47710
47711 2007-12-23  Bruno Haible  <bruno@clisp.org>
47712
47713         * tests/test-memmem.c: Include <string.h> first.
47714
47715 2007-12-22  Bruno Haible  <bruno@clisp.org>
47716
47717         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47718         the contents of $testsbase.
47719         Reported by Ralf Wildenhues.
47720
47721 2007-12-22  Bruno Haible  <bruno@clisp.org>
47722
47723         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47724         two variables local_ldadd_before, local_ldadd_last.
47725
47726 2007-12-20  Eric Blake  <ebb9@byu.net>
47727
47728         Work around circular library issue when cross-compiling.
47729         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47730         that progname.o does not need to pull in rpl_memcmp.
47731
47732 2007-12-19  Eric Blake  <ebb9@byu.net>
47733
47734         Fix memmem to avoid O(n^2) worst-case complexity.
47735         * lib/memmem.c (knuth_morris_pratt): New function.
47736         (memmem): Use it if first few naive iterations fail.
47737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47738         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47739         * modules/memchr (License): Likewise.
47740         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47741         malloca.
47742         * tests/test-memmem.c: Rewrite, borrowing ideas from
47743         test-mbsstr1.c; the old version wouldn't even compile!
47744         * modules/memmem-tests: New file.
47745         * lib/string.in.h (rpl_memmem): Add declaration.
47746         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47748         REPLACE_MEMMEM.
47749
47750 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47751
47752         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47753         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47754         before any system include files, and undef after them all.  This
47755         should fix a problem on VMS reported by John E. Malmberg in
47756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47757
47758 2007-12-17  Eric Blake  <ebb9@byu.net>
47759
47760         Revert addition of verify, for BSD/OS.
47761         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47762         can't handle large files, for the sake of obsolete platforms.
47763         * modules/fseeko (Depends-on): Remove verify.
47764         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47765         * doc/functions/ftello.texi (ftello): Likewise.
47766         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47767         Reported by Larry Jones.
47768
47769 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47770
47771         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47772         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47773
47774 2007-12-17  Jim Meyering  <meyering@redhat.com>
47775
47776         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47777         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47778         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47779         * modules/getcwd (Depends-on): Add openat.
47780         Reported by Petr Salinger.
47781
47782 2007-12-17  Bruno Haible  <bruno@clisp.org>
47783
47784         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47785         avoid a segmentation fault of the configure test on x86_64 systems.
47786
47787 2007-12-15  Jim Meyering  <meyering@redhat.com>
47788
47789         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47790
47791 2007-12-13  Eric Blake  <ebb9@byu.net>
47792
47793         Another fseek test.
47794         * tests/test-fseek.c (main): Also test ungetc handling.
47795         * tests/test-fseeko.c (main): Likewise.
47796         * modules/fseeko (Depends-on): Add verify.
47797         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47798         large.
47799         Reported by Larry Jones.
47800
47801         Fix fseeko on mingw.
47802         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47803         seek.
47804
47805         Beef up fseek tests.
47806         * tests/test-fseek.c (main): Also test eof handling.
47807         * tests/test-fseeko.c (main): Likewise.
47808         Reported by Larry Jones.
47809
47810 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47811
47812         Fix fseeko on BSD-based platforms.
47813         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47814         successful seek.
47815
47816 2007-12-12  Eric Blake  <ebb9@byu.net>
47817
47818         Allow circular dependency of separate libtests.a
47819         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47820         when use_libtests.
47821
47822 2007-12-11  Eric Blake  <ebb9@byu.net>
47823
47824         Fix bug with -0.0L in previous patch.
47825         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47826         * tests/test-isnan.c (main): Also test on zeroes.
47827         * tests/test-isnanf.c (main): Likewise.
47828         * tests/test-isnanl.h (main): Likewise.
47829
47830         Detect pseudo-denormals on x86 even when cross-compiling.
47831         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47832         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47833         invalid bit patterns that happen to satisfy ==.
47834
47835         Avoid link failures with separate libtests.a.
47836         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47837         last, to satisfy circular dependencies.
47838
47839 2007-12-11  Eric Blake  <ebb9@byu.net>
47840         and Bruno Haible  <bruno@clisp.org>
47841
47842         Fix OpenBSD 4.0 <float.h> handling of long double.
47843         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47844         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47845         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47846
47847 2007-12-11  Jim Meyering  <meyering@redhat.com>
47848
47849         * users.txt: Add libvirt.
47850
47851         Support versions of autoconf prior to 2.59c.
47852         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47853         if it is not already defined.
47854
47855 2007-12-09  Bruno Haible  <bruno@clisp.org>
47856
47857         Let 'gnulib-tool --import' collect sources needed for the tests in
47858         tests/ rather than in lib/.
47859         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47860         argument. If true, add rules to generate libtests.a, and put libtests.a
47861         into $(LDADD). Consider source files in subdirectories and set
47862         uses_subdirs.
47863         (func_emit_initmacro_start, func_emit_initmacro_end,
47864         func_emit_initmacro_done): Pass all arguments explicitly.
47865         (func_import): Determine two module lists main_modules,
47866         testsrelated_modules. Determine use_libtests. Determine two variables
47867         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47868         instead of just sed_transform_lib_file. Determine two variables
47869         main_files and testsrelated_files. Compute 'files' as the union of
47870         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47871         func_add_or_update. In the generated gnulib-comp.m4, collect the
47872         object files for tests/ in different variables than those for lib/.
47873         Substitute LIBTESTS_LIBDEPS.
47874         (func_create_testdir): Combine the uses_subdirs results from
47875         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47876
47877 2007-12-09  Bruno Haible  <bruno@clisp.org>
47878
47879         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47880         the build-aux directory.
47881
47882 2007-12-09  Bruno Haible  <bruno@clisp.org>
47883
47884         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47885         introduced on 2006-09-09.
47886
47887 2007-12-07  Jim Meyering  <meyering@redhat.com>
47888
47889         Let these macros work also with autoconf-2.59.
47890         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47891         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47892         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47893
47894 2007-12-06  Jim Meyering  <meyering@redhat.com>
47895
47896         Avoid a configure-time syntax error in gl_FUNC_ACL.
47897         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47898         function in each branch, before testing the cache variable.
47899
47900 2007-12-04  Eric Blake  <ebb9@byu.net>
47901
47902         Make scripts executable.
47903         * build-aux/config.guess: Add execute permissions.
47904         * build-aux/config.sub: Likewise.
47905         * build-aux/gendocs.sh: Likewise.
47906
47907         Fix frexp on mingw.
47908         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47909         cross-compiling.
47910         * doc/functions/frexp.texi (frexp): Document the bug.
47911
47912         Make cygwin fseeko check more reliable.
47913         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47914         version numbers, rather than unrelated feature check.
47915         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47916         * doc/functions/ftello.texi (ftello): Likewise.
47917         Reported by Bruno Haible.
47918
47919         * m4/strerror.m4: Bump version number.
47920
47921 2007-12-03  Bruno Haible  <bruno@clisp.org>
47922
47923         * doc/functions/mprotect.texi: Mention the mingw problem.
47924
47925 2007-12-03  Eric Blake  <ebb9@byu.net>
47926
47927         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47928         REPLACE_STRERROR is initialized before this macro.
47929
47930 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47931
47932         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47933         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47934         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47935         put -lsec in even for programs other than 'ls'.  This fixes a problem
47936         for gettext reported by Bruno Haible in
47937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47938         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47939         Add support for Solaris 10.  This isn't efficient, but should get the
47940         job done for now.
47941
47942 2007-12-03  James Youngman  <jay@gnu.org>
47943
47944         * doc/regexprops-generic.texi: change "an close-group" to "a
47945         close-group" and "illegal" to "not allowed".
47946
47947 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47948
47949         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47950         pr_byname.h. Needed for the rare case when the maintainer has done
47951         "make maintainer-clean" in the source directory and then attempts a
47952         build outside the source directory.
47953         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47954         scripts_byname.h.
47955
47956 2007-12-02  Martin Lambers <marlam@marlam.de>
47957             Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/getpagesize.h: Remove file.
47960         * lib/unistd.in.h: Include declaration of getpagesize here.
47961         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47962         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47963         HAVE_SYS_PARAM_H.
47964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47965         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47966         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47967         (Depends-on): Add unistd.
47968         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47969         (Include): Use <unistd.h> instead of getpagesize.h.
47970         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47971         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47972         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47973         gl_GETPAGESIZE invocation, already handled by module dependency.
47974         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47975
47976 2007-12-02  Bruno Haible  <bruno@clisp.org>
47977
47978         * modules/strings-tests: New file.
47979         * tests/test-strings.c: New file.
47980
47981         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47982         * lib/strings.in.h: New file.
47983         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47984         * m4/strings_h.m4: New file.
47985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47986         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47987         * modules/strings: New file.
47988         * modules/string (Makefile.am): Update.
47989         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47990         Reported by Karl Berry.
47991
47992 2007-12-01  Eric Blake  <ebb9@byu.net>
47993
47994         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47995         accomodate fix in cygwin 1.5.25.
47996
47997 2007-12-01  Jim Meyering  <meyering@redhat.com>
47998
47999         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48000         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48001         that would inhibit utf8-optimization of a regexp containing line-
48002         or buffer-anchors, e.g., `^', `$'.
48003
48004 2007-11-30  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48007         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48008         glthread_recursive_lock_init.
48009         * lib/lock.c (glthread_recursive_lock_init)
48010         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48011         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48012
48013 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48014
48015         New function qset_acl, like set_acl but with syscall semantics.
48016         * lib/acl.h (qset_acl): New decl.
48017         * lib/acl.c (qset_acl): New function.
48018         (set_acl): Use new function.  Use more-consistent diagnostics.
48019
48020 2007-11-28  Jim Meyering  <meyering@redhat.com>
48021
48022         * modules/physmem (License): Change from GPL to LGPLv2+.
48023
48024 2007-11-26  Bruno Haible  <bruno@clisp.org>
48025
48026         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48027         'long double' type has excess precision.
48028         Reported by Jim Meyering in
48029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48030
48031 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48032
48033         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48034         Sync from <http://gnu.org/licenses>.
48035         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48036         with license text from same location.
48037         * doc/maintain.texi, doc/standards.texi:  Sync from
48038         <http://savannah.gnu.org/projects/gnustandards>.
48039
48040 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
48041         and Jim Meyering  <meyering@redhat.com>
48042
48043         Adjust getdate' grammar to accept a slightly more regular language.
48044         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48045         Before, the former was rejected.
48046         * lib/getdate.y (digits_to_date_time): New function, factored
48047         out of ...
48048         (number): ...here.  Just call digits_to_date_time.
48049         (hybrid): New non-terminal to handle an <unsigned number,
48050         signed relative offset> sequence consistently.
48051
48052 2007-11-18  Jim Meyering  <meyering@redhat.com>
48053
48054         Pull my changes from coreutils:
48055         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48056         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48057         use of $gnulib_tool_option_extras, so that it's separated from the
48058         preceding argument.
48059
48060         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48061         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48062         parent destination directories before copying a file into place.
48063
48064 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48065
48066         bootstrap: work also with 4-argument variant of AC_INIT
48067         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48068
48069 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48070
48071         Port test-getaddrinfo to Solaris.
48072         Problem reported by Bruno Haible in
48073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48074         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48075         explanation of setting 'hints'.
48076         Don't reject an implementation merely because it returns EAI_SERVICE.
48077         (EAI_SERVICE): Define to 0 if not defined.
48078
48079 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         The license of gnu-make and posix-shell is now "GPLed build tool".
48082         * modules/gnu-make (License): Likewise.
48083         * modules/posix-shell (License): Likewise.
48084
48085         New module posix-shell, for determining a POSIX shell
48086         or perhaps something that is close enough to a POSIX shell.
48087         * m4/posix-shell.m4: New file.
48088         * modules/posix-shell: New file.
48089
48090         * MODULES.html.sh: Mention new module.
48091
48092         New module gnu-make, for determining whether we're using GNU Make.
48093         * m4/gnu-make.m4: New file.
48094         * modules/gnu-make: New file.
48095         * MODULES.html.sh: Mention new module.
48096
48097 2007-11-14  Jim Meyering  <meyering@redhat.com>
48098
48099         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48100         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48101         use this macro to create a function _definition_.
48102         Remove useless "#undef ARGMATCH_DIE".
48103
48104 2007-11-14  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/config.charset: Update for OpenBSD 4.1.
48107         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48108
48109 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         Document 64-bit #if problems in stdint.texi.
48112         * doc/headers/stdint.texi (stdint.h): Mention problems with
48113         64-bit-#if, and how to work around them.
48114
48115         Don't insist on 'long long int' support in the preprocessor.  It
48116         breaks too many things.  For example, PRIdMAX still uses a 'long
48117         long int' format with the latest Sun compiler, even though
48118         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48119         preprocessor problem.  This causes the latest coreutils to dump
48120         core on Solaris 10 sparc with the Sun C compiler.
48121         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48122         the troublesome expressions at configure-time, not at #if-time.
48123         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48124         preprocessor.
48125         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48126         compile-time C checks, done at 'configure'-time.
48127         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48128         * modules/inttypes (Makefile): Substitute the new symbols that
48129         gl_INTTYPES_H now generates.
48130         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48131
48132 2007-11-12  Bruno Haible  <bruno@clisp.org>
48133
48134         Tests for Unicode character classification functions.
48135
48136         * modules/unictype/bidicategory-byname-tests: New file.
48137         * modules/unictype/bidicategory-name-tests: New file.
48138         * modules/unictype/bidicategory-of-tests: New file.
48139         * modules/unictype/bidicategory-test-tests: New file.
48140         * modules/unictype/block-list-tests: New file.
48141         * modules/unictype/block-of-tests: New file.
48142         * modules/unictype/block-test-tests: New file.
48143         * modules/unictype/category-C-tests: New file.
48144         * modules/unictype/category-Cc-tests: New file.
48145         * modules/unictype/category-Cf-tests: New file.
48146         * modules/unictype/category-Cn-tests: New file.
48147         * modules/unictype/category-Co-tests: New file.
48148         * modules/unictype/category-Cs-tests: New file.
48149         * modules/unictype/category-L-tests: New file.
48150         * modules/unictype/category-Ll-tests: New file.
48151         * modules/unictype/category-Lm-tests: New file.
48152         * modules/unictype/category-Lo-tests: New file.
48153         * modules/unictype/category-Lt-tests: New file.
48154         * modules/unictype/category-Lu-tests: New file.
48155         * modules/unictype/category-M-tests: New file.
48156         * modules/unictype/category-Mc-tests: New file.
48157         * modules/unictype/category-Me-tests: New file.
48158         * modules/unictype/category-Mn-tests: New file.
48159         * modules/unictype/category-N-tests: New file.
48160         * modules/unictype/category-Nd-tests: New file.
48161         * modules/unictype/category-Nl-tests: New file.
48162         * modules/unictype/category-No-tests: New file.
48163         * modules/unictype/category-P-tests: New file.
48164         * modules/unictype/category-Pc-tests: New file.
48165         * modules/unictype/category-Pd-tests: New file.
48166         * modules/unictype/category-Pe-tests: New file.
48167         * modules/unictype/category-Pf-tests: New file.
48168         * modules/unictype/category-Pi-tests: New file.
48169         * modules/unictype/category-Po-tests: New file.
48170         * modules/unictype/category-Ps-tests: New file.
48171         * modules/unictype/category-S-tests: New file.
48172         * modules/unictype/category-Sc-tests: New file.
48173         * modules/unictype/category-Sk-tests: New file.
48174         * modules/unictype/category-Sm-tests: New file.
48175         * modules/unictype/category-So-tests: New file.
48176         * modules/unictype/category-Z-tests: New file.
48177         * modules/unictype/category-Zl-tests: New file.
48178         * modules/unictype/category-Zp-tests: New file.
48179         * modules/unictype/category-Zs-tests: New file.
48180         * modules/unictype/category-and-not-tests: New file.
48181         * modules/unictype/category-and-tests: New file.
48182         * modules/unictype/category-byname-tests: New file.
48183         * modules/unictype/category-name-tests: New file.
48184         * modules/unictype/category-none-tests: New file.
48185         * modules/unictype/category-of-tests: New file.
48186         * modules/unictype/category-or-tests: New file.
48187         * modules/unictype/category-test-withtable-tests: New file.
48188         * modules/unictype/combining-class-tests: New file.
48189         * modules/unictype/ctype-alnum-tests: New file.
48190         * modules/unictype/ctype-alpha-tests: New file.
48191         * modules/unictype/ctype-blank-tests: New file.
48192         * modules/unictype/ctype-cntrl-tests: New file.
48193         * modules/unictype/ctype-digit-tests: New file.
48194         * modules/unictype/ctype-graph-tests: New file.
48195         * modules/unictype/ctype-lower-tests: New file.
48196         * modules/unictype/ctype-print-tests: New file.
48197         * modules/unictype/ctype-punct-tests: New file.
48198         * modules/unictype/ctype-space-tests: New file.
48199         * modules/unictype/ctype-upper-tests: New file.
48200         * modules/unictype/ctype-xdigit-tests: New file.
48201         * modules/unictype/decimal-digit-tests: New file.
48202         * modules/unictype/digit-tests: New file.
48203         * modules/unictype/mirror-tests: New file.
48204         * modules/unictype/numeric-tests: New file.
48205         * modules/unictype/property-alphabetic-tests: New file.
48206         * modules/unictype/property-ascii-hex-digit-tests: New file.
48207         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48208         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48209         * modules/unictype/property-bidi-block-separator-tests: New file.
48210         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48211         * modules/unictype/property-bidi-common-separator-tests: New file.
48212         * modules/unictype/property-bidi-control-tests: New file.
48213         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48214         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48215         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48216         * modules/unictype/property-bidi-european-digit-tests: New file.
48217         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48218         * modules/unictype/property-bidi-left-to-right-tests: New file.
48219         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48220         * modules/unictype/property-bidi-other-neutral-tests: New file.
48221         * modules/unictype/property-bidi-pdf-tests: New file.
48222         * modules/unictype/property-bidi-segment-separator-tests: New file.
48223         * modules/unictype/property-bidi-whitespace-tests: New file.
48224         * modules/unictype/property-byname-tests: New file.
48225         * modules/unictype/property-combining-tests: New file.
48226         * modules/unictype/property-composite-tests: New file.
48227         * modules/unictype/property-currency-symbol-tests: New file.
48228         * modules/unictype/property-dash-tests: New file.
48229         * modules/unictype/property-decimal-digit-tests: New file.
48230         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48231         * modules/unictype/property-deprecated-tests: New file.
48232         * modules/unictype/property-diacritic-tests: New file.
48233         * modules/unictype/property-extender-tests: New file.
48234         * modules/unictype/property-format-control-tests: New file.
48235         * modules/unictype/property-grapheme-base-tests: New file.
48236         * modules/unictype/property-grapheme-extend-tests: New file.
48237         * modules/unictype/property-grapheme-link-tests: New file.
48238         * modules/unictype/property-hex-digit-tests: New file.
48239         * modules/unictype/property-hyphen-tests: New file.
48240         * modules/unictype/property-id-continue-tests: New file.
48241         * modules/unictype/property-id-start-tests: New file.
48242         * modules/unictype/property-ideographic-tests: New file.
48243         * modules/unictype/property-ids-binary-operator-tests: New file.
48244         * modules/unictype/property-ids-trinary-operator-tests: New file.
48245         * modules/unictype/property-ignorable-control-tests: New file.
48246         * modules/unictype/property-iso-control-tests: New file.
48247         * modules/unictype/property-join-control-tests: New file.
48248         * modules/unictype/property-left-of-pair-tests: New file.
48249         * modules/unictype/property-line-separator-tests: New file.
48250         * modules/unictype/property-logical-order-exception-tests: New file.
48251         * modules/unictype/property-lowercase-tests: New file.
48252         * modules/unictype/property-math-tests: New file.
48253         * modules/unictype/property-non-break-tests: New file.
48254         * modules/unictype/property-not-a-character-tests: New file.
48255         * modules/unictype/property-numeric-tests: New file.
48256         * modules/unictype/property-other-alphabetic-tests: New file.
48257         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48258         * modules/unictype/property-other-grapheme-extend-tests: New file.
48259         * modules/unictype/property-other-id-continue-tests: New file.
48260         * modules/unictype/property-other-id-start-tests: New file.
48261         * modules/unictype/property-other-lowercase-tests: New file.
48262         * modules/unictype/property-other-math-tests: New file.
48263         * modules/unictype/property-other-uppercase-tests: New file.
48264         * modules/unictype/property-paired-punctuation-tests: New file.
48265         * modules/unictype/property-paragraph-separator-tests: New file.
48266         * modules/unictype/property-pattern-syntax-tests: New file.
48267         * modules/unictype/property-pattern-white-space-tests: New file.
48268         * modules/unictype/property-private-use-tests: New file.
48269         * modules/unictype/property-punctuation-tests: New file.
48270         * modules/unictype/property-quotation-mark-tests: New file.
48271         * modules/unictype/property-radical-tests: New file.
48272         * modules/unictype/property-sentence-terminal-tests: New file.
48273         * modules/unictype/property-soft-dotted-tests: New file.
48274         * modules/unictype/property-space-tests: New file.
48275         * modules/unictype/property-terminal-punctuation-tests: New file.
48276         * modules/unictype/property-test-tests: New file.
48277         * modules/unictype/property-titlecase-tests: New file.
48278         * modules/unictype/property-unassigned-code-value-tests: New file.
48279         * modules/unictype/property-unified-ideograph-tests: New file.
48280         * modules/unictype/property-uppercase-tests: New file.
48281         * modules/unictype/property-variation-selector-tests: New file.
48282         * modules/unictype/property-white-space-tests: New file.
48283         * modules/unictype/property-xid-continue-tests: New file.
48284         * modules/unictype/property-xid-start-tests: New file.
48285         * modules/unictype/property-zero-width-tests: New file.
48286         * modules/unictype/scripts-tests: New file.
48287         * modules/unictype/syntax-c-ident-tests: New file.
48288         * modules/unictype/syntax-c-whitespace-tests: New file.
48289         * modules/unictype/syntax-java-ident-tests: New file.
48290         * modules/unictype/syntax-java-whitespace-tests: New file.
48291         * tests/unictype/test-bidi_byname.c: New file.
48292         * tests/unictype/test-bidi_name.c: New file.
48293         * tests/unictype/test-bidi_of.c: New file.
48294         * tests/unictype/test-bidi_test.c: New file.
48295         * tests/unictype/test-block_list.c: New file.
48296         * tests/unictype/test-block_of.c: New file.
48297         * tests/unictype/test-block_test.c: New file.
48298         * tests/unictype/test-categ_and.c: New file.
48299         * tests/unictype/test-categ_and_not.c: New file.
48300         * tests/unictype/test-categ_byname.c: New file.
48301         * tests/unictype/test-categ_name.c: New file.
48302         * tests/unictype/test-categ_none.c: New file.
48303         * tests/unictype/test-categ_of.c: New file.
48304         * tests/unictype/test-categ_or.c: New file.
48305         * tests/unictype/test-categ_test_withtable.c: New file.
48306         * tests/unictype/test-combining.c: New file.
48307         * tests/unictype/test-decdigit.c: New file.
48308         * tests/unictype/test-digit.c: New file.
48309         * tests/unictype/test-mirror.c: New file.
48310         * tests/unictype/test-numeric.c: New file.
48311         * tests/unictype/test-pr_byname.c: New file.
48312         * tests/unictype/test-pr_test.c: New file.
48313         * tests/unictype/test-predicate-part1.h: New file.
48314         * tests/unictype/test-predicate-part2.h: New file.
48315         * tests/unictype/test-scripts.c: New file.
48316         * tests/unictype/test-sy_c_ident.c: New file.
48317         * tests/unictype/test-sy_java_ident.c: New file.
48318
48319         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48320         for Unicode 5.0.0.
48321         * tests/unictype/test-categ_Cc.c: Likewise.
48322         * tests/unictype/test-categ_Cf.c: Likewise.
48323         * tests/unictype/test-categ_Cn.c: Likewise.
48324         * tests/unictype/test-categ_Co.c: Likewise.
48325         * tests/unictype/test-categ_Cs.c: Likewise.
48326         * tests/unictype/test-categ_L.c: Likewise.
48327         * tests/unictype/test-categ_Ll.c: Likewise.
48328         * tests/unictype/test-categ_Lm.c: Likewise.
48329         * tests/unictype/test-categ_Lo.c: Likewise.
48330         * tests/unictype/test-categ_Lt.c: Likewise.
48331         * tests/unictype/test-categ_Lu.c: Likewise.
48332         * tests/unictype/test-categ_M.c: Likewise.
48333         * tests/unictype/test-categ_Mc.c: Likewise.
48334         * tests/unictype/test-categ_Me.c: Likewise.
48335         * tests/unictype/test-categ_Mn.c: Likewise.
48336         * tests/unictype/test-categ_N.c: Likewise.
48337         * tests/unictype/test-categ_Nd.c: Likewise.
48338         * tests/unictype/test-categ_Nl.c: Likewise.
48339         * tests/unictype/test-categ_No.c: Likewise.
48340         * tests/unictype/test-categ_P.c: Likewise.
48341         * tests/unictype/test-categ_Pc.c: Likewise.
48342         * tests/unictype/test-categ_Pd.c: Likewise.
48343         * tests/unictype/test-categ_Pe.c: Likewise.
48344         * tests/unictype/test-categ_Pf.c: Likewise.
48345         * tests/unictype/test-categ_Pi.c: Likewise.
48346         * tests/unictype/test-categ_Po.c: Likewise.
48347         * tests/unictype/test-categ_Ps.c: Likewise.
48348         * tests/unictype/test-categ_S.c: Likewise.
48349         * tests/unictype/test-categ_Sc.c: Likewise.
48350         * tests/unictype/test-categ_Sk.c: Likewise.
48351         * tests/unictype/test-categ_Sm.c: Likewise.
48352         * tests/unictype/test-categ_So.c: Likewise.
48353         * tests/unictype/test-categ_Z.c: Likewise.
48354         * tests/unictype/test-categ_Zl.c: Likewise.
48355         * tests/unictype/test-categ_Zp.c: Likewise.
48356         * tests/unictype/test-categ_Zs.c: Likewise.
48357         * tests/unictype/test-ctype_alnum.c: Likewise.
48358         * tests/unictype/test-ctype_alpha.c: Likewise.
48359         * tests/unictype/test-ctype_blank.c: Likewise.
48360         * tests/unictype/test-ctype_cntrl.c: Likewise.
48361         * tests/unictype/test-ctype_digit.c: Likewise.
48362         * tests/unictype/test-ctype_graph.c: Likewise.
48363         * tests/unictype/test-ctype_lower.c: Likewise.
48364         * tests/unictype/test-ctype_print.c: Likewise.
48365         * tests/unictype/test-ctype_punct.c: Likewise.
48366         * tests/unictype/test-ctype_space.c: Likewise.
48367         * tests/unictype/test-ctype_upper.c: Likewise.
48368         * tests/unictype/test-ctype_xdigit.c: Likewise.
48369         * tests/unictype/test-decdigit.h: Likewise.
48370         * tests/unictype/test-digit.h: Likewise.
48371         * tests/unictype/test-numeric.h: Likewise.
48372         * tests/unictype/test-pr_alphabetic.c: Likewise.
48373         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48374         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48375         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48376         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48377         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48378         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48379         * tests/unictype/test-pr_bidi_control.c: Likewise.
48380         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48381         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48382         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48383         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48384         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48385         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48386         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48387         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48388         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48389         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48390         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48391         * tests/unictype/test-pr_combining.c: Likewise.
48392         * tests/unictype/test-pr_composite.c: Likewise.
48393         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48394         * tests/unictype/test-pr_dash.c: Likewise.
48395         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48396         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48397         * tests/unictype/test-pr_deprecated.c: Likewise.
48398         * tests/unictype/test-pr_diacritic.c: Likewise.
48399         * tests/unictype/test-pr_extender.c: Likewise.
48400         * tests/unictype/test-pr_format_control.c: Likewise.
48401         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48402         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48403         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48404         * tests/unictype/test-pr_hex_digit.c: Likewise.
48405         * tests/unictype/test-pr_hyphen.c: Likewise.
48406         * tests/unictype/test-pr_id_continue.c: Likewise.
48407         * tests/unictype/test-pr_id_start.c: Likewise.
48408         * tests/unictype/test-pr_ideographic.c: Likewise.
48409         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48410         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48411         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48412         * tests/unictype/test-pr_iso_control.c: Likewise.
48413         * tests/unictype/test-pr_join_control.c: Likewise.
48414         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48415         * tests/unictype/test-pr_line_separator.c: Likewise.
48416         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48417         * tests/unictype/test-pr_lowercase.c: Likewise.
48418         * tests/unictype/test-pr_math.c: Likewise.
48419         * tests/unictype/test-pr_non_break.c: Likewise.
48420         * tests/unictype/test-pr_not_a_character.c: Likewise.
48421         * tests/unictype/test-pr_numeric.c: Likewise.
48422         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48423         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48424         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48425         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48426         * tests/unictype/test-pr_other_id_start.c: Likewise.
48427         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48428         * tests/unictype/test-pr_other_math.c: Likewise.
48429         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48430         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48431         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48432         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48433         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48434         * tests/unictype/test-pr_private_use.c: Likewise.
48435         * tests/unictype/test-pr_punctuation.c: Likewise.
48436         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48437         * tests/unictype/test-pr_radical.c: Likewise.
48438         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48439         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48440         * tests/unictype/test-pr_space.c: Likewise.
48441         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48442         * tests/unictype/test-pr_titlecase.c: Likewise.
48443         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48444         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48445         * tests/unictype/test-pr_uppercase.c: Likewise.
48446         * tests/unictype/test-pr_variation_selector.c: Likewise.
48447         * tests/unictype/test-pr_white_space.c: Likewise.
48448         * tests/unictype/test-pr_xid_continue.c: Likewise.
48449         * tests/unictype/test-pr_xid_start.c: Likewise.
48450         * tests/unictype/test-pr_zero_width.c: Likewise.
48451         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48452         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48453
48454 2007-11-12  Bruno Haible  <bruno@clisp.org>
48455
48456         Unicode character classification functions.
48457         * lib/unictype.h: New file.
48458         * modules/unictype/base: New file.
48459         * modules/unictype/category-L: New file.
48460         * modules/unictype/category-Lu: New file.
48461         * modules/unictype/category-Ll: New file.
48462         * modules/unictype/category-Lt: New file.
48463         * modules/unictype/category-Lm: New file.
48464         * modules/unictype/category-Lo: New file.
48465         * modules/unictype/category-M: New file.
48466         * modules/unictype/category-Mn: New file.
48467         * modules/unictype/category-Mc: New file.
48468         * modules/unictype/category-Me: New file.
48469         * modules/unictype/category-N: New file.
48470         * modules/unictype/category-Nd: New file.
48471         * modules/unictype/category-Nl: New file.
48472         * modules/unictype/category-No: New file.
48473         * modules/unictype/category-P: New file.
48474         * modules/unictype/category-Pc: New file.
48475         * modules/unictype/category-Pd: New file.
48476         * modules/unictype/category-Ps: New file.
48477         * modules/unictype/category-Pe: New file.
48478         * modules/unictype/category-Pi: New file.
48479         * modules/unictype/category-Pf: New file.
48480         * modules/unictype/category-Po: New file.
48481         * modules/unictype/category-S: New file.
48482         * modules/unictype/category-Sm: New file.
48483         * modules/unictype/category-Sc: New file.
48484         * modules/unictype/category-Sk: New file.
48485         * modules/unictype/category-So: New file.
48486         * modules/unictype/category-Z: New file.
48487         * modules/unictype/category-Zs: New file.
48488         * modules/unictype/category-Zl: New file.
48489         * modules/unictype/category-Zp: New file.
48490         * modules/unictype/category-C: New file.
48491         * modules/unictype/category-Cc: New file.
48492         * modules/unictype/category-Cf: New file.
48493         * modules/unictype/category-Cs: New file.
48494         * modules/unictype/category-Co: New file.
48495         * modules/unictype/category-Cn: New file.
48496         * modules/unictype/category-or: New file.
48497         * modules/unictype/category-of: New file.
48498         * modules/unictype/category-test: New file.
48499         * modules/unictype/category-test-withtable: New file.
48500         * modules/unictype/category-byname: New file.
48501         * modules/unictype/category-none: New file.
48502         * modules/unictype/category-and: New file.
48503         * modules/unictype/category-and-not: New file.
48504         * modules/unictype/category-name: New file.
48505         * modules/unictype/combining-class: New file.
48506         * modules/unictype/category-all: New file.
48507         * modules/unictype/bidicategory-all: New file.
48508         * modules/unictype/bidicategory-byname: New file.
48509         * modules/unictype/bidicategory-name: New file.
48510         * modules/unictype/bidicategory-of: New file.
48511         * modules/unictype/bidicategory-test: New file.
48512         * modules/unictype/decimal-digit: New file.
48513         * modules/unictype/digit: New file.
48514         * modules/unictype/numeric: New file.
48515         * modules/unictype/mirror: New file.
48516         * modules/unictype/property-white-space: New file.
48517         * modules/unictype/property-alphabetic: New file.
48518         * modules/unictype/property-other-alphabetic: New file.
48519         * modules/unictype/property-not-a-character: New file.
48520         * modules/unictype/property-default-ignorable-code-point: New file.
48521         * modules/unictype/property-other-default-ignorable-code-point: New
48522         file.
48523         * modules/unictype/property-deprecated: New file.
48524         * modules/unictype/property-logical-order-exception: New file.
48525         * modules/unictype/property-variation-selector: New file.
48526         * modules/unictype/property-private-use: New file.
48527         * modules/unictype/property-unassigned-code-value: New file.
48528         * modules/unictype/property-uppercase: New file.
48529         * modules/unictype/property-other-uppercase: New file.
48530         * modules/unictype/property-lowercase: New file.
48531         * modules/unictype/property-other-lowercase: New file.
48532         * modules/unictype/property-titlecase: New file.
48533         * modules/unictype/property-soft-dotted: New file.
48534         * modules/unictype/property-id-start: New file.
48535         * modules/unictype/property-other-id-start: New file.
48536         * modules/unictype/property-id-continue: New file.
48537         * modules/unictype/property-other-id-continue: New file.
48538         * modules/unictype/property-xid-start: New file.
48539         * modules/unictype/property-xid-continue: New file.
48540         * modules/unictype/property-pattern-white-space: New file.
48541         * modules/unictype/property-pattern-syntax: New file.
48542         * modules/unictype/property-join-control: New file.
48543         * modules/unictype/property-grapheme-base: New file.
48544         * modules/unictype/property-grapheme-extend: New file.
48545         * modules/unictype/property-other-grapheme-extend: New file.
48546         * modules/unictype/property-grapheme-link: New file.
48547         * modules/unictype/property-bidi-control: New file.
48548         * modules/unictype/property-bidi-left-to-right: New file.
48549         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48550         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48551         * modules/unictype/property-bidi-european-digit: New file.
48552         * modules/unictype/property-bidi-eur-num-separator: New file.
48553         * modules/unictype/property-bidi-eur-num-terminator: New file.
48554         * modules/unictype/property-bidi-arabic-digit: New file.
48555         * modules/unictype/property-bidi-common-separator: New file.
48556         * modules/unictype/property-bidi-block-separator: New file.
48557         * modules/unictype/property-bidi-segment-separator: New file.
48558         * modules/unictype/property-bidi-whitespace: New file.
48559         * modules/unictype/property-bidi-non-spacing-mark: New file.
48560         * modules/unictype/property-bidi-boundary-neutral: New file.
48561         * modules/unictype/property-bidi-pdf: New file.
48562         * modules/unictype/property-bidi-embedding-or-override: New file.
48563         * modules/unictype/property-bidi-other-neutral: New file.
48564         * modules/unictype/property-hex-digit: New file.
48565         * modules/unictype/property-ascii-hex-digit: New file.
48566         * modules/unictype/property-ideographic: New file.
48567         * modules/unictype/property-unified-ideograph: New file.
48568         * modules/unictype/property-radical: New file.
48569         * modules/unictype/property-ids-binary-operator: New file.
48570         * modules/unictype/property-ids-trinary-operator: New file.
48571         * modules/unictype/property-zero-width: New file.
48572         * modules/unictype/property-space: New file.
48573         * modules/unictype/property-non-break: New file.
48574         * modules/unictype/property-iso-control: New file.
48575         * modules/unictype/property-format-control: New file.
48576         * modules/unictype/property-dash: New file.
48577         * modules/unictype/property-hyphen: New file.
48578         * modules/unictype/property-punctuation: New file.
48579         * modules/unictype/property-line-separator: New file.
48580         * modules/unictype/property-paragraph-separator: New file.
48581         * modules/unictype/property-quotation-mark: New file.
48582         * modules/unictype/property-sentence-terminal: New file.
48583         * modules/unictype/property-terminal-punctuation: New file.
48584         * modules/unictype/property-currency-symbol: New file.
48585         * modules/unictype/property-math: New file.
48586         * modules/unictype/property-other-math: New file.
48587         * modules/unictype/property-paired-punctuation: New file.
48588         * modules/unictype/property-left-of-pair: New file.
48589         * modules/unictype/property-combining: New file.
48590         * modules/unictype/property-composite: New file.
48591         * modules/unictype/property-decimal-digit: New file.
48592         * modules/unictype/property-numeric: New file.
48593         * modules/unictype/property-diacritic: New file.
48594         * modules/unictype/property-extender: New file.
48595         * modules/unictype/property-ignorable-control: New file.
48596         * modules/unictype/property-test: New file.
48597         * modules/unictype/property-byname: New file.
48598         * modules/unictype/property-all: New file.
48599         * modules/unictype/scripts: New file.
48600         * modules/unictype/scripts-all: New file.
48601         * modules/unictype/block-of: New file.
48602         * modules/unictype/block-test: New file.
48603         * modules/unictype/block-list: New file.
48604         * modules/unictype/block-all: New file.
48605         * modules/unictype/syntax-c-whitespace: New file.
48606         * modules/unictype/syntax-java-whitespace: New file.
48607         * modules/unictype/syntax-c-ident: New file.
48608         * modules/unictype/syntax-java-ident: New file.
48609         * modules/unictype/ctype-alnum: New file.
48610         * modules/unictype/ctype-alpha: New file.
48611         * modules/unictype/ctype-cntrl: New file.
48612         * modules/unictype/ctype-digit: New file.
48613         * modules/unictype/ctype-graph: New file.
48614         * modules/unictype/ctype-lower: New file.
48615         * modules/unictype/ctype-print: New file.
48616         * modules/unictype/ctype-punct: New file.
48617         * modules/unictype/ctype-space: New file.
48618         * modules/unictype/ctype-upper: New file.
48619         * modules/unictype/ctype-xdigit: New file.
48620         * modules/unictype/ctype-blank: New file.
48621         * lib/unictype/bidi_byname.c: New file.
48622         * lib/unictype/bidi_name.c: New file.
48623         * lib/unictype/bidi_of.c: New file.
48624         * lib/unictype/bidi_test.c: New file.
48625         * lib/unictype/bitmap.h: New file.
48626         * lib/unictype/block_test.c: New file.
48627         * lib/unictype/blocks.c: New file.
48628         * lib/unictype/categ_C.c: New file.
48629         * lib/unictype/categ_Cc.c: New file.
48630         * lib/unictype/categ_Cf.c: New file.
48631         * lib/unictype/categ_Cn.c: New file.
48632         * lib/unictype/categ_Co.c: New file.
48633         * lib/unictype/categ_Cs.c: New file.
48634         * lib/unictype/categ_L.c: New file.
48635         * lib/unictype/categ_Ll.c: New file.
48636         * lib/unictype/categ_Lm.c: New file.
48637         * lib/unictype/categ_Lo.c: New file.
48638         * lib/unictype/categ_Lt.c: New file.
48639         * lib/unictype/categ_Lu.c: New file.
48640         * lib/unictype/categ_M.c: New file.
48641         * lib/unictype/categ_Mc.c: New file.
48642         * lib/unictype/categ_Me.c: New file.
48643         * lib/unictype/categ_Mn.c: New file.
48644         * lib/unictype/categ_N.c: New file.
48645         * lib/unictype/categ_Nd.c: New file.
48646         * lib/unictype/categ_Nl.c: New file.
48647         * lib/unictype/categ_No.c: New file.
48648         * lib/unictype/categ_P.c: New file.
48649         * lib/unictype/categ_Pc.c: New file.
48650         * lib/unictype/categ_Pd.c: New file.
48651         * lib/unictype/categ_Pe.c: New file.
48652         * lib/unictype/categ_Pf.c: New file.
48653         * lib/unictype/categ_Pi.c: New file.
48654         * lib/unictype/categ_Po.c: New file.
48655         * lib/unictype/categ_Ps.c: New file.
48656         * lib/unictype/categ_S.c: New file.
48657         * lib/unictype/categ_Sc.c: New file.
48658         * lib/unictype/categ_Sk.c: New file.
48659         * lib/unictype/categ_Sm.c: New file.
48660         * lib/unictype/categ_So.c: New file.
48661         * lib/unictype/categ_Z.c: New file.
48662         * lib/unictype/categ_Zl.c: New file.
48663         * lib/unictype/categ_Zp.c: New file.
48664         * lib/unictype/categ_Zs.c: New file.
48665         * lib/unictype/categ_and.c: New file.
48666         * lib/unictype/categ_and_not.c: New file.
48667         * lib/unictype/categ_byname.c: New file.
48668         * lib/unictype/categ_name.c: New file.
48669         * lib/unictype/categ_none.c: New file.
48670         * lib/unictype/categ_of.c: New file.
48671         * lib/unictype/categ_or.c: New file.
48672         * lib/unictype/categ_test.c: New file.
48673         * lib/unictype/combining.c: New file.
48674         * lib/unictype/ctype_alnum.c: New file.
48675         * lib/unictype/ctype_alpha.c: New file.
48676         * lib/unictype/ctype_blank.c: New file.
48677         * lib/unictype/ctype_cntrl.c: New file.
48678         * lib/unictype/ctype_digit.c: New file.
48679         * lib/unictype/ctype_graph.c: New file.
48680         * lib/unictype/ctype_lower.c: New file.
48681         * lib/unictype/ctype_print.c: New file.
48682         * lib/unictype/ctype_punct.c: New file.
48683         * lib/unictype/ctype_space.c: New file.
48684         * lib/unictype/ctype_upper.c: New file.
48685         * lib/unictype/ctype_xdigit.c: New file.
48686         * lib/unictype/decdigit.c: New file.
48687         * lib/unictype/digit.c: New file.
48688         * lib/unictype/identsyntaxmap.h: New file.
48689         * lib/unictype/mirror.c: New file.
48690         * lib/unictype/numeric.c: New file.
48691         * lib/unictype/pr_alphabetic.c: New file.
48692         * lib/unictype/pr_ascii_hex_digit.c: New file.
48693         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48694         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48695         * lib/unictype/pr_bidi_block_separator.c: New file.
48696         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48697         * lib/unictype/pr_bidi_common_separator.c: New file.
48698         * lib/unictype/pr_bidi_control.c: New file.
48699         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48700         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48701         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48702         * lib/unictype/pr_bidi_european_digit.c: New file.
48703         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48704         * lib/unictype/pr_bidi_left_to_right.c: New file.
48705         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48706         * lib/unictype/pr_bidi_other_neutral.c: New file.
48707         * lib/unictype/pr_bidi_pdf.c: New file.
48708         * lib/unictype/pr_bidi_segment_separator.c: New file.
48709         * lib/unictype/pr_bidi_whitespace.c: New file.
48710         * lib/unictype/pr_byname.c: New file.
48711         * lib/unictype/pr_byname.gperf: New file.
48712         * lib/unictype/pr_combining.c: New file.
48713         * lib/unictype/pr_composite.c: New file.
48714         * lib/unictype/pr_currency_symbol.c: New file.
48715         * lib/unictype/pr_dash.c: New file.
48716         * lib/unictype/pr_decimal_digit.c: New file.
48717         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48718         * lib/unictype/pr_deprecated.c: New file.
48719         * lib/unictype/pr_diacritic.c: New file.
48720         * lib/unictype/pr_extender.c: New file.
48721         * lib/unictype/pr_format_control.c: New file.
48722         * lib/unictype/pr_grapheme_base.c: New file.
48723         * lib/unictype/pr_grapheme_extend.c: New file.
48724         * lib/unictype/pr_grapheme_link.c: New file.
48725         * lib/unictype/pr_hex_digit.c: New file.
48726         * lib/unictype/pr_hyphen.c: New file.
48727         * lib/unictype/pr_id_continue.c: New file.
48728         * lib/unictype/pr_id_start.c: New file.
48729         * lib/unictype/pr_ideographic.c: New file.
48730         * lib/unictype/pr_ids_binary_operator.c: New file.
48731         * lib/unictype/pr_ids_trinary_operator.c: New file.
48732         * lib/unictype/pr_ignorable_control.c: New file.
48733         * lib/unictype/pr_iso_control.c: New file.
48734         * lib/unictype/pr_join_control.c: New file.
48735         * lib/unictype/pr_left_of_pair.c: New file.
48736         * lib/unictype/pr_line_separator.c: New file.
48737         * lib/unictype/pr_logical_order_exception.c: New file.
48738         * lib/unictype/pr_lowercase.c: New file.
48739         * lib/unictype/pr_math.c: New file.
48740         * lib/unictype/pr_non_break.c: New file.
48741         * lib/unictype/pr_not_a_character.c: New file.
48742         * lib/unictype/pr_numeric.c: New file.
48743         * lib/unictype/pr_other_alphabetic.c: New file.
48744         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48745         * lib/unictype/pr_other_grapheme_extend.c: New file.
48746         * lib/unictype/pr_other_id_continue.c: New file.
48747         * lib/unictype/pr_other_id_start.c: New file.
48748         * lib/unictype/pr_other_lowercase.c: New file.
48749         * lib/unictype/pr_other_math.c: New file.
48750         * lib/unictype/pr_other_uppercase.c: New file.
48751         * lib/unictype/pr_paired_punctuation.c: New file.
48752         * lib/unictype/pr_paragraph_separator.c: New file.
48753         * lib/unictype/pr_pattern_syntax.c: New file.
48754         * lib/unictype/pr_pattern_white_space.c: New file.
48755         * lib/unictype/pr_private_use.c: New file.
48756         * lib/unictype/pr_punctuation.c: New file.
48757         * lib/unictype/pr_quotation_mark.c: New file.
48758         * lib/unictype/pr_radical.c: New file.
48759         * lib/unictype/pr_sentence_terminal.c: New file.
48760         * lib/unictype/pr_soft_dotted.c: New file.
48761         * lib/unictype/pr_space.c: New file.
48762         * lib/unictype/pr_terminal_punctuation.c: New file.
48763         * lib/unictype/pr_test.c: New file.
48764         * lib/unictype/pr_titlecase.c: New file.
48765         * lib/unictype/pr_unassigned_code_value.c: New file.
48766         * lib/unictype/pr_unified_ideograph.c: New file.
48767         * lib/unictype/pr_uppercase.c: New file.
48768         * lib/unictype/pr_variation_selector.c: New file.
48769         * lib/unictype/pr_white_space.c: New file.
48770         * lib/unictype/pr_xid_continue.c: New file.
48771         * lib/unictype/pr_xid_start.c: New file.
48772         * lib/unictype/pr_zero_width.c: New file.
48773         * lib/unictype/scripts.c: New file.
48774         * lib/unictype/sy_c_ident.c: New file.
48775         * lib/unictype/sy_c_whitespace.c: New file.
48776         * lib/unictype/sy_java_ident.c: New file.
48777         * lib/unictype/sy_java_whitespace.c: New file.
48778
48779         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48780         Unicode 5.0.0.
48781         * lib/unictype/blocks.h: Likewise.
48782         * lib/unictype/categ_C.h: Likewise.
48783         * lib/unictype/categ_Cc.h: Likewise.
48784         * lib/unictype/categ_Cf.h: Likewise.
48785         * lib/unictype/categ_Cn.h: Likewise.
48786         * lib/unictype/categ_Co.h: Likewise.
48787         * lib/unictype/categ_Cs.h: Likewise.
48788         * lib/unictype/categ_L.h: Likewise.
48789         * lib/unictype/categ_Ll.h: Likewise.
48790         * lib/unictype/categ_Lm.h: Likewise.
48791         * lib/unictype/categ_Lo.h: Likewise.
48792         * lib/unictype/categ_Lt.h: Likewise.
48793         * lib/unictype/categ_Lu.h: Likewise.
48794         * lib/unictype/categ_M.h: Likewise.
48795         * lib/unictype/categ_Mc.h: Likewise.
48796         * lib/unictype/categ_Me.h: Likewise.
48797         * lib/unictype/categ_Mn.h: Likewise.
48798         * lib/unictype/categ_N.h: Likewise.
48799         * lib/unictype/categ_Nd.h: Likewise.
48800         * lib/unictype/categ_Nl.h: Likewise.
48801         * lib/unictype/categ_No.h: Likewise.
48802         * lib/unictype/categ_P.h: Likewise.
48803         * lib/unictype/categ_Pc.h: Likewise.
48804         * lib/unictype/categ_Pd.h: Likewise.
48805         * lib/unictype/categ_Pe.h: Likewise.
48806         * lib/unictype/categ_Pf.h: Likewise.
48807         * lib/unictype/categ_Pi.h: Likewise.
48808         * lib/unictype/categ_Po.h: Likewise.
48809         * lib/unictype/categ_Ps.h: Likewise.
48810         * lib/unictype/categ_S.h: Likewise.
48811         * lib/unictype/categ_Sc.h: Likewise.
48812         * lib/unictype/categ_Sk.h: Likewise.
48813         * lib/unictype/categ_Sm.h: Likewise.
48814         * lib/unictype/categ_So.h: Likewise.
48815         * lib/unictype/categ_Z.h: Likewise.
48816         * lib/unictype/categ_Zl.h: Likewise.
48817         * lib/unictype/categ_Zp.h: Likewise.
48818         * lib/unictype/categ_Zs.h: Likewise.
48819         * lib/unictype/categ_of.h: Likewise.
48820         * lib/unictype/combining.h: Likewise.
48821         * lib/unictype/ctype_alnum.h: Likewise.
48822         * lib/unictype/ctype_alpha.h: Likewise.
48823         * lib/unictype/ctype_blank.h: Likewise.
48824         * lib/unictype/ctype_cntrl.h: Likewise.
48825         * lib/unictype/ctype_digit.h: Likewise.
48826         * lib/unictype/ctype_graph.h: Likewise.
48827         * lib/unictype/ctype_lower.h: Likewise.
48828         * lib/unictype/ctype_print.h: Likewise.
48829         * lib/unictype/ctype_punct.h: Likewise.
48830         * lib/unictype/ctype_space.h: Likewise.
48831         * lib/unictype/ctype_upper.h: Likewise.
48832         * lib/unictype/ctype_xdigit.h: Likewise.
48833         * lib/unictype/decdigit.h: Likewise.
48834         * lib/unictype/digit.h: Likewise.
48835         * lib/unictype/mirror.h: Likewise.
48836         * lib/unictype/numeric.h: Likewise.
48837         * lib/unictype/pr_alphabetic.h: Likewise.
48838         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48839         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48840         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48841         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48842         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48843         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48844         * lib/unictype/pr_bidi_control.h: Likewise.
48845         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48846         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48847         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48848         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48849         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48850         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48851         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48852         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48853         * lib/unictype/pr_bidi_pdf.h: Likewise.
48854         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48855         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48856         * lib/unictype/pr_combining.h: Likewise.
48857         * lib/unictype/pr_composite.h: Likewise.
48858         * lib/unictype/pr_currency_symbol.h: Likewise.
48859         * lib/unictype/pr_dash.h: Likewise.
48860         * lib/unictype/pr_decimal_digit.h: Likewise.
48861         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48862         * lib/unictype/pr_deprecated.h: Likewise.
48863         * lib/unictype/pr_diacritic.h: Likewise.
48864         * lib/unictype/pr_extender.h: Likewise.
48865         * lib/unictype/pr_format_control.h: Likewise.
48866         * lib/unictype/pr_grapheme_base.h: Likewise.
48867         * lib/unictype/pr_grapheme_extend.h: Likewise.
48868         * lib/unictype/pr_grapheme_link.h: Likewise.
48869         * lib/unictype/pr_hex_digit.h: Likewise.
48870         * lib/unictype/pr_hyphen.h: Likewise.
48871         * lib/unictype/pr_id_continue.h: Likewise.
48872         * lib/unictype/pr_id_start.h: Likewise.
48873         * lib/unictype/pr_ideographic.h: Likewise.
48874         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48875         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48876         * lib/unictype/pr_ignorable_control.h: Likewise.
48877         * lib/unictype/pr_iso_control.h: Likewise.
48878         * lib/unictype/pr_join_control.h: Likewise.
48879         * lib/unictype/pr_left_of_pair.h: Likewise.
48880         * lib/unictype/pr_line_separator.h: Likewise.
48881         * lib/unictype/pr_logical_order_exception.h: Likewise.
48882         * lib/unictype/pr_lowercase.h: Likewise.
48883         * lib/unictype/pr_math.h: Likewise.
48884         * lib/unictype/pr_non_break.h: Likewise.
48885         * lib/unictype/pr_not_a_character.h: Likewise.
48886         * lib/unictype/pr_numeric.h: Likewise.
48887         * lib/unictype/pr_other_alphabetic.h: Likewise.
48888         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48889         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48890         * lib/unictype/pr_other_id_continue.h: Likewise.
48891         * lib/unictype/pr_other_id_start.h: Likewise.
48892         * lib/unictype/pr_other_lowercase.h: Likewise.
48893         * lib/unictype/pr_other_math.h: Likewise.
48894         * lib/unictype/pr_other_uppercase.h: Likewise.
48895         * lib/unictype/pr_paired_punctuation.h: Likewise.
48896         * lib/unictype/pr_paragraph_separator.h: Likewise.
48897         * lib/unictype/pr_pattern_syntax.h: Likewise.
48898         * lib/unictype/pr_pattern_white_space.h: Likewise.
48899         * lib/unictype/pr_private_use.h: Likewise.
48900         * lib/unictype/pr_punctuation.h: Likewise.
48901         * lib/unictype/pr_quotation_mark.h: Likewise.
48902         * lib/unictype/pr_radical.h: Likewise.
48903         * lib/unictype/pr_sentence_terminal.h: Likewise.
48904         * lib/unictype/pr_soft_dotted.h: Likewise.
48905         * lib/unictype/pr_space.h: Likewise.
48906         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48907         * lib/unictype/pr_titlecase.h: Likewise.
48908         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48909         * lib/unictype/pr_unified_ideograph.h: Likewise.
48910         * lib/unictype/pr_uppercase.h: Likewise.
48911         * lib/unictype/pr_variation_selector.h: Likewise.
48912         * lib/unictype/pr_white_space.h: Likewise.
48913         * lib/unictype/pr_xid_continue.h: Likewise.
48914         * lib/unictype/pr_xid_start.h: Likewise.
48915         * lib/unictype/pr_zero_width.h: Likewise.
48916         * lib/unictype/scripts.h: Likewise.
48917         * lib/unictype/scripts_byname.gperf: Likewise.
48918         * lib/unictype/sy_c_ident.h: Likewise.
48919         * lib/unictype/sy_c_whitespace.h: Likewise.
48920         * lib/unictype/sy_java_ident.h: Likewise.
48921         * lib/unictype/sy_java_whitespace.h: Likewise.
48922
48923         * lib/unictype/Makefile: New file.
48924         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48925         glibc.
48926         * lib/unictype/3level.h: New file, copied from glibc.
48927         * lib/unictype/3levelbit.h: New file.
48928
48929 2007-11-11  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/gperf: New file.
48932         * modules/iconv_open (Depends-on): Add it.
48933         (Makefile.am): Remove the GPERF definition.
48934
48935 2007-11-11  Bruno Haible  <bruno@clisp.org>
48936
48937         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48938         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48939
48940 2007-11-11  Bruno Haible  <bruno@clisp.org>
48941
48942         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48943         (usage): Remove function.
48944
48945 2007-11-11  Bruno Haible  <bruno@clisp.org>
48946
48947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48948         gl_FUNC_CEILF_LIBS.
48949         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48950         gl_FUNC_CEIL_LIBS.
48951         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48952         gl_FUNC_CEILL_LIBS.
48953         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48954         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48955         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48956
48957 2007-11-11  Bruno Haible  <bruno@clisp.org>
48958
48959         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48960         roundf were declared but do not exist on functions.
48961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48962         roundl were declared but do not exist on functions.
48963         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48964         HAVE_FLOORL_AND_CEILL, respectively.
48965         Needed for Sun C on Solaris 10.
48966
48967 2007-11-11  Bruno Haible  <bruno@clisp.org>
48968
48969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48970         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48971         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48972         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48973         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48974         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48975         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48976         HAVE_DECL_ROUNDF.
48977         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48978         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48980         of HAVE_DECL_ROUND*.
48981         * modules/math (Makefile.am): Update.
48982
48983 2007-11-10  Bruno Haible  <bruno@clisp.org>
48984
48985         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48986         ptrdiff_t as m4/intl.m4.
48987
48988 2007-11-10  Jim Meyering  <meyering@redhat.com>
48989
48990         Avoid link failure for the argmatch test.
48991         * tests/test-argmatch.c (usage): Define function to avoid a link
48992         failure: argmatch_die requires a usage function.
48993
48994 2007-11-09  Bruno Haible  <bruno@clisp.org>
48995
48996         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48997         * doc/functions/vsnprintf.texi: Likewise.
48998         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48999         with a size argument < 2.
49000
49001 2007-11-09  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49004         buffer. Fixes an inefficiency introduced on 2007-11-03.
49005
49006 2007-11-09  Bruno Haible  <bruno@clisp.org>
49007
49008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49009         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49010
49011 2007-11-08  Jim Meyering  <meyering@redhat.com>
49012
49013         Change cache variable name prefix "jm_" to "gl_" everywhere.
49014         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49015         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49016         * m4/uptime.m4: s/gl_/jm_/
49017
49018 2007-11-07  Bruno Haible  <bruno@clisp.org>
49019
49020         Update to GNU gettext 0.17.
49021         * m4/intl.m4: Update to GNU gettext 0.17.
49022         * m4/po.m4: Likewise.
49023         * modules/gettext (Files): Remove m4/ulonglong.m4.
49024         (configure.ac): Require gettext infrastructure from version 0.17.
49025
49026 2007-11-06  Bruno Haible  <bruno@clisp.org>
49027
49028         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49029         symbolic values are not defined in a public header.
49030         * lib/freadable.c (freadable) [QNX]: Likewise.
49031         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49032         * lib/freading.c (freading) [QNX]: Likewise.
49033         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49034         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49035         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49036         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49037         Reported by Alain Magloire.
49038
49039         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49040
49041 2007-11-05  Bruno Haible  <bruno@clisp.org>
49042
49043         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49044         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49045         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49046         Reported by Eric Blake.
49047
49048 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49049             Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49052         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49053         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49054         (malloc): Undefine also before including <stdlib.h>.
49055         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49056         Needed on OSF/1 4.0.
49057
49058 2007-11-05  Jim Meyering  <meyering@redhat.com>
49059
49060         git-version-gen: sync from coreutils.
49061         * build-aux/git-version-gen: Add comments.
49062         Change the first '-' to '.' in the snapshot version string,
49063         e.g., 6.9-377-08144 -> 6.9.377-08144
49064         Remove first parameter.
49065         Don't declare a version "-dirty" merely because a time
49066         stamp has changed.
49067
49068 2007-11-04  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/lock.h: Protect all macro definitions containing an 'if'
49071         statement through a "do { ... } while (0)".
49072         * lib/tls.h: Likewise.
49073
49074 2007-11-04  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49077
49078 2007-11-04  Bruno Haible  <bruno@clisp.org>
49079
49080         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49081         * modules/fprintf-posix (Depends-on): Add nocrash.
49082         * modules/snprintf-posix (Depends-on): Likewise.
49083         * modules/sprintf-posix (Depends-on): Likewise.
49084         * modules/vasnprintf-posix (Depends-on): Likewise.
49085         * modules/vasprintf-posix (Depends-on): Likewise.
49086         * modules/vfprintf-posix (Depends-on): Likewise.
49087         * modules/vsnprintf-posix (Depends-on): Likewise.
49088         * modules/vsprintf-posix (Depends-on): Likewise.
49089         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49090         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49091         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49092         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49093         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49094         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49095         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49096
49097 2007-11-04  Bruno Haible  <bruno@clisp.org>
49098
49099         * modules/nocrash: New file.
49100         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49101         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49102
49103 2007-11-04  Bruno Haible  <bruno@clisp.org>
49104
49105         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49106         precision handling.
49107         * tests/test-vasprintf-posix.c (test_function): Likewise.
49108         * tests/test-snprintf-posix.h (test_function): Likewise.
49109         * tests/test-sprintf-posix.h (test_function): Likewise.
49110
49111         Fix *printf behaviour for large precisions on mingw and BeOS.
49112         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49113         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49115         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49117         gl_PRINTF_PRECISION and test its result. Invoke
49118         gl_PREREQ_VASNPRINTF_PRECISION.
49119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49126         * doc/functions/fprintf.texi: Update.
49127         * doc/functions/printf.texi: Update.
49128         * doc/functions/snprintf.texi: Update.
49129         * doc/functions/sprintf.texi: Update.
49130         * doc/functions/vfprintf.texi: Update.
49131         * doc/functions/vprintf.texi: Update.
49132         * doc/functions/vsnprintf.texi: Update.
49133         * doc/functions/vsprintf.texi: Update.
49134
49135 2007-11-04  Bruno Haible  <bruno@clisp.org>
49136
49137         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49138
49139 2007-11-04  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49142         Reported by Sylvain Beucler <beuc@gnu.org>.
49143
49144 2007-11-03  Bruno Haible  <bruno@clisp.org>
49145
49146         * tests/test-fprintf-posix2.sh: New file.
49147         * tests/test-fprintf-posix2.c: New file.
49148         * modules/fprintf-posix-tests (Files): Add them.
49149         (TESTS): Add test-fprintf-posix2.sh.
49150         (configure.ac): Check for getrlimit and setrlimit.
49151         (check_PROGRAMS): Add test-fprintf-posix2.
49152
49153         * tests/test-printf-posix2.sh: New file.
49154         * tests/test-printf-posix2.c: New file.
49155         * modules/printf-posix-tests (Files): Add them.
49156         (TESTS): Add test-printf-posix2.sh.
49157         (configure.ac): Check for getrlimit and setrlimit.
49158         (check_PROGRAMS): Add test-printf-posix2.
49159
49160         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49161         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49162         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49163         (decode_double): New function, copied from decode_long_double.
49164         (scale10_round_decimal_decoded): New function, extracted from
49165         scale10_round_decimal_long_double.
49166         (scale10_round_decimal_long_double): Use it.
49167         (scale10_round_decimal_double): New function.
49168         (floorlog10): New function.
49169         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49171         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49173         gl_PRINTF_ENOMEM and test its result. Invoke
49174         gl_PREREQ_VASNPRINTF_ENOMEM.
49175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49182         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49183         * modules/snprintf-posix (Depends-on): Likewise.
49184         * modules/sprintf-posix (Depends-on): Likewise.
49185         * modules/vasnprintf-posix (Depends-on): Likewise.
49186         * modules/vasprintf-posix (Depends-on): Likewise.
49187         * modules/vfprintf-posix (Depends-on): Likewise.
49188         * modules/vsnprintf-posix (Depends-on): Likewise.
49189         * modules/vsprintf-posix (Depends-on): Likewise.
49190         * doc/functions/fprintf.texi: Update.
49191         * doc/functions/printf.texi: Update.
49192         * doc/functions/snprintf.texi: Update.
49193         * doc/functions/sprintf.texi: Update.
49194         * doc/functions/vfprintf.texi: Update.
49195         * doc/functions/vprintf.texi: Update.
49196         * doc/functions/vsnprintf.texi: Update.
49197         * doc/functions/vsprintf.texi: Update.
49198
49199 2007-11-03  Bruno Haible  <bruno@clisp.org>
49200
49201         * modules/frexp-nolibm-tests: New file.
49202
49203         * modules/frexp-nolibm: New file.
49204         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49205
49206 2007-11-03  Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49209         value is C99 compliant.
49210         Needed for OSF/1 5.1.
49211
49212 2007-11-03  Bruno Haible  <bruno@clisp.org>
49213
49214         Fix out-of-memory handling of vasnprintf.
49215         * lib/printf-parse.c: Include <errno.h>.
49216         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49217         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49218         is already set.
49219
49220 2007-11-02  Eric Blake  <ebb9@byu.net>
49221
49222         Fix tests on cygwin.
49223         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49224
49225 2007-11-01  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49228         warning.
49229         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49230         needed for POSIX compatibility.
49231
49232 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49233
49234         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49235         for compatibility with GNU.
49236
49237 2007-11-01  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49240         (putenv): Renamed from rpl_putenv. Change argument type from
49241         'const char *' to 'char *'.
49242         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49243         of defining putenv in config.h, just set REPLACE_PUTENV.
49244         * modules/putenv (Depends-on): Add stdlib.
49245         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49246         (Include): Use <stdlib.h>.
49247         * lib/stdlib.in.h (putenv): New declaration.
49248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49249         REPLACE_PUTENV.
49250         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49251         REPLACE_PUTENV.
49252         Needed for MacOS X 10.5.0.
49253         Reported by Peter O'Gorman <peter@pogma.com>.
49254
49255 2007-11-01  Jim Meyering  <meyering@redhat.com>
49256
49257         Treat an empty date string exactly like "0".
49258         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49259         if the remaining date string (to be parsed) is empty, use "0".
49260         Reported by Mischa Molhoek and discussed in this thread:
49261         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49262
49263 2007-10-31  Bruno Haible  <bruno@clisp.org>
49264
49265         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49266         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49267         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49268         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49269         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49270         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49271
49272 2007-10-31  Bruno Haible  <bruno@clisp.org>
49273
49274         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49275         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49276         (AC_TYPE_LONG_LONG_INT): Use it.
49277         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49278         it as well.
49279         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49280         to m4/longlong.m4.
49281         * modules/stdint (Files): Remove m4/ulonglong.m4.
49282         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49283         m4/ulonglong.m4.
49284         * modules/strtoumax (Files): Likewise.
49285
49286 2007-10-30  Bruno Haible  <bruno@clisp.org>
49287
49288         * modules/xvasprintf-posix: New file.
49289         Suggested by Eric Blake.
49290
49291 2007-10-30  Bruno Haible  <bruno@clisp.org>
49292
49293         * modules/xprintf-posix-tests: New file.
49294         * tests/test-xprintf-posix.sh: New file.
49295         * tests/test-xprintf-posix.c: New file.
49296         * tests/test-xfprintf-posix.c: New file.
49297
49298         * modules/xprintf-posix: New file.
49299
49300 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49301
49302         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49303         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49304         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49305
49306 2007-10-29  Bruno Haible  <bruno@clisp.org>
49307
49308         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49309         contain the special marker '_cv_'.
49310         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49311         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49312         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49313         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49314         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49315         Reported by Ralf Wildenhues.
49316
49317 2007-10-29  Bruno Haible  <bruno@clisp.org>
49318
49319         * gnulib-tool (func_import): When --lgpl is not specified, set
49320         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49321         GPLv3.
49322         Reported by Simon Josefsson.
49323
49324 2007-10-28  Bruno Haible  <bruno@clisp.org>
49325
49326         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49327         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49328         HAVE_DECL_ISFINITE.
49329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49330         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49331         HAVE_DECL_ISFINITE.
49332
49333 2007-10-28  Bruno Haible  <bruno@clisp.org>
49334
49335         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49336         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49337
49338 2007-10-28  Bruno Haible  <bruno@clisp.org>
49339
49340         Fix link errors with Sun C 5.0 on Solaris 10.
49341         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49342         function is declared but not present in the compiler's libm.
49343         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49344         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49345         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49346         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49347         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49348         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49349         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49351         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49352         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49353         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49354         HAVE_DECL_FLOORL.
49355
49356 2007-10-28  Bruno Haible  <bruno@clisp.org>
49357
49358         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49359         gl_FUNC_FLOORL. Cache the result.
49360         (gl_FUNC_FLOORL): Use it.
49361         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49362         gl_FUNC_CEILL. Cache the result.
49363         (gl_FUNC_CEILL): Use it.
49364
49365         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49366         gl_FUNC_FLOOR. Cache the result.
49367         (gl_FUNC_FLOOR): Use it.
49368         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49369         gl_FUNC_CEIL. Cache the result.
49370         (gl_FUNC_CEIL): Use it.
49371
49372         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49373         gl_FUNC_FLOORF. Cache the result.
49374         (gl_FUNC_FLOORF): Use it.
49375         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49376         gl_FUNC_CEILF. Cache the result.
49377         (gl_FUNC_CEILF): Use it.
49378
49379 2007-10-28  Bruno Haible  <bruno@clisp.org>
49380
49381         * gnulib-tool: Allow specifying the LGPL version number through
49382         --lgpl=2 or --lgpl=3.
49383         (func_usage): Document --lgpl with argument.
49384         Handle --lgpl=... arguments.
49385         (func_import): Recognize also gl_LGPL calls with an argument. When
49386         --lgpl=2 is used and the module's license is just LGPL, report an
49387         error. Set sed_transform_lib_file according to the lgpl variable. In
49388         the generated files, use --lgpl or gl_LGPL invocations with argument,
49389         if necessary.
49390         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49391         an LGPv2+ license.
49392         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49393         gl_LGPL macro.
49394
49395 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49396             Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49399         (u16_uctomb_aux): Likewise.
49400         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49401         !HAVE_INLINE.
49402         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49403
49404 2007-10-28  Bruno Haible  <bruno@clisp.org>
49405
49406         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49407         Invoke AM_GETTEXT_OPTION if it exists.
49408         * modules/vasprintf: Likewise.
49409         * modules/verror: Likewise.
49410         * modules/xprintf: Likewise.
49411         * modules/xvasprintf: Likewise.
49412
49413 2007-10-27  Ben Pfaff  <blp@gnu.org>
49414
49415         * lib/math.in.h: Define isfinite macro and prototypes for
49416         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49417         implementations.
49418         * m4/math_h.m4: New substitutions for isfinite module.
49419         * lib/isfinite.c: New file.
49420         * m4/isfinite.m4: New file.
49421         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49422         * modules/isfinite: New file.
49423         * modules/isfinite-tests: New file.
49424         * tests/tests-isfinite.c: New file.
49425         * doc/functions/isfinite.texi: Mention isfinite module.
49426         * MODULES.html.sh: Mention new module.
49427
49428 2007-10-27  Ben Pfaff  <blp@gnu.org>
49429
49430         Ralf Wildenhues reported that Tru64 4.0D declares the round
49431         functions but does not have definitions.
49432         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49433         cannot be found in any library, set the output variable to
49434         "missing" instead of "".
49435         * m4/round.m4: Also use our substitute if we cannot find round in
49436         any library, even if it is declared.
49437         * m4/roundf.m4: Likewise for roundf.
49438         * m4/roundl.m4: Likewise for roundl.
49439         * lib/math.in.h: Undefine roundf, round, roundl before defining
49440         their replacements, to allow for hypothetical systems where these
49441         may be defined as macros but not available in libraries.
49442
49443 2007-10-27  Bruno Haible  <bruno@clisp.org>
49444
49445         * doc/gnulib.texi: Invoke @firstparagraphindent.
49446         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49447         changes in gnulib.
49448         (Source changes): New section.
49449
49450 2007-10-26  Bruno Haible  <bruno@clisp.org>
49451
49452         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49453         borrowed from autoconf.
49454
49455 2007-10-26  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49458         strerror returned the empty string. Needed on HP-UX 11.00.
49459
49460 2007-10-24  Micah Cowan  <micah@cowan.name>
49461
49462         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49463         * build-aux/bootstrap: Remove support for now-unnecessary option,
49464         --cvs-user, and envvars CVS_USER, CVS_RSH.
49465
49466 2007-10-24  Jim Meyering  <meyering@redhat.com>
49467
49468         Avoid diagnostics from sha1sum when there is no cached checksum.
49469         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49470         if the po.s1 file hasn't been created yet.
49471
49472         * build-aux/bootstrap: Sync from coreutils:
49473         2007-10-24  Jim Meyering  <meyering@redhat.com>
49474         Get gnulib from the git repository, not from an obsolete cvs one.
49475         * build-aux/bootstrap: Suggestion from Micah Cowan.
49476         2007-10-04  Jim Meyering  <jim@meyering.net>
49477         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49478         (update_po_files): Work also when there are no .po files in po/.
49479
49480 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * README: Append ".git" to git and cg examples.
49483         Problem reported by Benoit Sigoure.
49484
49485 2007-10-23  Micah Cowan  <micah@cowan.name>
49486
49487         * users.txt: Add wget.
49488
49489 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49490
49491         Fix linking of some unistdio tests on FreeBSD.
49492         * modules/unistdio/u16-vsnprintf-tests
49493         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49494         * modules/unistdio/u16-vsprintf-tests
49495         (test_u16_vsnprintf1_LDADD): Likewise.
49496         * modules/unistdio/u32-vsnprintf-tests
49497         (test_u32_vsnprintf1_LDADD): Likewise.
49498         * modules/unistdio/u32-vsprintf-tests
49499         (test_u32_vsprintf1_LDADD): Likewise.
49500         * modules/unistdio/u8-vsnprintf-tests
49501         (test_u8_vsnprintf1_LDADD): Likewise.
49502         * modules/unistdio/u8-vsprintf-tests
49503         (test_u8_vsprintf1_LDADD): Likewise.
49504         * modules/unistdio/ulc-vsnprintf-tests
49505         (test_ulc_vsnprintf1_LDADD): Likewise.
49506         * modules/unistdio/ulc-vsprintf-tests
49507         (test_ulc_vsprintf1_LDADD): Likewise.
49508
49509         Fix linking of some uniconv tests on FreeBSD.
49510         * modules/uniconv/u16-conv-from-enc-tests
49511         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49512         * modules/uniconv/u16-conv-to-enc-tests
49513         (test_u16_conv_to_enc_LDADD): Likewise.
49514         * modules/uniconv/u16-strconv-from-enc-tests
49515         (test_u16_strconv_from_enc_LDADD): Likewise.
49516         * modules/uniconv/u16-strconv-to-enc-tests
49517         (test_u16_strconv_to_enc_LDADD): Likewise.
49518         * modules/uniconv/u32-conv-from-enc-tests
49519         (test_u32_conv_from_enc_LDADD): Likewise.
49520         * modules/uniconv/u32-conv-to-enc-tests
49521         (test_u32_conv_to_enc_LDADD): Likewise.
49522         * modules/uniconv/u32-strconv-from-enc-tests
49523         (test_u32_strconv_from_enc_LDADD): Likewise.
49524         * modules/uniconv/u32-strconv-to-enc-tests
49525         (test_u32_strconv_to_enc_LDADD): Likewise.
49526         * modules/uniconv/u8-conv-from-enc-tests
49527         (test_u8_conv_from_enc_LDADD): Likewise.
49528         * modules/uniconv/u8-conv-to-enc-tests
49529         (test_u8_conv_to_enc_LDADD): Likewise.
49530         * modules/uniconv/u8-strconv-from-enc-tests
49531         (test_u8_strconv_from_enc_LDADD): Likewise.
49532         * modules/uniconv/u8-strconv-to-enc-tests
49533         (test_u8_strconv_to_enc_LDADD): Likewise.
49534
49535 2007-10-22  Bruno Haible  <bruno@clisp.org>
49536
49537         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49538         size.
49539
49540 2007-10-22  Eric Blake  <ebb9@byu.net>
49541
49542         Tweak x*printf documentation.
49543         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49544         variable name and comments.
49545         Suggested by Bruno Haible.
49546
49547 2007-10-22  Bruno Haible  <bruno@clisp.org>
49548
49549         * lib/acl.c (copy_acl): Fix file name in comment.
49550
49551 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49552
49553         Fix Tru64 problem with stdbool.h.
49554         * lib/stdbool.in.h (false, true):
49555         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49556         Don't declare as an enum in this situation; it runs afoul of Tru64.
49557         Problem reported by Steven M. Schweda in
49558         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49559
49560 2007-10-22  Eric Blake  <ebb9@byu.net>
49561
49562         Also wrap vf?printf.
49563         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49564         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49565         (xvprintf, xvfprintf): New functions.
49566
49567 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49568
49569         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49570         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49571
49572         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49573         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49574
49575 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49576
49577         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49578         by Bruno Haible.
49579
49580 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49581
49582         * lib/getloadavg.c
49583         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49584         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49585
49586         * tests/test-i-ring.c: Work for C89.
49587
49588 2007-10-22  Bruno Haible  <bruno@clisp.org>
49589
49590         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49591         -1u, in preprocessor expression, so that we don't test for the bug
49592         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49593         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49594
49595 2007-10-22  Eric Blake  <ebb9@byu.net>
49596
49597         * tests/test-yesno.sh: Silence stderr during test.
49598
49599 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49600
49601         * modules/crypto/gc-camellia: New file.
49602
49603         * m4/gc-camellia.m4: New file.
49604
49605         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49606
49607         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49608
49609 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49610
49611         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49612         --help to stdout.  Reported by sms@antinode.org (Steven
49613         M. Schweda).
49614
49615 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49616
49617         * users.txt: Fix link to libksba.
49618
49619 2007-10-21  Ben Pfaff  <blp@gnu.org>
49620
49621         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49622         round.c roundf implementation that depends on floorf and ceilf to
49623         be tested unconditionally.
49624
49625 2007-10-21  Ben Pfaff  <blp@gnu.org>
49626
49627         * m4/check-libm-func.m4: Removed.
49628         * m4/check-math-lib.m4: New file.
49629         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49630         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49631         definition and lack of AC_LIBOBJ([roundf]).
49632         * m4/roundl.m4: Ditto, and similarly for roundl.
49633         * modules/round: Reference new m4 file.
49634         * modules/roundf: Ditto.
49635         * modules/roundl: Ditto.
49636         * tests/test-round2.c (main): Use ROUND instead of round.
49637         Bug report from Bruno Haible.
49638
49639 2007-10-21  Bruno Haible  <bruno@clisp.org>
49640
49641         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49642         context.
49643
49644 2007-10-21  Bruno Haible  <bruno@clisp.org>
49645
49646         * tests/test-wcwidth.c (main): Allow negative result for some control
49647         characters.
49648
49649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49650         Needed on OSF/1 5.1.
49651
49652 2007-10-21  Bruno Haible  <bruno@clisp.org>
49653
49654         * tests/test-floorf1.c: Include isnanf.h.
49655         (main): Use isnanf() instead of isnan().
49656         * tests/test-ceilf1.c: Include isnanf.h.
49657         (main): Use isnanf() instead of isnan().
49658         * tests/test-truncf1.c: Include isnanf.h.
49659         (main): Use isnanf() instead of isnan().
49660         * tests/test-roundf1.c: Include isnanf.h.
49661         (main): Use isnanf() instead of isnan().
49662
49663 2007-10-21  Eric Blake  <ebb9@byu.net>
49664
49665         * users.txt: Update URL for m4.
49666
49667 2007-10-21  Bruno Haible  <bruno@clisp.org>
49668
49669         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49670
49671 2007-10-21  Bruno Haible  <bruno@clisp.org>
49672
49673         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49674         Git's management files if the CVS files are not present.
49675
49676 2007-10-20  Bruno Haible  <bruno@clisp.org>
49677
49678         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49679         gcc-3.4.x.
49680
49681 2007-10-20  Ben Pfaff  <blp@gnu.org>
49682
49683         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49684         implementations.
49685         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49686         * lib/round.c: New file.
49687         * lib/roundf.c: New file.
49688         * lib/roundl.c: New file.
49689         * m4/round.m4: New file.
49690         * m4/roundf.m4: New file.
49691         * m4/roundl.m4: New file.
49692         * m4/check-libm-func-m4: New file.
49693         * modules/math: Replace round, roundf, roundl related @VARS@ in
49694         math.in.h.
49695         * modules/round: New file.
49696         * modules/round-tests: New file.
49697         * modules/roundf: New file.
49698         * modules/roundf-tests: New file.
49699         * modules/roundl: New file.
49700         * modules/roundl-tests: New file.
49701         * tests/test-round1.c: New file.
49702         * tests/test-round2.c: New file.
49703         * tests/test-roundf1.c: New file.
49704         * tests/test-roundf2.c: New file.
49705         * tests/test-roundl.c: New file.
49706         * doc/functions/round.texi: Mention round module.
49707         * doc/functions/roundf.texi: Mention roundf module.
49708         * doc/functions/roundl.texi: Mention roundl module.
49709         * MODULES.html.sh: Mention new modules.
49710         Thanks to Bruno Haible for suggestions.
49711
49712 2007-10-20  Jim Meyering  <meyering@redhat.com>
49713
49714         * lib/xprintf.c: Include <config.h> unconditionally.
49715
49716         Change xprintf's license to GPL.
49717         * modules/xprintf (License): s/LGPL/GPL/, since this module
49718         depends on modules (exit and exitfail) which are GPL.
49719         Suggestion from Bruno Haible.
49720
49721         xprintf fixes.
49722         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49723         Use a clearer diagnostic.
49724         Patch from Bruno Haible.
49725
49726 2007-10-20  Bruno Haible  <bruno@clisp.org>
49727
49728         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49729         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49730         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49731
49732 2007-10-20  Bruno Haible  <bruno@clisp.org>
49733
49734         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49735         precision in the comparison result > x - 1 or similar.
49736         * tests/test-ceilf2.c (correct_result_p): Likewise.
49737         * tests/test-truncf2.c (correct_result_p): Likewise.
49738         * tests/test-trunc2.c (correct_result_p): Likewise.
49739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49740
49741 2007-10-20  Bruno Haible  <bruno@clisp.org>
49742
49743         * modules/ceil: New file.
49744         * m4/ceil.m4: New file.
49745         * doc/functions/ceil.texi: Mention the 'ceil' module.
49746
49747 2007-10-20  Bruno Haible  <bruno@clisp.org>
49748
49749         * modules/floor: New file.
49750         * m4/floor.m4: New file.
49751         * doc/functions/floor.texi: Mention the 'floor' module.
49752
49753 2007-10-20  Bruno Haible  <bruno@clisp.org>
49754
49755         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49756         of %a.
49757         * modules/floorf-tests (Depends-on): Likewise.
49758         * modules/truncf-tests (Depends-on): Likewise.
49759         * modules/trunc-tests (Depends-on): Likewise.
49760         Reported by Ben Pfaff.
49761
49762 2007-10-19  Jim Meyering  <meyering@redhat.com>
49763
49764         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49765         Don't bother testing specific errno values.  Just test ferror.
49766
49767         New module: xprintf
49768         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49769
49770 2007-10-19  Bruno Haible  <bruno@clisp.org>
49771
49772         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49773         syntax.
49774         * modules/javaexec (Makefile.am): Likewise.
49775         * modules/relocatable-prog (Makefile.am): Likewise.
49776         Suggested by Jim Meyering.
49777
49778 2007-10-18  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49781         Reported by Jim Meyering.
49782
49783 2007-10-18  Eric Blake  <ebb9@byu.net>
49784
49785         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49786
49787 2007-10-18  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49790         the format string into writable memory. Needed in Fortify conditions.
49791
49792 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49793             Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49796         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49797         * modules/trim (Depends-on): Add mbchar.
49798         (configure.ac): Add gl_FUNC_MBRTOWC.
49799         (Makefile.am): Augment lib_SOURCES.
49800
49801 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49802
49803         Modify glob.c to use fstatat and dirfd, to simplify it.
49804         Suggested by Eric Blake.
49805         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49806         Don't include <stdbool.h>; not used.
49807         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49808         (link_exists_p): Simplify implementation, since we can now assume
49809         dirfd and fstatat.
49810         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49811
49812 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49813
49814         * gnulib-tool (func_get_dependencies): Fix sed script to
49815         match only tests.
49816
49817 2007-10-17  Bruno Haible  <bruno@clisp.org>
49818
49819         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49820         allow locale names without encoding suffix.
49821         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49822         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49823
49824 2007-10-16  Bruno Haible  <bruno@clisp.org>
49825
49826         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49827         * lib/getgroups.c (getgroups): Likewise.
49828         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49829
49830 2007-10-16  Bruno Haible  <bruno@clisp.org>
49831
49832         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49833         * modules/malloc-posix (License): Likewise.
49834         * modules/realloc-posix (License): Likewise.
49835         * modules/calloc-posix (License): Likewise.
49836         * modules/intprops (License): Change from GPL to LGPL, with
49837         Paul Eggert's approval.
49838
49839 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49840
49841         Merge glibc changes into lib/glob.c.
49842
49843         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49844         2007-10-15 04:59:03 UTC.  Here are the changes:
49845
49846         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49847
49848         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49849
49850         * lib/glob.c: Add some branch prediction throughout.
49851
49852         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49853
49854         [BZ #5103]
49855         * lib/glob.c (glob): Recognize patterns starting \/.
49856
49857         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49858
49859         [BZ #3996]
49860         * lib/glob.c (attribute_hidden): Define if not defined.
49861         (glob): Unescape dirname, filename or username when needed and not
49862         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49863         is NULL.  Handle unescaped [ in pattern without closing ].
49864         Don't pass GLOB_CHECK down to recursive glob for directories.
49865         (__glob_pattern_type): New function.
49866         (__glob_pattern_p): Implement using __glob_pattern_type.
49867         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49868         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49869         Remove unreachable code.
49870
49871         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49872
49873         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49874         explain why there are no leaks.
49875
49876         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49877
49878         [BZ #3253]
49879         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49880         time, rather allocate increasingly bigger arrays of pointers, if
49881         possible with alloca, if too large with malloc.
49882
49883 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49884
49885         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49886         Problem reported by H.Merijn Brand in
49887         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49888         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49889         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49890
49891 2007-10-15  Bruno Haible  <bruno@clisp.org>
49892
49893         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49894         with explicit rpl_ prefix.
49895         * lib/fopen.c (fopen): Likewise.
49896         * lib/freopen.c (freopen): Likewise.
49897         * lib/iconv.c (iconv): Likewise.
49898         * lib/iconv_close.c (iconv_close): Likewise.
49899
49900 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49901
49902         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49903
49904 2007-10-15  Bruno Haible  <bruno@clisp.org>
49905
49906         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49907         <stddef.h> instead of <stdlib.h> since we only need NULL.
49908         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49909
49910 2007-10-15  Bruno Haible  <bruno@clisp.org>
49911
49912         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49913         Replace paragraph talking about LIBOBJS.
49914         Reported by Colin Watson <cjwatson@debian.org>.
49915
49916 2007-10-15  Bruno Haible  <bruno@clisp.org>
49917
49918         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49919         <stdlib.h> before using NULL.
49920
49921 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49922
49923         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49924         Reported by Albert Chin <china@thewrittenword.com>.
49925
49926 2007-10-14  Bruno Haible  <bruno@clisp.org>
49927
49928         * modules/iconv_open-utf-tests: New file.
49929         * tests/test-iconv-utf.c: New file.
49930
49931         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49932         * modules/iconv_open-utf: New file.
49933         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49934         (iconv, iconv_close): New declarations.
49935         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49936         be defined.
49937         (iconv_open): Add special handling of conversion between UTF-8 and
49938         UTF-{16,32}{BE,LE}.
49939         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49940         * lib/iconv_close.c: New file.
49941         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49942         gl_FUNC_ICONV_OPEN.
49943         (gl_FUNC_ICONV_OPEN): Use it.
49944         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49945         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49946         and REPLACE_ICONV_UTF.
49947         * modules/iconv_open (Depends-on): Add c-strcase.
49948         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49949         ICONV_CONST.
49950         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49951
49952 2007-10-13  Albert Chin  <china@thewrittenword.com>
49953             Bruno Haible  <bruno@clisp.org>
49954
49955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49956         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49957
49958 2007-10-13  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49961         defined, use the ISO C99 inline semantics.
49962         * lib/argp.h (ARGP_EI): Likewise.
49963
49964 2007-10-13  Bruno Haible  <bruno@clisp.org>
49965
49966         Handle 'inline' change in gcc 4.3.0.
49967         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49968         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49969         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49970         argp_fmtstream_point): Disable 'extern' declaration if the function
49971         definition is going to be provided inline.
49972         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49973         semantics, not the ISO C99 inline semantics.
49974         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49975         'extern' declaration if the function definition is going to be provided
49976         inline.
49977         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49978         the GNU C inline semantics, not the ISO C99 inline semantics. With
49979         GCC 4.2, avoid a warning.
49980
49981 2007-10-13  Bruno Haible  <bruno@clisp.org>
49982
49983         * lib/freading.h (freading): Enable the use of __freading for
49984         glibc >= 2.7.
49985         * lib/freading.c (freading): Likewise.
49986
49987 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49988
49989         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49990         "warning: C99 inline functions are not supported; using GNU89".
49991
49992 2007-10-12  Bruno Haible  <bruno@clisp.org>
49993
49994         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49995         of 2.
49996         * tests/test-ceilf2.c: New file.
49997         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49998
49999         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50000         * modules/ceilf-tests: Update.
50001
50002 2007-10-12  Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50005         of 2.
50006         * tests/test-floorf2.c: New file.
50007         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50008
50009         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50010         * modules/floorf-tests: Update.
50011
50012 2007-10-12  Bruno Haible  <bruno@clisp.org>
50013
50014         * tests/test-trunc2.c: New file.
50015         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50016
50017         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50018         * modules/trunc-tests: Update.
50019
50020 2007-10-12  Bruno Haible  <bruno@clisp.org>
50021
50022         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50023         of 2.
50024         * tests/test-truncf2.c: New file.
50025         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50026
50027         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50028         * modules/truncf-tests: Update.
50029
50030 2007-10-11  Eric Blake  <ebb9@byu.net>
50031
50032         Don't claim strerror is broken on Interix.
50033         * doc/functions/strerror.texi (strerror): Known broken systems are
50034         now Solaris 8, and not Interix.
50035         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50036         Interix on cross-compile.
50037         Reported by Martin Koeppe in
50038         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50039
50040 2007-10-11  Bruno Haible  <bruno@clisp.org>
50041
50042         * modules/i-ring-tests: New file.
50043         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50044         instead of assert.
50045
50046 2007-10-11  Bruno Haible  <bruno@clisp.org>
50047
50048         * modules/filenamecat-tests: New file.
50049         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50050         * lib/filenamecat.c: Remove test code.
50051
50052 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50055
50056         * lib/strerror.c: Include <string.h> always, to test interface,
50057         and to remove the need for the dummy.
50058         Include intprops.h to compute width instead of doing it ourselves
50059         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50060         (strerror): Define it to return NULL if there's no system strerror.
50061         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50062         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50063         ancient pre-strerror Unix systems well any more.  Saying "unknown
50064         system error" is enough.
50065         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50066         simpler strerror.c implementation.
50067         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50068         Simplify the tests to reflect the simpler strerror implementation.
50069         * modules/strerror (Depends-on): Add intprops.
50070
50071 2007-10-09  Eric Blake  <ebb9@byu.net>
50072
50073         Silence test-fpending.
50074         * modules/fpending-tests (Files): Add wrapper script.
50075         * tests/test-fpending.sh: New file.
50076
50077 2007-10-09  Bruno Haible  <bruno@clisp.org>
50078
50079         * MODULES.html.sh (func_module): Don't create a hyperlink for
50080         function names like 'printf_frexp'.
50081         (Misc): Add crc, memxor.
50082         (Characteristics of floating types): New section.
50083         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50084         isnanf-nolibm, signbit, trunc, truncf, truncl.
50085         (Enhancements for ISO C 99 functions): New subsection Input/output.
50086         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50087         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50088         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50089         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50090         (Enhancements for POSIX:2001 functions): Add chdir-long.
50091         (File system functions): Add areadlink, chdir-safer, read-file.
50092         Remove cycle-check.
50093         (File system as inode set): New section.
50094         (Date and time): Add gethrxtime.
50095         (Multithreading): Add openmp.
50096         (Internationalization functions): Add localename.
50097         (Unicode string functions): Add unistr/u*-mbsnlen.
50098         (Support for maintaining and releasing projects): Add git-version-gen.
50099         (Lone files): Remove directories.
50100
50101 2007-10-08  Ben Pfaff  <blp@gnu.org>
50102
50103         * lib/xmalloca.h: Fix typo in comment.
50104
50105 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50106
50107         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50108         when avoiding problems with integer overflow.  Use a portable test
50109         instead.
50110
50111 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50112
50113         * modules/dummy (License): Change to LGPLv2+.
50114         * modules/float (License): Likewise
50115         * modules/realloc (License): Likewise
50116         * modules/stdlib (License): Likewise
50117
50118 2007-10-07  Bruno Haible  <bruno@clisp.org>
50119
50120         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50121         * floor.c (TWO_MANT_DIG): Likewise.
50122         * ceil.c (TWO_MANT_DIG): Likewise.
50123         Reported by Ben Pfaff.
50124
50125 2007-10-07  Bruno Haible  <bruno@clisp.org>
50126
50127         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50128         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50129         * lib/frexp.c (FUNC): Likewise.
50130         * lib/printf-frexp.h (printf_frexp): Likewise.
50131         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50132         * lib/printf-frexp.c (FUNC): Likewise.
50133         Suggested by Jim Meyering.
50134
50135 2007-10-07  Jim Meyering  <meyering@redhat.com>
50136
50137         Make xnanosleep's integer overflow test more robust.
50138         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50139         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50140
50141 2007-10-07  Bruno Haible  <bruno@clisp.org>
50142
50143         * NEWS: Mention the license change.
50144
50145         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50146         abbreviations in the modules files.
50147
50148         Change copyright notice from GPLv2+ to GPLv3+.
50149         * README: Change copyright notice.
50150         * MODULES.html.sh: Likewise.
50151         * build-aux/bootstrap.conf: Likewise.
50152         * build-aux/config.libpath: Likewise.
50153         * build-aux/csharpcomp.sh.in: Likewise.
50154         * build-aux/csharpexec.sh.in: Likewise.
50155         * build-aux/install-reloc: Likewise.
50156         * build-aux/javacomp.sh.in: Likewise.
50157         * build-aux/javaexec.sh.in: Likewise.
50158         * build-aux/ldd.sh.in: Likewise.
50159         * build-aux/reloc-ldflags: Likewise.
50160         * build-aux/relocatable.sh.in: Likewise.
50161         * build-aux/x-to-1.in: Likewise.
50162         * check-module: Likewise.
50163         * config/srclistvars.sh: Likewise.
50164         * gnulib-tool: Likewise.
50165         * lib/acl-internal.h: Likewise.
50166         * lib/acl.c: Likewise.
50167         * lib/acl.h: Likewise.
50168         * lib/acl_entries.c: Likewise.
50169         * lib/areadlink-with-size.c: Likewise.
50170         * lib/areadlink.c: Likewise.
50171         * lib/areadlink.h: Likewise.
50172         * lib/argmatch.c: Likewise.
50173         * lib/argmatch.h: Likewise.
50174         * lib/argp-ba.c: Likewise.
50175         * lib/argp-eexst.c: Likewise.
50176         * lib/argp-fmtstream.c: Likewise.
50177         * lib/argp-fmtstream.h: Likewise.
50178         * lib/argp-fs-xinl.c: Likewise.
50179         * lib/argp-help.c: Likewise.
50180         * lib/argp-namefrob.h: Likewise.
50181         * lib/argp-parse.c: Likewise.
50182         * lib/argp-pin.c: Likewise.
50183         * lib/argp-pv.c: Likewise.
50184         * lib/argp-pvh.c: Likewise.
50185         * lib/argp-xinl.c: Likewise.
50186         * lib/argp.h: Likewise.
50187         * lib/at-func.c: Likewise.
50188         * lib/atanl.c: Likewise.
50189         * lib/backupfile.c: Likewise.
50190         * lib/backupfile.h: Likewise.
50191         * lib/basename.c: Likewise.
50192         * lib/binary-io.h: Likewise.
50193         * lib/byteswap.in.h: Likewise.
50194         * lib/c-stack.c: Likewise.
50195         * lib/c-stack.h: Likewise.
50196         * lib/c-strcasestr.c: Likewise.
50197         * lib/c-strcasestr.h: Likewise.
50198         * lib/c-strstr.c: Likewise.
50199         * lib/c-strstr.h: Likewise.
50200         * lib/c-strtod.c: Likewise.
50201         * lib/calloc.c: Likewise.
50202         * lib/canon-host.c: Likewise.
50203         * lib/canon-host.h: Likewise.
50204         * lib/canonicalize-lgpl.c: Likewise.
50205         * lib/canonicalize.c: Likewise.
50206         * lib/canonicalize.h: Likewise.
50207         * lib/ceil.c: Likewise.
50208         * lib/ceilf.c: Likewise.
50209         * lib/ceill.c: Likewise.
50210         * lib/chdir-long.c: Likewise.
50211         * lib/chdir-long.h: Likewise.
50212         * lib/chdir-safer.c: Likewise.
50213         * lib/chdir-safer.h: Likewise.
50214         * lib/chown.c: Likewise.
50215         * lib/classpath.c: Likewise.
50216         * lib/classpath.h: Likewise.
50217         * lib/clean-temp.c: Likewise.
50218         * lib/clean-temp.h: Likewise.
50219         * lib/cloexec.c: Likewise.
50220         * lib/close-stream.c: Likewise.
50221         * lib/closein.c: Likewise.
50222         * lib/closein.h: Likewise.
50223         * lib/closeout.c: Likewise.
50224         * lib/closeout.h: Likewise.
50225         * lib/concat-filename.c: Likewise.
50226         * lib/copy-file.c: Likewise.
50227         * lib/copy-file.h: Likewise.
50228         * lib/count-one-bits.h: Likewise.
50229         * lib/crc.c: Likewise.
50230         * lib/crc.h: Likewise.
50231         * lib/creat-safer.c: Likewise.
50232         * lib/csharpcomp.c: Likewise.
50233         * lib/csharpcomp.h: Likewise.
50234         * lib/csharpexec.c: Likewise.
50235         * lib/csharpexec.h: Likewise.
50236         * lib/cycle-check.c: Likewise.
50237         * lib/cycle-check.h: Likewise.
50238         * lib/diacrit.c: Likewise.
50239         * lib/diacrit.h: Likewise.
50240         * lib/diffseq.h: Likewise.
50241         * lib/dirchownmod.c: Likewise.
50242         * lib/dirent.in.h: Likewise.
50243         * lib/dirfd.c: Likewise.
50244         * lib/dirfd.h: Likewise.
50245         * lib/dirname.c: Likewise.
50246         * lib/dirname.h: Likewise.
50247         * lib/dummy.c: Likewise.
50248         * lib/dup-safer.c: Likewise.
50249         * lib/dup2.c: Likewise.
50250         * lib/eealloc.h: Likewise.
50251         * lib/error.c: Likewise.
50252         * lib/error.h: Likewise.
50253         * lib/euidaccess.c: Likewise.
50254         * lib/exclude.c: Likewise.
50255         * lib/exclude.h: Likewise.
50256         * lib/execute.c: Likewise.
50257         * lib/execute.h: Likewise.
50258         * lib/exitfail.c: Likewise.
50259         * lib/exitfail.h: Likewise.
50260         * lib/expl.c: Likewise.
50261         * lib/fatal-signal.c: Likewise.
50262         * lib/fatal-signal.h: Likewise.
50263         * lib/fbufmode.c: Likewise.
50264         * lib/fbufmode.h: Likewise.
50265         * lib/fchdir.c: Likewise.
50266         * lib/fchmodat.c: Likewise.
50267         * lib/fchownat.c: Likewise.
50268         * lib/fcntl--.h: Likewise.
50269         * lib/fcntl-safer.h: Likewise.
50270         * lib/fcntl.in.h: Likewise.
50271         * lib/fd-safer.c: Likewise.
50272         * lib/fflush.c: Likewise.
50273         * lib/file-has-acl.c: Likewise.
50274         * lib/file-set.c: Likewise.
50275         * lib/file-type.c: Likewise.
50276         * lib/file-type.h: Likewise.
50277         * lib/fileblocks.c: Likewise.
50278         * lib/filemode.c: Likewise.
50279         * lib/filemode.h: Likewise.
50280         * lib/filename.h: Likewise.
50281         * lib/filenamecat.c: Likewise.
50282         * lib/filenamecat.h: Likewise.
50283         * lib/findprog.c: Likewise.
50284         * lib/findprog.h: Likewise.
50285         * lib/float.in.h: Likewise.
50286         * lib/floor.c: Likewise.
50287         * lib/floorf.c: Likewise.
50288         * lib/floorl.c: Likewise.
50289         * lib/fopen-safer.c: Likewise.
50290         * lib/fopen.c: Likewise.
50291         * lib/fpending.c: Likewise.
50292         * lib/fpending.h: Likewise.
50293         * lib/fprintf.c: Likewise.
50294         * lib/fprintftime.h: Likewise.
50295         * lib/fpucw.h: Likewise.
50296         * lib/fpurge.c: Likewise.
50297         * lib/fpurge.h: Likewise.
50298         * lib/freadable.c: Likewise.
50299         * lib/freadable.h: Likewise.
50300         * lib/freadahead.c: Likewise.
50301         * lib/freadahead.h: Likewise.
50302         * lib/freading.c: Likewise.
50303         * lib/freading.h: Likewise.
50304         * lib/free.c: Likewise.
50305         * lib/freopen.c: Likewise.
50306         * lib/frexp.c: Likewise.
50307         * lib/frexpl.c: Likewise.
50308         * lib/fseek.c: Likewise.
50309         * lib/fseterr.c: Likewise.
50310         * lib/fseterr.h: Likewise.
50311         * lib/fstatat.c: Likewise.
50312         * lib/fstrcmp.c: Likewise.
50313         * lib/fstrcmp.h: Likewise.
50314         * lib/fsusage.c: Likewise.
50315         * lib/fsusage.h: Likewise.
50316         * lib/ftell.c: Likewise.
50317         * lib/ftello.c: Likewise.
50318         * lib/fts-cycle.c: Likewise.
50319         * lib/fts.c: Likewise.
50320         * lib/fts_.h: Likewise.
50321         * lib/full-read.c: Likewise.
50322         * lib/full-read.h: Likewise.
50323         * lib/full-write.c: Likewise.
50324         * lib/full-write.h: Likewise.
50325         * lib/fwritable.c: Likewise.
50326         * lib/fwritable.h: Likewise.
50327         * lib/fwriteerror.c: Likewise.
50328         * lib/fwriteerror.h: Likewise.
50329         * lib/fwriting.c: Likewise.
50330         * lib/fwriting.h: Likewise.
50331         * lib/gcd.c: Likewise.
50332         * lib/gcd.h: Likewise.
50333         * lib/getcwd.c: Likewise.
50334         * lib/getdate.h: Likewise.
50335         * lib/getdate.y: Likewise.
50336         * lib/getdomainname.c: Likewise.
50337         * lib/getdomainname.h: Likewise.
50338         * lib/getgroups.c: Likewise.
50339         * lib/gethostname.c: Likewise.
50340         * lib/gethrxtime.c: Likewise.
50341         * lib/gethrxtime.h: Likewise.
50342         * lib/getloadavg.c: Likewise.
50343         * lib/getndelim2.c: Likewise.
50344         * lib/getndelim2.h: Likewise.
50345         * lib/getnline.c: Likewise.
50346         * lib/getnline.h: Likewise.
50347         * lib/getopt.c: Likewise.
50348         * lib/getopt.in.h: Likewise.
50349         * lib/getopt1.c: Likewise.
50350         * lib/getopt_int.h: Likewise.
50351         * lib/getpagesize.h: Likewise.
50352         * lib/getsubopt.c: Likewise.
50353         * lib/gettime.c: Likewise.
50354         * lib/getugroups.c: Likewise.
50355         * lib/getugroups.h: Likewise.
50356         * lib/getusershell.c: Likewise.
50357         * lib/gl_anyavltree_list1.h: Likewise.
50358         * lib/gl_anyavltree_list2.h: Likewise.
50359         * lib/gl_anyhash_list1.h: Likewise.
50360         * lib/gl_anyhash_list2.h: Likewise.
50361         * lib/gl_anylinked_list1.h: Likewise.
50362         * lib/gl_anylinked_list2.h: Likewise.
50363         * lib/gl_anyrbtree_list1.h: Likewise.
50364         * lib/gl_anyrbtree_list2.h: Likewise.
50365         * lib/gl_anytree_list1.h: Likewise.
50366         * lib/gl_anytree_list2.h: Likewise.
50367         * lib/gl_anytree_oset.h: Likewise.
50368         * lib/gl_anytreehash_list1.h: Likewise.
50369         * lib/gl_anytreehash_list2.h: Likewise.
50370         * lib/gl_array_list.c: Likewise.
50371         * lib/gl_array_list.h: Likewise.
50372         * lib/gl_array_oset.c: Likewise.
50373         * lib/gl_array_oset.h: Likewise.
50374         * lib/gl_avltree_list.c: Likewise.
50375         * lib/gl_avltree_list.h: Likewise.
50376         * lib/gl_avltree_oset.c: Likewise.
50377         * lib/gl_avltree_oset.h: Likewise.
50378         * lib/gl_avltreehash_list.c: Likewise.
50379         * lib/gl_avltreehash_list.h: Likewise.
50380         * lib/gl_carray_list.c: Likewise.
50381         * lib/gl_carray_list.h: Likewise.
50382         * lib/gl_linked_list.c: Likewise.
50383         * lib/gl_linked_list.h: Likewise.
50384         * lib/gl_linkedhash_list.c: Likewise.
50385         * lib/gl_linkedhash_list.h: Likewise.
50386         * lib/gl_list.c: Likewise.
50387         * lib/gl_list.h: Likewise.
50388         * lib/gl_oset.c: Likewise.
50389         * lib/gl_oset.h: Likewise.
50390         * lib/gl_rbtree_list.c: Likewise.
50391         * lib/gl_rbtree_list.h: Likewise.
50392         * lib/gl_rbtree_oset.c: Likewise.
50393         * lib/gl_rbtree_oset.h: Likewise.
50394         * lib/gl_rbtreehash_list.c: Likewise.
50395         * lib/gl_rbtreehash_list.h: Likewise.
50396         * lib/gl_sublist.c: Likewise.
50397         * lib/gl_sublist.h: Likewise.
50398         * lib/group-member.c: Likewise.
50399         * lib/group-member.h: Likewise.
50400         * lib/hard-locale.c: Likewise.
50401         * lib/hard-locale.h: Likewise.
50402         * lib/hash-pjw.c: Likewise.
50403         * lib/hash-pjw.h: Likewise.
50404         * lib/hash-triple.c: Likewise.
50405         * lib/hash.c: Likewise.
50406         * lib/hash.h: Likewise.
50407         * lib/human.c: Likewise.
50408         * lib/human.h: Likewise.
50409         * lib/i-ring.c: Likewise.
50410         * lib/i-ring.h: Likewise.
50411         * lib/idcache.c: Likewise.
50412         * lib/imaxabs.c: Likewise.
50413         * lib/imaxdiv.c: Likewise.
50414         * lib/inet_pton.c: Likewise.
50415         * lib/inet_pton.h: Likewise.
50416         * lib/intprops.h: Likewise.
50417         * lib/inttostr.c: Likewise.
50418         * lib/inttostr.h: Likewise.
50419         * lib/inttypes.in.h: Likewise.
50420         * lib/isapipe.c: Likewise.
50421         * lib/isdir.c: Likewise.
50422         * lib/isnan.c: Likewise.
50423         * lib/isnan.h: Likewise.
50424         * lib/isnanf.c: Likewise.
50425         * lib/isnanf.h: Likewise.
50426         * lib/isnanl-nolibm.h: Likewise.
50427         * lib/isnanl.c: Likewise.
50428         * lib/isnanl.h: Likewise.
50429         * lib/javacomp.c: Likewise.
50430         * lib/javacomp.h: Likewise.
50431         * lib/javaexec.c: Likewise.
50432         * lib/javaexec.h: Likewise.
50433         * lib/javaversion.c: Likewise.
50434         * lib/javaversion.h: Likewise.
50435         * lib/javaversion.java: Likewise.
50436         * lib/lbrkprop.h: Likewise.
50437         * lib/lchmod.h: Likewise.
50438         * lib/lchown.c: Likewise.
50439         * lib/ldexpl.c: Likewise.
50440         * lib/linebreak.c: Likewise.
50441         * lib/linebreak.h: Likewise.
50442         * lib/linebuffer.c: Likewise.
50443         * lib/linebuffer.h: Likewise.
50444         * lib/locale.in.h: Likewise.
50445         * lib/logl.c: Likewise.
50446         * lib/long-options.c: Likewise.
50447         * lib/long-options.h: Likewise.
50448         * lib/lstat.c: Likewise.
50449         * lib/lstat.h: Likewise.
50450         * lib/math.in.h: Likewise.
50451         * lib/mbchar.c: Likewise.
50452         * lib/mbchar.h: Likewise.
50453         * lib/mbfile.h: Likewise.
50454         * lib/mbiter.h: Likewise.
50455         * lib/mbscasecmp.c: Likewise.
50456         * lib/mbscasestr.c: Likewise.
50457         * lib/mbschr.c: Likewise.
50458         * lib/mbscspn.c: Likewise.
50459         * lib/mbslen.c: Likewise.
50460         * lib/mbsncasecmp.c: Likewise.
50461         * lib/mbsnlen.c: Likewise.
50462         * lib/mbspbrk.c: Likewise.
50463         * lib/mbspcasecmp.c: Likewise.
50464         * lib/mbsrchr.c: Likewise.
50465         * lib/mbssep.c: Likewise.
50466         * lib/mbsspn.c: Likewise.
50467         * lib/mbsstr.c: Likewise.
50468         * lib/mbstok_r.c: Likewise.
50469         * lib/mbswidth.c: Likewise.
50470         * lib/mbswidth.h: Likewise.
50471         * lib/mbuiter.h: Likewise.
50472         * lib/memcasecmp.c: Likewise.
50473         * lib/memcasecmp.h: Likewise.
50474         * lib/memchr.c: Likewise.
50475         * lib/memcmp.c: Likewise.
50476         * lib/memcoll.c: Likewise.
50477         * lib/memcoll.h: Likewise.
50478         * lib/memcpy.c: Likewise.
50479         * lib/memrchr.c: Likewise.
50480         * lib/mkancesdirs.c: Likewise.
50481         * lib/mkdir-p.c: Likewise.
50482         * lib/mkdir-p.h: Likewise.
50483         * lib/mkdir.c: Likewise.
50484         * lib/mkdirat.c: Likewise.
50485         * lib/mkdtemp.c: Likewise.
50486         * lib/mkstemp-safer.c: Likewise.
50487         * lib/mkstemp.c: Likewise.
50488         * lib/modechange.c: Likewise.
50489         * lib/modechange.h: Likewise.
50490         * lib/mountlist.c: Likewise.
50491         * lib/mountlist.h: Likewise.
50492         * lib/mpsort.c: Likewise.
50493         * lib/nanosleep.c: Likewise.
50494         * lib/obstack.c: Likewise.
50495         * lib/obstack.h: Likewise.
50496         * lib/open-safer.c: Likewise.
50497         * lib/open.c: Likewise.
50498         * lib/openat-die.c: Likewise.
50499         * lib/openat-priv.h: Likewise.
50500         * lib/openat-proc.c: Likewise.
50501         * lib/openat.c: Likewise.
50502         * lib/openat.h: Likewise.
50503         * lib/pagealign_alloc.c: Likewise.
50504         * lib/pagealign_alloc.h: Likewise.
50505         * lib/physmem.c: Likewise.
50506         * lib/physmem.h: Likewise.
50507         * lib/pipe-safer.c: Likewise.
50508         * lib/pipe.c: Likewise.
50509         * lib/pipe.h: Likewise.
50510         * lib/posixtm.c: Likewise.
50511         * lib/posixtm.h: Likewise.
50512         * lib/posixver.c: Likewise.
50513         * lib/printf-frexp.c: Likewise.
50514         * lib/printf-frexp.h: Likewise.
50515         * lib/printf-frexpl.c: Likewise.
50516         * lib/printf-frexpl.h: Likewise.
50517         * lib/printf.c: Likewise.
50518         * lib/progname.c: Likewise.
50519         * lib/progname.h: Likewise.
50520         * lib/progreloc.c: Likewise.
50521         * lib/putenv.c: Likewise.
50522         * lib/quote.c: Likewise.
50523         * lib/quote.h: Likewise.
50524         * lib/quotearg.c: Likewise.
50525         * lib/quotearg.h: Likewise.
50526         * lib/raise.c: Likewise.
50527         * lib/readline.c: Likewise.
50528         * lib/readline.h: Likewise.
50529         * lib/readlink.c: Likewise.
50530         * lib/readtokens.c: Likewise.
50531         * lib/readtokens.h: Likewise.
50532         * lib/readtokens0.c: Likewise.
50533         * lib/readtokens0.h: Likewise.
50534         * lib/readutmp.c: Likewise.
50535         * lib/readutmp.h: Likewise.
50536         * lib/realloc.c: Likewise.
50537         * lib/relocwrapper.c: Likewise.
50538         * lib/rename-dest-slash.c: Likewise.
50539         * lib/rename.c: Likewise.
50540         * lib/rmdir.c: Likewise.
50541         * lib/rpmatch.c: Likewise.
50542         * lib/safe-read.c: Likewise.
50543         * lib/safe-read.h: Likewise.
50544         * lib/safe-write.c: Likewise.
50545         * lib/safe-write.h: Likewise.
50546         * lib/same-inode.h: Likewise.
50547         * lib/same.c: Likewise.
50548         * lib/same.h: Likewise.
50549         * lib/save-cwd.c: Likewise.
50550         * lib/save-cwd.h: Likewise.
50551         * lib/savedir.c: Likewise.
50552         * lib/savedir.h: Likewise.
50553         * lib/savewd.c: Likewise.
50554         * lib/savewd.h: Likewise.
50555         * lib/search.in.h: Likewise.
50556         * lib/setenv.c: Likewise.
50557         * lib/setenv.h: Likewise.
50558         * lib/settime.c: Likewise.
50559         * lib/sh-quote.c: Likewise.
50560         * lib/sh-quote.h: Likewise.
50561         * lib/sig2str.c: Likewise.
50562         * lib/sig2str.h: Likewise.
50563         * lib/signal.in.h: Likewise.
50564         * lib/signbitd.c: Likewise.
50565         * lib/signbitf.c: Likewise.
50566         * lib/signbitl.c: Likewise.
50567         * lib/sigprocmask.c: Likewise.
50568         * lib/sincosl.c: Likewise.
50569         * lib/sleep.c: Likewise.
50570         * lib/sprintf.c: Likewise.
50571         * lib/sqrtl.c: Likewise.
50572         * lib/stat-time.h: Likewise.
50573         * lib/stdio--.h: Likewise.
50574         * lib/stdio-safer.h: Likewise.
50575         * lib/stdlib--.h: Likewise.
50576         * lib/stdlib-safer.h: Likewise.
50577         * lib/stdlib.in.h: Likewise.
50578         * lib/stpcpy.c: Likewise.
50579         * lib/stpncpy.c: Likewise.
50580         * lib/strchrnul.c: Likewise.
50581         * lib/strcspn.c: Likewise.
50582         * lib/strerror.c: Likewise.
50583         * lib/strftime.c: Likewise.
50584         * lib/strftime.h: Likewise.
50585         * lib/striconveh.c: Likewise.
50586         * lib/striconveh.h: Likewise.
50587         * lib/striconveha.c: Likewise.
50588         * lib/striconveha.h: Likewise.
50589         * lib/stripslash.c: Likewise.
50590         * lib/strnlen1.c: Likewise.
50591         * lib/strnlen1.h: Likewise.
50592         * lib/strtod.c: Likewise.
50593         * lib/strtoimax.c: Likewise.
50594         * lib/strtok_r.c: Likewise.
50595         * lib/strtol.c: Likewise.
50596         * lib/strtoll.c: Likewise.
50597         * lib/strtoul.c: Likewise.
50598         * lib/strtoull.c: Likewise.
50599         * lib/sysexits.in.h: Likewise.
50600         * lib/tempname.c: Likewise.
50601         * lib/tempname.h: Likewise.
50602         * lib/timespec.h: Likewise.
50603         * lib/tls.c: Likewise.
50604         * lib/tls.h: Likewise.
50605         * lib/tmpdir.c: Likewise.
50606         * lib/tmpdir.h: Likewise.
50607         * lib/tmpfile-safer.c: Likewise.
50608         * lib/tmpfile.c: Likewise.
50609         * lib/trigl.c: Likewise.
50610         * lib/trigl.h: Likewise.
50611         * lib/trim.c: Likewise.
50612         * lib/trim.h: Likewise.
50613         * lib/trunc.c: Likewise.
50614         * lib/truncf.c: Likewise.
50615         * lib/truncl.c: Likewise.
50616         * lib/tsearch.c: Likewise.
50617         * lib/unicodeio.c: Likewise.
50618         * lib/unicodeio.h: Likewise.
50619         * lib/unistd--.h: Likewise.
50620         * lib/unistd-safer.h: Likewise.
50621         * lib/unistdio/ulc-fprintf.c: Likewise.
50622         * lib/unistdio/ulc-vfprintf.c: Likewise.
50623         * lib/unlinkdir.c: Likewise.
50624         * lib/unlinkdir.h: Likewise.
50625         * lib/unlocked-io.h: Likewise.
50626         * lib/unsetenv.c: Likewise.
50627         * lib/userspec.c: Likewise.
50628         * lib/utime.c: Likewise.
50629         * lib/utimecmp.c: Likewise.
50630         * lib/utimecmp.h: Likewise.
50631         * lib/utimens.c: Likewise.
50632         * lib/verify.h: Likewise.
50633         * lib/verror.c: Likewise.
50634         * lib/verror.h: Likewise.
50635         * lib/version-etc-fsf.c: Likewise.
50636         * lib/version-etc.c: Likewise.
50637         * lib/version-etc.h: Likewise.
50638         * lib/vfprintf.c: Likewise.
50639         * lib/vprintf.c: Likewise.
50640         * lib/vsprintf.c: Likewise.
50641         * lib/w32spawn.h: Likewise.
50642         * lib/wait-process.c: Likewise.
50643         * lib/wait-process.h: Likewise.
50644         * lib/wcwidth.c: Likewise.
50645         * lib/write-any-file.c: Likewise.
50646         * lib/xalloc-die.c: Likewise.
50647         * lib/xalloc.h: Likewise.
50648         * lib/xasprintf.c: Likewise.
50649         * lib/xgetcwd.c: Likewise.
50650         * lib/xgetcwd.h: Likewise.
50651         * lib/xgetdomainname.c: Likewise.
50652         * lib/xgetdomainname.h: Likewise.
50653         * lib/xgethostname.c: Likewise.
50654         * lib/xmalloc.c: Likewise.
50655         * lib/xmalloca.c: Likewise.
50656         * lib/xmalloca.h: Likewise.
50657         * lib/xmemcoll.c: Likewise.
50658         * lib/xnanosleep.c: Likewise.
50659         * lib/xreadlink.c: Likewise.
50660         * lib/xreadlink.h: Likewise.
50661         * lib/xsetenv.c: Likewise.
50662         * lib/xsetenv.h: Likewise.
50663         * lib/xstriconv.c: Likewise.
50664         * lib/xstriconv.h: Likewise.
50665         * lib/xstrndup.c: Likewise.
50666         * lib/xstrndup.h: Likewise.
50667         * lib/xstrtod.c: Likewise.
50668         * lib/xstrtod.h: Likewise.
50669         * lib/xstrtol-error.c: Likewise.
50670         * lib/xstrtol.c: Likewise.
50671         * lib/xstrtol.h: Likewise.
50672         * lib/xtime.h: Likewise.
50673         * lib/xvasprintf.c: Likewise.
50674         * lib/xvasprintf.h: Likewise.
50675         * lib/yesno.c: Likewise.
50676         * lib/yesno.h: Likewise.
50677         * posix-modules: Likewise.
50678         * tests/test-alloca-opt.c: Likewise.
50679         * tests/test-arcfour.c: Likewise.
50680         * tests/test-arctwo.c: Likewise.
50681         * tests/test-argmatch.c: Likewise.
50682         * tests/test-argp-2.sh: Likewise.
50683         * tests/test-argp.c: Likewise.
50684         * tests/test-arpa_inet.c: Likewise.
50685         * tests/test-array_list.c: Likewise.
50686         * tests/test-array_oset.c: Likewise.
50687         * tests/test-atexit.c: Likewise.
50688         * tests/test-avltree_list.c: Likewise.
50689         * tests/test-avltree_oset.c: Likewise.
50690         * tests/test-avltreehash_list.c: Likewise.
50691         * tests/test-base64.c: Likewise.
50692         * tests/test-binary-io.c: Likewise.
50693         * tests/test-byteswap.c: Likewise.
50694         * tests/test-c-ctype.c: Likewise.
50695         * tests/test-c-strcasecmp.c: Likewise.
50696         * tests/test-c-strcasestr.c: Likewise.
50697         * tests/test-c-strncasecmp.c: Likewise.
50698         * tests/test-c-strstr.c: Likewise.
50699         * tests/test-canonicalize-lgpl.c: Likewise.
50700         * tests/test-canonicalize.c: Likewise.
50701         * tests/test-carray_list.c: Likewise.
50702         * tests/test-ceilf.c: Likewise.
50703         * tests/test-ceill.c: Likewise.
50704         * tests/test-count-one-bits.c: Likewise.
50705         * tests/test-crc.c: Likewise.
50706         * tests/test-dirname.c: Likewise.
50707         * tests/test-fbufmode.c: Likewise.
50708         * tests/test-fcntl.c: Likewise.
50709         * tests/test-fflush.c: Likewise.
50710         * tests/test-floorf.c: Likewise.
50711         * tests/test-floorl.c: Likewise.
50712         * tests/test-fopen.c: Likewise.
50713         * tests/test-fprintf-posix.c: Likewise.
50714         * tests/test-fprintf-posix.h: Likewise.
50715         * tests/test-fpurge.c: Likewise.
50716         * tests/test-freadable.c: Likewise.
50717         * tests/test-freadahead.c: Likewise.
50718         * tests/test-freading.c: Likewise.
50719         * tests/test-freopen.c: Likewise.
50720         * tests/test-frexp.c: Likewise.
50721         * tests/test-frexpl.c: Likewise.
50722         * tests/test-fseek.c: Likewise.
50723         * tests/test-fseeko.c: Likewise.
50724         * tests/test-fseterr.c: Likewise.
50725         * tests/test-fstrcmp.c: Likewise.
50726         * tests/test-ftell.c: Likewise.
50727         * tests/test-ftello.c: Likewise.
50728         * tests/test-fwritable.c: Likewise.
50729         * tests/test-fwriting.c: Likewise.
50730         * tests/test-getaddrinfo.c: Likewise.
50731         * tests/test-getpass.c: Likewise.
50732         * tests/test-gettimeofday.c: Likewise.
50733         * tests/test-hmac-md5.c: Likewise.
50734         * tests/test-hmac-sha1.c: Likewise.
50735         * tests/test-iconv.c: Likewise.
50736         * tests/test-iconvme.c: Likewise.
50737         * tests/test-inttypes.c: Likewise.
50738         * tests/test-isnan.c: Likewise.
50739         * tests/test-isnanf.c: Likewise.
50740         * tests/test-isnanl-nolibm.c: Likewise.
50741         * tests/test-isnanl.c: Likewise.
50742         * tests/test-isnanl.h: Likewise.
50743         * tests/test-ldexpl.c: Likewise.
50744         * tests/test-linked_list.c: Likewise.
50745         * tests/test-linkedhash_list.c: Likewise.
50746         * tests/test-locale.c: Likewise.
50747         * tests/test-localename.c: Likewise.
50748         * tests/test-lock.c: Likewise.
50749         * tests/test-lseek.c: Likewise.
50750         * tests/test-malloca.c: Likewise.
50751         * tests/test-math.c: Likewise.
50752         * tests/test-mbscasecmp.c: Likewise.
50753         * tests/test-mbscasestr1.c: Likewise.
50754         * tests/test-mbscasestr2.c: Likewise.
50755         * tests/test-mbscasestr3.c: Likewise.
50756         * tests/test-mbscasestr4.c: Likewise.
50757         * tests/test-mbschr.c: Likewise.
50758         * tests/test-mbscspn.c: Likewise.
50759         * tests/test-mbsncasecmp.c: Likewise.
50760         * tests/test-mbspbrk.c: Likewise.
50761         * tests/test-mbspcasecmp.c: Likewise.
50762         * tests/test-mbsrchr.c: Likewise.
50763         * tests/test-mbsspn.c: Likewise.
50764         * tests/test-mbsstr1.c: Likewise.
50765         * tests/test-mbsstr2.c: Likewise.
50766         * tests/test-mbsstr3.c: Likewise.
50767         * tests/test-md5.c: Likewise.
50768         * tests/test-memmem.c: Likewise.
50769         * tests/test-netinet_in.c: Likewise.
50770         * tests/test-open.c: Likewise.
50771         * tests/test-printf-frexp.c: Likewise.
50772         * tests/test-printf-frexpl.c: Likewise.
50773         * tests/test-printf-posix.c: Likewise.
50774         * tests/test-printf-posix.h: Likewise.
50775         * tests/test-rbtree_list.c: Likewise.
50776         * tests/test-rbtree_oset.c: Likewise.
50777         * tests/test-rbtreehash_list.c: Likewise.
50778         * tests/test-read-file.c: Likewise.
50779         * tests/test-rijndael.c: Likewise.
50780         * tests/test-search.c: Likewise.
50781         * tests/test-signbit.c: Likewise.
50782         * tests/test-sleep.c: Likewise.
50783         * tests/test-snprintf-posix.c: Likewise.
50784         * tests/test-snprintf-posix.h: Likewise.
50785         * tests/test-snprintf.c: Likewise.
50786         * tests/test-sprintf-posix.c: Likewise.
50787         * tests/test-sprintf-posix.h: Likewise.
50788         * tests/test-stat-time.c: Likewise.
50789         * tests/test-stdbool.c: Likewise.
50790         * tests/test-stdint.c: Likewise.
50791         * tests/test-stdio.c: Likewise.
50792         * tests/test-stdlib.c: Likewise.
50793         * tests/test-stpncpy.c: Likewise.
50794         * tests/test-strcasestr.c: Likewise.
50795         * tests/test-striconv.c: Likewise.
50796         * tests/test-striconveh.c: Likewise.
50797         * tests/test-striconveha.c: Likewise.
50798         * tests/test-string.c: Likewise.
50799         * tests/test-sys_select.c: Likewise.
50800         * tests/test-sys_socket.c: Likewise.
50801         * tests/test-sys_stat.c: Likewise.
50802         * tests/test-sys_time.c: Likewise.
50803         * tests/test-sysexits.c: Likewise.
50804         * tests/test-time.c: Likewise.
50805         * tests/test-tls.c: Likewise.
50806         * tests/test-trunc.c: Likewise.
50807         * tests/test-truncf.c: Likewise.
50808         * tests/test-truncl.c: Likewise.
50809         * tests/test-unistd.c: Likewise.
50810         * tests/test-vasnprintf-posix.c: Likewise.
50811         * tests/test-vasnprintf-posix2.c: Likewise.
50812         * tests/test-vasnprintf.c: Likewise.
50813         * tests/test-vasprintf-posix.c: Likewise.
50814         * tests/test-vasprintf.c: Likewise.
50815         * tests/test-verify.c: Likewise.
50816         * tests/test-vfprintf-posix.c: Likewise.
50817         * tests/test-vprintf-posix.c: Likewise.
50818         * tests/test-vsnprintf-posix.c: Likewise.
50819         * tests/test-vsnprintf.c: Likewise.
50820         * tests/test-vsprintf-posix.c: Likewise.
50821         * tests/test-wchar.c: Likewise.
50822         * tests/test-wctype.c: Likewise.
50823         * tests/test-wcwidth.c: Likewise.
50824         * tests/test-xstrtol.c: Likewise.
50825         * tests/test-xvasprintf.c: Likewise.
50826         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50827         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50828         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50829         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50830         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50831         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50832         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50833         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50834         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50835         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50836         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50837         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50838         * tests/uniname/test-uninames.c: Likewise.
50839         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50840         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50841         * tests/unistdio/test-u16-printf1.h: Likewise.
50842         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50843         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50844         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50845         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50846         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50847         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50848         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50849         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50850         * tests/unistdio/test-u32-printf1.h: Likewise.
50851         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50852         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50853         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50854         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50855         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50856         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50857         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50858         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50859         * tests/unistdio/test-u8-printf1.h: Likewise.
50860         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50861         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50862         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50863         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50864         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50865         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50866         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50867         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50868         * tests/unistdio/test-ulc-printf1.h: Likewise.
50869         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50870         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50871         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50872         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50873         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50874         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50875         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50876         * tests/uniwidth/test-u16-width.c: Likewise.
50877         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50878         * tests/uniwidth/test-u32-width.c: Likewise.
50879         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50880         * tests/uniwidth/test-u8-width.c: Likewise.
50881         * tests/uniwidth/test-uc_width.c: Likewise.
50882         * config/srclist-update: Likewise.
50883         (fixlicense): Update to GPLv3+.
50884
50885         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50886         * tests/test-tsearch.c: Change copyright notice.
50887
50888         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50889         * lib/c-strcaseeq.h: Change copyright notice.
50890         * lib/streq.h: Likewise.
50891         * lib/uniconv.h: Likewise.
50892         * lib/uniconv/u-conv-from-enc.h: Likewise.
50893         * lib/uniconv/u-conv-to-enc.h: Likewise.
50894         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50895         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50896         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50897         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50898         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50899         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50900         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50901         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50902         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50903         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50904         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50905         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50906         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50907         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50908         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50909         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50910         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50911         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50912         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50913         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50914         * lib/uniname.h: Likewise.
50915         * lib/uniname/uniname.c: Likewise.
50916         * lib/unistdio.h: Likewise.
50917         * lib/unistdio/u-asnprintf.h: Likewise.
50918         * lib/unistdio/u-asprintf.h: Likewise.
50919         * lib/unistdio/u-printf-args.c: Likewise.
50920         * lib/unistdio/u-printf-args.h: Likewise.
50921         * lib/unistdio/u-printf-parse.h: Likewise.
50922         * lib/unistdio/u-snprintf.h: Likewise.
50923         * lib/unistdio/u-sprintf.h: Likewise.
50924         * lib/unistdio/u-vasprintf.h: Likewise.
50925         * lib/unistdio/u-vsnprintf.h: Likewise.
50926         * lib/unistdio/u-vsprintf.h: Likewise.
50927         * lib/unistdio/u16-asnprintf.c: Likewise.
50928         * lib/unistdio/u16-asprintf.c: Likewise.
50929         * lib/unistdio/u16-printf-parse.c: Likewise.
50930         * lib/unistdio/u16-snprintf.c: Likewise.
50931         * lib/unistdio/u16-sprintf.c: Likewise.
50932         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50933         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50934         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50935         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50936         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50937         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50938         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50939         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50940         * lib/unistdio/u16-vasnprintf.c: Likewise.
50941         * lib/unistdio/u16-vasprintf.c: Likewise.
50942         * lib/unistdio/u16-vsnprintf.c: Likewise.
50943         * lib/unistdio/u16-vsprintf.c: Likewise.
50944         * lib/unistdio/u32-asnprintf.c: Likewise.
50945         * lib/unistdio/u32-asprintf.c: Likewise.
50946         * lib/unistdio/u32-printf-parse.c: Likewise.
50947         * lib/unistdio/u32-snprintf.c: Likewise.
50948         * lib/unistdio/u32-sprintf.c: Likewise.
50949         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50950         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50951         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50952         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50953         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50954         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50955         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50956         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50957         * lib/unistdio/u32-vasnprintf.c: Likewise.
50958         * lib/unistdio/u32-vasprintf.c: Likewise.
50959         * lib/unistdio/u32-vsnprintf.c: Likewise.
50960         * lib/unistdio/u32-vsprintf.c: Likewise.
50961         * lib/unistdio/u8-asnprintf.c: Likewise.
50962         * lib/unistdio/u8-asprintf.c: Likewise.
50963         * lib/unistdio/u8-printf-parse.c: Likewise.
50964         * lib/unistdio/u8-snprintf.c: Likewise.
50965         * lib/unistdio/u8-sprintf.c: Likewise.
50966         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50967         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50968         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50969         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50970         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50971         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50972         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50973         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50974         * lib/unistdio/u8-vasnprintf.c: Likewise.
50975         * lib/unistdio/u8-vasprintf.c: Likewise.
50976         * lib/unistdio/u8-vsnprintf.c: Likewise.
50977         * lib/unistdio/u8-vsprintf.c: Likewise.
50978         * lib/unistdio/ulc-asnprintf.c: Likewise.
50979         * lib/unistdio/ulc-asprintf.c: Likewise.
50980         * lib/unistdio/ulc-printf-parse.c: Likewise.
50981         * lib/unistdio/ulc-snprintf.c: Likewise.
50982         * lib/unistdio/ulc-sprintf.c: Likewise.
50983         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50984         * lib/unistdio/ulc-vasprintf.c: Likewise.
50985         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50986         * lib/unistdio/ulc-vsprintf.c: Likewise.
50987         * lib/unistr.h: Likewise.
50988         * lib/unistr/u-cpy-alloc.h: Likewise.
50989         * lib/unistr/u-cpy.h: Likewise.
50990         * lib/unistr/u-endswith.h: Likewise.
50991         * lib/unistr/u-move.h: Likewise.
50992         * lib/unistr/u-set.h: Likewise.
50993         * lib/unistr/u-startswith.h: Likewise.
50994         * lib/unistr/u-stpcpy.h: Likewise.
50995         * lib/unistr/u-stpncpy.h: Likewise.
50996         * lib/unistr/u-strcat.h: Likewise.
50997         * lib/unistr/u-strcpy.h: Likewise.
50998         * lib/unistr/u-strcspn.h: Likewise.
50999         * lib/unistr/u-strdup.h: Likewise.
51000         * lib/unistr/u-strlen.h: Likewise.
51001         * lib/unistr/u-strncat.h: Likewise.
51002         * lib/unistr/u-strncpy.h: Likewise.
51003         * lib/unistr/u-strnlen.h: Likewise.
51004         * lib/unistr/u-strpbrk.h: Likewise.
51005         * lib/unistr/u-strspn.h: Likewise.
51006         * lib/unistr/u-strstr.h: Likewise.
51007         * lib/unistr/u-strtok.h: Likewise.
51008         * lib/unistr/u16-check.c: Likewise.
51009         * lib/unistr/u16-chr.c: Likewise.
51010         * lib/unistr/u16-cmp.c: Likewise.
51011         * lib/unistr/u16-cpy-alloc.c: Likewise.
51012         * lib/unistr/u16-cpy.c: Likewise.
51013         * lib/unistr/u16-endswith.c: Likewise.
51014         * lib/unistr/u16-mblen.c: Likewise.
51015         * lib/unistr/u16-mbsnlen.c: Likewise.
51016         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51017         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51018         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51019         * lib/unistr/u16-mbtouc.c: Likewise.
51020         * lib/unistr/u16-mbtoucr.c: Likewise.
51021         * lib/unistr/u16-move.c: Likewise.
51022         * lib/unistr/u16-next.c: Likewise.
51023         * lib/unistr/u16-prev.c: Likewise.
51024         * lib/unistr/u16-set.c: Likewise.
51025         * lib/unistr/u16-startswith.c: Likewise.
51026         * lib/unistr/u16-stpcpy.c: Likewise.
51027         * lib/unistr/u16-stpncpy.c: Likewise.
51028         * lib/unistr/u16-strcat.c: Likewise.
51029         * lib/unistr/u16-strchr.c: Likewise.
51030         * lib/unistr/u16-strcmp.c: Likewise.
51031         * lib/unistr/u16-strcpy.c: Likewise.
51032         * lib/unistr/u16-strcspn.c: Likewise.
51033         * lib/unistr/u16-strdup.c: Likewise.
51034         * lib/unistr/u16-strlen.c: Likewise.
51035         * lib/unistr/u16-strmblen.c: Likewise.
51036         * lib/unistr/u16-strmbtouc.c: Likewise.
51037         * lib/unistr/u16-strncat.c: Likewise.
51038         * lib/unistr/u16-strncmp.c: Likewise.
51039         * lib/unistr/u16-strncpy.c: Likewise.
51040         * lib/unistr/u16-strnlen.c: Likewise.
51041         * lib/unistr/u16-strpbrk.c: Likewise.
51042         * lib/unistr/u16-strrchr.c: Likewise.
51043         * lib/unistr/u16-strspn.c: Likewise.
51044         * lib/unistr/u16-strstr.c: Likewise.
51045         * lib/unistr/u16-strtok.c: Likewise.
51046         * lib/unistr/u16-to-u32.c: Likewise.
51047         * lib/unistr/u16-to-u8.c: Likewise.
51048         * lib/unistr/u16-uctomb-aux.c: Likewise.
51049         * lib/unistr/u16-uctomb.c: Likewise.
51050         * lib/unistr/u32-check.c: Likewise.
51051         * lib/unistr/u32-chr.c: Likewise.
51052         * lib/unistr/u32-cmp.c: Likewise.
51053         * lib/unistr/u32-cpy-alloc.c: Likewise.
51054         * lib/unistr/u32-cpy.c: Likewise.
51055         * lib/unistr/u32-endswith.c: Likewise.
51056         * lib/unistr/u32-mblen.c: Likewise.
51057         * lib/unistr/u32-mbsnlen.c: Likewise.
51058         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51059         * lib/unistr/u32-mbtouc.c: Likewise.
51060         * lib/unistr/u32-mbtoucr.c: Likewise.
51061         * lib/unistr/u32-move.c: Likewise.
51062         * lib/unistr/u32-next.c: Likewise.
51063         * lib/unistr/u32-prev.c: Likewise.
51064         * lib/unistr/u32-set.c: Likewise.
51065         * lib/unistr/u32-startswith.c: Likewise.
51066         * lib/unistr/u32-stpcpy.c: Likewise.
51067         * lib/unistr/u32-stpncpy.c: Likewise.
51068         * lib/unistr/u32-strcat.c: Likewise.
51069         * lib/unistr/u32-strchr.c: Likewise.
51070         * lib/unistr/u32-strcmp.c: Likewise.
51071         * lib/unistr/u32-strcpy.c: Likewise.
51072         * lib/unistr/u32-strcspn.c: Likewise.
51073         * lib/unistr/u32-strdup.c: Likewise.
51074         * lib/unistr/u32-strlen.c: Likewise.
51075         * lib/unistr/u32-strmblen.c: Likewise.
51076         * lib/unistr/u32-strmbtouc.c: Likewise.
51077         * lib/unistr/u32-strncat.c: Likewise.
51078         * lib/unistr/u32-strncmp.c: Likewise.
51079         * lib/unistr/u32-strncpy.c: Likewise.
51080         * lib/unistr/u32-strnlen.c: Likewise.
51081         * lib/unistr/u32-strpbrk.c: Likewise.
51082         * lib/unistr/u32-strrchr.c: Likewise.
51083         * lib/unistr/u32-strspn.c: Likewise.
51084         * lib/unistr/u32-strstr.c: Likewise.
51085         * lib/unistr/u32-strtok.c: Likewise.
51086         * lib/unistr/u32-to-u16.c: Likewise.
51087         * lib/unistr/u32-to-u8.c: Likewise.
51088         * lib/unistr/u32-uctomb.c: Likewise.
51089         * lib/unistr/u8-check.c: Likewise.
51090         * lib/unistr/u8-chr.c: Likewise.
51091         * lib/unistr/u8-cmp.c: Likewise.
51092         * lib/unistr/u8-cpy-alloc.c: Likewise.
51093         * lib/unistr/u8-cpy.c: Likewise.
51094         * lib/unistr/u8-endswith.c: Likewise.
51095         * lib/unistr/u8-mblen.c: Likewise.
51096         * lib/unistr/u8-mbsnlen.c: Likewise.
51097         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51098         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51099         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51100         * lib/unistr/u8-mbtouc.c: Likewise.
51101         * lib/unistr/u8-mbtoucr.c: Likewise.
51102         * lib/unistr/u8-move.c: Likewise.
51103         * lib/unistr/u8-next.c: Likewise.
51104         * lib/unistr/u8-prev.c: Likewise.
51105         * lib/unistr/u8-set.c: Likewise.
51106         * lib/unistr/u8-startswith.c: Likewise.
51107         * lib/unistr/u8-stpcpy.c: Likewise.
51108         * lib/unistr/u8-stpncpy.c: Likewise.
51109         * lib/unistr/u8-strcat.c: Likewise.
51110         * lib/unistr/u8-strchr.c: Likewise.
51111         * lib/unistr/u8-strcmp.c: Likewise.
51112         * lib/unistr/u8-strcpy.c: Likewise.
51113         * lib/unistr/u8-strcspn.c: Likewise.
51114         * lib/unistr/u8-strdup.c: Likewise.
51115         * lib/unistr/u8-strlen.c: Likewise.
51116         * lib/unistr/u8-strmblen.c: Likewise.
51117         * lib/unistr/u8-strmbtouc.c: Likewise.
51118         * lib/unistr/u8-strncat.c: Likewise.
51119         * lib/unistr/u8-strncmp.c: Likewise.
51120         * lib/unistr/u8-strncpy.c: Likewise.
51121         * lib/unistr/u8-strnlen.c: Likewise.
51122         * lib/unistr/u8-strpbrk.c: Likewise.
51123         * lib/unistr/u8-strrchr.c: Likewise.
51124         * lib/unistr/u8-strspn.c: Likewise.
51125         * lib/unistr/u8-strstr.c: Likewise.
51126         * lib/unistr/u8-strtok.c: Likewise.
51127         * lib/unistr/u8-to-u16.c: Likewise.
51128         * lib/unistr/u8-to-u32.c: Likewise.
51129         * lib/unistr/u8-uctomb-aux.c: Likewise.
51130         * lib/unistr/u8-uctomb.c: Likewise.
51131         * lib/unitypes.h: Likewise.
51132         * lib/uniwidth.h: Likewise.
51133         * lib/uniwidth/cjk.h: Likewise.
51134         * lib/uniwidth/u16-strwidth.c: Likewise.
51135         * lib/uniwidth/u16-width.c: Likewise.
51136         * lib/uniwidth/u32-strwidth.c: Likewise.
51137         * lib/uniwidth/u32-width.c: Likewise.
51138         * lib/uniwidth/u8-strwidth.c: Likewise.
51139         * lib/uniwidth/u8-width.c: Likewise.
51140         * lib/uniwidth/width.c: Likewise.
51141
51142 2007-10-07  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51145         The file is still under LGPL (see modules/inttypes).
51146
51147 2007-10-06  Bruno Haible  <bruno@clisp.org>
51148
51149         * modules/trunc (Dependencies): Add 'extensions'.
51150         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51151         Reported by Ben Pfaff <blp@gnu.org>.
51152
51153 2007-10-06  Bruno Haible  <bruno@clisp.org>
51154
51155         * modules/freopen-tests: New file.
51156         * tests/test-freopen.c: New file.
51157
51158         * modules/fopen-tests: New file.
51159         * tests/test-fopen.c: New file.
51160
51161         * modules/fopen: New file.
51162         * lib/fopen.c: New file.
51163         * m4/fopen.m4: New file.
51164         * modules/freopen: New file.
51165         * lib/freopen.c: New file.
51166         * m4/freopen.m4: New file.
51167         * lib/stdio.in.h (fopen, freopen): New declarations.
51168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51169         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51170         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51171         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51172         * doc/functions/fopen.texi: Mention the 'fopen' module.
51173         * doc/functions/freopen.texi: Mention the 'freopen' module.
51174
51175 2007-10-06  Bruno Haible  <bruno@clisp.org>
51176
51177         * modules/open-tests: New file.
51178         * tests/test-open.c: New file.
51179
51180         * modules/open: New file.
51181         * lib/open.c: New file.
51182         * m4/open.m4: New file.
51183         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51184         lib/open.c does.
51185         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51186         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51187         macros.
51188         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51189         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51190         REPLACE_OPEN.
51191         * doc/functions/open.texi: Mention the 'open' module.
51192
51193 2007-10-04  Bruno Haible  <bruno@clisp.org>
51194
51195         * modules/ceill-tests: New file.
51196         * tests/test-ceill.c: New file.
51197
51198         * modules/ceill: New file.
51199         * lib/ceill.c: Replace entire file.
51200         * m4/ceill.m4: New file.
51201         * lib/math.in.h (ceill): Replace declaration.
51202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51203         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51204         * doc/functions/ceill.texi: Mention the 'ceill' module.
51205         * modules/mathl (Files): Remove lib/ceill.c.
51206         (Depends-on): Add ceill.
51207
51208 2007-10-04  Bruno Haible  <bruno@clisp.org>
51209
51210         * modules/ceilf-tests: New file.
51211         * tests/test-ceilf.c: New file.
51212
51213         * modules/ceilf: New file.
51214         * lib/ceil.c: New file.
51215         * lib/ceilf.c: New file.
51216         * m4/ceilf.m4: New file.
51217         * lib/math.in.h (ceilf): New declaration.
51218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51219         HAVE_DECL_CEILF.
51220         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51221         HAVE_DECL_CEILF.
51222         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51223
51224 2007-10-04  Bruno Haible  <bruno@clisp.org>
51225
51226         * modules/floorl-tests: New file.
51227         * tests/test-floorl.c: New file.
51228
51229         * modules/floorl: New file.
51230         * lib/floorl.c: Replace entire file.
51231         * m4/floorl.m4: New file.
51232         * lib/math.in.h (floorl): Replace declaration.
51233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51234         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51235         * doc/functions/floorl.texi: Mention the 'floorl' module.
51236         * modules/mathl (Files): Remove lib/floorl.c.
51237         (Depends-on): Add floorl.
51238
51239 2007-10-04  Bruno Haible  <bruno@clisp.org>
51240
51241         * modules/floorf-tests: New file.
51242         * tests/test-floorf.c: New file.
51243
51244         * modules/floorf: New file.
51245         * lib/floor.c: New file.
51246         * lib/floorf.c: New file.
51247         * m4/floorf.m4: New file.
51248         * lib/math.in.h (floorf): New declaration.
51249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51250         HAVE_DECL_FLOORF.
51251         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51252         HAVE_DECL_FLOORF.
51253         * doc/functions/floorf.texi: Mention the 'floorf' module.
51254
51255 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51256             Bruno Haible  <bruno@clisp.org>
51257
51258         Advertise for the Git server instead of the CVS server.
51259         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51260         repository instead of the CVS one.
51261         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51262         about all VCS systems generically.
51263         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51264
51265 2007-10-04  Bruno Haible  <bruno@clisp.org>
51266
51267         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51268         means.
51269         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51270
51271 2007-10-04  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/truncl-tests: New file.
51274         * tests/test-truncl.c: New file.
51275
51276         * modules/truncl: New file.
51277         * lib/truncl.c: New file.
51278         * m4/truncl.m4: New file.
51279         * lib/math.in.h (truncl): New declaration.
51280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51281         HAVE_DECL_TRUNCL.
51282         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51283         HAVE_DECL_TRUNCL.
51284         * doc/functions/truncl.texi: Mention the 'truncl' module.
51285
51286 2007-10-04  Bruno Haible  <bruno@clisp.org>
51287
51288         * modules/truncf-tests: New file.
51289         * tests/test-truncf.c: New file.
51290
51291         * modules/truncf: New file.
51292         * lib/trunc.c: Make paramerizable through USE_* macros.
51293         * lib/truncf.c: New file.
51294         * m4/truncf.m4: New file.
51295         * lib/math.in.h (truncf): New declaration.
51296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51297         HAVE_DECL_TRUNCF.
51298         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51299         HAVE_DECL_TRUNCF.
51300         * doc/functions/truncf.texi: Mention the 'truncf' module.
51301
51302 2007-10-03  Bruno Haible  <bruno@clisp.org>
51303
51304         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51305         augmentation also for tests modules.
51306         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51307         * modules/atexit-tests (Makefile.am): Likewise.
51308         * modules/binary-io-tests (Makefile.am): Likewise.
51309         * modules/c-strcase-tests (Makefile.am): Likewise.
51310         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51311         * modules/canonicalize-tests (Makefile.am): Likewise.
51312         * modules/closein-tests (Makefile.am): Likewise.
51313         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51314         * modules/freadahead-tests (Makefile.am): Likewise.
51315         * modules/fseek-tests (Makefile.am): Likewise.
51316         * modules/fseeko-tests (Makefile.am): Likewise.
51317         * modules/ftell-tests (Makefile.am): Likewise.
51318         * modules/ftello-tests (Makefile.am): Likewise.
51319         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51320         * modules/isnanl-tests (Makefile.am): Likewise.
51321         * modules/lseek-tests (Makefile.am): Likewise.
51322         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51323         * modules/mbscasestr-tests (Makefile.am): Likewise.
51324         * modules/mbschr-tests (Makefile.am): Likewise.
51325         * modules/mbscspn-tests (Makefile.am): Likewise.
51326         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51327         * modules/mbspbrk-tests (Makefile.am): Likewise.
51328         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51329         * modules/mbsrchr-tests (Makefile.am): Likewise.
51330         * modules/mbsspn-tests (Makefile.am): Likewise.
51331         * modules/mbsstr-tests (Makefile.am): Likewise.
51332         * modules/printf-posix-tests (Makefile.am): Likewise.
51333         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51334         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51335         * modules/tsearch-tests (Makefile.am): Likewise.
51336         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51337         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51338         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51339         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51340         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51341         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51342         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51343         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51344         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51345         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51346         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51347         * modules/xstrtol-tests (Makefile.am): Likewise.
51348         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51349         * modules/yesno-tests (Makefile.am): Likewise.
51350
51351 2007-10-03  Bruno Haible  <bruno@clisp.org>
51352
51353         * modules/trunc-tests: New file.
51354         * tests/test-trunc.c: New file.
51355
51356         * modules/trunc: New file.
51357         * lib/trunc.c: New file.
51358         * m4/trunc.m4: New file.
51359         * lib/math.in.h (trunc): New declaration.
51360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51361         HAVE_DECL_TRUNC.
51362         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51363         HAVE_DECL_TRUNC.
51364         * doc/functions/trunc.texi: Mention the 'trunc' module.
51365
51366 2007-10-03  Bruno Haible  <bruno@clisp.org>
51367
51368         * tests/test-fpending.c: New file, mostly copied
51369         from coreutils/lib/t-fpending.c.
51370         * modules/fpending-tests: New file.
51371
51372 2007-10-03  Bruno Haible  <bruno@clisp.org>
51373
51374         Port the stdio extensions to QNX (untested).
51375         * lib/fseterr.c (fseterr): Add support for QNX.
51376         * lib/fbufmode.c (fbufmode): Likewise.
51377         * lib/freadable.c (freadable): Likewise.
51378         * lib/fwritable.c (fwritable): Likewise.
51379         * lib/freading.c (freading): Likewise.
51380         * lib/fwriting.c (fwriting): Likewise.
51381         * lib/freadahead.c (freadahed): Likewise.
51382         * lib/fpurge.c (fpurge): Likewise.
51383         * lib/fseeko.c (rpl_fseeko): Likewise.
51384
51385 2007-10-03  Bruno Haible  <bruno@clisp.org>
51386             Jim Meyering  <jim@meyering.net>
51387             Eric Blake  <ebb9@byu.net>
51388
51389         * doc/relocatable.texi: Use @command instead of @program.
51390
51391 2007-10-02  Jim Meyering  <jim@meyering.net>
51392
51393         Perform one more "_.h" -> ".in.h" substitution.
51394         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51395         instead of unistd_.h here, too.
51396
51397 2007-10-01  Bruno Haible  <bruno@clisp.org>
51398
51399         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51400         Needed for the alloca-opt module.
51401
51402 2007-09-30  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51405         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51406         alloca_.h.
51407         * lib/argz.in.h: Renamed from lib/argz_.h.
51408         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51409         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51410         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51411         byteswap_.h.
51412         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51413         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51414         dirent_.h.
51415         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51416         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51417         fcntl_.h.
51418         * lib/float.in.h: Renamed from lib/float_.h.
51419         * modules/float (Files, Makefile.am): Use float.in.h instead of
51420         float_.h.
51421         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51422         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51423         fnmatch_.h.
51424         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51425         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51426         getopt_.h.
51427         * lib/glob.in.h: Renamed from lib/glob_.h.
51428         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51429         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51430         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51431         iconv_.h.
51432         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51433         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51434         inttypes_.h.
51435         * lib/locale.in.h: Renamed from lib/locale_.h.
51436         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51437         locale_.h.
51438         * lib/math.in.h: Renamed from lib/math_.h.
51439         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51440         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51441         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51442         of netinet_in_.h. Add dependency.
51443         * lib/poll.in.h: Renamed from lib/poll_.h.
51444         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51445         * lib/search.in.h: Renamed from lib/search_.h.
51446         * modules/search (Files, Makefile.am): Use search.in.h instead of
51447         search_.h.
51448         * lib/signal.in.h: Renamed from lib/signal_.h.
51449         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51450         _signal.h.
51451         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51452         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51453         stdbool_.h.
51454         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51455         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51456         stdint_.h.
51457         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51458         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51459         stdio_.h.
51460         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51461         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51462         stdlib_.h.
51463         * lib/string.in.h: Renamed from lib/string_.h.
51464         * modules/string (Files, Makefile.am): Use string.in.h instead of
51465         string_.h.
51466         * doc/gnulib-tool.texi (Initial import): Update.
51467         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51468         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51469         of sys_select_.h. Add dependency.
51470         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51471         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51472         of sys_socket_.h.
51473         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51474         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51475         sys_stat_.h.
51476         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51477         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51478         sys_time_.h.
51479         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51480         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51481         sysexits_.h.
51482         * lib/time.in.h: Renamed from lib/time_.h.
51483         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51484         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51485         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51486         unistd_.h.
51487         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51488         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51489         wchar_.h.
51490         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51491         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51492         wctype_.h.
51493         * build-aux/bootstrap (slurp): Update.
51494         * lib/.cppi-disable: Update.
51495
51496 2007-09-30  Bruno Haible  <bruno@clisp.org>
51497
51498         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51499         Needed on BeOS.
51500
51501 2007-09-30  Bruno Haible  <bruno@clisp.org>
51502
51503         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51504
51505 2007-09-29  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51508
51509 2007-09-29  Bruno Haible  <bruno@clisp.org>
51510
51511         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51512         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51513         * build-aux/install-reloc: Compile also areadlink.c.
51514         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51515
51516 2007-09-29  Bruno Haible  <bruno@clisp.org>
51517
51518         * gnulib-tool (func_emit_initmacro_done): Indentation.
51519
51520 2007-09-29  Bruno Haible  <bruno@clisp.org>
51521
51522         * README: Add CVS checkout update instructions.
51523         Info from Bob Proulx <bob@proulx.com>.
51524
51525 2007-09-28  Eric Blake  <ebb9@byu.net>
51526
51527         Provide move-if-change.
51528         * build-aux/move-if-change: New file, based on best practice
51529         rather than any canonical upstream location.
51530
51531 2007-09-28  Jim Meyering  <jim@meyering.net>
51532
51533         Fix canonicalize loop-detection corner case.
51534         Do not attempt to stat the symlink values stored via seen_triple.
51535         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51536         on linux-2.6.18, (but not 2.6.22).
51537         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51538         triple_compare.  The former compares dev,ino,filename, while the latter
51539         would actually stat dirname(filename) when dev and ino were equal.
51540         * lib/hash-triple.c: Install <string.h>.
51541         (STREQ): Define.
51542         (triple_compare_ino_str): New function.
51543         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51544
51545 2007-09-28  Eric Blake  <ebb9@byu.net>
51546
51547         Enforce that AC_REPLACE_FUNCS files exist.
51548         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51549         override check for typos.
51550
51551         Fix test-closein on Solaris 10.
51552         * tests/test-closein.c (main): Don't assume stdin can be inherited
51553         closed on all systems.
51554         * tests/test-closein.sh: Likewise.
51555         Reported by Piotr Tarnowski.
51556
51557 2007-09-28  Jim Meyering  <jim@meyering.net>
51558
51559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51560
51561 2007-09-27  Jim Meyering  <jim@meyering.net>
51562
51563         canonicalize: Avoid a false-positive cycle failure.
51564         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51565         Sort.  Remove cycle-check.
51566         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51567         not cycle-check.h.
51568         (seen_triple): New function.
51569         (canonicalize_filename_mode): Use it instead of cycle-check.
51570         * tests/test-canonicalize.c: Add a test for this bug.
51571         * tests/test-canonicalize.sh: Set up and run the test.
51572
51573         New module, file-set, from coreutils.
51574         * modules/file-set: Define it.
51575         * lib/file-set.c, lib/file-set.h: Implement.
51576
51577         New module, hash-triple, from coreutils.
51578         * modules/hash-triple: Define it.
51579         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51580
51581 2007-09-25  Eric Blake  <ebb9@byu.net>
51582
51583         Fix strerror on Interix.
51584         * lib/string_.h (strerror): Declare replacement.
51585         * doc/functions/strerror.texi (strerror): Document the Interix
51586         shortcoming.
51587         * modules/string (Makefile.am): Support new hooks.
51588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51589         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51590         gl_FUNC_STRERROR_SEPARATE.
51591         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51592         * lib/strerror.c (rpl_strerror): Provide replacement.
51593         * modules/strerror (Depends-on): Add string.
51594         (configure.ac): Detect use of module.
51595         * tests/test-strerror.c: New file.
51596         * modules/strerror-tests: New test module.
51597         * modules/argp (Depends-on): Add strerror.
51598         * modules/error (Depends-on): Likewise.
51599         Reported by Martin Koeppe.
51600
51601 2007-09-24  Bruno Haible  <bruno@clisp.org>
51602
51603         * README: Update git instructions.
51604
51605 2007-09-24  Eric Blake  <ebb9@byu.net>
51606
51607         Revert fpending breakage from 2007-09-08.
51608         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51609         __fpending.c.
51610
51611 2007-09-24  Jim Meyering  <jim@meyering.net>
51612
51613         filenamecat.c: Add a test.
51614         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51615         showing how the function works when DIR is the empty string.
51616
51617 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51618
51619         * tests/test-canonicalize.sh: Turn on executable bit.
51620
51621 2007-09-19  Eric Blake  <ebb9@byu.net>
51622
51623         * README: Update CVS instructions.
51624
51625 2007-09-18  Bruno Haible  <bruno@clisp.org>
51626
51627         * modules/areadlink: New file.
51628         * lib/areadlink.h (areadlink): New declaration.
51629         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51630
51631 2007-09-17  Jim Meyering  <jim@meyering.net>
51632
51633         * lib/savewd.c (ESTALE) [!defined]: Define.
51634         Reported to be required on Interix by Martin Koeppe.
51635
51636 2007-09-17  Bruno Haible  <bruno@clisp.org>
51637
51638         * gnulib-tool (func_version): Use $version.
51639
51640 2007-09-16  Bruno Haible  <bruno@clisp.org>
51641
51642         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51643         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51644         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51645         Reported by Greg Schafer <gschafer@zip.com.au>.
51646
51647 2007-09-15  Bruno Haible  <bruno@clisp.org>
51648
51649         * gnulib-tool (sed): Try a little harder to make bash understand the
51650         alias.
51651         Reported by Bruce Korb <bruce.korb@gmail.com>.
51652
51653 2007-09-13  Eric Blake  <ebb9@byu.net>
51654
51655         * ChangeLog: Remove conflict markers.
51656
51657 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51658
51659         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51660         Reported by Bruno Haible <bruno@clisp.org>.
51661
51662 2007-09-12  Bruno Haible  <bruno@clisp.org>
51663
51664         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51665         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51666         is not defined.
51667
51668 2007-09-12  Eric Blake  <ebb9@byu.net>
51669
51670         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51671         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51672         Autoconf definition.
51673         * modules/euidaccess (Depends-on): Add extensions, for
51674         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51675         * modules/fnmatch (Depends-on): Likewise.
51676         * modules/getaddrinfo (Depends-on): Likewise.
51677         * modules/getdelim (Depends-on): Likewise.
51678         * modules/getline (Depends-on): Likewise.
51679         * modules/getsubopt (Depends-on): Likewise.
51680         * modules/gettext (Depends-on): Likewise.
51681         * modules/group-member (Depends-on): Likewise.
51682         * modules/mbchar (Depends-on): Likewise.
51683         * modules/memmem (Depends-on): Likewise.
51684         * modules/mempcpy (Depends-on): Likewise.
51685         * modules/memrchr (Depends-on): Likewise.
51686         * modules/pagealign_alloc (Depends-on): Likewise.
51687         * modules/readutmp (Depends-on): Likewise.
51688         * modules/stpcpy (Depends-on): Likewise.
51689         * modules/stpncpy (Depends-on): Likewise.
51690         * modules/strchrnul (Depends-on): Likewise.
51691         * modules/strndup (Depends-on): Likewise.
51692         * modules/strsep (Depends-on): Likewise.
51693         * modules/strverscmp (Depends-on): Likewise.
51694         * modules/vasprintf (Depends-on): Likewise.
51695         * modules/wcwidth (Depends-on): Likewise.
51696         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51697         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51698         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51700         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51701         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51702         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51703         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51704         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51705         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51707         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51708         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51709         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51710         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51711         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51712         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51713         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51715         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51716         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51717         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51718         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51719         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51720         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51722         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51723         so that lock.m4 can be used in gettext without extensions module.
51724
51725 2007-09-11  Bruno Haible  <bruno@clisp.org>
51726
51727         * m4/isc-posix.m4: Remove file.
51728         Suggested by Eric Blake.
51729
51730 2007-09-11  Eric Blake  <ebb9@byu.net>
51731
51732         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51733
51734 2007-09-10  Bruno Haible  <bruno@clisp.org>
51735
51736         * posix-modules: Fix typo in error message.
51737         Reported by Matt <mkraai@beckman.com>.
51738
51739 2007-09-09  Bruno Haible  <bruno@clisp.org>
51740
51741         * doc/functions/getdelim.texi: Update list of platforms lacking the
51742         function.
51743         * doc/functions/getline.texi: Likewise.
51744
51745 2007-09-09  Jim Meyering  <jim@meyering.net>
51746
51747         * lib/hash.c (hash_initialize): Detect calloc failure.
51748         Reported by Bruno Haible.
51749
51750 2007-09-09  Bruno Haible  <bruno@clisp.org>
51751
51752         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51753         malloc or realloc fails.
51754
51755 2007-09-09  Bruno Haible  <bruno@clisp.org>
51756
51757         * modules/getcwd (Depends-on): Add malloc-posix.
51758         * modules/glob (Depends-on): Likewise.
51759         * modules/putenv (Depends-on): Likewise.
51760         * modules/strdup (Depends-on): Likewise.
51761         * modules/getdelim (Depends-on): Add realloc-posix.
51762         * modules/read-file (Depends-on): Likewise.
51763
51764 2007-09-09  Bruno Haible  <bruno@clisp.org>
51765
51766         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51767         (gl_FUNC_MALLOC_POSIX): Require it.
51768         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51769         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51770         * modules/realloc (Files): Add m4/malloc.m4.
51771         * modules/calloc (Files): Likewise.
51772
51773 2007-09-09  Bruno Haible  <bruno@clisp.org>
51774
51775         * modules/malloc-posix: New file.
51776         * modules/malloc (Depends-on): Add malloc-posix.
51777         * lib/malloc.c: Include errno.h.
51778         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51779         and a POSIX-compatible malloc into a single function. Set ENOMEM
51780         when returning NULL.
51781         * m4/malloc.m4: New file.
51782         * doc/functions/malloc.texi: Mention the malloc-posix module.
51783         * lib/stdlib_.h (malloc): New declaration.
51784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51785         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51786         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51787         and HAVE_MALLOC_POSIX.
51788
51789 2007-09-09  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/realloc-posix: New file.
51792         * modules/realloc (Depends-on): Add realloc-posix.
51793         * lib/realloc.c: Include errno.h.
51794         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51795         and a POSIX-compatible realloc into a single function. Set ENOMEM
51796         when returning NULL.
51797         * m4/realloc.m4: New file.
51798         * doc/functions/realloc.texi: Mention the realloc-posix module.
51799         * lib/stdlib_.h (realloc): New declaration.
51800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51801         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51802         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51803         and HAVE_REALLOC_POSIX.
51804
51805 2007-09-09  Bruno Haible  <bruno@clisp.org>
51806
51807         * modules/calloc-posix: New file.
51808         * modules/calloc (Depends-on): Add calloc-posix.
51809         * lib/calloc.c: Include errno.h.
51810         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51811         and a POSIX-compatible calloc into a single function. Set ENOMEM
51812         when returning NULL.
51813         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51814         * doc/functions/calloc.texi: Mention the calloc-posix module.
51815         * lib/stdlib_.h (calloc): New declaration.
51816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51817         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51818         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51819         and HAVE_CALLOC_POSIX.
51820
51821 2007-09-09  Bruno Haible  <bruno@clisp.org>
51822
51823         Allow for modules to show an arbitrary notice.
51824         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51825         * gnulib-tool: New option --extract-notice.
51826         (func_usage): Document it.
51827         (sed_extract_prog): Update.
51828         (func_get_notice): New function.
51829         (func_modules_notice): New function.
51830         (func_import, func_create_testdir): Invoke it.
51831         Suggested by Jim Meyering.
51832
51833 2007-09-09  Bruno Haible  <bruno@clisp.org>
51834
51835         * gnulib-tool: New options --verbose, --quiet.
51836         (func_usage): Document them.
51837         (verbose): New variable.
51838         (func_execute_command): New function.
51839         (func_import): Don't show the module list and the file list if
51840         $verbose < 0.
51841         (func_create_testdir): Likewise. Use func_execute_command.
51842         (func_create_megatestdir): Use func_execute_command.
51843
51844 2007-09-08  Bruno Haible  <bruno@clisp.org>
51845
51846         * gnulib-tool (func_import): Prefer rsync over wget when available,
51847         for fetching the PO files.
51848
51849 2007-09-08  Bruno Haible  <bruno@clisp.org>
51850
51851         * posix-modules: New file. Portions copied from gnulib-tool.
51852         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51853
51854 2007-09-08  Jim Meyering  <jim@meyering.net>
51855
51856         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51857         * lib/fpending.h: Rename from __fpending.h.
51858         * lib/fpending.c: Rename from __fpending.c.
51859         Include "fpending.h", not "__fpending.h".
51860         * lib/__fpending.h, lib/__fpending.c: Remove files.
51861         * modules/fpending (Files): Reflect new file names.
51862         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51863
51864 2007-09-08  Bruno Haible  <bruno@clisp.org>
51865
51866         * m4/inttypes-h.m4: Remove stub file.
51867
51868 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51869
51870         * doc/headers/stdint.texi: Discuss #include_next issue.
51871
51872 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51875
51876 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51877
51878         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51879         in variable name.
51880
51881 2007-09-03  Jim Meyering  <jim@meyering.net>
51882
51883         New module: git-version-gen.
51884         * modules/git-version-gen: New file.
51885
51886         Import changes from coreutils for bootstrap script.
51887
51888         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51889
51890         bootstrap: uses rsync to download the .po files
51891         * build-aux/bootstrap (po_download_command_format): New global.
51892         (download_po_files): Use rsync.
51893         (update_po_files): Don't remove .po files after download,
51894         so future rsync runs can take advantage of the copies.
51895
51896         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51897
51898         Solve the unnecessary-.po-file-regeneration problem once and for all.
51899         * build-aux/bootstrap (download_po_files): New function, renamed from
51900         get_translations.  Now, downloads, but doesn't update LINGUAS.
51901         (update_po_files): New function.
51902
51903         bootstrap: Ignore more.
51904         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51905         uniwidth to e.g., lib/.gitignore.
51906         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51907
51908         * build-aux/bootstrap: New setting: vc_ignore.
51909         (insert_sorted_if_absent): Create $file if absent.
51910         Adapt to new, possibly empty, list: $vc_ignore.
51911
51912         bootstrap: generate more ignorable names
51913         * build-aux/bootstrap (slurp): When generating ignorable names,
51914         also map .sin to .sed, .gperf to .c, and .y to .c.
51915
51916 2007-09-03  Jim Meyering  <jim@meyering.net>
51917
51918         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51919         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51920
51921 2007-09-02  Bruno Haible  <bruno@clisp.org>
51922
51923         Fix mis-recognition of 'mcs' on QNX 6.
51924         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51925         output contains the string "Mono".
51926         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51927         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51928
51929 2007-09-01  Bruno Haible  <bruno@clisp.org>
51930
51931         Fix collision between uniwidth/* and linebreak modules.
51932         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51933         u32_width): Remove declarations.
51934         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51935         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51936         streq3, streq2, streq1, streq0): Remove functions.
51937         (STREQ): Remove macro.
51938         (is_cjk_encoding): Remove function.
51939         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51940         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51941         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51942         * NEWS: Document the change.
51943
51944 2007-09-01  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/streq.h: Add double-inclusion guard.
51947
51948 2007-09-01  Karl Berry  <karl@gnu.org>
51949
51950         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51951
51952 2007-08-28  Jim Meyering  <jim@meyering.net>
51953
51954         Rename mreadlink_with_size to areadlink_with_size.
51955         * NEWS: Document the change.
51956         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51957         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51958         * lib/mreadlink.h: Rename this to...
51959         * lib/areadlink.h: ...this.
51960         * modules/mreadlink-with-size: Rename this to...
51961         * modules/areadlink-with-size: ...this.
51962         * lib/canonicalize.c: Reflect the renaming.
51963         * modules/canonicalize: Likewise.
51964
51965 2007-08-26  Bruno Haible  <bruno@clisp.org>
51966
51967         * gnulib-tool (func_import): When deciding which files to remove,
51968         consider also dangling symbolic links.
51969         Reported by Eric Blake.
51970
51971 2007-08-26  Bruno Haible  <bruno@clisp.org>
51972
51973         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51974
51975 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51976
51977         * lib/readline.c: Don't include getline.h, the prototype is now
51978         found in stdio.h.
51979
51980 2007-08-23  Jim Meyering  <jim@meyering.net>
51981
51982         Getdelim touchup.
51983         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51984         around the funlockfile call, since funlockfile never sets errno.
51985         Don't set errno upon failed realloc.
51986
51987 2007-08-22  Eric Blake  <ebb9@byu.net>
51988
51989         Getline touchups.
51990         * lib/getdelim.c (getdelim): Revert regression that required *n to
51991         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51992         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51993         getdelim, rather than whether implementation is missing.
51994         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51995         * lib/stdio_.h (getline): Also declare if replacement is
51996         required.
51997         * doc/functions/getdelim.texi: New file.
51998         * doc/functions/getline.texi: Likewise.
51999         * doc/gnulib.texi (Function Substitutes): Add new files.
52000         Reported by Bruno Haible.
52001
52002 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52003
52004         * users.txt: Add Guile.
52005
52006 2007-08-22  Eric Blake  <ebb9@byu.net>
52007
52008         * tests/test-getdelim.c (main): Use remove, not unlink.
52009         * tests/test-getline.c (main): Likewise.
52010
52011         Move getline and getdelim into stdio.h, per POSIX 200x.
52012         * modules/getline (Files): Remove getline.h.
52013         (Depends-on): Add stdio.
52014         (configure.ac): Add module indicator.
52015         * modules/getdelim (Files): Remove getdelim.h.
52016         (Depends-on): Add stdio.
52017         (configure.ac): Add module indicator.
52018         * modules/stdio (Makefile.am): Work with new indicators.
52019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52020         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52021         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52022         * lib/getdelim.h: Delete.
52023         * lib/getline.h: Delete.
52024         * lib/stdio_.h (getdelim, getline): Declare.
52025         * modules/getdelim-tests: New module.
52026         * modules/getline-tests: Likewise.
52027         * tests/test-getdelim.c: New file.
52028         * tests/test-getline.c: Likewise.
52029         * NEWS: Document the change.
52030         * lib/getline.c: Update choice of header.
52031         * lib/csharpcomp.c: Likewise.
52032         * lib/getpass.c: Likewise.
52033         * lib/javacomp.c: Likewise.
52034         * lib/javaversion.c: Likewise.
52035         * lib/yesno.c: Likewise.
52036         * lib/getdelim.c: Likewise.
52037         (getdelim): Set errno on failure, and avoid memory leak.
52038
52039 2007-08-19  Bruno Haible  <bruno@clisp.org>
52040
52041         * modules/closein (Depends-on): Add freadahead.
52042         * lib/closein.c: Include freadahead.h.
52043         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52044         is zero.
52045
52046 2007-08-19  Bruno Haible  <bruno@clisp.org>
52047
52048         * modules/freadahead-tests: New file.
52049         * tests/test-freadahead.sh: New file.
52050         * tests/test-freadahead.c: New file.
52051
52052         * modules/freadahead: New file.
52053         * lib/freadahead.h: New file.
52054         * lib/freadahead.c: New file.
52055         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52056         fbufmode, fpurge, freadable, fwritable.
52057
52058 2007-08-19  Eric Blake  <ebb9@byu.net>
52059
52060         Test yesno in combination with closein.
52061         * lib/yesno.c (yesno): Document use of stdin.
52062         * modules/yesno-tests (Files): New module.
52063         * tests/test-yesno.c (main): New file.
52064         * tests/test-yesno.sh: Likewise.
52065
52066 2007-08-19  Bruno Haible  <bruno@clisp.org>
52067
52068         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52069         * lib/fseeko.c (rpl_fseeko): Likewise.
52070         * lib/fseterr.c (fseterr): Likewise.
52071
52072 2007-08-19  Bruno Haible  <bruno@clisp.org>
52073
52074         * tests/test-lseek.c (main): Disable a test for BeOS.
52075         * doc/functions/lseek.texi: Document the BeOS bug.
52076
52077 2007-08-19  Bruno Haible  <bruno@clisp.org>
52078             Eric Blake  <ebb9@byu.net>
52079
52080         * lib/lseek.c: Include <sys/stat.h>.
52081         (rpl_lseek): Add workaround code also for Unix platforms.
52082         Needed for BeOS.
52083         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52084         * doc/functions/lseek.texi: Document BeOS definiency.
52085
52086 2007-08-18  Bruno Haible  <bruno@clisp.org>
52087
52088         * modules/fstrcmp-tests: New file.
52089         * tests/test-fstrcmp.c: New file.
52090
52091 2007-08-18  Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/fstrcmp: New file, from GNU gettext with modifications.
52094         * lib/fstrcmp.h: New file, from GNU gettext.
52095         * lib/fstrcmp.c: New file, from GNU gettext.
52096         * MODULES.html.sh (String handling): Add fstrcmp.
52097
52098 2007-08-18  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52101         'bool'.
52102         (diag, compareseq): Remove const from the ctxt argument.
52103         (USE_HEURISTIC): Undefine at the end.
52104
52105 2007-08-18  Jim Meyering  <jim@meyering.net>
52106
52107         New file: lib/idcache.h
52108         * NEWS: Mention the addition.
52109         * modules/idcache (Files): Add lib/idcache.h
52110         * lib/idcache.c: Include "idcache.h".
52111         Don't include <sys/types.h>.
52112         Add a FIXME comment.
52113         Move file-scoped "static" declarations to the top.
52114         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52115
52116 2007-08-17  Bruno Haible  <bruno@clisp.org>
52117         and Paul Eggert  <eggert@cs.ucla.edu>
52118
52119         * MODULES.html.sh: Add diffseq.
52120         * modules/diffseq: New file.
52121         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52122         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52123
52124 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         Import changes from coreutils for bootstrap script.
52127
52128         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52129
52130         * build-aux/bootstrap (slurp): Work even in environments where
52131         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52132         current code does not slurp files whose names start with ".", and
52133         this looks like it might be a troublesome area.
52134
52135         2007-07-11  Jim Meyering  <jim@meyering.net>
52136
52137         If there's a GPL vN copyright comment, require that N == 3.
52138
52139         2007-07-08  Jim Meyering  <jim@meyering.net>
52140
52141         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52142         * build-aux/bootstrap (mam_template): Move definition out of loop.
52143
52144         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52145
52146         * build-aux/bootstrap (symlink_to_dir): Rename function from
52147         symlink_to_gnulib.  Add a directory parameter.  Update all
52148         callers.
52149         (cp_mark_as_generated): Also check for -- and link to -- files in
52150         gl/.
52151
52152         2007-07-08  Jim Meyering  <jim@meyering.net>
52153
52154         Adapt to deeper hierarchy in gnulib.
52155         * build-aux/bootstrap (symlink_to_dir): If the destination
52156         directory doesn't exist, create it. This is required at least for
52157         "lib/uniwidth/cjk.h".
52158
52159         2007-05-15  Jim Meyering  <jim@meyering.net>
52160
52161         * build-aux/bootstrap: Now that generated Makefile.am files
52162         are no longer under version control, they must be created at
52163         bootstrap time.
52164
52165 2007-08-14  Ben Pfaff  <blp@gnu.org>
52166
52167         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52168
52169 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52170
52171         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52172         given the changes below.
52173         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52174         even on hosts that have padding bits beyond the supported 64.
52175
52176 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52177
52178         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52179         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52180         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52181         depends on it.
52182         (xstrtol_error): Remove.
52183         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52184         but with a different signature.
52185         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52186         * lib/xstrtol-error.c: Include exitfail.h.
52187         (xstrtol_fatal): New function, with a different signature from the
52188         old xstrtol_error, so that the caller need not worry about passing
52189         in an exit status, or about storage management of the option argument.
52190         (xstrtol_error): Now a static function.  Redo signature to
52191         implement xstrtol_fatal.  Output the correct number of hyphens in
52192         front of the option so that the caller need not worry about
52193         storage management.
52194         (N_): New macro.
52195         (_): Remove; not used now.
52196         * modules/xstrtol: Depend on getopt.
52197         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52198         of old STRTOL_FATAL_ERROR macro.
52199         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52200         of test program.
52201         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52202         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52203
52204 2007-08-08  Eric Blake  <ebb9@byu.net>
52205
52206         * lib/xstrtol-error.c: Add missing include.
52207
52208         Move xstrtol messages into gnulib domain, when --pobase is used.
52209         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52210         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52211         * modules/xstrtol (Files): Distribute new file.
52212         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52213         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52214         * tests/test-xstrtol.c: ...into new file.
52215         * tests/test-xstrtoul.c: Also test xstrtoul.
52216         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52217         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52218         * tests/test-xstrtol.sh: Drive the tests.
52219         * tests/test-xstrtoimax.sh: Likewise.
52220         * tests/test-xstrtoumax.sh: Likewise.
52221         * modules/xstrtol-tests: New module.
52222         * modules/xstrtoimax-tests: Likewise.
52223         * modules/xstrtoumax-tests: Likewise.
52224
52225 2007-08-08  Jim Meyering  <jim@meyering.net>
52226
52227         New function: mfile_name_concat.
52228         * lib/filenamecat.c (mfile_name_concat): New function, just like
52229         file_name_concat, but return NULL upon failure rather than exiting
52230         with a diagnostic.
52231         * lib/filenamecat.h: Declare it.
52232
52233 2007-08-07  Bruno Haible  <bruno@clisp.org>
52234
52235         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52236         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52237         warning from gcc.
52238         Reported by Eric Blake.
52239
52240 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52241
52242         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52243         * modules/crypto/arcfour (License): Likewise.
52244         * modules/crypto/des-tests (License): Likewise.
52245         * modules/crypto/gc-arctwo-tests (License): Likewise.
52246         * modules/crypto/gc-des-tests (License): Likewise.
52247         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52248         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52249         * modules/crypto/gc-md2-tests (License): Likewise.
52250         * modules/crypto/gc-md4-tests (License): Likewise.
52251         * modules/crypto/gc-md5-tests (License): Likewise.
52252         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52253         * modules/crypto/gc-rijndael-tests (License): Likewise.
52254         * modules/crypto/gc-sha1-tests (License): Likewise.
52255         * modules/crypto/gc-tests (License): Likewise.
52256         * modules/crypto/hmac-md5 (License): Likewise.
52257         * modules/crypto/hmac-sha1 (License): Likewise.
52258         * modules/crypto/md2-tests (License): Likewise.
52259         * modules/crypto/md4-tests (License): Likewise.
52260         * modules/crypto/md5 (License): Likewise.
52261         * modules/crypto/rijndael (License): Likewise.
52262         * modules/crypto/sha1 (License): Likewise.
52263         * modules/memxor (License): Likewise.
52264
52265 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52266         and Bruno Haible  <bruno@clisp.org>
52267
52268         * NEWS: Describe interface changes to human, xstrtol.
52269         * lib/human.h: Include <xstrtol.h>.
52270         (human_options): Return enum strtol_error, not int.  Remove
52271         bool arg; take int * instead.
52272         * lib/human.c: Don't include "gettext.h".
52273         (_): Remove; no longer used.
52274         Don't include <xstrtol.h>, since human.h does it.
52275         (human_options): Adjust to abovementioned interface changes.
52276         Do not report error to stderr; that's now the caller's
52277         responsibility.
52278         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52279         interface change.
52280         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52281         Str, Argument_type_string.  All uses changed.  Put " argument"
52282         in diagnostics to make them clearer.  Change wording of suffix
52283         message for clarity.
52284         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52285         Argument_type_string.
52286         (STRTOL_FATAL_WARN): Remove; no longer used.
52287         * modules/human (Depends-on): Remove gettext-h.
52288
52289 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52290
52291         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52292
52293 2007-07-31  Bruno Haible  <bruno@clisp.org>
52294
52295         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52296         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52297         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52298
52299 2007-07-31  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52302         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52303
52304 2007-07-30  Bruno Haible  <bruno@clisp.org>
52305
52306         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52307         * modules/c-ctype (License): Likewise.
52308         * modules/c-strcase (License): Likewise.
52309         * modules/check-version (License): Likewise.
52310         * modules/iconv (License): Likewise.
52311         * modules/iconv_open (License): Likewise.
52312         * modules/read-file (License): Likewise.
52313         * modules/striconv (License): Likewise.
52314         * modules/strverscmp (License): Likewise.
52315         * modules/vasprintf (License): Likewise.
52316         * modules/crypto/des (License): Likewise.
52317         * modules/crypto/gc (License): Likewise.
52318         * modules/crypto/gc-arcfour (License): Likewise.
52319         * modules/crypto/gc-arctwo (License): Likewise.
52320         * modules/crypto/gc-des (License): Likewise.
52321         * modules/crypto/gc-hmac-md5 (License): Likewise.
52322         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52323         * modules/crypto/gc-md2 (License): Likewise.
52324         * modules/crypto/gc-md4 (License): Likewise.
52325         * modules/crypto/gc-md5 (License): Likewise.
52326         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52327         * modules/crypto/gc-random (License): Likewise.
52328         * modules/crypto/gc-rijndael (License): Likewise.
52329         * modules/crypto/gc-sha1 (License): Likewise.
52330         * modules/crypto/md2 (License): Likewise.
52331         * modules/crypto/md4 (License): Likewise.
52332
52333 2007-07-30  Jim Meyering  <jim@meyering.net>
52334
52335         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52336         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52337         it has valid stat data.  This bug would cause du not to count the
52338         sizes of inaccessible directories.
52339         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52340         in <http://bugzilla.redhat.com/250077>.
52341
52342 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52343             Bruno Haible  <bruno@clisp.org>
52344
52345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52346         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52347         #include_next, gives a diagnostic about it, but reports no error in
52348         the exit code.
52349         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52350
52351 2007-07-24  Ben Pfaff  <blp@gnu.org>
52352
52353         Improve name: "count-one-bits" is better than "popcount".
52354         * MODULES.html.sh: Update name.
52355         * lib/popcount.h: Renamed lib/count-one-bits.h.
52356         (popcount): Renamed count_one_bits.
52357         (popcountl): Renamed count_one_bits_l.
52358         (popcountll): Renamed count_one_bits_ll.
52359         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52360         * modules/popcount: Renamed module/count-one-bits.
52361         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52362         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52363
52364 2007-07-23  Ben Pfaff  <blp@gnu.org>
52365
52366         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52367         better code generation, and add U to large constants to avoid
52368         warnings, in non-GCC case.
52369         Suggested by Bruno Haible.
52370
52371 2007-07-23  Ben Pfaff  <blp@gnu.org>
52372
52373         * lib/popcount.h: Use verify_true instead of if...abort.
52374         * modules/popcount: Depend on verify module.
52375         Suggested by Jim Meyering.
52376
52377 2007-07-23  Bruno Haible  <bruno@clisp.org>
52378
52379         * gnulib-tool (func_import): Create a .cvsignore file also when the
52380         directory is not yet in CVS but the toplevel directory is. When
52381         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52382         Reported by Karl Berry.
52383
52384 2007-07-22  Ben Pfaff  <blp@gnu.org>
52385
52386         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52387         case.
52388         Suggested by Eric Blake.
52389
52390 2007-07-22  Ben Pfaff  <blp@gnu.org>
52391
52392         New module: popcount.
52393         * MODULES.html.sh: Add popcount.
52394         * modules/popcount: New file.
52395         * modules/popcount-tests: New file.
52396         * tests/test-popcount.c: New file.
52397         * lib/popcount.h: New file.
52398         * m4/popcount.m4: New file.
52399
52400 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52401
52402         * build-aux/announce-gen: Update to GPLv3.
52403
52404         * build-aux/config.guess: Update from config.
52405
52406 2007-07-21  Bruno Haible  <bruno@clisp.org>
52407
52408         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52409         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52410
52411 2007-07-20  Jim Meyering  <jim@meyering.net>
52412
52413         * check-module: Diagnose a self-dependency.
52414
52415 2007-07-19  Bruno Haible  <bruno@clisp.org>
52416
52417         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52418         empty.
52419         Reported by Eric Blake.
52420
52421 2007-07-18  Bruno Haible  <bruno@clisp.org>
52422
52423         * gnulib-tool: New options --po-base, --po-domain.
52424         (func_usage): Document them.
52425         (pobase, po_domain): New variables.
52426         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52427         DEFAULT_TEXT_DOMAIN.
52428         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52429         (func_import): Consider pobase and po_domain. Create a po/ directory.
52430         (func_create_testdir): Set pobase and po_domain to empty.
52431         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52432         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52433
52434 2007-07-18  Bruno Haible  <bruno@clisp.org>
52435
52436         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52437         EXTRA_DIST augmentation for files in build-aux/.
52438
52439 2007-07-16  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52442         * modules/getdelim (License): Likewise.
52443
52444 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52445
52446         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52447         * modules/d-type (License): Likewise.
52448         * modules/extensions (License): Likewise.
52449         * modules/fnmatch (License): Likewise.
52450         * modules/fseeko (License): Likewise.
52451         * modules/getaddrinfo (License): Likewise.
52452         * modules/getline (License): Likewise.
52453         * modules/getlogin_r (License): Likewise.
52454         * modules/getpass (License): Likewise.
52455         * modules/gettimeofday (License): Likewise.
52456         * modules/glob (License): Likewise.
52457         * modules/inet_ntop (License): Likewise.
52458         * modules/malloc (License): Likewise.
52459         * modules/malloca (License): Likewise.
52460         * modules/memmem (License): Likewise.
52461         * modules/mempcpy (License): Likewise.
52462         * modules/memset (License): Likewise.
52463         * modules/minmax (License): Likewise.
52464         * modules/mktime (License): Likewise.
52465         * modules/netinet_in (License): Likewise.
52466         * modules/pathmax (License): Likewise.
52467         * modules/poll (License): Likewise.
52468         * modules/regex (License): Likewise.
52469         * modules/snprintf (License): Likewise.
52470         * modules/stdbool (License): Likewise.
52471         * modules/stdint (License): Likewise.
52472         * modules/stdio (License): Likewise.
52473         * modules/strcase (License): Likewise.
52474         * modules/strcasestr (License): Likewise.
52475         * modules/strdup (License): Likewise.
52476         * modules/string (License): Likewise.
52477         * modules/strndup (License): Likewise.
52478         * modules/strnlen (License): Likewise.
52479         * modules/strpbrk (License): Likewise.
52480         * modules/strptime (License): Likewise.
52481         * modules/strsep (License): Likewise.
52482         * modules/sys_select (License): Likewise.
52483         * modules/sys_socket (License): Likewise.
52484         * modules/sys_stat (License): Likewise.
52485         * modules/sys_time (License): Likewise.
52486         * modules/time (License): Likewise.
52487         * modules/time_r (License): Likewise.
52488         * modules/timegm (License): Likewise.
52489         * modules/unistd (License): Likewise.
52490         * modules/vsnprintf (License): Likewise.
52491         * modules/wctype (License): Likewise.
52492
52493 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52494
52495         * modules/argz (License): LGPLv2+.
52496
52497 2007-07-15  Karl Berry  <karl@gnu.org>
52498
52499         * doc/gnulib.texi: revise node structure per new fdl.texi.
52500
52501 2007-07-14  Bruno Haible  <bruno@clisp.org>
52502
52503         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52504         the output file.
52505         * lib/uniname/uninames.h: Regenerated.
52506
52507 2007-07-14  Karl Berry  <karl@gnu.org>
52508
52509         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52510         omitting sectioning and index commands.
52511
52512 2007-07-13  Bruno Haible  <bruno@clisp.org>
52513
52514         New gnulib-tool option --more-symlinks.
52515         * gnulib-tool (func_usage): Document --more-symlinks.
52516         (do_copyrights): New variable.
52517         Recognize option --more-symlinks.
52518         (func_import): Don't add a copyright notice transform to
52519         sed_transform_lib_file if do_copyrights is empty.
52520
52521 2007-07-13  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/vasnprintf.c (decimal_point_char): Define also if
52524         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52525         && !NEED_PRINTF_DIRECTIVE_A.
52526         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52527         Gary V. Vaughan <gary@gnu.org>.
52528
52529 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * lib/inttypes_.h: Undo previous change, since it was fixed
52532         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52533
52534 2007-07-13  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52537         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52538
52539 2007-07-13  Jim Meyering  <jim@meyering.net>
52540
52541         df: Don't fail for Tru64's "file-on-file mount".
52542         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52543         so we fall through and use statfs instead.  Details here:
52544         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52545         Reported by Albert Chin.
52546
52547 2007-07-13  Bruno Haible  <bruno@clisp.org>
52548
52549         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52550         * modules/configmake (License): Likewise.
52551         * modules/gettext (License): Likewise.
52552         * modules/gettext-h (License): Likewise.
52553         * modules/include_next (License): Likewise.
52554         * modules/link-warning (License): Likewise.
52555         * modules/localcharset (License): Likewise.
52556         * modules/localename (License): Likewise.
52557         * modules/lock (License): Likewise.
52558         * modules/relocatable-lib-lgpl (License): Likewise.
52559         * modules/size_max (License): Likewise.
52560         * modules/vasnprintf (License): Likewise.
52561         * modules/wchar (License): Likewise.
52562         * modules/xsize (License): Likewise.
52563
52564 2007-07-13  Bruno Haible  <bruno@clisp.org>
52565
52566         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52567         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52568
52569 2007-07-12  Bruno Haible  <bruno@clisp.org>
52570
52571         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52572         in the modules files.
52573
52574 2007-07-11  Karl Berry  <karl@gnu.org>
52575
52576         * MODULES.html.sh (func_module): use
52577          sed -e '\|^'"${includefile}"'$|d'
52578          instead of /.../d, to avoid errors on $includefile's containing /.
52579
52580 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52581
52582         * gnulib-tool (func_import): Avoid duplication of --avoid
52583         statements
52584         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52585         names to `_' in variable names.
52586
52587 2007-07-10  Eric Blake  <ebb9@byu.net>
52588
52589         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52590         * NEWS: Document this change.
52591
52592 2007-07-08  Bruno Haible  <bruno@clisp.org>
52593
52594         Update to Unicode 5.0.
52595         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52596         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52597         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52598         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52599         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52600         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52601         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52602         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52603         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52604         U+10A3F, U+1D242..U+1D244.
52605         (nonspacing_table_ind): Update.
52606         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52607         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52608
52609 2007-07-08  Bruno Haible  <bruno@clisp.org>
52610
52611         Update to Unicode 5.0.
52612         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52613         code transform. Extend the name index field of unicode_name_to_code and
52614         unicode_code_to_name from 16 to 24 bits.
52615         * lib/uniname/uniname.c (unicode_character_name,
52616         unicode_name_character): Add the range 0x12xxx to the code transform.
52617         * lib/uniname/uninames.h: Regenerated.
52618         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52619
52620 2007-07-07  Bruno Haible  <bruno@clisp.org>
52621
52622         * modules/wcwidth-tests: New file.
52623         * tests/test-wcwidth.c: New file.
52624
52625         Work around MacOS X wcwidth() bug.
52626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52627         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52628         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52629         original wcwidth in non-UTF-8 locales.
52630         * modules/wcwidth (Depends-on): Add localcharset, streq,
52631         uniwidth/width.
52632         * doc/functions/wcwidth.texi: Update.
52633
52634 2007-07-07  Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52637         (wcwidth): New declaration.
52638         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52639         macros.
52640         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52641         here. Prepare for creating <wchar.h> unconditionally.
52642         * modules/wchar (Depends-on): Add link-warning.
52643         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52644         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52645         * lib/wcwidth.h: Remove file.
52646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52647         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52648         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52649         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52650         (Include): Replace wcwidth.h with <wchar.h>.
52651         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52652         * lib/mbchar.h: Don't include wcwidth.h.
52653         * lib/mbswidth.c: Likewise.
52654         * NEWS: Mention the change.
52655
52656 2007-07-07  Bruno Haible  <bruno@clisp.org>
52657
52658         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52659         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52660         definition with an external declaration.
52661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52662         defined as a function. Remove AC_C_INLINE requirement.
52663         * modules/wcwidth (Files): Add lib/wcwidth.c.
52664         (Makefile.am): Remove redundant statement.
52665
52666 2007-07-07  Bruno Haible  <bruno@clisp.org>
52667
52668         * MODULES.html.sh (Unicode string functions): Add the new modules.
52669
52670         * tests/uniwidth/test-u32-strwidth.c: New file.
52671         * modules/uniwidth/u32-strwidth-tests: New file.
52672
52673         * lib/uniwidth/u32-strwidth.c: New file.
52674         * modules/uniwidth/u32-strwidth: New file.
52675
52676         * tests/uniwidth/test-u16-strwidth.c: New file.
52677         * modules/uniwidth/u16-strwidth-tests: New file.
52678
52679         * lib/uniwidth/u16-strwidth.c: New file.
52680         * modules/uniwidth/u16-strwidth: New file.
52681
52682         * tests/uniwidth/test-u8-strwidth.c: New file.
52683         * modules/uniwidth/u8-strwidth-tests: New file.
52684
52685         * lib/uniwidth/u8-strwidth.c: New file.
52686         * modules/uniwidth/u8-strwidth: New file.
52687
52688         * tests/uniwidth/test-u32-width.c: New file.
52689         * modules/uniwidth/u32-width-tests: New file.
52690
52691         * lib/uniwidth/u32-width.c: New file.
52692         * modules/uniwidth/u32-width: New file.
52693
52694         * tests/uniwidth/test-u16-width.c: New file.
52695         * modules/uniwidth/u16-width-tests: New file.
52696
52697         * lib/uniwidth/u16-width.c: New file.
52698         * modules/uniwidth/u16-width: New file.
52699
52700         * tests/uniwidth/test-u8-width.c: New file.
52701         * modules/uniwidth/u8-width-tests: New file.
52702
52703         * lib/uniwidth/u8-width.c: New file.
52704         * modules/uniwidth/u8-width: New file.
52705
52706         * tests/uniwidth/test-uc_width.c: New file.
52707         * modules/uniwidth/width-tests: New file.
52708
52709         * lib/uniwidth/width.c: New file, from GNU libiconv.
52710         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52711         * modules/uniwidth/width: New file.
52712
52713         * lib/uniwidth.h: New file, from GNU libiconv.
52714         * modules/uniwidth/base: New file.
52715
52716 2007-07-07  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/uniname.h: New file, from GNU gettext.
52719         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52720         * lib/uniname/uninames.h: New file, from GNU gettext.
52721         * lib/uniname/uniname.c: New file, from GNU gettext.
52722         * tests/uniname/test-uninames.sh: New file.
52723         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52724         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52725         * modules/uniname/base: New file.
52726         * modules/uniname/uniname: New file.
52727         * modules/uniname/uniname-tests: New file.
52728         * MODULES.html.sh (Unicode string functions): Add the new modules.
52729
52730 2007-07-06  Bruno Haible  <bruno@clisp.org>
52731
52732         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52733
52734 2007-07-06  Bruno Haible  <bruno@clisp.org>
52735
52736         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52737         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52738         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52739         include <sys/time.h>.
52740         Reported by Eric Blake.
52741
52742 2007-07-06  Eric Blake  <ebb9@byu.net>
52743
52744         Fix testing canonicalize on cygwin.
52745         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52746         Revert patch from 2007-06-19.
52747         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52748         canonicalize module is also in use.
52749         * tests/test-canonicalize.c: New file.
52750         * tests/test-canonicalize.sh: Likewise.
52751         * modules/canonicalize-tests: Likewise.
52752
52753 2007-07-06  Jim Meyering  <jim@meyering.net>
52754
52755         * lib/getugroups.c (getugroups): Detect getgrent failure.
52756         Adjust comment to reflect reality: this function may return -1.
52757
52758 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52759
52760         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52761         the new TP address.
52762         (usage): Fix typo
52763         (gnulib_mk): New variable.
52764
52765 2007-07-05  Jim Meyering  <jim@meyering.net>
52766
52767         Don't let endgrent clobber errno, no matter how improbable.
52768         * lib/getugroups.c (getugroups): Save and restore errno around
52769         endgrent call.
52770
52771         Close the group DB even when failing with 2^31 or more members.
52772         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52773
52774 2007-07-04  Jim Meyering  <jim@meyering.net>
52775
52776         * lib/getugroups.h: New file.
52777         * lib/getugroups.c: Include "getugroups.h".
52778         Remove uses of "register" keyword.
52779         Move local variable, "cp", down into scope where used.
52780         Give "username" parameter the "const" attribute.
52781         * modules/getugroups (Files): Add lib/getugroups.h
52782
52783 2007-07-04  Karl Berry  <karl@gnu.org>
52784
52785         * MODULES.html.sh (func_all_modules): Complete rename of
52786         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52787
52788 2007-07-02  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52791         mode, when inttypes.h comes from gnulib.
52792         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52793
52794 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52795
52796         * NEWS: Mention lgpl module name change.
52797
52798         * modules/lgpl-2.1: Renamed from lgpl.
52799
52800         * NEWS: Mention gpl module name change.
52801
52802         * modules/gpl-3.0: New file, based on gpl-2.0.
52803
52804         * modules/gpl-2.0: Renamed from gpl.
52805
52806         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52807         doc/gpl-2.0.texi.
52808
52809 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52812         #define __STDC_LIMIT_MACROS temporarily while including
52813         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52814         Problem reported by Joel E. Denny in
52815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52816
52817 2007-07-01  Bruno Haible  <bruno@clisp.org>
52818
52819         * lib/unistdio.h: New file.
52820         * lib/unistdio/u-asnprintf.h: New file.
52821         * lib/unistdio/u-asprintf.h: New file.
52822         * lib/unistdio/u-printf-args.c: New file.
52823         * lib/unistdio/u-printf-args.h: New file.
52824         * lib/unistdio/u-printf-parse.h: New file.
52825         * lib/unistdio/u-snprintf.h: New file.
52826         * lib/unistdio/u-sprintf.h: New file.
52827         * lib/unistdio/u-vasprintf.h: New file.
52828         * lib/unistdio/u-vsnprintf.h: New file.
52829         * lib/unistdio/u-vsprintf.h: New file.
52830         * lib/unistdio/ulc-asnprintf.c: New file.
52831         * lib/unistdio/ulc-asprintf.c: New file.
52832         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52833         * lib/unistdio/ulc-printf-parse.c: New file.
52834         * lib/unistdio/ulc-snprintf.c: New file.
52835         * lib/unistdio/ulc-sprintf.c: New file.
52836         * lib/unistdio/ulc-vasnprintf.c: New file.
52837         * lib/unistdio/ulc-vasprintf.c: New file.
52838         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52839         * lib/unistdio/ulc-vsnprintf.c: New file.
52840         * lib/unistdio/ulc-vsprintf.c: New file.
52841         * lib/unistdio/u8-asnprintf.c: New file.
52842         * lib/unistdio/u8-asprintf.c: New file.
52843         * lib/unistdio/u8-printf-parse.c: New file.
52844         * lib/unistdio/u8-snprintf.c: New file.
52845         * lib/unistdio/u8-sprintf.c: New file.
52846         * lib/unistdio/u8-vasnprintf.c: New file.
52847         * lib/unistdio/u8-vasprintf.c: New file.
52848         * lib/unistdio/u8-vsnprintf.c: New file.
52849         * lib/unistdio/u8-vsprintf.c: New file.
52850         * lib/unistdio/u8-u8-asnprintf.c: New file.
52851         * lib/unistdio/u8-u8-asprintf.c: New file.
52852         * lib/unistdio/u8-u8-snprintf.c: New file.
52853         * lib/unistdio/u8-u8-sprintf.c: New file.
52854         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52855         * lib/unistdio/u8-u8-vasprintf.c: New file.
52856         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52857         * lib/unistdio/u8-u8-vsprintf.c: New file.
52858         * lib/unistdio/u16-asnprintf.c: New file.
52859         * lib/unistdio/u16-asprintf.c: New file.
52860         * lib/unistdio/u16-printf-parse.c: New file.
52861         * lib/unistdio/u16-snprintf.c: New file.
52862         * lib/unistdio/u16-sprintf.c: New file.
52863         * lib/unistdio/u16-vasnprintf.c: New file.
52864         * lib/unistdio/u16-vasprintf.c: New file.
52865         * lib/unistdio/u16-vsnprintf.c: New file.
52866         * lib/unistdio/u16-vsprintf.c: New file.
52867         * lib/unistdio/u16-u16-asnprintf.c: New file.
52868         * lib/unistdio/u16-u16-asprintf.c: New file.
52869         * lib/unistdio/u16-u16-snprintf.c: New file.
52870         * lib/unistdio/u16-u16-sprintf.c: New file.
52871         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52872         * lib/unistdio/u16-u16-vasprintf.c: New file.
52873         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52874         * lib/unistdio/u16-u16-vsprintf.c: New file.
52875         * lib/unistdio/u32-asnprintf.c: New file.
52876         * lib/unistdio/u32-asprintf.c: New file.
52877         * lib/unistdio/u32-printf-parse.c: New file.
52878         * lib/unistdio/u32-snprintf.c: New file.
52879         * lib/unistdio/u32-sprintf.c: New file.
52880         * lib/unistdio/u32-vasnprintf.c: New file.
52881         * lib/unistdio/u32-vasprintf.c: New file.
52882         * lib/unistdio/u32-vsnprintf.c: New file.
52883         * lib/unistdio/u32-vsprintf.c: New file.
52884         * lib/unistdio/u32-u32-asnprintf.c: New file.
52885         * lib/unistdio/u32-u32-asprintf.c: New file.
52886         * lib/unistdio/u32-u32-snprintf.c: New file.
52887         * lib/unistdio/u32-u32-sprintf.c: New file.
52888         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52889         * lib/unistdio/u32-u32-vasprintf.c: New file.
52890         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52891         * lib/unistdio/u32-u32-vsprintf.c: New file.
52892         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52893         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52894         * tests/unistdio/test-ulc-printf1.h: New file.
52895         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52896         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52897         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52898         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52899         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52900         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52901         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52902         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52903         * tests/unistdio/test-u8-asnprintf1.c: New file.
52904         * tests/unistdio/test-u8-asnprintf1.h: New file.
52905         * tests/unistdio/test-u8-printf1.h: New file.
52906         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52907         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52908         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52909         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52910         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52911         * tests/unistdio/test-u8-vasprintf1.c: New file.
52912         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52913         * tests/unistdio/test-u8-vsprintf1.c: New file.
52914         * tests/unistdio/test-u16-asnprintf1.c: New file.
52915         * tests/unistdio/test-u16-asnprintf1.h: New file.
52916         * tests/unistdio/test-u16-printf1.h: New file.
52917         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52918         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52919         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52920         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52921         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52922         * tests/unistdio/test-u16-vasprintf1.c: New file.
52923         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52924         * tests/unistdio/test-u16-vsprintf1.c: New file.
52925         * tests/unistdio/test-u32-asnprintf1.c: New file.
52926         * tests/unistdio/test-u32-asnprintf1.h: New file.
52927         * tests/unistdio/test-u32-printf1.h: New file.
52928         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52929         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52930         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52931         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52932         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52933         * tests/unistdio/test-u32-vasprintf1.c: New file.
52934         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52935         * tests/unistdio/test-u32-vsprintf1.c: New file.
52936         * modules/unistdio/base: New file.
52937         * modules/unistdio/u-printf-args: New file.
52938         * modules/unistdio/ulc-asnprintf: New file.
52939         * modules/unistdio/ulc-asprintf: New file.
52940         * modules/unistdio/ulc-fprintf: New file.
52941         * modules/unistdio/ulc-printf-parse: New file.
52942         * modules/unistdio/ulc-snprintf: New file.
52943         * modules/unistdio/ulc-sprintf: New file.
52944         * modules/unistdio/ulc-vasnprintf: New file.
52945         * modules/unistdio/ulc-vasprintf: New file.
52946         * modules/unistdio/ulc-vfprintf: New file.
52947         * modules/unistdio/ulc-vsnprintf: New file.
52948         * modules/unistdio/ulc-vsprintf: New file.
52949         * modules/unistdio/u8-asnprintf: New file.
52950         * modules/unistdio/u8-asprintf: New file.
52951         * modules/unistdio/u8-printf-parse: New file.
52952         * modules/unistdio/u8-snprintf: New file.
52953         * modules/unistdio/u8-sprintf: New file.
52954         * modules/unistdio/u8-vasnprintf: New file.
52955         * modules/unistdio/u8-vasprintf: New file.
52956         * modules/unistdio/u8-vsnprintf: New file.
52957         * modules/unistdio/u8-vsprintf: New file.
52958         * modules/unistdio/u8-u8-asnprintf: New file.
52959         * modules/unistdio/u8-u8-asprintf: New file.
52960         * modules/unistdio/u8-u8-snprintf: New file.
52961         * modules/unistdio/u8-u8-sprintf: New file.
52962         * modules/unistdio/u8-u8-vasnprintf: New file.
52963         * modules/unistdio/u8-u8-vasprintf: New file.
52964         * modules/unistdio/u8-u8-vsnprintf: New file.
52965         * modules/unistdio/u8-u8-vsprintf: New file.
52966         * modules/unistdio/u16-asnprintf: New file.
52967         * modules/unistdio/u16-asprintf: New file.
52968         * modules/unistdio/u16-printf-parse: New file.
52969         * modules/unistdio/u16-snprintf: New file.
52970         * modules/unistdio/u16-sprintf: New file.
52971         * modules/unistdio/u16-vasnprintf: New file.
52972         * modules/unistdio/u16-vasprintf: New file.
52973         * modules/unistdio/u16-vsnprintf: New file.
52974         * modules/unistdio/u16-vsprintf: New file.
52975         * modules/unistdio/u16-u16-asnprintf: New file.
52976         * modules/unistdio/u16-u16-asprintf: New file.
52977         * modules/unistdio/u16-u16-snprintf: New file.
52978         * modules/unistdio/u16-u16-sprintf: New file.
52979         * modules/unistdio/u16-u16-vasnprintf: New file.
52980         * modules/unistdio/u16-u16-vasprintf: New file.
52981         * modules/unistdio/u16-u16-vsnprintf: New file.
52982         * modules/unistdio/u16-u16-vsprintf: New file.
52983         * modules/unistdio/u32-asnprintf: New file.
52984         * modules/unistdio/u32-asprintf: New file.
52985         * modules/unistdio/u32-printf-parse: New file.
52986         * modules/unistdio/u32-snprintf: New file.
52987         * modules/unistdio/u32-sprintf: New file.
52988         * modules/unistdio/u32-vasnprintf: New file.
52989         * modules/unistdio/u32-vasprintf: New file.
52990         * modules/unistdio/u32-vsnprintf: New file.
52991         * modules/unistdio/u32-vsprintf: New file.
52992         * modules/unistdio/u32-u32-asnprintf: New file.
52993         * modules/unistdio/u32-u32-asprintf: New file.
52994         * modules/unistdio/u32-u32-snprintf: New file.
52995         * modules/unistdio/u32-u32-sprintf: New file.
52996         * modules/unistdio/u32-u32-vasnprintf: New file.
52997         * modules/unistdio/u32-u32-vasprintf: New file.
52998         * modules/unistdio/u32-u32-vsnprintf: New file.
52999         * modules/unistdio/u32-u32-vsprintf: New file.
53000         * modules/unistdio/ulc-asnprintf-tests: New file.
53001         * modules/unistdio/ulc-vasnprintf-tests: New file.
53002         * modules/unistdio/ulc-vasprintf-tests: New file.
53003         * modules/unistdio/ulc-vsnprintf-tests: New file.
53004         * modules/unistdio/ulc-vsprintf-tests: New file.
53005         * modules/unistdio/u8-asnprintf-tests: New file.
53006         * modules/unistdio/u8-vasnprintf-tests: New file.
53007         * modules/unistdio/u8-vasprintf-tests: New file.
53008         * modules/unistdio/u8-vsnprintf-tests: New file.
53009         * modules/unistdio/u8-vsprintf-tests: New file.
53010         * modules/unistdio/u16-asnprintf-tests: New file.
53011         * modules/unistdio/u16-vasnprintf-tests: New file.
53012         * modules/unistdio/u16-vasprintf-tests: New file.
53013         * modules/unistdio/u16-vsnprintf-tests: New file.
53014         * modules/unistdio/u16-vsprintf-tests: New file.
53015         * modules/unistdio/u32-asnprintf-tests: New file.
53016         * modules/unistdio/u32-vasnprintf-tests: New file.
53017         * modules/unistdio/u32-vasprintf-tests: New file.
53018         * modules/unistdio/u32-vsnprintf-tests: New file.
53019         * modules/unistdio/u32-vsprintf-tests: New file.
53020         * MODULES.html.sh (Unicode string functions): Add the new modules.
53021
53022 2007-07-01  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/sprintf.c (sprintf): Limit the available length estimation,
53025         to avoid address wraparound.
53026         * lib/vsprintf.c (vsprintf): Likewise.
53027         * modules/sprintf-posix (Dependencies): Add stdint.
53028         * modules/vsprintf-posix (Dependencies): Likewise.
53029
53030 2007-07-01  Bruno Haible  <bruno@clisp.org>
53031
53032         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53033         Windows PATH as well. Conservative double-quoting. Comments.
53034
53035 2007-07-01  Bruno Haible  <bruno@clisp.org>
53036             Eric Blake  <ebb9@byu.net>
53037             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53038
53039         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53040         empty components in $PATH, denoting '.'.
53041
53042 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53043
53044         * gnulib-tool: Fix indentation.
53045         (func_create_megatestdir): Likewise.
53046         Report by Bruno Haible.
53047
53048 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53049
53050         Sync from Automake.
53051         * build-aux/gnupload: Fix shell portability issues with for loops.
53052         Report by Karl Berry.
53053
53054 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53055
53056         * build-aux/maint.mk (POURL): Use translationproject.org.
53057
53058 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53059             Bruno Haible  <bruno@clisp.org>
53060
53061         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53062         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53063         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53064         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53065         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53066
53067 2007-06-27  Bruno Haible  <bruno@clisp.org>
53068
53069         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53070         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53071
53072 2007-06-26  Karl Berry  <karl@gnu.org>
53073
53074         * MODULES.html.sh: remove xreadlink-with-size.
53075
53076 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53079         method that I hope also handles the double-include problem noted
53080         by Bruno Haible in
53081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53082
53083 2007-06-23  Bruno Haible  <bruno@clisp.org>
53084
53085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53086         Don't let the 'mostlyclean' target fail if the last subdirectory could
53087         not be removed.
53088         Reported by Karl Berry.
53089
53090 2007-06-23  Bruno Haible  <bruno@clisp.org>
53091
53092         * gnulib-tool (echo): Add a speedier workaround for ksh.
53093         * tests/test-echo.sh: Likewise.
53094
53095 2007-06-23  Bruno Haible  <bruno@clisp.org>
53096
53097         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53098         * tests/test-echo.sh: Likewise.
53099
53100 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53101
53102         * gnulib-tool (IFS): Initialize early, so we don't set it to
53103         empty later.
53104         (self_abspathname): Rewrite algorithm to set it, reindent.
53105         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53106         (func_create_megatestdir): Merge some sed scripts.
53107
53108 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53111         exposed by Sun Studio 11 cc on Solaris 8.
53112
53113 2007-06-22  Bruno Haible  <bruno@clisp.org>
53114
53115         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53116         backslashes.
53117         * tests/test-echo.sh: New file.
53118
53119 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53120
53121         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53122         simplify `sed_replace_build_aux' scripts, they are portable but
53123         echoing them with `echo' is not.
53124         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53125
53126 2007-06-21  Karl Berry  <karl@gnu.org>
53127
53128         * config/srclist.txt: guess we can't handle the licenses via
53129         srclist at the moment.
53130
53131 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         * MODULES.html.sh: Add include_next.
53134         * modules/include_next: New file.
53135
53136 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53137
53138         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53139         INCLUDE_NEXT.
53140         (gl_CHECK_NEXT_HEADERS): New macro.
53141         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53142         the obsolescent gl_ABSOLUTE_HEADER.
53143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53144         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53145         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53146         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53147         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53148         * m4/math_h.m4 (gl_MATH_H): Likewise.
53149         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53150         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53151         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53152         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53153         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53154         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53155         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53157         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53159         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53160         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53161         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53162         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53163         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53164         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53165         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53166         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53167         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53168         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53169         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53170         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53171         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53172         * lib/float_.h: Likewise.
53173         * lib/inttypes_.h: Likewise.
53174         * lib/math_.h: Likewise.
53175         * lib/search_.h: Likewise.
53176         * lib/signal_.h: Likewise.
53177         * lib/stdint_.h: Likewise.
53178         * lib/stdio_.h: Likewise.
53179         * lib/stdlib_.h: Likewise.
53180         * lib/string_.h: Likewise.
53181         * lib/sys_stat_.h: Likewise.
53182         * lib/sys_time_.h: Likewise.
53183         * lib/time_.h: Likewise.
53184         * lib/unistd_.h: Likewise.
53185         * lib/wchar_.h: Likewise.
53186         * lib/wctype_.h: Likewise.
53187         * lib/dirent_.h: Likewise.
53188         * lib/iconv_.h: Likewise.
53189         * lib/locale_.h: Likewise.
53190         * lib/netinet_in_.h: Likewise.
53191         * lib/sys_select_.h: Likewise.
53192         * lib/sys_socket_.h: Likewise.
53193         * lib/sysexits_.h: Likewise.
53194         * modules/fcntl (Depends-on): Depend on include_next, not
53195         absolute_header.
53196         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53197         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53198         * modules/fchdir: Likewise.
53199         * modules/float: Likewise.
53200         * modules/iconv_open: Likewise.
53201         * modules/inttypes: Likewise.
53202         * modules/locale: Likewise.
53203         * modules/math: Likewise.
53204         * modules/netinet_in: Likewise.
53205         * modules/search: Likewise.
53206         * modules/signal: Likewise.
53207         * modules/stdint: Likewise.
53208         * modules/stdio: Likewise.
53209         * modules/stdlib: Likewise.
53210         * modules/string: Likewise.
53211         * modules/sys_select: Likewise.
53212         * modules/sys_socket: Likewise.
53213         * modules/sys_stat: Likewise.
53214         * modules/sys_time: Likewise.
53215         * modules/sysexits: Likewise.
53216         * modules/time: Likewise.
53217         * modules/unistd: Likewise.
53218         * modules/wchar: Likewise.
53219         * modules/wctype: Likewise.
53220         * modules/sys_stat: Change maintainer to "all".
53221         * modules/unistd: Likewise.
53222
53223 2007-06-20  Karl Berry  <karl@gnu.org>
53224
53225         * config/srclist.txt: track www changes in license files.
53226
53227 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53228
53229         * build-aux/bootstrap: Remove stray dot.
53230         Make sure build_aux settings are honored when linking
53231         gnulib_extra_files.
53232
53233 2007-06-19  Eric Blake  <ebb9@byu.net>
53234
53235         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53236         Allow compilation on cygwin.
53237
53238 2007-06-19  Jim Meyering  <jim@meyering.net>
53239
53240         xreadlink-with-size: Remove module.  No longer used.
53241         Ex-callers now use xreadlink or mreadlink-with-size.
53242         * modules/xreadlink-with-size: Remove module.
53243         * lib/xreadlink-with-size.c: Remove file.
53244         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53245         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53246         just before the function definition *is* accurate.
53247
53248         Eliminate one way canonicalize_filename_mode could exit.
53249         * lib/canonicalize.c (canonicalize_filename_mode):
53250         Use mreadlink_with_size, not xreadlink_with_size.
53251
53252 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53253
53254         Detect porting problems to FreeBSD/arm, which has time_t wider than
53255         long int.  Original problem reported for GNU diff by Xin Li in
53256         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53257         * modules/getdate (Depends-on): Add intprops, verify.
53258         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53259         is an integer type no wider than long int.
53260
53261 2007-06-18  Jim Meyering  <jim@meyering.net>
53262
53263         New module: mreadlink-with-size.
53264         * MODULES.html.sh: Add mreadlink-with-size.
53265         * modules/mreadlink-with-size: New module
53266         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53267         not xreadlink-with-size.
53268         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53269
53270 2007-06-16  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53273         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53274         Reported by Gary V. Vaughan <gary@gnu.org>.
53275
53276 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         Revamp lchown so that it lives in unistd.h where it belongs.
53279         * lib/lchown.h: Remove.
53280         * lib/dirchownmod.c: Don't include lib/lchown.h.
53281         * lib/fchownat.c: Likewise.
53282         * lib/openat.c: Likewise.
53283         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53284         does not follow symlinks.
53285         (EOPNOTSUPP): Define if not defined.
53286         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53287         is defined to 0.
53288         (lchown): New decl.
53289         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53290         Do not check for lchown decl.
53291         Set REPLACE_LCHOWN.
53292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53293         REPLACE_LCHOWN.
53294         * modules/chown: Make it clear it follows symlinks.
53295         * modules/lchown: Make it clear it doesn't follow symlinks.
53296         (Files): Remove lib/lchown.h
53297         (Depends-on): Add unistd.
53298         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53299         (Include): Include <unistd.h>, not "lchown.h".
53300         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53301         REPLACE_LCHOWN.
53302
53303 2007-06-15  Jim Meyering  <jim@meyering.net>
53304
53305         Change license (GPL to LGPL) of fsusage and dependents.
53306         * modules/fsusage (License): Change to LGPL.
53307         * modules/full-read (License): Likewise.
53308         * modules/full-write (License): Likewise.
53309         * modules/safe-read (License): Likewise.
53310         * modules/safe-write (License): Likewise.
53311
53312 2007-06-14  Ben Pfaff  <blp@gnu.org>
53313
53314         Missing part of allocsa -> malloca transition.
53315         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53316         gl_MALLOCA.
53317
53318 2007-06-12  Bruno Haible  <bruno@clisp.org>
53319
53320         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53321         to ia64, x86_64, i386.
53322         Reported by Eric Blake.
53323
53324 2007-06-12  Bruno Haible  <bruno@clisp.org>
53325
53326         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53327         cross-compiling to x86_64.
53328
53329 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53332         glitch reported by Ralf Wildenhues in
53333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53334
53335         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53336         Vin Shelton.
53337
53338 2007-06-11  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53341         replacement string.
53342         Reported by Eric Blake.
53343
53344 2007-06-10  Bruno Haible  <bruno@clisp.org>
53345
53346         Prepare vasnprintf code for use with Unicode strings.
53347         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53348         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53349         TYPE_U32_STRING.
53350         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53351         a_u32_string variants.
53352         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53353         * lib/printf-args.c: Don't include config.h and the specification
53354         header if PRINTF_FETCHARGS is already defined.
53355         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53356         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53357         TYPE_U16_STRING, TYPE_U32_STRING.
53358         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53359         u16_directive, u16_directives, u32_directive, u32_directives): New
53360         types.
53361         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53362         New declarations.
53363         * lib/printf-parse.c: Don't include config.h and the specification
53364         header if PRINTF_PARSE is already defined. Eliminate the set of
53365         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53366         them now. Include c-ctype.h.
53367         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53368         directive and CHAR_T_ONLY_ASCII.
53369         * lib/vasnprintf.c: Don't include config.h and the specification header
53370         if VASNPRINTF is already defined.
53371         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53372         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53373         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53374         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53375         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53376         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53377         code accordingly.
53378         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53379         pad_ourselves also in this case, with the 'c' and 's' directives, and
53380         with a different notion of "width".
53381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53382
53383 2007-06-10  Bruno Haible  <bruno@clisp.org>
53384
53385         * modules/unistr/u32-mbsnlen: New file.
53386         * lib/unistr/u32-mbsnlen.c: New file.
53387
53388         * modules/unistr/u16-mbsnlen: New file.
53389         * lib/unistr/u16-mbsnlen.c: New file.
53390
53391         * modules/unistr/u8-mbsnlen: New file.
53392         * lib/unistr/u8-mbsnlen.c: New file.
53393
53394         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53395         declarations.
53396
53397 2007-06-10  Bruno Haible  <bruno@clisp.org>
53398
53399         * lib/string_.h (mbsnlen): New declaration.
53400         * lib/mbsnlen.c: New file.
53401         * m4/mbsnlen.m4: New file.
53402         * modules/mbsnlen: New file.
53403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53404         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53405         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53406
53407 2007-06-10  Bruno Haible  <bruno@clisp.org>
53408
53409         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53410
53411 2007-06-10  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53414         * lib/mbuiter.h: Likewise.
53415
53416 2007-06-10  Bruno Haible  <bruno@clisp.org>
53417
53418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53419         declaration.
53420
53421 2007-06-10  Karl Berry  <karl@gnu.org>
53422
53423         * config/srclist.txt: remove gettext entries, Bruno prefers
53424         to update individually.
53425
53426 2007-06-10  Bruno Haible  <bruno@clisp.org>
53427
53428         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53429         'maxlen'. Ensure only length + width bytes are allocated, not
53430         length + 1 + width.
53431
53432 2007-06-09  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53435         (CHAR_T): Remove macro.
53436         (VASNPRINTF): Update.
53437
53438 2007-06-09  Bruno Haible  <bruno@clisp.org>
53439
53440         * MODULES.html.sh (Unicode string functions): Add the new modules.
53441
53442         * modules/uniconv/u32-conv-to-enc: New file.
53443         * lib/uniconv/u32-conv-to-enc.c: New file.
53444         * modules/uniconv/u32-conv-to-enc-tests: New file.
53445         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53446
53447         * modules/uniconv/u16-conv-to-enc: New file.
53448         * lib/uniconv/u16-conv-to-enc.c: New file.
53449         * lib/uniconv/u-conv-to-enc.h: New file.
53450         * modules/uniconv/u16-conv-to-enc-tests: New file.
53451         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53452
53453         * modules/uniconv/u8-conv-to-enc: New file.
53454         * lib/uniconv/u8-conv-to-enc.c: New file.
53455         * modules/uniconv/u8-conv-to-enc-tests: New file.
53456         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53457
53458         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53459         u32_conv_to_encoding): New declarations.
53460
53461 2007-06-09  Bruno Haible  <bruno@clisp.org>
53462
53463         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53464
53465 2007-06-09  Bruno Haible  <bruno@clisp.org>
53466
53467         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53468         * modules/malloca: Renamed from modules/allocsa, updated.
53469         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53470         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53471         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53472         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53473         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53474         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53475         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53476         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53477         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53478         * modules/c-strcasestr (Depends-on): Update.
53479         * lib/c-strcasestr.c: Update.
53480         * modules/c-strstr (Depends-on): Update.
53481         * lib/c-strstr.c: Update.
53482         * modules/canonicalize-lgpl (Depends-on): Update.
53483         * lib/canonicalize-lgpl.c: Update.
53484         * modules/clean-temp (Depends-on): Update.
53485         * lib/clean-temp.c: Update.
53486         * modules/csharpcomp (Depends-on): Update.
53487         * lib/csharpcomp.c: Update.
53488         * modules/csharpexec (Depends-on): Update.
53489         * lib/csharpexec.c: Update.
53490         * modules/javacomp (Depends-on): Update.
53491         * lib/javacomp.c: Update.
53492         * modules/javaexec (Depends-on): Update.
53493         * lib/javaexec.c: Update.
53494         * modules/mbscasestr (Depends-on): Update.
53495         * lib/mbscasestr.c: Update.
53496         * modules/mbsstr (Depends-on): Update.
53497         * lib/mbsstr.c: Update.
53498         * modules/setenv (Depends-on): Update.
53499         * lib/setenv.c: Update.
53500         * modules/strcasestr (Depends-on): Update.
53501         * lib/strcasestr.c: Update.
53502         * modules/striconveha (Depends-on): Update.
53503         * lib/striconveha.c: Update.
53504         * modules/relocatable-prog-wrapper (Files): Update.
53505         * lib/relocwrapper.c: Update.
53506         * build-aux/install-reloc: Update.
53507         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53508
53509 2007-06-08  Bruno Haible  <bruno@clisp.org>
53510
53511         Port to uClibc.
53512         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53513         * lib/fpurge.c (fpurge): Likewise.
53514         * lib/freading.c (freading): Likewise.
53515         * lib/fseeko.c (rpl_fseeko): Likewise.
53516         * lib/fseterr.c (fseterr): Likewise.
53517         * lib/fwriting.c (fwriting): Likewise.
53518         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53519
53520 2007-06-08  Bruno Haible  <bruno@clisp.org>
53521
53522         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53523         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53524         * modules/gettext (Files): Add m4/intlmacosx.m4.
53525
53526 2007-06-07  Bruno Haible  <bruno@clisp.org>
53527
53528         * modules/localename-tests: New file.
53529         * tests/test-localename.c: New file.
53530
53531         New module 'localename'.
53532         * lib/localename.h: New file.
53533         * lib/localename.c: New file, from GNU gettext.
53534         * m4/localename.m4: New file.
53535         * modules/localename: New file.
53536
53537 2007-06-07  Bruno Haible  <bruno@clisp.org>
53538
53539         Work around the lack of <wchar.h> on some builds of uClibc.
53540         * doc/headers/wchar.texi: Update.
53541         * lib/wchar_.h: Include <wchar.h> only if it exists.
53542         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53543         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53544         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53545         doesn't exist.
53546         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53547         * modules/mbfile (Depends-on): Add wchar.
53548         * modules/mbiter (Depends-on): Likewise.
53549         * modules/mbuiter (Depends-on): Likewise.
53550         Reported by Simon Josefsson.
53551
53552 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53553
53554         Work around problem reported by Steven M. Schweda in
53555         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53556         Tru64 5.1B with the Compaq compiler environment installed declares
53557         an 'isblank' function but does not define it in the C library.
53558         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53559         * lib/regex_internal.h (isblank): Likewise.
53560         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53561         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53562
53563 2007-06-05  Bruno Haible  <bruno@clisp.org>
53564
53565         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53566         ia64.
53567         * modules/printf-safe: New file.
53568         * modules/fprintf-posix (Depends-on): Add printf-safe.
53569         * modules/printf-posix (Depends-on): Likewise.
53570         * modules/snprintf-posix (Depends-on): Likewise.
53571         * modules/sprintf-posix (Depends-on): Likewise.
53572         * modules/vasnprintf-posix (Depends-on): Likewise.
53573         * modules/vasprintf-posix (Depends-on): Likewise.
53574         * modules/vfprintf-posix (Depends-on): Likewise.
53575         * modules/vprintf-posix (Depends-on): Likewise.
53576         * modules/vsnprintf-posix (Depends-on): Likewise.
53577         * modules/vsprintf-posix (Depends-on): Likewise.
53578         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53579         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53580         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53581         "no" on i386, x86_64, ia64.
53582         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53583         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53584         on i386, x86_64, ia64.
53585         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53586         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53587         on i386, x86_64, ia64.
53588         * tests/test-vasnprintf-posix.c: Include float.h.
53589         (LDBL80_WORDS): New macro.
53590         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53591         on i386, x86_64, ia64.
53592         * tests/test-vasprintf-posix.c: Include float.h.
53593         (LDBL80_WORDS): New macro.
53594         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53595         on i386, x86_64, ia64.
53596         * tests/test-snprintf-posix.c: Include float.h.
53597         * tests/test-sprintf-posix.c: Likewise.
53598         * tests/test-vsnprintf-posix.c: Likewise.
53599         * tests/test-vsprintf-posix.c: Likewise.
53600
53601 2007-06-05  Bruno Haible  <bruno@clisp.org>
53602
53603         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53605         non-IEEE numbers on i386, x86_64, ia64.
53606         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53607         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53608         * tests/test-isnanl.h: Include float.h.
53609         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53610
53611 2007-06-05  Bruno Haible  <bruno@clisp.org>
53612
53613         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53614         also the %a / %A. Handle the %a / %A code before this extra handling.
53615
53616 2007-06-05  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53619         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53620
53621 2007-06-05  Bruno Haible  <bruno@clisp.org>
53622
53623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53624         typo in variable name.
53625
53626 2007-06-05  Eric Blake  <ebb9@byu.net>
53627
53628         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53629         Reported by Simon Josefsson.
53630
53631 2007-06-04  Bruno Haible  <bruno@clisp.org>
53632
53633         Avoid test failures on some PowerPC platforms.
53634         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53635         Define differently for PowerPC.
53636         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53637         Reported by Gary V. Vaughan <gary@gnu.org>.
53638
53639 2007-06-02  Bruno Haible  <bruno@clisp.org>
53640
53641         Fix test-stdint failure on FreeBSD/ia64.
53642         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53643         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53644         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53645         * doc/headers/stdint.texi: Update.
53646
53647 2007-06-01  Bruno Haible  <bruno@clisp.org>
53648
53649         * tests/test-binary-io.c (main): Pass a third argument to open().
53650         Reported by Gary V. Vaughan <gary@gnu.org>.
53651
53652 2007-06-01  Bruno Haible  <bruno@clisp.org>
53653
53654         * doc/functions/frexpl.texi: Update for mingw.
53655
53656 2007-06-01  Bruno Haible  <bruno@clisp.org>
53657
53658         * tests/test-lseek.c (main): Disable test of errno for invalid third
53659         argument.
53660         * doc/functions/lseek.texi: Update.
53661         Reported by Gary V. Vaughan <gary@gnu.org>.
53662
53663 2007-05-28  Bruno Haible  <bruno@clisp.org>
53664
53665         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53666
53667 2007-05-31  Eric Blake  <ebb9@byu.net>
53668
53669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53670         cross compiling.
53671
53672 2007-05-30  Eric Blake  <ebb9@byu.net>
53673         and Bruno Haible  <bruno@clisp.org>
53674
53675         Work around mingw test failures exposed by m4-1.4.9b.
53676         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53677         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53678         moment.
53679
53680 2007-05-30  Bruno Haible  <bruno@clisp.org>
53681
53682         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53683         assuming that they are closed. Needed on HP-UX 11.
53684
53685 2007-05-29  Bruno Haible  <bruno@clisp.org>
53686
53687         Fix a problem with #include_next.
53688         * lib/dirent_.h: Split the double-inclusion guard.
53689         * lib/fcntl_.h: Likewise.
53690         * lib/float_.h: Likewise.
53691         * lib/iconv_.h: Likewise.
53692         * lib/inttypes_.h: Likewise.
53693         * lib/locale_.h: Likewise.
53694         * lib/math_.h: Likewise.
53695         * lib/netinet_in_.h: Likewise.
53696         * lib/search_.h: Likewise.
53697         * lib/signal_.h: Likewise.
53698         * lib/stdint_.h: Likewise.
53699         * lib/stdio_.h: Likewise.
53700         * lib/stdlib_.h: Likewise.
53701         * lib/string_.h: Likewise.
53702         * lib/sys_select_.h: Likewise.
53703         * lib/sys_socket_.h: Likewise.
53704         * lib/sys_stat_.h: Likewise.
53705         * lib/sys_time_.h: Likewise.
53706         * lib/sysexits_.h: Likewise.
53707         * lib/time_.h: Likewise.
53708         * lib/unistd_.h: Likewise.
53709         * lib/wchar_.h: Likewise.
53710         * lib/wctype_.h: Likewise.
53711
53712 2007-05-29  Bruno Haible  <bruno@clisp.org>
53713
53714         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53715         for the moment.
53716
53717 2007-05-29  Bruno Haible  <bruno@clisp.org>
53718
53719         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53720         invocation.
53721         Reported by Eric Blake.
53722
53723 2007-05-29  Bruno Haible  <bruno@clisp.org>
53724
53725         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53726         compiling case.
53727
53728 2007-05-29  Eric Blake  <ebb9@byu.net>
53729             Bruno Haible  <bruno@clisp.org>
53730
53731         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53732         cross compiles.
53733
53734 2007-05-28  Eric Blake  <ebb9@byu.net>
53735
53736         * modules/closein-tests (test_closein_LDADD): Support test on
53737         cygwin with libtool.
53738
53739 2007-05-28  Bruno Haible  <bruno@clisp.org>
53740
53741         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53742         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53743         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53744         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53745         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53746         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53747         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53748         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53749         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53750
53751 2007-05-28  Eric Blake  <ebb9@byu.net>
53752
53753         Unconditionally include <config.h> in unit tests.
53754         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53755         * tests/test-allocsa.c, tests/test-arcfour.c,
53756         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53757         tests/test-array_list.c, tests/test-array_oset.c,
53758         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53759         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53760         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53761         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53762         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53763         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53764         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53765         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53766         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53767         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53768         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53769         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53770         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53771         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53772         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53773         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53774         test-md5.c, test-memmem.c, test-printf-posix.c,
53775         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53776         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53777         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53778         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53779         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53780         test-vasnprintf-posix2.c, test-vasnprintf.c,
53781         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53782         test-vfprintf-posix.c, test-vprintf-posix.c,
53783         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53784         test-xvasprintf.c: Likewise.
53785
53786 2007-05-28  Bruno Haible  <bruno@clisp.org>
53787
53788         * gnulib-tool (func_import): Remember the --with-tests command-line
53789         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53790         Reported by Eric Blake.
53791
53792 2007-05-28  Bruno Haible  <bruno@clisp.org>
53793
53794         * modules/ftell-tests: New file.
53795         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53796         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53797
53798         * lib/ftell.c: New file.
53799         * modules/ftell: New file.
53800         * m4/ftell.m4: New file.
53801         * doc/functions/ftell.texi: Update.
53802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53803         REPLACE_FTELL.
53804         * lib/stdio_.h (rpl_ftell): New declaration.
53805         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53806         REPLACE_FTELL.
53807
53808 2007-05-28  Eric Blake  <ebb9@byu.net>
53809
53810         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53811
53812 2007-05-28  Bruno Haible  <bruno@clisp.org>
53813
53814         * modules/fseek-tests: New file.
53815         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53816         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53817
53818         * lib/fseek.c: New file.
53819         * modules/fseek: New file.
53820         * m4/fseek.m4: New file.
53821         * doc/functions/fseek.texi: Update.
53822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53823         REPLACE_FSEEK.
53824         * lib/stdio_.h (rpl_fseek): New declaration.
53825         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53826         REPLACE_FSEEK.
53827
53828 2007-05-28  Bruno Haible  <bruno@clisp.org>
53829
53830         * lib/stdio_.h (fflush): More comments.
53831
53832 2007-05-28  Bruno Haible  <bruno@clisp.org>
53833
53834         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53835         runtime test.
53836
53837 2007-05-28  Eric Blake  <ebb9@byu.net>
53838
53839         Improve lseek module.
53840         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53841         * lib/unistd_.h (lseek): Scale back link warning message.
53842         * tests/test-lseek.c: Beef up test.
53843         * tests/test-lseek.sh: Exercise more facets of lseek.
53844         Reported by Bruno Haible.
53845
53846 2007-05-28  Bruno Haible  <bruno@clisp.org>
53847
53848         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53849         to define.
53850
53851 2007-05-27  Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53854
53855 2007-05-27  Bruno Haible  <bruno@clisp.org>
53856
53857         * modules/openmp: New file.
53858         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53859         Noah Misch.
53860
53861 2007-05-26  Bruno Haible  <bruno@clisp.org>
53862
53863         * modules/chdir-long (Depends-on): Add fchdir.
53864         * modules/chdir-safer (Depends-on): Likewise.
53865         * modules/fts (Depends-on): Likewise.
53866         * modules/fts-lgpl (Depends-on): Likewise.
53867         * modules/openat (Depends-on): Likewise.
53868         * modules/savewd (Depends-on): Likewise.
53869
53870 2007-05-24  Eric Blake  <ebb9@byu.net>
53871
53872         Fix lseek on mingw.
53873         * modules/lseek: New module.
53874         * m4/lseek.m4: New file.
53875         * lib/lseek.c: New file.
53876         * modules/lseek-tests: New file.
53877         * tests/test-lseek.c: New file.
53878         * tests/test-lseek.sh: New file.
53879         * MODULES.html.sh: Document lseek module.
53880         * modules/fflush (Depends-on): Add lseek, fseeko.
53881         * modules/fseeko (Depends-on): Likewise.
53882         * modules/ftello (Depends-on): Likewise.
53883         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53884         broken.
53885         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53886         broken.
53887         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53888         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53889         * lib/ftello.c (rpl_ftello): Likewise.
53890         * tests/test-fseeko.c (main): Test this.
53891         * tests/test-fseeko.sh: Likewise.
53892         * tests/test-ftello.c (main): Likewise.
53893         * tests/test-ftello.sh: Likewise.
53894         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53895         implies replacing fseek.
53896         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53897         HAVE_FTELLO.
53898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53899         * modules/unistd (Makefile.am): Likewise.
53900         * lib/unistd_.h (lseek): Declare a replacement.
53901         * doc/functions/lseek.texi (lseek): Document this fix.
53902         * doc/functions/fseek.texi (fseek): Likewise.
53903         * doc/functions/ftell.texi (ftell): Likewise.
53904
53905 2007-05-24  Bruno Haible  <bruno@clisp.org>
53906
53907         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53908         in the printed representation of a NaN.
53909         * tests/test-vasprintf-posix.c (test_function): Likewise.
53910         * tests/test-snprintf-posix.h (test_function): Likewise.
53911         * tests/test-sprintf-posix.h (test_function): Likewise.
53912         Reported by Eric Blake.
53913
53914 2007-05-23  Eric Blake  <ebb9@byu.net>
53915
53916         Fix fseeko/ftello on cygwin 1.5.24.
53917         * doc/functions/fseeko.texi (fseeko): Document the fix.
53918         * doc/functions/ftello.texi (ftello): Document the fix.
53919         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53920         * doc/functions/stdout.text (stdout): New file.
53921         * doc/functions/stderr.text (stderr): New file.
53922         * doc/gnulib.texi (Function Substitutes): Use new files.
53923         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53924         prior to 1.7.0.
53925         * tests/test-ftello.c (main): Likewise for ftello.
53926         * tests/test-fseeko.sh: New file.
53927         * tests/test-ftello.sh: New file.
53928         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53929         with seekable stdin.
53930         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53931         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53932         (gl_REPLACE_FSEEKO): New macro.
53933         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53934         * modules/fseeko (Files): Distribute fseeko.c.
53935         * modules/ftello (Files): Distribute ftello.c.
53936         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53937         mode.
53938         * lib/ftello.c (rpl_ftello): New file.
53939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53940         fseeko, ftello.
53941         (gl_STDIN_LARGE_OFFSET): New macro.
53942         * modules/stdio (Makefile.am): Perform the replacement.
53943         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53944
53945 2007-05-23  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53948         GNULIB_POSIXCHECK is defined.
53949
53950 2007-05-21  Bruno Haible  <bruno@clisp.org>
53951
53952         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53953         Check also the output for NaN arguments. When cross-compiling, guess
53954         no on IRIX.
53955         * lib/vasnprintf.c: Update comments.
53956         * tests/test-vasnprintf-posix.c (strisnan): New function.
53957         (test_function): Use it.
53958         * tests/test-vasprintf-posix.c (strisnan): New function.
53959         (test_function): Use it.
53960         * tests/test-snprintf-posix.h (strisnan): New function.
53961         (test_function): Use it.
53962         * tests/test-sprintf-posix.h (strisnan): New function.
53963         (test_function): Use it.
53964         Reported by Eric Blake.
53965
53966 2007-05-20  Bruno Haible  <bruno@clisp.org>
53967
53968         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53969         numbers that fails on BeOS.
53970         * doc/functions/frexpl.texi: Update.
53971
53972 2007-05-20  Jim Meyering  <jim@meyering.net>
53973
53974         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53975         forced upon us by glibc-2.6.
53976
53977 2007-05-20  Bruno Haible  <bruno@clisp.org>
53978
53979         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53980         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53981         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53982         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53983         NEED_PRINTF_INFINITE.
53984         (is_infinitel): New function.
53985         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53987         gl_PREREQ_VASNPRINTF_INFINITE.
53988         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53989         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53990         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53991         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53992         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53993         gl_PREREQ_VASNPRINTF_INFINITE.
53994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53998         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54001         * doc/functions/fprintf.texi: Update.
54002         * doc/functions/printf.texi: Update.
54003         * doc/functions/snprintf.texi: Update.
54004         * doc/functions/sprintf.texi: Update.
54005         * doc/functions/vfprintf.texi: Update.
54006         * doc/functions/vprintf.texi: Update.
54007         * doc/functions/vsnprintf.texi: Update.
54008         * doc/functions/vsprintf.texi: Update.
54009
54010 2007-05-20  Bruno Haible  <bruno@clisp.org>
54011
54012         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54013         was not found in libc.
54014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54015
54016 2007-05-20  Bruno Haible  <bruno@clisp.org>
54017
54018         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54019         printed as "-nan" instead of "nan".
54020         * tests/test-vasprintf-posix.c (test_function): Likewise.
54021         * tests/test-snprintf-posix.h (test_function): Likewise.
54022         * tests/test-sprintf-posix.h (test_function): Likewise.
54023         Needed for HP-UX 11.
54024
54025 2007-05-20  Jim Meyering  <jim@meyering.net>
54026
54027         Fix buggy test for the fchownat-deref bug.
54028         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54029         symlink required for the run-test.  Without it, this test would
54030         always declare that fchownat doesn't work, and client code would
54031         unnecessarily use the replacement function with fixed libc.
54032         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54033         Reported by Greg Schafer.
54034
54035 2007-05-19  Bruno Haible  <bruno@clisp.org>
54036
54037         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54038         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54039         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54040         Needed for IRIX 6.5 and Solaris 2.5.1.
54041
54042 2007-05-19  Bruno Haible  <bruno@clisp.org>
54043
54044         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54045         (test_function): Skip tests involving -0.0 on platforms where
54046         -0.0 = 0.0.
54047         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54048         (test_function): Skip tests involving -0.0 on platforms where
54049         -0.0 = 0.0.
54050         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54051         (test_function): Skip tests involving -0.0 on platforms where
54052         -0.0 = 0.0.
54053         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54054         (test_function): Skip tests involving -0.0 on platforms where
54055         -0.0 = 0.0.
54056         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54057         tests.
54058         * tests/test-printf-posix.h (test_function): Likewise.
54059         * tests/test-printf-posix.output: Remove all -0.0 related results.
54060         Needed for IRIX 6.5.
54061
54062 2007-05-19  Bruno Haible  <bruno@clisp.org>
54063
54064         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54065         printed as "nan0x7fffffff" instead of "nan".
54066         * tests/test-vasprintf-posix.c (test_function): Likewise.
54067         * tests/test-snprintf-posix.h (test_function): Likewise.
54068         * tests/test-sprintf-posix.h (test_function): Likewise.
54069         * tests/test-fprintf-posix.h (NaN): Remove macro.
54070         (test_function): Remove all NaN related tests.
54071         * tests/test-printf-posix.h (NaN): Remove macro.
54072         (test_function): Remove all NaN related tests.
54073         * tests/test-printf-posix.output: Remove all NaN related results.
54074         Needed for IRIX 6.5.
54075
54076 2007-05-19  Bruno Haible  <bruno@clisp.org>
54077
54078         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54080
54081 2007-05-19  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/float_.h: New file.
54084         * m4/float_h.m4: New file.
54085         * modules/float: New file.
54086         * modules/isnanl (Dependencies): Add float.
54087         * modules/isnanl-nolibm (Dependencies): Likewise.
54088         * modules/mathl (Dependencies): Likewise.
54089         * modules/printf-frexpl (Dependencies): Likewise.
54090         * modules/signbit (Dependencies): Likewise.
54091         * modules/vasnprintf (Dependencies): Likewise.
54092         * doc/headers/float.texi: Update.
54093
54094 2007-05-19  Jim Meyering  <jim@meyering.net>
54095
54096         * lib/utimens.c (gl_futimens): Rename from futimens,
54097         now that glibc-2.6 declares futimens.
54098         * lib/utimens.h: Likewise.
54099
54100 2007-05-19  Bruno Haible  <bruno@clisp.org>
54101
54102         Avoid test failures on mingw.
54103         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54104         * tests/test-printf-posix.sh: Likewise.
54105         * tests/test-vfprintf-posix.sh: Likewise.
54106         * tests/test-vprintf-posix.sh: Likewise.
54107
54108 2007-05-19  Bruno Haible  <bruno@clisp.org>
54109
54110         Fix *printf result for NaN, Inf, -0.0 on mingw.
54111         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54112         * lib/vasnprintf.c: Include math.h and isnan.h.
54113         (is_infinite_or_zero): New function.
54114         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54115         values in the %f, %F, %e, %E, %g, %G directives.
54116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54118         gl_PRINTF_INFINITE and test its result. Invoke
54119         gl_PREREQ_VASNPRINTF_INFINITE.
54120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54127         * doc/functions/fprintf.texi: Update.
54128         * doc/functions/printf.texi: Update.
54129         * doc/functions/snprintf.texi: Update.
54130         * doc/functions/sprintf.texi: Update.
54131         * doc/functions/vfprintf.texi: Update.
54132         * doc/functions/vprintf.texi: Update.
54133         * doc/functions/vsnprintf.texi: Update.
54134         * doc/functions/vsprintf.texi: Update.
54135
54136 2007-05-19  Bruno Haible  <bruno@clisp.org>
54137
54138         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54139         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54140         Instead of multiplying with 10^k, set extra_zeroes to k.
54141         (scale10_round_long_double): Remove function.
54142
54143 2007-05-18  Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54146         introduced on 2007-05-06.
54147
54148 2007-05-18  Bruno Haible  <bruno@clisp.org>
54149
54150         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54151         %g directives.
54152         * tests/test-vasprintf-posix.c (test_function): Likewise.
54153         * tests/test-snprintf-posix.h (test_function): Likewise.
54154         * tests/test-sprintf-posix.h (test_function): Likewise.
54155
54156 2007-05-18  Bruno Haible  <bruno@clisp.org>
54157
54158         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54159         (strmatch): New function.
54160         (test_function): Test the %f directive on numbers of various exponents.
54161         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54162         (strmatch): New function.
54163         (test_function): Test the %f directive on numbers of various exponents.
54164         * tests/test-snprintf-posix.h (strmatch): New function.
54165         (test_function): Test the %f directive on numbers of various exponents.
54166         * tests/test-sprintf-posix.h (strmatch): New function.
54167         (test_function): Test the %f directive on numbers of various exponents.
54168         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54169         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54170         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54171         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54172
54173 2007-05-18  Bruno Haible  <bruno@clisp.org>
54174
54175         Add support for 'long double' number output.
54176         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54177         * lib/vasnprintf.c: Include math.h and float+.h.
54178         (mp_limb_t): New type.
54179         (GMP_LIMB_BITS): New macro.
54180         (mp_twolimb_t): New type.
54181         (GMP_TWOLIMB_BITS): New macro.
54182         (mpn_t): New type.
54183         (multiply, divide, convert_to_decimal, decode_long_double,
54184         scale10_round_long_double, scale10_round_decimal_long_double,
54185         floorlog10l): New functions.
54186         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54187         for the %f, %F, %e, %E, %g, %G directives.
54188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54190         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54191         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54199         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54200         * modules/snprintf-posix (Depends-on): Likewise.
54201         * modules/sprintf-posix (Depends-on): Likewise.
54202         * modules/vasnprintf-posix (Depends-on): Likewise.
54203         * modules/vasprintf-posix (Depends-on): Likewise.
54204         * modules/vfprintf-posix (Depends-on): Likewise.
54205         * modules/vsnprintf-posix (Depends-on): Likewise.
54206         * modules/vsprintf-posix (Depends-on): Likewise.
54207         * modules/vasnprintf (Files): Add lib/float+.h.
54208         * doc/functions/fprintf.texi: Update.
54209         * doc/functions/printf.texi: Update.
54210         * doc/functions/snprintf.texi: Update.
54211         * doc/functions/sprintf.texi: Update.
54212         * doc/functions/vfprintf.texi: Update.
54213         * doc/functions/vprintf.texi: Update.
54214         * doc/functions/vsnprintf.texi: Update.
54215         * doc/functions/vsprintf.texi: Update.
54216
54217 2007-05-18  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54220
54221 2007-05-18  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54224         for printing 64-bit integers. Needed for mingw.
54225
54226 2007-05-18  Bruno Haible  <bruno@clisp.org>
54227
54228         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54229         gl_FUNC_FREXPL_WORKS.
54230         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54231
54232 2007-05-18  Bruno Haible  <bruno@clisp.org>
54233
54234         * modules/frexpl-nolibm-tests: New file.
54235
54236         * modules/frexpl-nolibm: New file.
54237         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54238
54239 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54242         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54243         GCC 4.2, which otherwise issues a lot of warnings.
54244         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54245         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54246         Likewise.
54247         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54248         * modules/iconv_open (iconv.h): Likewise.
54249         * modules/locale (locale.h): Likewise.
54250         * modules/netinet_in (netinet/in.h): Likewise.
54251         * modules/sys_select (sys_select.h): Likewise.
54252         * modules/sys_socket (sys/socket.h): Likewise.
54253         * modules/sys_stat (sys/stat.h): Likewise.
54254         * modules/sysexits (sysexits.h): Likewise.
54255         * modules/unistd (unistd.h): Likewise.
54256
54257 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54258
54259         * modules/closein-tests (Makefile.am): Distribute
54260         `test-closein.sh'.
54261
54262 2007-05-17  Bruno Haible  <bruno@clisp.org>
54263
54264         * tests/test-printf-posix.output: Renamed from
54265         tests/test-fprintf-posix.out.
54266         * modules/fprintf-posix-tests: Update.
54267         * modules/printf-posix-tests: Update.
54268         * modules/vfprintf-posix-tests: Update.
54269         * modules/vprintf-posix-tests: Update.
54270         * tests/test-fprintf-posix.sh: Update.
54271         * tests/test-printf-posix.sh: Update.
54272         * tests/test-vfprintf-posix.sh: Update.
54273         * tests/test-vprintf-posix.sh: Update.
54274         Reported by Ralf Wildenhues.
54275
54276 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54279         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54280         GCC 4.2, which otherwise issues a lot of warnings.
54281         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54282         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54283         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54284         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54285         it should no longer be needed.
54286         * lib/string_.h: Likewise.
54287         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54288         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54289         * modules/inttypes (inttypes.h): Likewise.
54290         * modules/math (math.h): Likewise.
54291         * modules/search (search.h): Likewise.
54292         * modules/signal (signal.h): Likewise.
54293         * modules/stdint (stdint.h): Likewise.
54294         * modules/stdio (stdio.h): Likewise.
54295         * modules/stdlib (stdlib.h): Likewise.
54296         * modules/string (string.h): Likewise.
54297         * modules/sys_time (sys/time.h): Likewise.
54298         * modules/time (time.h): Likewise.
54299         * modules/wchar (wchar.h): Likewise.
54300         * modules/wctype (wtype.h): Likewise.
54301
54302 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54303
54304         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54305
54306 2007-05-13  Bruno Haible  <bruno@clisp.org>
54307
54308         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54309         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54310         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54311         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54312         (gl_PREREQ_STRTOK_R): Don't require it here.
54313
54314 2007-05-13  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54317         when used in C++ mode.
54318
54319 2007-05-12  Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/linebuffer.h: Tweak doc.
54322         * lib/linebuffer.c: Likewise.
54323
54324 2007-05-12  James Youngman  <jay@gnu.org>
54325
54326         * lib/linebuffer.c (readlinebuffer_delim): New function,
54327         like readlinebuffer, but use a caller-specified delimiter.
54328         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54329         as the delimiter.
54330         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54331
54332 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54333
54334         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54335         * modules/openat (Files): Remove openat-die.c.
54336         (Depends-on): Add openat-die.
54337         * modules/openat-die: New module.
54338
54339 2007-05-06  Bruno Haible  <bruno@clisp.org>
54340
54341         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54342         Update with info about Cygwin.
54343         * doc/functions/fprintf.texi: Update.
54344         * doc/functions/printf.texi: Update.
54345         * doc/functions/snprintf.texi: Update.
54346         * doc/functions/sprintf.texi: Update.
54347         * doc/functions/vfprintf.texi: Update.
54348         * doc/functions/vprintf.texi: Update.
54349         * doc/functions/vsnprintf.texi: Update.
54350         * doc/functions/vsprintf.texi: Update.
54351         Reported by Eric Blake.
54352
54353 2007-05-06  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54356         padding ourselves for the floating-point directives.
54357         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54360         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54361         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54362         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54363         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54369         * tests/test-snprintf-posix.h (test_function): Also check the width
54370         and some flags in the %f directive.
54371         * tests/test-sprintf-posix.h (test_function): Likewise.
54372         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54373         * tests/test-vasprintf-posix.c (test_function): Likewise.
54374         * doc/functions/fprintf.texi: Update.
54375         * doc/functions/printf.texi: Update.
54376         * doc/functions/snprintf.texi: Update.
54377         * doc/functions/sprintf.texi: Update.
54378         * doc/functions/vfprintf.texi: Update.
54379         * doc/functions/vprintf.texi: Update.
54380         * doc/functions/vsnprintf.texi: Update.
54381         * doc/functions/vsprintf.texi: Update.
54382
54383 2007-05-06  Bruno Haible  <bruno@clisp.org>
54384
54385         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54386         pass the ' flag character to sprintf or snprintf.
54387         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54390         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54391         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54393         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54399         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54400         flag.
54401         * tests/test-sprintf-posix.h (test_function): Likewise.
54402         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54403         * tests/test-vasprintf-posix.c (test_function): Likewise.
54404         * doc/functions/fprintf.texi: Update.
54405         * doc/functions/printf.texi: Update.
54406         * doc/functions/snprintf.texi: Update.
54407         * doc/functions/sprintf.texi: Update.
54408         * doc/functions/vfprintf.texi: Update.
54409         * doc/functions/vprintf.texi: Update.
54410         * doc/functions/vsnprintf.texi: Update.
54411         * doc/functions/vsprintf.texi: Update.
54412
54413 2007-05-01  Bruno Haible  <bruno@clisp.org>
54414
54415         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54416
54417 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54418
54419         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54420         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54421
54422 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54423
54424         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54425         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54427
54428 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54429
54430         * lib/argp-help.c (struct hol_entry): New member `ord'.
54431         (HOL_ENTRY_PTRCMP): Use ord for comparison
54432         (hol_sort): Initialize ord.
54433
54434 2007-05-01  Bruno Haible  <bruno@clisp.org>
54435
54436         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54437         Reported by Eric Blake.
54438         * doc/gnulib.texi (Function Substitutes): Update.
54439
54440 2007-05-01  Bruno Haible  <bruno@clisp.org>
54441
54442         * doc/functions.texi: Remove file, now redundant through
54443         doc/functions/*.texi.
54444
54445 2007-05-01  Bruno Haible  <bruno@clisp.org>
54446
54447         * modules/argp (Depends-on): Add sleep.
54448
54449 2007-05-01  Bruno Haible  <bruno@clisp.org>
54450
54451         * modules/sleep-tests: New file.
54452         * tests/test-sleep.c: New file.
54453
54454         * modules/sleep: New file.
54455         * lib/sleep.c: New file.
54456         * m4/sleep.m4: New file.
54457         * lib/unistd_.h (sleep): New declaration.
54458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54459         HAVE_SLEEP.
54460         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54461         * doc/functions/sleep.texi: Document the sleep module.
54462
54463 2007-05-01  Bruno Haible  <bruno@clisp.org>
54464
54465         * lib/sigprocmask.h: Remove file.
54466         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54467         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54468         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54469         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54470         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54471         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54472         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54473         HAVE_SIGSET_T as a shell variable.
54474         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54475         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54476         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54477         (Depends-on): Add signal. Remove verify.
54478         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54479         (Include): Mention <signal.h> instead of sigprocmask.h.
54480         * NEWS: Mention the change.
54481         * lib/fatal-signal.c: Don't include sigprocmask.h.
54482
54483 2007-05-01  Bruno Haible  <bruno@clisp.org>
54484
54485         * modules/signal: New file.
54486         * lib/signal_.h: New file.
54487         * m4/signal_h.m4: New file.
54488
54489 2007-05-01  Bruno Haible  <bruno@clisp.org>
54490
54491         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54492         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54493         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54494         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54495
54496 2007-05-01  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54499         configure time.
54500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54501         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54502         * modules/sys_stat (Makefile.am): Substitute their values into
54503         sys/stat.h.
54504
54505 2007-05-01  Bruno Haible  <bruno@clisp.org>
54506
54507         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54508         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54509         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54510
54511 2007-05-01  Bruno Haible  <bruno@clisp.org>
54512
54513         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54514         'assert' module here.
54515
54516 2007-05-01  Bruno Haible  <bruno@clisp.org>
54517
54518         * doc/functions/*.texi: New files.
54519         * doc/functions/google-ranking.txt: New file.
54520         * doc/gnulib.texi (Function Substitutes): New chapter.
54521         (ctime, inet_ntoa): Remove sections.
54522         * doc/ctime.texi: Remove file.
54523         * doc/inet_ntoa.texi: Remove file.
54524         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54525         dependencies.
54526         (%.info): New rule, specifying a --reference-limit.
54527
54528 2007-05-01  Bruno Haible  <bruno@clisp.org>
54529
54530         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54531
54532 2007-05-01  Bruno Haible  <bruno@clisp.org>
54533
54534         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54535         the portability of 'mkdir' to mingw systems.
54536
54537 2007-05-01  Bruno Haible  <bruno@clisp.org>
54538
54539         * doc/headers/google-ranking.txt: New file.
54540
54541 2007-04-30  Eric Blake  <ebb9@byu.net>
54542
54543         Prefer fseeko to fseek.
54544         * modules/getpass (Depends-on): Add fseeko.
54545         * lib/getpass.c (getpass): Use fseeko, not fseek.
54546
54547 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54548
54549         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54550         assumes the sorting is stable, while most qsort implementations
54551         are not.  Use argument addresses to ensure they never compare as
54552         equal.
54553
54554         * tests/test-argp-2.sh (usage-indent test): Fix output
54555         (func_compare): Restore diff options
54556         * tests/test-argp.c: Restore #include "progname.h"
54557
54558 2007-04-29  Bruno Haible  <bruno@clisp.org>
54559
54560         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54562         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54564         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54565         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54566         (TESTS, check_PROGRAMS): Add test-snprintf.
54567         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54568         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54569         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54570         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54571         assertions that fail on HP-UX, OSF/1, or IRIX.
54572         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54573
54574 2007-04-29  Bruno Haible  <bruno@clisp.org>
54575
54576         * MODULES.html.sh (posix_functions): Remove 'contents'.
54577
54578 2007-04-29  Karl Berry  <karl@gnu.org>
54579
54580         * config/srclist.txt (gendocs_template_min): new entry.
54581
54582 2007-04-29  Bruno Haible  <bruno@clisp.org>
54583
54584         Work around fpurge bug on BSD systems.
54585         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54586         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54587         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54588         fpurge to rpl_fpurge if the system already has this function.
54589         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54590         the case where the system already has this function. Correct invariants
54591         on BSD systems.
54592         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54593         BSD systems.
54594
54595 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54596
54597         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54598         proposed by Sven Verdoolaege.
54599
54600         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54601         options.
54602         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54603         (usage and help tests): Update
54604
54605 2007-04-29  Bruno Haible  <bruno@clisp.org>
54606
54607         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54608         Print more information in case of failure. Disable a test on BeOS.
54609
54610 2007-04-29  Bruno Haible  <bruno@clisp.org>
54611
54612         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54613         This helps debugging on systems on which no gdb is available.
54614
54615 2007-04-29  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/freading.h: Improve comments.
54618         * lib/fwriting.h: Likewise.
54619         * tests/test-freading.c (main): Don't check freading immediately after
54620         repositioning. Needed for glibc.
54621
54622 2007-04-29  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/freading.c (freading): Trivial simplification.
54625
54626 2007-04-28  Bruno Haible  <bruno@clisp.org>
54627
54628         * tests/test-fwriting.c (main): Also test the interaction between
54629         fflush and fwriting.
54630         * modules/fwriting-tests (Depends-on): Add fflush.
54631
54632         * tests/test-freading.c (main): Also test the interaction between
54633         fflush and freading.
54634         * modules/freading-tests (Depends-on): Add fflush.
54635
54636 2007-04-28  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54639         fseeko and ftello.
54640         Suggested by Eric Blake.
54641
54642 2007-04-28  Jim Meyering  <jim@meyering.net>
54643
54644         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54645         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54646         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54647
54648 2007-04-27  Eric Blake  <ebb9@byu.net>
54649
54650         * doc/headers/assert.texi (assert.h): Document assert module use.
54651
54652 2007-04-27  Bruno Haible  <bruno@clisp.org>
54653
54654         * doc/headers/*.texi: New files.
54655         * doc/gnulib.texi (Header File Substitutes): New chapter.
54656         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54657         dependencies.
54658         (standards.info ,standards.html, standards.dvi): Update dependencies.
54659         (mostlyclean, clean): New targets.
54660
54661 2007-04-27  Bruno Haible  <bruno@clisp.org>
54662
54663         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54664         * modules/sysexits (Files, Makefile.am): Update.
54665
54666         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54667         * modules/sys_socket (Files, Makefile.am): Update.
54668
54669         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54670         * modules/sys_stat (Files, Makefile.am): Update.
54671
54672 2007-04-27  Eric Blake  <ebb9@byu.net>
54673
54674         * lib/freading.h: Improve comments.
54675         * lib/fwriting.h: Likewise.
54676         * lib/fflush.c: Likewise.
54677
54678         Fix closein for mingw.
54679         * modules/closein-tests: Add tests for closein.
54680         * tests/test-closein.c: New file.
54681         * tests/test-closein.sh: Likewise.
54682         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54683         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54684
54685 2007-04-27  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54688         version is < 6.
54689         * lib/math_.h [__DECC]: Likewise.
54690         * lib/stdio_.h [__DECC]: Likewise.
54691         * lib/stdlib_.h [__DECC]: Likewise.
54692         * lib/string_.h [__DECC]: Likewise.
54693         * lib/time_.h [__DECC]: Likewise.
54694         * lib/wchar_.h [__DECC]: Likewise.
54695         * lib/wctype_.h [__DECC]: Likewise.
54696
54697 2007-04-27  Bruno Haible  <bruno@clisp.org>
54698
54699         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54700
54701 2007-04-27  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/fflush.c: Add comments.
54704         * modules/fpurge-tests (Depends-on): Add fflush.
54705         * modules/freadable-tests (Depends-on): Likewise.
54706         * modules/fwritable-tests (Depends-on): Likewise.
54707
54708 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54709
54710         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54711         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54712         Report by Bruno Haible <bruno@clisp.org>.
54713
54714 2007-04-26  Eric Blake  <ebb9@byu.net>
54715
54716         Fix fflush on mingw.
54717         * modules/fflush (Depends-on): Add freading.
54718         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54719         but unread data.
54720
54721 2007-04-26  Eric Blake  <ebb9@byu.net>
54722         and Bruno Haible  <bruno@clisp.org>
54723
54724         Implement freading and fwriting.
54725         * lib/freading.c: New file.
54726         * lib/freading.h: Likewise.
54727         * m4/freading.m4: Likewise.
54728         * modules/freading: Likewise.
54729         * modules/freading-tests: Likewise.
54730         * tests/test-freading.c: Likewise.
54731         * lib/fwriting.c: New file.
54732         * lib/fwriting.h: Likewise.
54733         * m4/fwriting.m4: Likewise.
54734         * modules/fwriting: Likewise.
54735         * modules/fwriting-tests: Likewise.
54736         * tests/test-fwriting.c: Likewise.
54737         * MODULES.html.sh (File stream based Input/Output): Mention them.
54738
54739 2007-04-26  Bruno Haible  <bruno@clisp.org>
54740
54741         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54742         'long' when we assume it.
54743         Suggested by Eric Blake.
54744
54745 2007-04-26  Bruno Haible  <bruno@clisp.org>
54746
54747         Ensure fseeko, ftello are declared on glibc systems.
54748         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54749         * modules/fseeko (configure.ac-early): Likewise.
54750         * modules/ftello (configure.ac-early): Likewise.
54751         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54752         AC_FUNC_FSEEKO for this.
54753         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54754         (gl_CHECK_FSEEKO): Remove macro.
54755
54756 2007-04-26  Bruno Haible  <bruno@clisp.org>
54757
54758         * tests/test-fflush.c (main): Also check the ftell result after
54759         fflush and fseek/fseeko.
54760         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54761         file descriptor position cache in the stream.
54762         * lib/fseeko.c (rpl_fseeko): Likewise.
54763
54764 2007-04-26  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/fflush-tests (Depends-on): Add fseeko.
54767
54768 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54769             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54770
54771         * lib/argz_.h: ensure error_t definition is obtained in same
54772         mechanism system argz.h would have.
54773         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54774         argz facilities are known bad.  Err on the side of caution if
54775         cross-compiling.
54776
54777 2007-04-25  Eric Blake  <ebb9@byu.net>
54778
54779         * lib/fpurge.c (includes): Use stdlib.h for free.
54780         * tests/test-fflush.c (main): Also test fflush-fseeko.
54781
54782 2007-04-25  Bruno Haible  <bruno@clisp.org>
54783
54784         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54785         * lib/fseeko.c: New file.
54786         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54787         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54788         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54789         gl_FUNC_FSEEKO.
54790         (gl_FUNC_FSEEKO): Invoke it.
54791         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54792         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54793         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54794
54795 2007-04-25  Bruno Haible  <bruno@clisp.org>
54796
54797         * modules/fflush (Depends-on): Add ftello.
54798
54799 2007-04-25  Bruno Haible  <bruno@clisp.org>
54800
54801         * modules/ftello-tests: New file.
54802         * tests/test-ftello.c: New file.
54803
54804         * modules/ftello: New file.
54805         * m4/ftello.m4: New file.
54806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54807         HAVE_FTELLO.
54808         * lib/stdio_.h (ftello): New declaration.
54809         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54810         HAVE_FTELLO.
54811
54812 2007-04-25  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/fseeko-tests: New file.
54815         * tests/test-fseeko.c: New file.
54816
54817         * modules/fseeko: New file.
54818         * m4/fseeko.m4: New file.
54819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54820         HAVE_FSEEKO.
54821         * lib/stdio_.h (fseeko): New declaration.
54822         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54823         HAVE_FSEEKO.
54824
54825 2007-04-25  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54828
54829 2007-04-25  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54832         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54833         * tests/test-unistd.c: Likewise.
54834         * tests/test-fcntl.c: Likewise.
54835
54836 2007-04-23  Eric Blake  <ebb9@byu.net>
54837
54838         * lib/fflush.c: Fix missing include.
54839         Reported by Bruno Haible.
54840
54841 2007-04-23  Bruno Haible  <bruno@clisp.org>
54842
54843         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54844         Reported by Eric Blake.
54845
54846 2007-04-23  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54849
54850 2007-04-23  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54853
54854 2007-04-23  Bruno Haible  <bruno@clisp.org>
54855
54856         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54857         Needed on HP-UX 11.
54858
54859 2007-04-16  Eric Blake  <ebb9@byu.net>
54860
54861         Make fflush rely on fpurge.
54862         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54863         open coding all variants.
54864         * modules/fflush (Depends-on): Add fpurge and unistd.
54865         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54866         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54867
54868         Fix --with-tests compilation on cygwin.
54869         * modules/argmatch-tests (Makefile.am): List gnulib library first
54870         in LDADD.
54871         * modules/argp-tests (Makefile.am): Likewise.
54872         * modules/array-list-tests (Makefile.am): Likewise.
54873         * modules/array-oset-tests (Makefile.am): Likewise.
54874         * modules/avltree-list-tests (Makefile.am): Likewise.
54875         * modules/avltree-oset-tests (Makefile.am): Likewise.
54876         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54877         * modules/carray-list-tests (Makefile.am): Likewise.
54878         * modules/dirname-tests (Makefile.am): Likewise.
54879         * modules/frexp-tests (Makefile.am): Likewise.
54880         * modules/isnanl-tests (Makefile.am): Likewise.
54881         * modules/linked-list-tests (Makefile.am): Likewise.
54882         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54883         * modules/lock-tests (Makefile.am): Likewise.
54884         * modules/rbtree-list-tests (Makefile.am): Likewise.
54885         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54886         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54887         * modules/tls-tests (Makefile.am): Likewise.
54888         * modules/tsearch-tests (Makefile.am): Likewise.
54889         * modules/xvasprintf-tests (Makefile.am): Likewise.
54890
54891         Fix fpurge for cygwin.
54892         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54893         value.
54894         * modules/fpurge-tests (Depends-on): Clean up trash.
54895
54896 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54897
54898         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54899
54900         * m4/autobuild.m4: Re-indent.
54901
54902 2007-04-13  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/fpurge-tests: New file.
54905         * tests/test-fpurge.c: New file.
54906
54907         * modules/fpurge: New file.
54908         * lib/fpurge.h: New file.
54909         * lib/fpurge.c: New file.
54910         * m4/fpurge.m4: New file.
54911
54912 2007-04-13  Bruno Haible  <bruno@clisp.org>
54913
54914         * modules/fbufmode-tests: New file.
54915         * tests/test-fbufmode.c: New file.
54916
54917         * modules/fbufmode: New file.
54918         * lib/fbufmode.h: New file.
54919         * lib/fbufmode.c: New file.
54920         * m4/fbufmode.m4: New file.
54921
54922 2007-04-13  Bruno Haible  <bruno@clisp.org>
54923
54924         * modules/fwritable-tests: New file.
54925         * tests/test-fwritable.c: New file.
54926
54927         * modules/fwritable: New file.
54928         * lib/fwritable.h: New file.
54929         * lib/fwritable.c: New file.
54930         * m4/fwritable.m4: New file.
54931
54932 2007-04-13  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/freadable-tests: New file.
54935         * tests/test-freadable.c: New file.
54936
54937         * modules/freadable: New file.
54938         * lib/freadable.h: New file.
54939         * lib/freadable.c: New file.
54940         * m4/freadable.m4: New file.
54941
54942 2007-04-13  Bruno Haible  <bruno@clisp.org>
54943
54944         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54945         MOSTLYCLEANFILES.
54946
54947 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54948
54949         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54950         gzip bootstrap.conf to avoid dragging in i18n machinery.
54951         (gnulib_tool_option): Use it.
54952
54953 2007-04-13  Bruno Haible  <bruno@clisp.org>
54954
54955         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54956         %F directives.
54957         * tests/test-vasprintf-posix.c (test_function): Likewise.
54958         * tests/test-snprintf-posix.h (test_function): Likewise.
54959         * tests/test-sprintf-posix.h (test_function): Likewise.
54960         * tests/test-fprintf-posix.h (test_function): Likewise.
54961         * tests/test-printf-posix.h (test_function): Likewise.
54962         * tests/test-fprintf-posix.out: Likewise.
54963
54964 2007-04-13  Bruno Haible  <bruno@clisp.org>
54965
54966         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54967         * modules/tls-tests (configure.ac): Likewise.
54968         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54969
54970 2007-04-13  Bruno Haible  <bruno@clisp.org>
54971
54972         * lib/tls.c (glthread_tls_get): Fix return type.
54973         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54974
54975 2007-04-12  Eric Blake  <ebb9@byu.net>
54976
54977         * modules/gettime (Depends-on): Remove gettime.
54978         Reported by Dmitry V. Levin.
54979
54980 2007-04-12  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/fflush (Include): Mention <stdio.h>.
54983         * modules/strtoimax (Include): Mention <inttypes.h>.
54984         * modules/strtoumax (Include): Likewise.
54985
54986 2007-04-12  Eric Blake  <ebb9@byu.net>
54987
54988         * .cvsignore: New file.
54989         * .gitignore: Likewise.
54990
54991 2007-04-12  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54994         not before, since $(LDADD) often contains libgnu.a.
54995         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54996         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54997         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54998         Needed on Cygwin.
54999
55000 2007-04-12  Eric Blake  <ebb9@byu.net>
55001
55002         Work around glibc's failure to flush stdin on fclose.
55003         * lib/closein.c (close_stdin): Flush stdin before closing.
55004
55005         Work around glibc's failure to reset seekable stdin on exit.
55006         * modules/closein: New module.
55007         * lib/closein.c: New file.
55008         * lib/closein.h: Likewise.
55009         * m4/closein.m4: Likewise.
55010         * MODULES.html.sh (File stream based Input/Output): Document it.
55011
55012 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55013
55014         * gnulib-tool: Rename generated 'autobuild' script to
55015         'do-autobuild' in --create-megatestdir output.
55016
55017         * doc/gnulib.texi (Build robot for gnulib): Fix.
55018
55019 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55020
55021         * modules/sysexits (Depends-on): Add absolute-header.
55022
55023 2007-04-12  Eric Blake  <ebb9@byu.net>
55024
55025         No need to preserve errno on success.
55026         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55027         Reported by Bruno Haible.
55028
55029 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55030
55031         * MODULES.html.sh (Support for maintaining and releasing
55032         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55033
55034 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55035
55036         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55037
55038 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55039
55040         * modules/autobuild: New module.
55041
55042         * m4/autobuild.m4: New file.
55043
55044 2007-04-11  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55047         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55048         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55050         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55051         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55052         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55054         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55055         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55056         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55057         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55058         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55060         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55061         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55062         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55063         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55064         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55065         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55066         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55067         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55069         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55070         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55072         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55073         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55074         Reported by Eric Blake.
55075
55076 2007-04-11  Bruno Haible  <bruno@clisp.org>
55077
55078         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55079
55080 2007-04-10  Bruno Haible  <bruno@clisp.org>
55081
55082         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55083         for NaN and Infinity. Needed on FreeBSD 6.1.
55084         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55085         regarding results for "%010a" of Infinity and NaN.
55086         * tests/test-vasprintf-posix.c (test_function): Likewise.
55087         * tests/test-snprintf-posix.h (test_function): Likewise.
55088         * tests/test-sprintf-posix.h (test_function): Likewise.
55089         * tests/test-fprintf-posix.h (test_function): Likewise.
55090         * tests/test-printf-posix.h (test_function): Likewise.
55091         * tests/test-fprintf-posix.out: Likewise.
55092
55093 2007-04-10  Bruno Haible  <bruno@clisp.org>
55094
55095         * modules/locale-tests: New file.
55096         * tests/test-locale.c: New file.
55097
55098         * modules/locale: New file.
55099         * lib/locale_.h: New file.
55100         * m4/locale_h.m4: New file.
55101
55102 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55103             Bruno Haible  <bruno@clisp.org>
55104
55105         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55106         be determined, test for availability of the copysignf, copysign,
55107         copysignl functions.
55108         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55109         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55110         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55111
55112 2007-04-09  Eric Blake  <ebb9@byu.net>
55113
55114         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55115         * modules/stdio (Makefile.am): Support fflush.
55116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55117         * modules/fflush: New file.
55118         * lib/fflush.c: Likewise.
55119         * m4/fflush.m4: Likewise.
55120         * modules/fflush-tests: New test.
55121         * tests/test-fflush.c: Likewise.
55122         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55123
55124 2007-04-06  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55127         (VASNPRINTF): Use signbit for faster determination whether to print a
55128         minus sign.
55129         * modules/vasnprintf (Files): Remove lib/float+.h.
55130         * modules/fprintf-posix (Depends-on): Add signbit.
55131         * modules/snprintf-posix (Depends-on): Likewise.
55132         * modules/sprintf-posix (Depends-on): Likewise.
55133         * modules/vasnprintf-posix (Depends-on): Likewise.
55134         * modules/vasprintf-posix (Depends-on): Likewise.
55135         * modules/vfprintf-posix (Depends-on): Likewise.
55136         * modules/vsnprintf-posix (Depends-on): Likewise.
55137         * modules/vsprintf-posix (Depends-on): Likewise.
55138
55139 2007-04-06  Bruno Haible  <bruno@clisp.org>
55140
55141         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55142         * tests/test-frexpl.c (main): Likewise.
55143         * tests/test-ldexpl.c (main): Likewise.
55144         * modules/frexp-tests (Depends-on): Add signbit.
55145         * modules/frexpl-tests (Depdends-on): Likewise.
55146         * modules/ldexpl-tests (Depdends-on): Likewise.
55147
55148 2007-04-06  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/signbit-tests: New file.
55151         * tests/test-signbit.c: New file.
55152
55153         * modules/signbit: New file.
55154         * lib/signbitf.c: New file.
55155         * lib/signbitd.c: New file.
55156         * lib/signbitl.c: New file.
55157         * m4/signbit.m4: New file.
55158         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55159         (signbit): New macro.
55160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55161         REPLACE_SIGNBIT.
55162         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55163         REPLACE_FREXPL into math.h.
55164
55165 2007-04-06  Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/isnanf-nolibm-tests: New file.
55168         * tests/test-isnanf.c: New file.
55169
55170         * modules/isnanf-nolibm: New file.
55171         * lib/isnanf.h: New file.
55172         * lib/isnanf.c: New file.
55173         * lib/isnan.c: Consider the USE_FLOAT macro.
55174         * m4/isnanf.m4: New file.
55175
55176 2007-04-06  Bruno Haible  <bruno@clisp.org>
55177
55178         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55179         (Link): New section.
55180
55181         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55182
55183 2007-04-06  Bruno Haible  <bruno@clisp.org>
55184
55185         Assume the 'long double' type.
55186         * m4/longdouble.m4: Remove file.
55187         * config/srclist.txt: Don't mention longdouble.m4.
55188         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55189         * lib/float+.h: Likewise.
55190         * lib/frexp.c: Likewise.
55191         * lib/printf-args.h: Likewise.
55192         * lib/printf-args.c: Likewise.
55193         * lib/printf-frexp.c: Likewise.
55194         * lib/printf-parse.c: Likewise.
55195         * lib/vasnprintf.c: Likewise.
55196         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55197         * m4/intl.m4: Likewise.
55198         * m4/isnanl.m4: Likewise.
55199         * m4/printf.m4: Likewise.
55200         * m4/printf-frexpl.m4: Likewise.
55201         * m4/vasnprintf.m4: Likewise.
55202         * modules/allocsa (Files): Remove m4/longdouble.m4.
55203         * modules/gettext (Files): Likewise.
55204         * modules/relocatable-prog-wrapper (Files): Likewise.
55205         * modules/vasnprintf (Files): Likewise.
55206         * modules/isnanl (Files): Likewise.
55207         (Include): Simplify.
55208         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55209         (Include): Simplify.
55210         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55211         (Include): Simplify.
55212         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55213         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55214         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55215         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55216         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55217         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55218         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55219         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55220         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55221         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55222         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55223         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55224         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55225         * tests/test-isnanl.c: Likewise.
55226         * tests/test-snprintf-posix.h: Likewise.
55227         * tests/test-sprintf-posix.h: Likewise.
55228         * tests/test-vasnprintf-posix.c: Likewise.
55229         * tests/test-vasnprintf-posix2.c: Likewise.
55230         * tests/test-vasprintf-posix.c: Likewise.
55231
55232 2007-04-06  Bruno Haible  <bruno@clisp.org>
55233
55234         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55235         * lib/math_.h [__DECC]: Include the overridden include file through
55236         #include_next, outside the double-inclusion guard.
55237         * lib/stdio_.h [__DECC]: Likewise.
55238         * lib/stdlib_.h [__DECC]: Likewise.
55239         * lib/string_.h [__DECC]: Likewise.
55240         * lib/time_.h [__DECC]: Likewise.
55241         * lib/wchar_.h [__DECC]: Likewise.
55242         * lib/wctype_.h [__DECC]: Likewise.
55243         * lib/inttypes_.h [__DECC]: Likewise.
55244         Reported by Albert Chin <china@thewrittenword.com> in
55245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55246
55247 2007-04-04  Eric Blake  <ebb9@byu.net>
55248
55249         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55250         1.5.x.
55251
55252 2007-04-04  Bruno Haible  <bruno@clisp.org>
55253
55254         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55255         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55256
55257 2007-04-04  Bruno Haible  <bruno@clisp.org>
55258
55259         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55260         results for "%010a" of Infinity and NaN.
55261         * tests/test-vasprintf-posix.c (test_function): Likewise.
55262         * tests/test-snprintf-posix.h (test_function): Likewise.
55263         * tests/test-sprintf-posix.h (test_function): Likewise.
55264         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55265         * tests/test-printf-posix.h (test_function): Likewise.
55266         * tests/test-fprintf-posix.out: Update.
55267         Needed for FreeBSD 6.1.
55268
55269 2007-04-04  Bruno Haible  <bruno@clisp.org>
55270
55271         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55272         directly used by the gnulib modules nor by gnulib-tool.
55273
55274 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55275
55276         * DEPENDENCIES: Give overall description of version dependency
55277         desirability.  Use more-typical names for apps.
55278         Add shell, coreutils, diffutils, grep, tar, gzip.
55279
55280 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55281
55282         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55283
55284 2007-04-04  Karl Berry  <karl@gnu.org>
55285
55286         * MODULES.html.sh (func_module): missing '.
55287
55288 2007-04-03  Bruno Haible  <bruno@clisp.org>
55289
55290         * modules/argmatch-tests (Makefile.am): New variable
55291         test_argmatch_LDADD.
55292         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55293         * modules/array-list-tests (Makefile.am): New variable
55294         test_array_list_LDADD.
55295         * modules/array-oset-tests (Makefile.am): New variable
55296         test_array_oset_LDADD.
55297         * modules/avltree-list-tests (Makefile.am): New variable
55298         test_avltree_list_LDADD.
55299         * modules/avltree-oset-tests (Makefile.am): New variable
55300         test_avltree_oset_LDADD.
55301         * modules/avltreehash-list-tests (Makefile.am): New variable
55302         test_avltreehash_list_LDADD.
55303         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55304         test_canonicalize_lgpl_LDADD.
55305         * modules/carray-list-tests (Makefile.am): New variable
55306         test_carray_list_LDADD.
55307         * modules/dirname-tests (Makefile.am): New variable
55308         test_dirname_LDADD.
55309         * modules/linked-list-tests (Makefile.am): New variable
55310         test_linked_list_LDADD.
55311         * modules/linkedhash-list-tests (Makefile.am): New variable
55312         test_linkedhash_list_LDADD.
55313         * modules/rbtree-list-tests (Makefile.am): New variable
55314         test_rbtree_list_LDADD.
55315         * modules/rbtree-oset-tests (Makefile.am): New variable
55316         test_rbtree_oset_LDADD.
55317         * modules/rbtreehash-list-tests (Makefile.am): New variable
55318         test_rbtreehash_list_LDADD.
55319         * modules/xvasprintf-tests (Makefile.am): New variable
55320         test_xvasprintf_LDADD.
55321         Reported by Eric Blake.
55322
55323 2007-04-03  Eric Blake  <ebb9@byu.net>
55324
55325         * DEPENDENCIES: Weaken m4 requirements.
55326
55327 2007-04-03  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55330         * modules/isnanl-tests (configure.ac): Likewise.
55331
55332 2007-04-03  Ben Pfaff  <blp@gnu.org>
55333
55334         * modules/iconv_open: Add $(srcdir)/ to source directory
55335         references in Makefile fragments that call gperf, to fix VPATH
55336         builds.
55337
55338 2007-04-03  Bruno Haible  <bruno@clisp.org>
55339
55340         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55341         * lib/ldexpl.c: Undo last change.
55342
55343 2007-04-03  Bruno Haible  <bruno@clisp.org>
55344
55345         * modules/printf-frexpl (Depends-on): Undo last change.
55346         (Files): Add m4/ldexpl.m4.
55347
55348 2007-04-03  Bruno Haible  <bruno@clisp.org>
55349
55350         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55351         * modules/isnanl (Link): New section.
55352
55353         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55354         * modules/frexp (Link): New section.
55355
55356         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55357         * modules/frexpl (Link): New section.
55358
55359         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55360         * modules/ldexpl (Link): New section.
55361
55362 2007-04-03  Bruno Haible  <bruno@clisp.org>
55363
55364         * modules/TEMPLATE-EXTENDED: New file.
55365         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55366
55367 2007-04-03  Bruno Haible  <bruno@clisp.org>
55368
55369         * DEPENDENCIES: New file.
55370         Suggested by Simon Josefsson.
55371
55372 2007-04-03  Bruno Haible  <bruno@clisp.org>
55373
55374         * doc/gnulib.texi: Escape @.
55375
55376 2007-04-03  James Youngman  <jay@gnu.org>
55377         and Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55380         birthtime on all systems that have birthtime, not just those which
55381         use st_birthtimensec rather than st_birthtim.  Putting zero in
55382         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55383         that the birth time is not available for files on an NFS mount.
55384
55385 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55386
55387         * modules/memxor: Move back from crypto/, suggested by Bruno.
55388         * modules/crypto/hmac-sha1: Fix memxor dependency.
55389
55390         * modules/crypto/gc: Moved from ../.
55391
55392 2007-04-02  Eric Blake  <ebb9@byu.net>
55393
55394         * lib/ldexpl.c (includes): Avoid libm.
55395
55396         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55397
55398 2007-04-02  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55401         on IRIX.
55402
55403 2007-04-02  Bruno Haible  <bruno@clisp.org>
55404
55405         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55406         x86 or x86_64 platforms running MacOS X.
55407         Reported by Ryan Schmidt <@ryandesign.com>.
55408
55409 2007-04-02  Bruno Haible  <bruno@clisp.org>
55410
55411         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55412         i386.
55413
55414 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55415
55416         * modules/crypto/arcfour: Moved from ../.
55417         * modules/crypto/arcfour-tests: Moved from ../.
55418         * modules/crypto/arctwo: Moved from ../.
55419         * modules/crypto/arctwo-tests: Moved from ../.
55420         * modules/crypto/des: Moved from ../.
55421         * modules/crypto/des-tests: Moved from ../.
55422         * modules/crypto/gc-arcfour: Moved from ../.
55423         * modules/crypto/gc-arcfour-tests: Moved from ../.
55424         * modules/crypto/gc-arctwo: Moved from ../.
55425         * modules/crypto/gc-arctwo-tests: Moved from ../.
55426         * modules/crypto/gc-des: Moved from ../.
55427         * modules/crypto/gc-des-tests: Moved from ../.
55428         * modules/crypto/gc-hmac-md5: Moved from ../.
55429         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55430         * modules/crypto/gc-hmac-sha1: Moved from ../.
55431         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55432         * modules/crypto/gc-md2: Moved from ../.
55433         * modules/crypto/gc-md2-tests: Moved from ../.
55434         * modules/crypto/gc-md4: Moved from ../.
55435         * modules/crypto/gc-md4-tests: Moved from ../.
55436         * modules/crypto/gc-md5: Moved from ../.
55437         * modules/crypto/gc-md5-tests: Moved from ../.
55438         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55439         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55440         * modules/crypto/gc-random: Moved from ../.
55441         * modules/crypto/gc-rijndael: Moved from ../.
55442         * modules/crypto/gc-rijndael-tests: Moved from ../.
55443         * modules/crypto/gc-sha1: Moved from ../.
55444         * modules/crypto/gc-sha1-tests: Moved from ../.
55445         * modules/crypto/gc-tests: Moved from ../.
55446         * modules/crypto/hmac-md5: Moved from ../.
55447         * modules/crypto/hmac-md5-tests: Moved from ../.
55448         * modules/crypto/hmac-sha1: Moved from ../.
55449         * modules/crypto/hmac-sha1-tests: Moved from ../.
55450         * modules/crypto/md2: Moved from ../.
55451         * modules/crypto/md2-tests: Moved from ../.
55452         * modules/crypto/md4: Moved from ../.
55453         * modules/crypto/md4-tests: Moved from ../.
55454         * modules/crypto/md5: Moved from ../.
55455         * modules/crypto/md5-tests: Moved from ../.
55456         * modules/crypto/memxor: Moved from ../.
55457         * modules/crypto/rijndael: Moved from ../.
55458         * modules/crypto/rijndael-tests: Moved from ../.
55459         * modules/crypto/sha1: Moved from ../.
55460
55461 2007-03-30  James Youngman  <jay@gnu.org>
55462
55463         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55464         rename() to change the ctime of a file (because ctime is unaffected
55465         by rename on jfs2 on AIX 5.1).
55466         (main): Start by doing cleanup, in case a previous run failed leaving
55467         test files behind.
55468
55469 2007-03-31  Bruno Haible  <bruno@clisp.org>
55470
55471         Support old proprietary implementations of iconv.
55472         * modules/iconv_open: New file.
55473         * lib/iconv_.h: New file.
55474         * m4/iconv_h.m4: New file.
55475         * lib/iconv_open.c: New file.
55476         * lib/iconv_open-aix.gperf: New file.
55477         * lib/iconv_open-hpux.gperf: New file.
55478         * lib/iconv_open-irix.gperf: New file.
55479         * lib/iconv_open-osf.gperf: New file.
55480         * m4/iconv_open.m4: New file.
55481         * modules/linebreak (Depends-on): Add iconv_open.
55482         * modules/striconv (Depends-on): Likewise.
55483         * modules/striconveh (Depends-on): Likewise.
55484         * modules/unicodeio (Depends-on): Likewise.
55485         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55486         (iconv_t)(-1).
55487         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55488         conversion if cd is (iconv_t)(-1).
55489         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55490         is not possible.
55491
55492 2007-03-31  Bruno Haible  <bruno@clisp.org>
55493
55494         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55495         work on Solaris either. Protect also second use of "autodetect_jp".
55496
55497 2007-03-31  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55500         the function is not present.
55501
55502 2007-03-31  Bruno Haible  <bruno@clisp.org>
55503
55504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55505         the function is not present.
55506
55507 2007-03-31  Bruno Haible  <bruno@clisp.org>
55508
55509         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55510         a bug in HP-UX iconv_open().
55511
55512 2007-03-31  Bruno Haible  <bruno@clisp.org>
55513
55514         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55515         (Mathematics <math.h>): New section, add fpieee.
55516         (Input/output <stdio.h>): Add fseterr.
55517         (Mathematics <math.h>): New section, add printf-frexp.
55518         (Container data structures): Add sublist.
55519         (Core language properties): Add fpucw, inline.
55520         (Functions for greatest-width integer types <inttypes.h>): Add
55521         imaxabs, imaxdiv, inttypes.
55522         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55523         isnanl-nolibm, ldexp.
55524         (Mathematics <math.h>): New section, add printf-frexpl.
55525         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55526         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55527         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55528         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55529         (Unicode string functions): Add unistr/u*-mbtoucr.
55530         (Java): Add javacomp-script, javaexec-script.
55531         (C#): Add csharpcomp-script, csharpexec-script.
55532         (Support for building libraries and executables): Add havelib,
55533         relocatable-*.
55534         (Support for maintaining and releasing projects): Renamed from
55535         'Support for maintaining and release projects'. Add announce-gen.
55536
55537 2007-03-31  Bruno Haible  <bruno@clisp.org>
55538
55539         * README: Talk primarily about git.
55540         (git and CVS): Renamed from CVS.
55541         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55542         gnulib is available through git.
55543         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55544
55545 2007-03-30  Bruno Haible  <bruno@clisp.org>
55546
55547         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55548         * lib/poll_.h: Likewise.
55549         * lib/stat_.h: Likewise.
55550         * lib/sys_time_.h: Likewise.
55551         * lib/sysexit_.h: Likewise.
55552         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55553         * lib/stdbool_.h: Likewise.
55554         * lib/byteswap_.h: Add double-inclusion guard.
55555
55556 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55557
55558         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55559
55560 2007-03-30  Karl Berry  <karl@gnu.org>
55561
55562         * config/srclist-update: double space after USA in the license
55563         substitution, since that's how it's usually (?) written.
55564
55565 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55566
55567         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55568         reported by Bruno Haible.
55569
55570 2007-03-29  Bruno Haible  <bruno@clisp.org>
55571
55572         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55573         a bug in AIX iconv().
55574
55575 2007-03-29  Bruno Haible  <bruno@clisp.org>
55576
55577         * modules/ldexpl-tests: New file.
55578         * tests/test-ldexpl.c: New file.
55579
55580 2007-03-29  Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/ldexpl.c: Include fpucw.h.
55583         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55584         multiplication.
55585         * modules/ldexpl (Depends-on): Add fpucw.
55586
55587 2007-03-29  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/ldexpl: New file.
55590         * m4/ldexpl.m4: New file.
55591         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55592         set.
55593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55594         REPLACE_LDEXPL.
55595         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55596         REPLACE_LDEXPL.
55597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55598         gl_FUNC_LDEXPL_WORKS.
55599         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55600         * modules/mathl (Files): Remove lib/ldexpl.c.
55601         (Depends-on): Add ldexpl.
55602
55603 2007-03-29  Bruno Haible  <bruno@clisp.org>
55604
55605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55606
55607 2007-03-29  Bruno Haible  <bruno@clisp.org>
55608
55609         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55610         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55611         and possibly also HP-UX.
55612         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55613         work on AIX, IRIX, HP-UX, OSF/1.
55614         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55615         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55616         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55617         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55618         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55619         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55620
55621 2007-03-29  Bruno Haible  <bruno@clisp.org>
55622
55623         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55624
55625 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55626
55627         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55628         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55629
55630 2007-03-29  Eric Blake  <ebb9@byu.net>
55631
55632         * lib/acl-internal.h: Remove redundant include.
55633         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55634         Cygwin when a file is locked.
55635
55636 2007-03-29  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55639         file.
55640         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55641
55642 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55643
55644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55645         try to remove a parent directory if the child couldn't be removed
55646         (except for the first rmdir, which could fail because the child
55647         doesn't exist).  Problem reported by Jeff Blaine in
55648         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55649
55650 2007-03-28  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/striconveh.c (utf8conv_carefully): New function.
55653         (mem_cd_iconveh_internal): Invoke it.
55654
55655 2007-03-28  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55658         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55659         input.
55660         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55661         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55662         unistr/u8-uctomb.
55663
55664 2007-03-28  Bruno Haible  <bruno@clisp.org>
55665
55666         * modules/unistr/u8-mbtoucr: New file.
55667         * lib/unistr/u8-mbtoucr.c: New file.
55668         * modules/unistr/u16-mbtoucr: New file.
55669         * lib/unistr/u16-mbtoucr.c: New file.
55670         * modules/unistr/u16-mbtoucr: New file.
55671         * lib/unistr/u16-mbtoucr.c: New file.
55672         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55673
55674 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55675             Bruno Haible  <bruno@clisp.org>
55676
55677         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55678         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55679         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55680
55681         * m4/stdio_h.m4: Add stubs for vasprintf too.
55682
55683         * modules/stdio: Support vasprintf in sed command.
55684
55685         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55686         vasprintf.h.  Add stdio module indicator.
55687
55688         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55689         vasprintf.h.
55690
55691         * lib/vasprintf.h: File removed.
55692
55693         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55694         * lib/vasprintf.c: Ditto.
55695         * lib/xvasprintf.c: Ditto.
55696         * tests/test-vasprintf-posix.c: Ditto.
55697         * tests/test-vasprintf.c: Ditto.
55698
55699 2007-03-27  Bruno Haible  <bruno@clisp.org>
55700
55701         Make vasnprintf multithread-safe.
55702         * lib/vasnprintf.c (decimal_point_char): New function.
55703         (VASNPRINTF): Use it.
55704         Suggested by Simon Josefsson.
55705
55706 2007-03-27  Eric Blake  <ebb9@byu.net>
55707
55708         Support sub-second birthtime on cygwin.
55709         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55710         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55711         (get_stat_birthtime): Also work with st_birthtim.
55712
55713 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55716         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55717         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55718         (get_stat_birthtime_ns): Simplify compile-time tests.
55719         (get_stat_birthtime): Change the API to look like
55720         get_stat_mtime etc., except return a negative tv_nsec on error.
55721         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55722         Don't check for "spare" fields.
55723         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55724         or for struct stat.st_birthtime, as these tests aren't used.
55725         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55726
55727 2007-03-27  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/stat-time.h: Include <sys/stat.h>.
55730
55731 2007-03-27  James Youngman  <jay@gnu.org>
55732
55733         * lib/stat-time.h (get_stat_birthtime): New function for
55734           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55735         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55736           and its variants.
55737         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55738         * modules/stat-time-test: New file.
55739         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55740
55741 2007-03-26  Bruno Haible  <bruno@clisp.org>
55742
55743         Better support of signalling NaNs.
55744         * lib/atanl.c: Include isnanl.h.
55745         (atanl): Perform test for NaN at the beginning of the function and
55746         through a call to isnanl.
55747         * lib/cosl.c: Include isnanl.h.
55748         (cosl): Perform test for NaN at the beginning of the function and
55749         through a call to isnanl.
55750         * lib/ldexpl.c: Include isnanl.h.
55751         (ldexpl): Perform test for NaN through a call to isnanl.
55752         * lib/logl.c: Include isnanl.h.
55753         (logl): Perform test for NaN at the beginning of the function and
55754         through a call to isnanl.
55755         * lib/sinl.c: Include isnanl.h.
55756         (sinl): Perform test for NaN at the beginning of the function and
55757         through a call to isnanl.
55758         * lib/sqrtl.c: Include isnanl.h.
55759         (sqrtl): Perform test for NaN at the beginning of the function and
55760         through a call to isnanl.
55761         * lib/tanl.c: Include isnanl.h.
55762         (tanl): Perform test for NaN at the beginning of the function and
55763         through a call to isnanl.
55764         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55765         * modules/mathl (Depends-on): Add isnanl.
55766
55767 2007-03-26  Eric Blake  <ebb9@byu.net>
55768
55769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55770         regression in logic sense of previous patch.
55771
55772 2007-03-26  Bruno Haible  <bruno@clisp.org>
55773
55774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55775         unportable shell command "if ! ...".
55776         Reported by Ralf Wildenhues.
55777
55778 2007-03-25  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55781         <sysexits.h> file, and only add EX_CONFIG.
55782         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55783         absolute file name and whether it is sufficient. Substitute also
55784         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55785         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55786         ABSOLUTE_SYSEXITS_H into sysexits.h.
55787
55788 2007-03-25  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55791         hints is NULL.
55792
55793 2007-03-25  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55796         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55797
55798 2007-03-25  Bruno Haible  <bruno@clisp.org>
55799
55800         * lib/vasnprintf.c: Include langinfo.h.
55801         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55802         multithread-safe.
55803         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55804         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55805         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55806         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55807         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55808         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55809         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55811         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55812         Reported by Simon Josefsson.
55813
55814 2007-03-25  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55817         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55818         * modules/vasnprintf (Depends-on): Add stdint.
55819
55820 2007-03-25  Bruno Haible  <bruno@clisp.org>
55821
55822         * modules/fpieee: New file.
55823         * m4/fpieee.m4: New file.
55824         * modules/isnan-nolibm (Depends-on): Add fpieee.
55825         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55826         * modules/isnanl (Depends-on): Add fpieee.
55827
55828 2007-03-25  Bruno Haible  <bruno@clisp.org>
55829
55830         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55831
55832 2007-03-25  Bruno Haible  <bruno@clisp.org>
55833
55834         Avoid test failures on IRIX 6.5.
55835         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55836         (main): Use it.
55837         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55838         macros.
55839         (main): Use them.
55840
55841 2007-03-25  Bruno Haible  <bruno@clisp.org>
55842
55843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55844         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55845         exists but doesn't work.
55846         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55847         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55849         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55850         math.h.
55851
55852 2007-03-25  Bruno Haible  <bruno@clisp.org>
55853
55854         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55855         returns inf. Needed on IRIX 6.5.
55856
55857 2007-03-25  Bruno Haible  <bruno@clisp.org>
55858
55859         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55860         (main): Use isnanl instead of x != x idiom.
55861         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55862
55863         * tests/test-frexp.c: Include isnan.h.
55864         (main): Use isnan instead of x != x idiom.
55865         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55866
55867 2007-03-25  Bruno Haible  <bruno@clisp.org>
55868
55869         * tests/test-frexp.c (NaN): New function/macro.
55870         (main): Use it instead of 0.0 / 0.0.
55871         * tests/test-isnan.c (NaN): New function/macro.
55872         (main): Use it instead of 0.0 / 0.0.
55873         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55874         (test_function): Use it instead of 0.0 / 0.0.
55875         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55876         (test_function): Use it instead of 0.0 / 0.0.
55877         * tests/test-snprintf-posix.h (NaN): New function/macro.
55878         (test_function): Use it instead of 0.0 / 0.0.
55879         * tests/test-sprintf-posix.h (NaN): New function/macro.
55880         (test_function): Use it instead of 0.0 / 0.0.
55881         * tests/test-fprintf-posix.h (NaN): New function/macro.
55882         (test_function): Use it instead of 0.0 / 0.0.
55883         * tests/test-printf-posix.h (NaN): New function/macro.
55884         (test_function): Use it instead of 0.0 / 0.0.
55885
55886         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55887
55888 2007-03-25  Bruno Haible  <bruno@clisp.org>
55889
55890         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55891
55892 2007-03-25  Bruno Haible  <bruno@clisp.org>
55893
55894         * lib/regexec.c (merge_state_with_log): Make static.
55895
55896 2007-03-25  Bruno Haible  <bruno@clisp.org>
55897
55898         * lib/trigl.c (kernel_rem_pio2): Make static.
55899
55900 2007-03-25  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/sincosl.c (sincosl_table): Make static.
55903
55904 2007-03-25  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55907         if the compiler does not support C99.
55908
55909 2007-03-25  Bruno Haible  <bruno@clisp.org>
55910
55911         * modules/time (Makefile.am): Ensure all rule action lines start with a
55912         tab.
55913
55914 2007-03-24  Bruno Haible  <bruno@clisp.org>
55915
55916         * modules/tsearch-tests: New file.
55917         * tests/test-tsearch.sh: New file.
55918         * tests/test-tsearch.c: New file, mostly copied from glibc.
55919
55920         * modules/search-tests: New file.
55921         * tests/test-search.c: New file.
55922
55923         * modules/search: New file.
55924         * lib/search_.h: New file, incorporating lib/tsearch.h.
55925         * m4/search_h.m4: New file.
55926         * lib/tsearch.h: Remove file.
55927         * lib/tsearch.c: Include search.h instead of tsearch.h.
55928         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55929         HAVE_TSEARCH.
55930         * modules/tsearch (Files): Remove lib/tsearch.h.
55931         (Depends-on): Add search.
55932         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55933         (Include): Change tsearch.h into search.h.
55934
55935 2007-03-24  Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/fpucw: New file.
55938         * lib/fpucw.h: New file.
55939         * lib/frexp.c: Include fpucw.h.
55940         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55941         (FUNC): Use them.
55942         * lib/printf-frexp.c: Include fpucw.h.
55943         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55944         (FUNC): Use them.
55945         * lib/vasnprintf.c: Include fpucw.h.
55946         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55947         'long double' calculations.
55948         * tests/test-frexpl.c: Include fpucw.h.
55949         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55950         * tests/test-printf-frexpl.c: Include fpucw.h.
55951         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55952         * modules/frexpl (Depends-on): Add fpucw.
55953         * modules/printf-frexpl (Depends-on): Likewise.
55954         * modules/fprintf-posix (Depends-on): Likewise.
55955         * modules/snprintf-posix (Depends-on): Likewise.
55956         * modules/sprintf-posix (Depends-on): Likewise.
55957         * modules/vasnprintf-posix (Depends-on): Likewise.
55958         * modules/vasprintf-posix (Depends-on): Likewise.
55959         * modules/vfprintf-posix (Depends-on): Likewise.
55960         * modules/vsnprintf-posix (Depends-on): Likewise.
55961         * modules/vsprintf-posix (Depends-on): Likewise.
55962         * modules/frexpl-tests (Depends-on): Likewise.
55963         * modules/printf-frexpl-tests (Depends-on): Likewise.
55964
55965 2007-03-24  Bruno Haible  <bruno@clisp.org>
55966
55967         * lib/float+.h: New file.
55968         * lib/isnan.c: Include float+.h.
55969         (SIZE): New macro.
55970         (FUNC): Compare only SIZE bytes of the value.
55971         * lib/vasnprintf.c: Include float+.h.
55972         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55973         SIZEOF_LDBL or SIZEOF_DBL bytes.
55974         * modules/isnan-nolibm (Files): Add lib/float+.h.
55975         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55976         * modules/isnanl (Files): Add lib/float+.h.
55977         * modules/vasnprintf (Files): Add lib/float+.h.
55978
55979 2007-03-24  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55982         include isnanl-nolibm.h.
55983
55984 2007-03-24  Bruno Haible  <bruno@clisp.org>
55985
55986         * tests/test-read-file.c (main): Don't produce spurious output for
55987         expected situations. Make the test fail if it encountered unexpected
55988         results.
55989
55990 2007-03-24  Bruno Haible  <bruno@clisp.org>
55991
55992         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55993         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55994
55995 2007-03-24  Bruno Haible  <bruno@clisp.org>
55996
55997         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55998
55999 2007-03-24  Bruno Haible  <bruno@clisp.org>
56000
56001         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56002         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56003
56004         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56005         * modules/utf8-ucs4: Turn into a symbolic link to module
56006         unistr/u8-mbtouc.
56007
56008         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56009         utf8-ucs4-unsafe.
56010         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56011         unistr/u8-mbtouc-unsafe.
56012
56013         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56014         * modules/utf16-ucs4: Turn into a symbolic link to module
56015         unistr/u16-mbtouc.
56016
56017         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56018         utf16-ucs4-unsafe.
56019         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56020         unistr/u16-mbtouc-unsafe.
56021
56022         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56023         * modules/ucs4-utf8: Turn into a symbolic link to module
56024         unistr/u8-ubtomb.
56025
56026         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56027         * modules/ucs4-utf16: Turn into a symbolic link to module
56028         unistr/u16-ubtomb.
56029
56030 2007-03-24  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56033         Enable the function only if HAVE_INLINE.
56034         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56035         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56036         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56037         Enable the function only if HAVE_INLINE.
56038         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56039         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56040         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56041         Enable the function only if HAVE_INLINE.
56042         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56043         Enable the function only if HAVE_INLINE.
56044         * modules/utf8-ucs4: Update.
56045         * modules/utf8-ucs4-unsafe: Update.
56046         * modules/utf16-ucs4: Update.
56047         * modules/utf16-ucs4-unsafe: Update.
56048         * modules/ucs4-utf8: Update.
56049         * modules/ucs4-utf16: Update.
56050
56051 2007-03-24  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/utf8-ucs4.h: Remove file.
56054         * lib/utf8-ucs4-unsafe.h: Remove file.
56055         * lib/utf16-ucs4.h: Remove file.
56056         * lib/utf16-ucs4-unsafe.h: Remove file.
56057         * lib/ucs4-utf8.h: Remove file.
56058         * lib/ucs4-utf16.h: Remove file.
56059         * lib/unistr.h: Include their previous contents.
56060         * m4/utf-ucs4.m4: Remove file.
56061         * m4/ucs4-utf.m4: Remove file.
56062         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56063         (Depends-on): Add unistr/base.
56064         (configure.ac): Remove gl_UTF_UCS4.
56065         (Makefile.am): Update.
56066         (Include): Change to unistr.h.
56067         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56068         (Depends-on): Add unistr/base.
56069         (configure.ac): Remove gl_UTF_UCS4.
56070         (Makefile.am): Update.
56071         (Include): Change to unistr.h.
56072         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56073         (Depends-on): Add unistr/base.
56074         (configure.ac): Remove gl_UTF_UCS4.
56075         (Makefile.am): Update.
56076         (Include): Change to unistr.h.
56077         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56078         (Depends-on): Add unistr/base.
56079         (configure.ac): Remove gl_UTF_UCS4.
56080         (Makefile.am): Update.
56081         (Include): Change to unistr.h.
56082         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56083         (Depends-on): Add unistr/base.
56084         (configure.ac): Remove gl_UCS4_UTF.
56085         (Makefile.am): Update.
56086         (Include): Change to unistr.h.
56087         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56088         (Depends-on): Add unistr/base.
56089         (configure.ac): Remove gl_UCS4_UTF.
56090         (Makefile.am): Update.
56091         (Include): Change to unistr.h.
56092         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56093         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56094         utf8-ucs4-unsafe.h.
56095         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56096         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56097         utf16-ucs4-unsafe.h.
56098         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56099         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56100         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56101         * lib/unistr/u8-strchr.c: Likewise.
56102         * lib/unistr/u8-strrchr.c: Likewise.
56103         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56104         * lib/unistr/u16-strchr.c: Likewise.
56105         * lib/unistr/u16-strrchr.c: Likewise.
56106         * lib/striconveh.c: Update.
56107         * lib/linebreak.c: Update.
56108
56109 2007-03-24  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56112         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56113
56114 2007-03-22  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56117
56118 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56119
56120         * MODULES.html.sh (File system functions): New module write-any-file.
56121         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56122         * m4/write-any-file.m4: New files.
56123
56124 2007-03-23  Eric Blake  <ebb9@byu.net>
56125
56126         * gnulib-tool: Rearrange space-tab sequences, since some editors
56127         like to eat them.
56128
56129 2007-03-23  Eric Blake  <ebb9@byu.net>
56130
56131         * lib/version-etc.c (version_etc_va): Update license wording to
56132         be more concise.  Recommended by Richard Stallman.
56133
56134 2007-03-22  Bruno Haible  <bruno@clisp.org>
56135
56136         * lib/poll.c (MSG_PEEK): New fallback definition.
56137
56138 2007-03-22  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56141         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56142         (main): Update.
56143         Fixes a compilation error on BeOS.
56144
56145 2007-03-22  Bruno Haible  <bruno@clisp.org>
56146
56147         * modules/frexpl-tests: New file.
56148         * tests/test-frexpl.c: New file.
56149
56150         * modules/frexpl: New file.
56151         * m4/frexpl.m4: New file.
56152         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56153         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56155         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56156         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56157         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56158
56159 2007-03-22  Bruno Haible  <bruno@clisp.org>
56160
56161         * lib/frexpl.c: Share code with lib/frexp.c.
56162         * modules/mathl (Files): Add lib/frexp.c.
56163         (Depends-on): Add isnanl-nolibm.
56164
56165 2007-03-22  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/printf-frexp (Files): Add m4/frexp.m4.
56168         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56169         only if the found frexp function actually works.
56170
56171 2007-03-22  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/frexp.c: Remove older implementation that uses divisions.
56174
56175 2007-03-21  Bruno Haible  <bruno@clisp.org>
56176
56177         * modules/frexp-tests: New file.
56178         * tests/test-frexp.c: New file.
56179
56180         * modules/frexp: New file.
56181         * lib/frexp.c: New file.
56182         * m4/frexp.m4: New file.
56183         * lib/math_.h (frexp): New declaration.
56184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56185         REPLACE_FREXP.
56186         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56187
56188 2007-03-21  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/isnanl-tests: New file.
56191         * tests/test-isnanl.c: New file.
56192
56193         * modules/isnanl: New file.
56194         * lib/isnanl.h: New file.
56195         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56196         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56197         gl_FUNC_ISNANL_WORKS.
56198         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56199         New macros.
56200
56201 2007-03-21  Bruno Haible  <bruno@clisp.org>
56202
56203         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56204         lib/isnanl.h.
56205         (Include): Update.
56206         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56207         * lib/vasnprintf.c: Update.
56208         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56209         tests/test-isnanl.h, remove tests/test-isnanl.c.
56210         (Makefile.am): Update.
56211         * tests/test-isnanl-nolibm.c: New file.
56212         * tests/test-isnanl.h: New file.
56213         * tests/test-isnanl.c: Remove file.
56214
56215 2007-03-21  Jim Meyering  <jim@meyering.net>
56216
56217         When trying to open ".", treat ESTALE like EACCES.
56218         * lib/savewd.c (savewd_save): Resort to forking not just upon
56219         failure with EACCES, but also when errno is ESTALE.
56220
56221 2007-03-20  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56224         Needed on AIX 5.1. Reported by Matthew Woehlke.
56225
56226 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56227
56228         Suggestions by Bruno Haible:
56229         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56230         our own.
56231         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56232         * modules/acl (Depends-on): Add gettext.
56233
56234 2007-03-19  Bruno Haible  <bruno@clisp.org>
56235
56236         * modules/iconvme: Remove file.
56237         * lib/iconvme.h: Remove file.
56238         * lib/iconvme.c: Remove file.
56239         * m4/iconvme.m4: Remove file.
56240
56241 2007-03-19  Bruno Haible  <bruno@clisp.org>
56242
56243         * doc/relocatable-maint.texi: Break long shell script line.
56244         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56245
56246 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56249         handle file_has_acl.
56250         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56251         * lib/acl.c: Move header inclusions and related macro defns into
56252         lib/acl-internal.h.
56253         (S_ISLNK): Remove defn, since that's now done for us.
56254         (file_has_acl): Move to lib/file-has-acl.c.
56255         Call acl_trivial if available.  This is the crucial part of the fix.
56256         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56257         shared within the library.  Rewrite a bit, partly to make it compatible
56258         with the GNU coding style.
56259         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56260         Remove unnecessary double-quotes.
56261         Don't test for acl_to_text; the build will catch that.
56262         Replace acl_entries if it doesn't exist and it is needed.
56263         Check for -lsec and acl_trivial (as used on Solaris 10).
56264         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56265         lib/file-has-acl.c.
56266         (Depends-on): Add sys_stat, for S_ISLNK.
56267
56268 2007-03-19  Ben Pfaff  <blp@gnu.org>
56269
56270         * doc/gnulib.texi: Fix typos.
56271         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56272
56273 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56276         If size is zero here, buf must be zero.
56277
56278 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56279
56280         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56281         <bruno@clisp.org>.
56282
56283 2007-03-18  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56286         Suggested by Eric Blake.
56287
56288 2007-03-18  Ben Pfaff  <blp@gnu.org>
56289
56290         * doc/relocatable.texi: Recommend using as prefix a directory
56291         that does not exist and will never be created.  Based on
56292         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56293         and others.
56294
56295 2007-03-17  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/fchownat.c: Include lchown.h.
56298
56299 2007-03-17  Bruno Haible  <bruno@clisp.org>
56300
56301         Fix endless loop when the given allocated size was > INT_MAX.
56302         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56303         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56304         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56305         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56306         * lib/sprintf.c (sprintf): Likewise.
56307
56308 2007-03-17  Bruno Haible  <bruno@clisp.org>
56309
56310         * tests/test-argp-2.sh (func_compare): Output a context diff.
56311
56312 2007-03-17  Bruno Haible  <bruno@clisp.org>
56313
56314         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56315         locale's decimal-point character.
56316
56317 2007-03-17  Bruno Haible  <bruno@clisp.org>
56318
56319         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56320         before comparing it. Needed because on some platforms (e.g. x86) a
56321         'long double' occupies less bytes than sizeof (long double).
56322
56323 2007-03-17  Bruno Haible  <bruno@clisp.org>
56324
56325         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56326         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56327         * tests/test-getaddrinfo.c (simple): Likewise.
56328         * tests/test-read-file.c (main): Likewise.
56329
56330 2007-03-17  Bruno Haible  <bruno@clisp.org>
56331
56332         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56333
56334 2007-03-17  Bruno Haible  <bruno@clisp.org>
56335
56336         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56337         unused variable.
56338
56339 2007-03-17  Bruno Haible  <bruno@clisp.org>
56340
56341         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56342         * tests/test-c-strncasecmp.c: Likewise.
56343
56344 2007-03-17  Bruno Haible  <bruno@clisp.org>
56345
56346         * modules/stdlib (Depends-on): Add unistd.
56347         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56348         Needed for MacOS X 10.3.
56349
56350 2007-03-17  Bruno Haible  <bruno@clisp.org>
56351
56352         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56353
56354 2007-03-17  Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56357
56358 2007-03-17  Bruno Haible  <bruno@clisp.org>
56359
56360         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56361         to reflect files copied from gnulib (with or without modifications).
56362         Suggested by Jim Meyering.
56363
56364 2007-03-17  Eric Blake  <ebb9@byu.net>
56365
56366         * NEWS: Document stdlib change from 2007-02-18.
56367
56368 2007-03-17  Jim Meyering  <jim@meyering.net>
56369
56370         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56371         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56372         someone uses a name containing shell meta-characters.
56373         Reported by Alfred M. Szmidt.
56374
56375         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56376
56377 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56378
56379         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56380         and copy gettext configuration files only if configure.ac contains
56381         a use of AM_GNU_GETTEXT_VERSION.
56382
56383 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56384
56385         * build-aux/bootstrap (gnulib_name): New variable.
56386         (gnulib_tool_options): Use it.
56387
56388 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56389
56390         * tests/test-des.c: Use new namespace.
56391
56392 2007-03-15  Bruno Haible  <bruno@clisp.org>
56393
56394         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56395         Reported by James Youngman <jay@gnu.org>.
56396
56397 2007-03-15  Bruno Haible  <bruno@clisp.org>
56398
56399         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56400         declared prototype. Needed with cc on OSF/1 5.1.
56401
56402 2007-03-15  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56405         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56406         (struct gl_list_implementation): Add dispose_fn argument to the
56407         'create_empty', 'create' methods.
56408         (struct gl_list_impl_base): Add field 'dispose_fn'.
56409         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56410         argument.
56411         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56412         dispose_fn argument.
56413         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56414         dispose_fn on the dropped values.
56415         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56416         dispose_fn argument.
56417         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56418         dropped values.
56419         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56420         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56421         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56422         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56423         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56424         argument.
56425         (gl_tree_list_free): Call dispose_fn on the dropped values.
56426         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56427         the dropped values.
56428         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56429         Add dispose_fn argument.
56430         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56431         Call dispose_fn on the dropped values.
56432         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56433         Add dispose_fn argument.
56434         (gl_sublist_create): Initialize the 'dispose_fn' field.
56435         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56436         * tests/test-array_list.c (main): Update.
56437         * tests/test-carray_list.c (main): Update.
56438         * tests/test-avltree_list.c (main): Update.
56439         * tests/test-rbtree_list.c (main): Update.
56440         * tests/test-avltreehash_list.c (main): Update.
56441         * tests/test-rbtreehash_list.c (main): Update.
56442         * tests/test-linked_list.c (main): Update.
56443         * tests/test-linkedhash_list.c (main): Update.
56444         * tests/test-array_oset.c (main): Update.
56445
56446 2007-03-15  Bruno Haible  <bruno@clisp.org>
56447
56448         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56449         (gl_oset_create_empty): Add dispose_fn argument.
56450         (struct gl_oset_implementation): Add dispose_fn argument to
56451         'create_empty' method.
56452         (struct gl_oset_impl_base): Add dispose_fn field.
56453         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56454         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56455         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56456         values.
56457         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56458         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56459         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56460         dropped value.
56461         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56462         dropped value.
56463         * tests/test-array_oset.c (main): Update.
56464         * tests/test-avltree_oset.c (main): Update.
56465         * tests/test-rbtree_oset.c (main): Update.
56466         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56467
56468 2007-03-13  Bruno Haible  <bruno@clisp.org>
56469
56470         * tests/test-stdbool.c (i): Update after last patch.
56471
56472 2007-03-12  Bruno Haible  <bruno@clisp.org>
56473
56474         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56475         the iswprint macro. Needed on Solaris 2.5.1.
56476
56477 2007-03-12  Bruno Haible  <bruno@clisp.org>
56478
56479         * tests/test-printf-frexp.c (main): Declare x as volatile.
56480
56481 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56482
56483         * doc/gnulib.texi (Build robot for gnulib): New section.
56484
56485 2007-03-12  Jim Meyering  <jim@meyering.net>
56486
56487         * build-aux/bootstrap: New file.
56488         * build-aux/bootstrap.conf: New file, from coreutils.
56489
56490 2007-03-11  Bruno Haible  <bruno@clisp.org>
56491
56492         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56493
56494 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56495
56496         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56497         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56498         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56499
56500 2007-03-11  Bruno Haible  <bruno@clisp.org>
56501
56502         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56503         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56504
56505 2007-03-11  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56508         formula. Needed for SunPRO C 5.0.
56509
56510 2007-03-11  Bruno Haible  <bruno@clisp.org>
56511
56512         * modules/long-options (Depends-on): Add getopt.
56513
56514 2007-03-11  Bruno Haible  <bruno@clisp.org>
56515
56516         * modules/modechange (Depends-on): Add stdbool.
56517
56518 2007-03-11  Bruno Haible  <bruno@clisp.org>
56519
56520         * modules/i-ring (Depends-on): Add stdbool.
56521
56522 2007-03-11  Bruno Haible  <bruno@clisp.org>
56523
56524         * modules/gc-des (Depends-on): Add stdbool.
56525
56526 2007-03-11  Bruno Haible  <bruno@clisp.org>
56527
56528         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56529
56530 2007-03-11  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56533
56534 2007-03-11  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56537
56538 2007-03-11  Bruno Haible  <bruno@clisp.org>
56539
56540         * lib/vasnprintf.c (sprintf): Undefine.
56541
56542 2007-03-11  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56545         initializers in SunPRO C and Compaq C compilers.
56546
56547 2007-03-11  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56550         decrementing code ANSI C compliant.
56551
56552 2007-03-11  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56555         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56556
56557 2007-03-11  Bruno Haible  <bruno@clisp.org>
56558
56559         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56560         <stdbool.h> substitute doesn't pass.
56561
56562 2007-03-11  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56565
56566 2007-03-11  Bruno Haible  <bruno@clisp.org>
56567
56568         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56569         script, for submission to autobuild.josefsson.org.
56570
56571 2007-03-10  Bruno Haible  <bruno@clisp.org>
56572
56573         * modules/canonicalize-lgpl-tests: New file.
56574         * tests/test-canonicalize-lgpl.sh: New file.
56575         * tests/test-canonicalize-lgpl.c: New file.
56576
56577         * modules/c-strcase-tests: New file.
56578         * tests/test-c-strcase.sh: New file.
56579         * tests/test-c-strcasecmp.c: New file.
56580         * tests/test-c-strncasecmp.c: New file.
56581
56582         * modules/atexit-tests: New file.
56583         * tests/test-atexit.sh: New file.
56584         * tests/test-atexit.c: New file.
56585
56586 2007-03-10  Bruno Haible  <bruno@clisp.org>
56587
56588         * tests/test-binary-io.sh: Use temporary filenames that are not so
56589         likely to clash with those of other tests (in a parallel make).
56590         * tests/test-binary-io.c: Likewise.
56591
56592 2007-03-10  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56595         fallback; use #error instead.
56596         Suggested by Simon Josefsson.
56597
56598 2007-03-10  Bruno Haible  <bruno@clisp.org>
56599
56600         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56601         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56602         first and the last.
56603
56604 2007-03-10  Bruno Haible  <bruno@clisp.org>
56605
56606         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56607
56608 2007-03-10  Bruno Haible  <bruno@clisp.org>
56609
56610         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56611         "make distcheck".
56612         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56613         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56614         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56615
56616 2007-03-10  Bruno Haible  <bruno@clisp.org>
56617
56618         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56619         variable.
56620         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56621         variable.
56622
56623 2007-03-09  Eric Blake  <ebb9@byu.net>
56624         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56625
56626         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56627         types are not being provided by gnulib.
56628         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56629         types are supported.
56630
56631 2007-03-10  Bruno Haible  <bruno@clisp.org>
56632
56633         * lib/stdio_.h (__attribute__): New macro.
56634         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56635         vsprintf): Specify __attribute__ __format__ for GCC.
56636         Suggested by Eric Blake.
56637
56638 2007-03-09  Bruno Haible  <bruno@clisp.org>
56639
56640         * modules/printf-posix-tests: New file.
56641         * tests/test-printf-posix.sh: New file.
56642         * tests/test-printf-posix.c: New file.
56643
56644         * modules/printf-posix: New file.
56645         * lib/printf.c: New file.
56646         * m4/printf-posix-rpl.m4: New file.
56647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56648         REPLACE_PRINTF.
56649         * lib/stdio_.h (printf): New declaration.
56650         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56651         ____strfmon____): New macros.
56652         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56653         REPLACE_PRINTF.
56654
56655 2007-03-09  Bruno Haible  <bruno@clisp.org>
56656
56657         * tests/test-vasnprintf-posix2.sh: New file.
56658         * tests/test-vasnprintf-posix2.c: New file.
56659         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56660         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56661         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56662
56663         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56664         a locale dependent decimal point, rather than always '.'.
56665
56666 2007-03-09  Eric Blake  <ebb9@byu.net>
56667
56668         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56669         spite of platforms like Tandem/NSK that define it to -1.
56670
56671 2007-03-08  Bruno Haible  <bruno@clisp.org>
56672
56673         * modules/vprintf-posix-tests: New file.
56674         * tests/test-vprintf-posix.sh: New file.
56675         * tests/test-vprintf-posix.c: New file.
56676         * tests/test-printf-posix.h: New file.
56677
56678         * modules/vprintf-posix: New file.
56679         * lib/vprintf.c: New file.
56680         * m4/vprintf-posix.m4: New file.
56681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56682         REPLACE_VPRINTF.
56683         * lib/stdio_.h (vprintf): New declaration.
56684         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56685         REPLACE_VPRINTF.
56686
56687 2007-03-08  Bruno Haible  <bruno@clisp.org>
56688
56689         * modules/fprintf-posix-tests: New file.
56690         * tests/test-fprintf-posix.sh: New file.
56691         * tests/test-fprintf-posix.c: New file.
56692
56693         * modules/fprintf-posix: New file.
56694         * lib/fprintf.c: New file.
56695         * m4/fprintf-posix.m4: New file.
56696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56697         REPLACE_FPRINTF.
56698         * lib/stdio_.h (fprintf): New declaration.
56699         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56700         REPLACE_FPRINTF.
56701
56702 2007-03-08  Bruno Haible  <bruno@clisp.org>
56703
56704         * modules/vfprintf-posix-tests: New file.
56705         * tests/test-vfprintf-posix.sh: New file.
56706         * tests/test-vfprintf-posix.c: New file.
56707         * tests/test-fprintf-posix.h: New file.
56708         * tests/test-fprintf-posix.out: New file.
56709
56710         * modules/vfprintf-posix: New file.
56711         * lib/vfprintf.c: New file.
56712         * m4/vfprintf-posix.m4: New file.
56713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56714         REPLACE_VFPRINTF.
56715         * lib/stdio_.h (vfprintf): New declaration.
56716         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56717         REPLACE_VFPRINTF.
56718
56719 2007-03-08  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56722
56723 2007-03-08  Bruno Haible  <bruno@clisp.org>
56724
56725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56726         instead of 'expr' invocations.
56727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56732         Suggested by Paul Eggert.
56733
56734 2007-03-08  Bruno Haible  <bruno@clisp.org>
56735
56736         * modules/fseterr-tests: New file.
56737         * tests/test-fseterr.c: New file.
56738
56739         * modules/fseterr: New file.
56740         * lib/fseterr.h: New file.
56741         * lib/fseterr.c: New file.
56742
56743 2007-03-08  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56746         * lib/getopt_.h: Likewise.
56747         * lib/mbswidth.h: Likewise.
56748         * lib/setenv.h: Likewise.
56749         * lib/vasnprintf.h: Likewise.
56750         * lib/vasprintf.h: Likewise.
56751         * lib/verror.h: Likewise.
56752         * lib/xsetenv.h: Likewise.
56753         * lib/xvasprintf.h: Likewise.
56754
56755 2007-03-08  Jim Meyering  <jim@meyering.net>
56756
56757         * users.txt: Add parted.
56758
56759         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56760
56761 2007-03-07  Bruno Haible  <bruno@clisp.org>
56762
56763         * m4/printf.m4: Make the shell script snippets copy&pastable.
56764
56765 2007-03-02  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/netinet_in_.h: New file.
56768         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56769         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56770         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56771         (Depends-on): Add absolute-header.
56772         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56773         into netinet/in.h.
56774
56775 2007-03-03  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/sys_select_.h: New file.
56778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56779         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56780         * modules/sys_select (Files): Add lib/sys_select_.h.
56781         (Depends-on): Add absolute-header.
56782         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56783         into sys/select.h.
56784
56785 2007-03-02  Bruno Haible  <bruno@clisp.org>
56786
56787         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56788         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56789         values.
56790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56791         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56792         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56793         * modules/sys_socket (Depends-on): Add absolute-header.
56794         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56795         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56796         (Include): Remove requirement of inclusion of <sys/types.h>.
56797
56798 2007-03-02  Bruno Haible  <bruno@clisp.org>
56799
56800         * lib/byteswap_.h (bswap_32): Fix formula.
56801
56802 2007-03-06  Bruno Haible  <bruno@clisp.org>
56803
56804         * modules/sprintf-posix-tests: New file.
56805         * tests/test-sprintf-posix.c: New file.
56806
56807         * modules/sprintf-posix: New file.
56808         * lib/sprintf.c: New file.
56809         * m4/sprintf-posix.m4: New file.
56810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56811         REPLACE_SPRINTF.
56812         * lib/stdio_.h (sprintf): New declaration.
56813         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56814         REPLACE_SPRINTF.
56815
56816 2007-03-06  Bruno Haible  <bruno@clisp.org>
56817
56818         * modules/vsprintf-posix-tests: New file.
56819         * tests/test-vsprintf-posix.c: New file.
56820         * tests/test-sprintf-posix.h: New file.
56821
56822         * modules/vsprintf-posix: New file.
56823         * lib/vsprintf.c: New file.
56824         * m4/vsprintf-posix.m4: New file.
56825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56826         REPLACE_VSPRINTF.
56827         * lib/stdio_.h (vsprintf): New declaration.
56828         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56829         REPLACE_VSPRINTF.
56830
56831 2007-03-06  Bruno Haible  <bruno@clisp.org>
56832
56833         * modules/vsnprintf (Depend-on): Remove minmax.
56834
56835 2007-03-06  Bruno Haible  <bruno@clisp.org>
56836
56837         * modules/snprintf-posix-tests: New file.
56838         * tests/test-snprintf-posix.c: New file.
56839
56840         * modules/snprintf-posix: New file.
56841         * m4/snprintf-posix.m4: New file.
56842         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56843         gl_FUNC_SNPRINTF.
56844         (gl_FUNC_SNPRINTF): Invoke it.
56845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56846         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56847         is set.
56848         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56849
56850 2007-03-06  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/vsnprintf-posix-tests: New file.
56853         * tests/test-vsnprintf-posix.c: New file.
56854         * tests/test-snprintf-posix.h: New file.
56855
56856         * modules/vsnprintf-posix: New file.
56857         * m4/vsnprintf-posix.m4: New file.
56858         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56859         gl_FUNC_VSNPRINTF.
56860         (gl_FUNC_VSNPRINTF): Invoke it.
56861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56862         * lib/stdio_.h (vsnprintf): Define as a replacement if
56863         REPLACE_VSNPRINTF is set.
56864         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56865
56866 2007-03-06  Bruno Haible  <bruno@clisp.org>
56867
56868         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56870
56871 2007-03-06  Bruno Haible  <bruno@clisp.org>
56872
56873         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56874         (asinl): Declare also if HAVE_DECL_ASINL is set.
56875         (atanl): Declare also if HAVE_DECL_ATANL is set.
56876         (ceill): Declare also if HAVE_DECL_CEILL is set.
56877         (cosl): Declare also if HAVE_DECL_COSL is set.
56878         (expl): Declare also if HAVE_DECL_EXPL is set.
56879         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56880         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56881         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56882         (logl): Declare also if HAVE_DECL_LOGL is set.
56883         (sinl): Declare also if HAVE_DECL_SINL is set.
56884         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56885         (tanl): Declare also if HAVE_DECL_TANL is set.
56886         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56888         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56889         declaration of frexpl, ldexpl.
56890         * modules/printf-frexpl (Depends-on): Add math.
56891         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56892
56893 2007-03-05  Bruno Haible  <bruno@clisp.org>
56894
56895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56896         frexpl and ldexpl are declared.
56897         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56898
56899 2007-03-05  Bruno Haible  <bruno@clisp.org>
56900
56901         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56902         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56903
56904 2007-03-05  Bruno Haible  <bruno@clisp.org>
56905
56906         * lib/stdio_.h: Include <stddef.h>.
56907
56908 2007-03-05  Bruno Haible  <bruno@clisp.org>
56909
56910         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56911
56912 2007-03-05  Bruno Haible  <bruno@clisp.org>
56913
56914         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56915         NetBSD 4, from Ralf Wildenhues.
56916
56917 2007-03-04  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/vasprintf.h: Update #if logic for the case when the functions
56920         exist but are overridden.
56921
56922 2007-03-04  Bruno Haible  <bruno@clisp.org>
56923
56924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56925         implementations: glibc-2.4 and MacOS X 10.3.
56926         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56927         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56928         * tests/test-vasprintf-posix.c (test_function): Likewise.
56929
56930 2007-03-04  Bruno Haible  <bruno@clisp.org>
56931
56932         * modules/vasprintf-posix-tests: New file.
56933         * tests/test-vasprintf-posix.c: New file.
56934
56935         * modules/vasprintf-posix: New file.
56936         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56937         defined.
56938         * m4/vasprintf-posix.m4: New file.
56939         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56940         gl_FUNC_VASPRINTF.
56941         (gl_FUNC_VASPRINTF): Invoke it.
56942         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56943         here.
56944         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56945
56946 2007-03-04  Bruno Haible  <bruno@clisp.org>
56947
56948         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56949         REPLACE_GETTIMEOFDAY.
56950         * modules/sys_time (Makefile.am): Likewise.
56951         * m4/sys_time_h.m4: Likewise.
56952         * m4/gettimeofday.m4: Likewise.
56953
56954 2007-03-04  Bruno Haible  <bruno@clisp.org>
56955
56956         * modules/vasnprintf-posix-tests: New file.
56957         * tests/test-vasnprintf-posix.c: New file.
56958
56959         * modules/vasnprintf-posix: New file.
56960         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56961         printf-frexpl.h.
56962         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56963         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56964         REPLACE_VASNPRINTF is defined.
56965         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56966         gl_FUNC_VASNPRINTF.
56967         (gl_FUNC_VASNPRINTF): Invoke it.
56968         * m4/vasnprintf-posix.m4: New file.
56969         * m4/printf.m4: New file.
56970
56971 2007-03-04  Bruno Haible  <bruno@clisp.org>
56972
56973         Compile progreloc.c only if --enable-relocatable is specified.
56974         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56975         if --enable-relocatable was specified.
56976         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56977         lib_SOURCES.
56978
56979 2007-03-04  Jim Meyering  <jim@meyering.net>
56980
56981         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56982         Use it consistently, rather than enumerating errno constants.
56983
56984 2007-03-04  Bruno Haible  <bruno@clisp.org>
56985
56986         * modules/xvasprintf-tests: New file.
56987         * tests/test-xvasprintf.c: New file.
56988
56989         * modules/vasprintf-tests: New file.
56990         * tests/test-vasprintf.c: New file.
56991
56992         * modules/vasnprintf-tests: New file.
56993         * tests/test-vasnprintf.c: New file.
56994
56995         * modules/vsnprintf-tests: New file.
56996         * tests/test-vsnprintf.c: New file.
56997
56998         * modules/snprintf-tests: New file.
56999         * tests/test-snprintf.c: New file.
57000
57001 2007-03-04  Bruno Haible  <bruno@clisp.org>
57002
57003         Compile relocatable.c only if --enable-relocatable is specified.
57004         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57005         gl_RELOCATABLE_LIBRARY.
57006         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57007         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57008         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57009         gl_RELOCATABLE_LIBRARY.
57010         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57011         (Makefile.am): Remove lib_SOURCES.
57012         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57013         gl_RELOCATABLE_LIBRARY.
57014         (Makefile.am): Remove lib_SOURCES.
57015         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57016         always.
57017         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57018         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57019
57020 2007-03-04  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/argmatch-tests: New file.
57023         * tests/test-argmatch.c: New file.
57024
57025         * tests/test-allocsa.c (main): Halve the number of loop runs.
57026
57027         * modules/alloca-opt-tests: New file.
57028         * tests/test-alloca-opt.c: New file.
57029
57030 2007-03-04  Jim Meyering  <jim@meyering.net>
57031
57032         Work around difference between Linux ACLs and Solaris 10 ZFS.
57033         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57034         for EINVAL.
57035
57036 2007-03-03  Bruno Haible  <bruno@clisp.org>
57037
57038         * modules/relocatable-prog (Depends-on): Add back progreloc's
57039         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57040
57041 2007-03-03  Bruno Haible  <bruno@clisp.org>
57042
57043         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57044         * modules/relocatable-lib: New file.
57045
57046 2007-03-03  Bruno Haible  <bruno@clisp.org>
57047
57048         * modules/relocatable-prog: Renamed from modules/relocatable.
57049         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57050
57051 2007-03-03  Bruno Haible  <bruno@clisp.org>
57052
57053         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57054         m4/relocatable-lib.m4.
57055         (Depends-on): Remove 'relocatable'.
57056         (configure.ac): Add gl_RELOCATABLE_NOP.
57057
57058 2007-03-03  Bruno Haible  <bruno@clisp.org>
57059
57060         * modules/relocatable-prog-wrapper: New file.
57061         * modules/relocatable (Depends-on): Add it. Remove all other
57062         dependencies except progname.
57063         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57064
57065         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57066         (gl_FUNC_STRERROR): Nop.
57067         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57068
57069         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57070         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57071
57072         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57073         (gl_FUNC_READLINK): Update.
57074
57075         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57076
57077 2007-03-03  Bruno Haible  <bruno@clisp.org>
57078
57079         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57080         * modules/xreadlink (Depends-on): Add unistd.
57081         * modules/xreadlink-with-size (Depends-on): Likewise.
57082
57083 2007-03-03  Bruno Haible  <bruno@clisp.org>
57084
57085         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57086         extracted from gt_FUNC_SETENV.
57087         (gt_FUNC_SETENV): Remove macro.
57088         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57089         remove gt_FUNC_SETENV.
57090
57091 2007-03-03  Bruno Haible  <bruno@clisp.org>
57092
57093         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57094         ENABLE_RELOCATABLE here.
57095         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57096
57097 2007-03-03  Bruno Haible  <bruno@clisp.org>
57098
57099         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57100         * tests/test-rbtreehash_list.c: Include progname.h.
57101         (main): Call set_program_name.
57102
57103         * modules/rbtree-oset-tests (Depends-on): Add progname.
57104         * tests/test-rbtree_oset.c: Include progname.h.
57105         (main): Call set_program_name.
57106
57107         * modules/rbtree-list-tests (Depends-on): Add progname.
57108         * tests/test-rbtree_list.c: Include progname.h.
57109         (main): Call set_program_name.
57110
57111         * modules/linked-list-tests (Depends-on): Add progname.
57112         * tests/test-linked_list.c: Include progname.h.
57113         (main): Call set_program_name.
57114
57115 2007-03-03  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57118         All uses of __restrict changed to _Restrict_.
57119         * lib/glob_.h (__restrict): Remove macro.
57120
57121 2007-03-02  Bruno Haible  <bruno@clisp.org>
57122
57123         * modules/gettext (configure.ac): Require gettext infrastructure
57124         from version 0.16.1.
57125
57126 2007-03-02  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/linkedhash-list-tests (Depends-on): Add progname.
57129         * tests/test-linkedhash_list.c: Include progname.h.
57130         (main): Call set_program_name.
57131
57132         * modules/carray-list-tests (Depends-on): Add progname.
57133         * tests/test-carray_list.c: Include progname.h.
57134         (main): Call set_program_name.
57135
57136         * modules/avltreehash-list-tests (Depends-on): Add progname.
57137         * tests/test-avltreehash_list.c: Include progname.h.
57138         (main): Call set_program_name.
57139
57140         * modules/avltree-oset-tests (Depends-on): Add progname.
57141         * tests/test-avltree_oset.c: Include progname.h.
57142         (main): Call set_program_name.
57143
57144         * modules/avltree-list-tests (Depends-on): Add progname.
57145         * tests/test-avltree_list.c: Include progname.h.
57146         (main): Call set_program_name.
57147
57148         * modules/array-oset-tests (Depends-on): Add progname.
57149         * tests/test-array_oset.c: Include progname.h.
57150         (main): Call set_program_name.
57151
57152         * modules/array-list-tests (Depends-on): Add progname.
57153         * tests/test-array_list.c: Include progname.h.
57154         (main): Call set_program_name.
57155
57156         * modules/argp-tests (Depends-on): Add progname.
57157         * tests/test-argp.c: Include argp.h first. Include progname.h.
57158         (main): Call set_program_name.
57159
57160 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57161
57162         * doc/gnulib-tool.texi (Initial import): Reword description of
57163         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57164         limited effect even if defined after the first system include.
57165
57166 2007-03-01  Bruno Haible  <bruno@clisp.org>
57167
57168         * build-aux/config.libpath: Update to libtool-1.5.22.
57169         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57170
57171 2007-03-01  Bruno Haible  <bruno@clisp.org>
57172
57173         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57174         foo_CFLAGS.
57175         Reported by Ralf Wildenhues.
57176
57177 2007-03-01  Bruno Haible  <bruno@clisp.org>
57178
57179         * build-aux/install-reloc: Remove object files left over by some
57180         compilers.
57181         Reported by Ralf Wildenhues.
57182
57183 2007-03-01  Bruno Haible  <bruno@clisp.org>
57184
57185         * build-aux/install-reloc: Break long lines.
57186
57187 2007-03-01  Bruno Haible  <bruno@clisp.org>
57188
57189         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57190         Reported by Ralf Wildenhues.
57191
57192 2007-03-01  Bruno Haible  <bruno@clisp.org>
57193
57194         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57195         include ordering constraints.
57196
57197 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57198
57199         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57201         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57202         as another example.
57203         * lib/time_.h: Fix misspelling.
57204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57205         Require gl_HEADER_TIME_H_DEFAULTS.
57206         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57207         * m4/time_r.m4 (gl_TIME_R): Likewise.
57208         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57209
57210 2007-03-01  Bruno Haible  <bruno@clisp.org>
57211
57212         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57213         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57214
57215 2007-03-01  Jim Meyering  <jim@meyering.net>
57216
57217         * modules/xreadlink (Maintainer): Add my name.
57218         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57219
57220 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57221             Bruno Haible  <bruno@clisp.org>
57222
57223         * build-aux/install-reloc: Compile also c-ctype.c.
57224         * build-aux/relocatable.sh.in: New file.
57225         * doc/relocatable.texi: New file.
57226         * doc/relocatable-maint.texi: New file.
57227         * doc/gnulib.texi: Include relocatable-maint.texi.
57228         * lib/progreloc.c: Include unistd.h unconditionally.
57229         * lib/relocwrapper.c: Include unistd.h unconditionally.
57230         Include c-ctype.h.
57231         (add_dotbin): Use c_tolower.
57232         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57233         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57234         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57235         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57236         to m4/relocatable-lib.m4.
57237         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57238         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57239         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57240         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57241         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57242         * modules/relocatable: New file.
57243         * modules/relocatable-lib: New file.
57244         * modules/relocatable-script: New file.
57245
57246 2007-02-28  Bruno Haible  <bruno@clisp.org>
57247
57248         Import --enable-relocatable infrastructure.
57249         * build-aux/config.libpath: New file, from GNU gettext.
57250         * build-aux/install-reloc: New file, from GNU gettext.
57251         * build-aux/reloc-ldflags: New file, from GNU gettext.
57252         * lib/relocatable.h: New file, from GNU gettext.
57253         * lib/relocatable.c: New file, from GNU gettext.
57254         * lib/relocwrapper.c: New file, from GNU gettext.
57255         * m4/relocatable.m4: New file, from GNU gettext.
57256
57257 2007-02-28  Bruno Haible  <bruno@clisp.org>
57258
57259         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57260
57261         * modules/xreadlink: New file, from GNU gettext with modifications.
57262         * lib/xreadlink.c: New file, from GNU gettext.
57263         * lib/xreadlink.h: Add comments.
57264         (xreadlink): New declaration.
57265
57266         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57267         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57268         lib/xreadlink-with-size.c.
57269         (configure.ac): Remove gl_XREADLINK invocation.
57270         (Makefile.am): Augment lib_SOURCES.
57271         * m4/xreadlink.m4: Remove file.
57272         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57273         (xreadlink_with_size): Renamed from xreadink.
57274         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57275         * modules/canonicalize (Depends-on): Replace xreadlink with
57276         xreadlink-with-size.
57277         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57278
57279 2007-02-25  Jim Meyering  <jim@meyering.net>
57280
57281         * build-aux/announce-gen: When complaining about excess arguments,
57282         list them.
57283
57284 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * README: Document signed integer overflow situation more
57287         accurately.
57288
57289 2007-02-25  Bruno Haible  <bruno@clisp.org>
57290
57291         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57292         'a' or 'A' conversion.
57293
57294 2007-02-25  Bruno Haible  <bruno@clisp.org>
57295
57296         * modules/filename: Renamed from modules/pathname.
57297         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57298         lib/concatpath.c with lib/concat-filename.c.
57299         (Makefile.am): Update.
57300         (Include): Replace pathname.h with filename.h.
57301         * lib/filename.h: Renamed from lib/pathname.h.
57302         (concatenated_filename): Renamed from concatenated_pathname.
57303         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57304         (concatenated_filename): Renamed from concatenated_pathname.
57305         * lib/findprog.c: Include filename.h instead of pathname.h.
57306         (find_in_path): Update.
57307         * lib/javacomp.c: Include filename.h instead of pathname.h.
57308         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57309         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57310         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57311         is_oldgcj_14_13_usable, is_javac_usable): Update.
57312         * lib/javaexec.c: Include filename.h instead of pathname.h.
57313         (execute_java_class): Update.
57314         * modules/findprog: Update.
57315         * modules/javacomp: Update.
57316         * modules/javaexec: Update.
57317         * MODULES.html.sh (File system functions): Add 'filename', remove
57318         'pathname'.
57319
57320 2007-02-25  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/printf-frexpl-tests: New file.
57323         * tests/test-printf-frexpl.c: New file.
57324
57325         * modules/printf-frexpl: New file.
57326         * lib/printf-frexpl.h: New file.
57327         * lib/printf-frexpl.c: New file.
57328         * m4/printf-frexpl.m4: New file.
57329
57330 2007-02-25  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/printf-frexp-tests: New file.
57333         * tests/test-printf-frexp.c: New file.
57334
57335         * modules/printf-frexp: New file.
57336         * lib/printf-frexp.h: New file.
57337         * lib/printf-frexp.c: New file.
57338         * m4/printf-frexp.m4: New file.
57339
57340 2007-02-25  Bruno Haible  <bruno@clisp.org>
57341
57342         Assume automake >= 1.10 for the tests.
57343         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57344         * modules/arctwo-tests: Likewise.
57345         * modules/argp-tests: Likewise.
57346         * modules/avltree-list-tests: Likewise.
57347         * modules/avltree-oset-tests: Likewise.
57348         * modules/avltreehash-list-tests: Likewise.
57349         * modules/carray-list-tests: Likewise.
57350         * modules/crc-tests: Likewise.
57351         * modules/des-tests: Likewise.
57352         * modules/gc-arcfour-tests: Likewise.
57353         * modules/gc-arctwo-tests: Likewise.
57354         * modules/gc-des-tests: Likewise.
57355         * modules/gc-hmac-md5-tests: Likewise.
57356         * modules/gc-hmac-sha1-tests: Likewise.
57357         * modules/gc-md2-tests: Likewise.
57358         * modules/gc-md4-tests: Likewise.
57359         * modules/gc-md5-tests: Likewise.
57360         * modules/gc-pbkdf2-sha1-tests: Likewise.
57361         * modules/gc-rijndael-tests: Likewise.
57362         * modules/gc-sha1-tests: Likewise.
57363         * modules/gc-tests: Likewise.
57364         * modules/getaddrinfo-tests: Likewise.
57365         * modules/hmac-md5-tests: Likewise.
57366         * modules/hmac-sha1-tests: Likewise.
57367         * modules/linked-list-tests: Likewise.
57368         * modules/linkedhash-list-tests: Likewise.
57369         * modules/lock-tests: Likewise.
57370         * modules/md2-tests: Likewise.
57371         * modules/md4-tests: Likewise.
57372         * modules/md5-tests: Likewise.
57373         * modules/rbtree-list-tests: Likewise.
57374         * modules/rbtree-oset-tests: Likewise.
57375         * modules/rbtreehash-list-tests: Likewise.
57376         * modules/read-file-tests: Likewise.
57377         * modules/rijndael-tests: Likewise.
57378         * modules/stdint-tests: Likewise.
57379         * modules/tls-tests: Likewise.
57380
57381 2007-02-24  Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57384         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57385         function; instead check whether isnan with a double argument links.
57386         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57387         function; instead check whether isnan with a 'long double' argument
57388         links.
57389         Reported by Eric Blake <ebb9@byu.net>.
57390
57391 2007-02-24  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57394         defined.
57395         * lib/isnanl.c: Remove all code. Just include isnan.c.
57396         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57397
57398 2007-02-25  Jim Meyering  <jim@meyering.net>
57399
57400         Avoid conflicting types for 'unsetenv' on FreeBSD.
57401         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57402         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57403         in stdlib.h.
57404
57405 2007-02-24  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/isnanl-nolibm-tests: New file.
57408         * tests/test-isnanl.c: New file.
57409
57410         * modules/isnanl-nolibm: New file.
57411         * lib/isnanl.h: New file.
57412         * lib/isnanl.c: New file.
57413         * m4/isnanl.m4: New file.
57414
57415 2007-02-24  Bruno Haible  <bruno@clisp.org>
57416
57417         * modules/isnan-nolibm-tests: New file.
57418         * tests/test-isnan.c: New file.
57419
57420         * modules/isnan-nolibm: New file.
57421         * lib/isnan.h: New file.
57422         * lib/isnan.c: New file.
57423         * m4/isnan.m4: New file.
57424
57425 2007-02-24  Bruno Haible  <bruno@clisp.org>
57426
57427         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57428         assume that an exponent fits in 20 bits.
57429
57430 2007-02-24  Jim Meyering  <jim@meyering.net>
57431
57432         * m4/regex.m4: Update the description of the configure-time option,
57433         --without-included-regex, to state accurately what the defaults are,
57434         and perhaps to give people an idea why using this option is risky.
57435
57436 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57437
57438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57439         loops on small arguments.  This attempts to avoid the problem
57440         Bruno Haible reported for AIX 4.3.2 in
57441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57442
57443 2007-02-23  Bruno Haible  <bruno@clisp.org>
57444
57445         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57446         Needed for help2man.
57447
57448 2007-02-23  Karl Berry  <karl@gnu.org>
57449
57450         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57451         exists, foo.h should be cvs-ignored, not committed.
57452
57453 2007-02-23  Eric Blake  <ebb9@byu.net>
57454
57455         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57456         * lib/stat-time.h (includes): Likewise.
57457         * lib/utimecmp.c (includes): Likewise.
57458         * lib/utimens.h (includes): Likewise.
57459         * lib/getdate.y (includes): Also include "timespec.h" for use
57460         internal to the module.
57461         * modules/utimens (Depends-on): Revert yesterday's patch.
57462         * modules/nanosleep (Depends-on): Add missing dependency.
57463
57464 2007-02-22  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/glob.c: Don't include getlogin_r.h.
57467
57468 2007-02-22  Jim Meyering  <jim@meyering.net>
57469
57470         * modules/utimens (Depends-on): Add timespec, required for
57471         utimens.h's inclusion of timespec.h.
57472
57473 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57474
57475         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57476         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57477         Schwab in
57478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57479         I'll try to think of a better way to fix the Solaris problem.
57480
57481         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57482         like glibc; on Solaris 10, it fails with errno == EINVAL.
57483         POSIX says the behavior is unspecified if the first argument is NULL,
57484         so play it safe and never pass NULL to the system getcwd.
57485
57486 2007-02-21  Jim Meyering  <jim@meyering.net>
57487
57488         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57489         of gettimeofday.  It would conflict with the one now always
57490         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57491         an IRIX 6.5 build failure.
57492
57493 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         Minor fixups to port to Solaris 10 with Sun C 5.8.
57496         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57497         * modules/getcwd (Depends-on): Add dirfd.
57498         * lib/putenv.c (putenv): #undef it.
57499         (rpl_putenv): New decl.
57500         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57501
57502 2007-02-20  Bruno Haible  <bruno@clisp.org>
57503
57504         * modules/stdio-tests: New file.
57505         * tests/test-stdio.c: New file.
57506
57507         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57508         (Depends-on): Add stdio.
57509         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57510         (Include): Use <stdio.h> instead of vsnprintf.h.
57511         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57512         HAVE_DECL_VSNPRINTF.
57513         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57514
57515         * modules/snprintf (Files): Remove lib/snprintf.h.
57516         (Depends-on): Add stdio.
57517         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57518         (Include): Use <stdio.h> instead of snprintf.h.
57519         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57520         HAVE_DECL_SNPRINTF.
57521         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57522         * lib/getaddrinfo.c: Likewise.
57523
57524         * modules/stdio: New file.
57525         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57526         * lib/snprintf.h: Remove file.
57527         * lib/vsnprintf.h: Remove file.
57528         * lib/.cppi-disable: Remove snprintf.h.
57529         * m4/stdio_h.m4: New file.
57530         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57531
57532 2007-02-20  Jim Meyering  <jim@meyering.net>
57533
57534         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57535         used by e.g., mingw.  From Bruno Haible.
57536
57537 2007-02-19  Bruno Haible  <bruno@clisp.org>
57538
57539         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57540         warnings.
57541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57542
57543 2007-02-19  Bruno Haible  <bruno@clisp.org>
57544
57545         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57546         from mingw users.
57547
57548 2007-02-19  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57551         warnings.
57552         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57553
57554 2007-02-19  Jim Meyering  <jim@meyering.net>
57555
57556         Don't use FD after a successful "fdopendir (fd)".
57557         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57558         Reset it by calling dirfd on the just-obtained DIR*.
57559
57560         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57561         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57562
57563 2007-02-18  Bruno Haible  <bruno@clisp.org>
57564
57565         * lib/readlink.c: Include <unistd.h>.
57566         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57567         HAVE_READLINK.
57568         * modules/readlink (Depends-on): Add unistd.
57569         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57570         (Include): Add <unistd.h>.
57571
57572         * lib/getlogin_r.h: Remove file.
57573         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57574         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57575         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57576         HAVE_DECL_GETLOGIN_R.
57577         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57579         (Include): Use <unistd.h> instead of getlogin_r.h.
57580
57581         * lib/getcwd.h: Remove file.
57582         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57583         * lib/xgetcwd.c: Likewise.
57584         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57585         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57586         * modules/getcwd (Files): Remove lib/getcwd.h.
57587         (Depends-on): Add unistd.
57588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57589         (Include): Use <unistd.h> instad of getcwd.h.
57590
57591         * lib/ftruncate.c: Include <unistd.h> first.
57592         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57593         Set HAVE_FTRUNCATE.
57594         * modules/ftruncate (Depends-on): Add unistd.
57595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57596
57597         * lib/fchdir.c: Include <unistd.h> first.
57598         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57600         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57601         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57602         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57603
57604         * lib/dup2.c: Include <unistd.h> first.
57605         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57606         HAVE_DUP2.
57607         * modules/dup2 (Depends-on): Add unistd.
57608         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57609
57610         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57611         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57612         REPLACE_CHOWN. Don't define chown as a macro here.
57613         * modules/chown (Depends-on): Add unistd.
57614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57615
57616         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57617         Add definition for GL_LINK_WARNING.
57618         (chown, dup2): New declarations.
57619         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57620         link warning.
57621         (ftruncate): New declaration.
57622         (getcwd): New declaration, taken from old getcwd.h.
57623         (getlogin_r): New declaration, taken from old getlogin_r.h.
57624         (readlink): New declaration.
57625         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57626         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57627         (gl_PREREQ_UNISTD): Remove macro.
57628         (gl_UNISTD_MODULE_INDICATOR): New macro.
57629         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57630         many new variables. Don't set UNISTD_H.
57631         * modules/unistd (Description): Change.
57632         (Depends-on): Add link-warning.
57633         (configure.ac): Update.
57634         (Makefile.am): Create unistd.h always. Substitute many new variables
57635         into it.
57636
57637 2007-02-18  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57640         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57641         HAVE_GETSUBOPT.
57642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57643         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57644         * lib/getsubopt.h: Remove file.
57645         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57646         (Depends-on): Add stdlib.
57647         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57648         (Includes): Use <stdlib.h> instead of getsubopt.h.
57649         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57650         Set HAVE_GETSUBOPT.
57651         * lib/getsubopt.c: Don't include getsubopt.h.
57652
57653 2007-02-18  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/fchdir (Depends-on): Add dup2.
57656
57657 2007-02-18  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/stdlib_.h: Handle glibc's special invocation convention
57660         specially.
57661
57662 2007-02-18  Bruno Haible  <bruno@clisp.org>
57663
57664         * modules/stdlib-tests: New file.
57665         * tests/test-stdlib.c: New file.
57666
57667         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57668         (Depends-on): Add stdlib.
57669         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57670         (Includes): Use <stdlib.h> instead of mkstemp.h.
57671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57672         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57673         * lib/mkstemp.c: Don't include mkstemp.h.
57674         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57675         * lib/stdlib--.h: Don't include mkstemp.h.
57676
57677         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57678         (Depends-on): Add stdlib.
57679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57680         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57681         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57682         HAVE_MKDTEMP.
57683         * lib/mkdtemp.c: Don't include mkdtemp.h.
57684         * lib/clean-temp.c: Don't include mkdtemp.h.
57685
57686         * modules/exit (Files): Remove lib/exit.h.
57687         (Depends-on): Add stdlib.
57688         (Makefile.am): Remove lib_SOURCES.
57689         (Include): Use <stdlib.h> instead of exit.h.
57690         * lib/argmatch.c: Don't include exit.h.
57691         * lib/execute.c: Likewise.
57692         * lib/pagealign_alloc.c: Likewise.
57693         * lib/pipe.c: Likewise.
57694         * lib/wait-process.c: Likewise.
57695         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57696         * lib/exitfail.c: Likewise.
57697         * lib/savewd.c: Likewise.
57698         * lib/xsetenv.c: Likewise.
57699
57700         * modules/stdlib: New file.
57701         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57702         and extra comments about mkstemp().
57703         * lib/exit.h: Remove file.
57704         * lib/mkdtemp.h: Remove file.
57705         * lib/mkstemp.h: Remove file.
57706         * m4/stdlib_h.m4: New file.
57707         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57708
57709 2007-02-18  Bruno Haible  <bruno@clisp.org>
57710
57711         * modules/math-tests: New file.
57712         * tests/test-math.c: New file.
57713
57714         * modules/math: New file.
57715         * modules/mathl (Files): Remove lib/mathl.h.
57716         (Depends-on): Add math.
57717         (Makefile.am): Don't mention mathl.h.
57718         (Include): Use <math.h> instead of mathl.h.
57719         * lib/math_.h: New file.
57720         * lib/mathl.h: Remove file.
57721         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57722         mathl.h.
57723         * lib/asinl.c: Likewise.
57724         * lib/atanl.c: Likewise.
57725         * lib/ceill.c: Likewise.
57726         * lib/cosl.c: Likewise.
57727         * lib/expl.c: Likewise.
57728         * lib/floorl.c: Likewise.
57729         * lib/frexpl.c: Likewise.
57730         * lib/ldexpl.c: Likewise.
57731         * lib/logl.c: Likewise.
57732         * lib/sincosl.c: Likewise.
57733         * lib/sinl.c: Likewise.
57734         * lib/sqrtl.c: Likewise.
57735         * lib/tanl.c: Likewise.
57736         * lib/trigl.c: Likewise.
57737         * m4/math_h.m4: New file.
57738         * MODULES.html.sh (Mathematics): Add math.
57739
57740 2007-02-17  Bruno Haible  <bruno@clisp.org>
57741
57742         * modules/wctype-tests: New file.
57743         * tests/test-wctype.c: New file.
57744
57745         * modules/wchar-tests: New file.
57746         * tests/test-wchar.c: New file.
57747
57748         * modules/unistd-tests: New file.
57749         * tests/test-unistd.c: New file.
57750
57751         * modules/time-tests: New file.
57752         * tests/test-time.c: New file.
57753
57754         * modules/sysexits-tests: New file.
57755         * tests/test-sysexits.c: New file.
57756
57757         * modules/sys_time-tests: New file.
57758         * tests/test-sys_time.c: New file.
57759
57760         * modules/sys_stat-tests: New file.
57761         * tests/test-sys_stat.c: New file.
57762
57763         * modules/sys_socket-tests: New file.
57764         * tests/test-sys_socket.c: New file.
57765
57766         * modules/sys_select-tests: New file.
57767         * tests/test-sys_select.c: New file.
57768
57769         * modules/string-tests: New file.
57770         * tests/test-string.c: New file.
57771
57772         * modules/stdbool-tests: New file.
57773         * tests/test-stdbool.c: New file.
57774
57775         * modules/netinet_in-tests: New file.
57776         * tests/test-netinet_in.c: New file.
57777
57778         * modules/inttypes-tests: New file.
57779         * tests/test-inttypes.c: New file.
57780
57781         * modules/fcntl-tests: New file.
57782         * tests/test-fcntl.c: New file.
57783
57784         * modules/byteswap-tests: New file.
57785         * tests/test-byteswap.c: New file.
57786
57787         * modules/arpa_inet-tests: New file.
57788         * tests/test-arpa_inet.c: New file.
57789
57790 2007-02-17  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57793         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57794         if the corresponding module is not enabled. Emit link warnings if
57795         the function is used nevertheless.
57796         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57797         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57798         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57799         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57800         * modules/inttypes (Depends-on): Add link-warning.
57801         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57802         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57803         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57804         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57805         * modules/imaxdiv (configure.ac): Likewise.
57806         * modules/strtoimax (configure.ac): Likewise.
57807         * modules/strtoumax (configure.ac): Likewise.
57808
57809 2007-02-17  Bruno Haible  <bruno@clisp.org>
57810
57811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57812         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57813         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57814         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57815
57816 2007-02-17  Bruno Haible  <bruno@clisp.org>
57817
57818         * modules/link-warning: New file.
57819         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57820         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57821         * modules/string (Depends-on): Add link-warning.
57822         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57823         string.h.
57824         * MODULES.html.sh (Support for building libraries and executables): Add
57825         link-warning.
57826
57827 2007-02-17  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57830         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57831         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57832         long lines.
57833
57834 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57835             Bruno Haible  <bruno@clisp.org>
57836
57837         * modules/tmpfile: New file.
57838         * lib/tmpfile.c: New file.
57839         * m4/tmpfile.m4: New file.
57840         * MODULES.html.sh (func_all_modules): New section "Input/output".
57841
57842 2007-02-15  Bruno Haible  <bruno@clisp.org>
57843
57844         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57845         (supports_delete_on_close): New function.
57846         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57847
57848 2007-02-14  Bruno Haible  <bruno@clisp.org>
57849
57850         * modules/mbspcasecmp-tests: New file.
57851         * tests/test-mbspcasecmp.sh: New file.
57852         * tests/test-mbspcasecmp.c: New file.
57853
57854         New module mbspcasecmp.
57855         * modules/mbspcasecmp: New file.
57856         * lib/mbspcasecmp.c: New file.
57857         * lib/string_.h (strncasecmp): Change warning message.
57858         (mbspcasecmp): New declaration.
57859         * m4/mbspcasecmp.m4: New file.
57860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57861         GNULIB_MBSPCASECMP.
57862         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57863         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57864
57865 2007-02-14  Bruno Haible  <bruno@clisp.org>
57866
57867         * modules/mbsncasecmp-tests: New file.
57868         * tests/test-mbsncasecmp.sh: New file.
57869         * tests/test-mbsncasecmp.c: New file.
57870
57871         New module mbsncasecmp.
57872         * modules/mbsncasecmp: New file.
57873         * lib/mbsncasecmp.c: New file.
57874         * lib/string_.h (mbsncasecmp): New declaration.
57875         * m4/mbsncasecmp.m4: New file.
57876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57877         GNULIB_MBSNCASECMP.
57878         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57879         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57880
57881 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57884         Verify that it doesn't overlap with our flags.
57885         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57886         do not have the desired effect in multibyte locales; instead, use
57887         mbscasecmp.
57888         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57889         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57890         we don't require GNU fnmatch ourselves (if our users require it, they
57891         should do so explicitly).
57892
57893         Fix regex code so it doesn't rely on strcasecmp.
57894         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57895         Otherwise, include gnulib's langinfo.h.
57896         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57897         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57898         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57899         * modules/regex (FILES): Remove m4/codeset.m4.
57900         (Depends-on): Add localcharset.  Remove strcase.
57901
57902 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57903
57904         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57905         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57906
57907 2007-02-13  Bruno Haible  <bruno@clisp.org>
57908
57909         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57910         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57911
57912 2007-02-12  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57915         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57916         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57917         time warning rather than a link error.
57918
57919 2007-02-12  Bruno Haible  <bruno@clisp.org>
57920
57921         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57922         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57924
57925 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57926
57927         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57928         args, not 2.
57929
57930 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         New module 'time', so that apps can include <time.h> as per
57933         POSIX and GNU instead of separate include files like time_r.h
57934         and timegm.h.  This implementation tries out a simpler approach
57935         for replacing decls in standard include files (as compared to
57936         the string module), somewhat as an experiment.
57937
57938         * config/srclist.txt: Comment out mktime.c for now.
57939         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57940         since it doesn't apply any more.  Use generic wording instead.
57941         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57942         'time'.
57943         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57944         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57945         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57946         Don't include <sys/types.h>; no longer needed since we assume C89.
57947         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57948         * lib/strftime.c: Likewise.
57949         * lib/time_r.c: Likewise.
57950         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57951         * lib/nanosleep.c: Include <time.h> first, to check interface.
57952         * lib/strptime.c: Likewise.
57953         * lib/time_r.c: Likewise.
57954         * lib/timegm.c: Likewise.
57955         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57956         needed.
57957         * lib/timegm.c: Don't include timegm.h; no longer needed.
57958         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57959         time.h now handles any problems in that area.
57960         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57961         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57962         that time.h defines struct timespec.
57963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57964         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57965         handles that.
57966         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57967         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57968         needed.  Set REPLACE_LOCALTIME.
57969         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57970         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57971         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57972         nanosleep; time_h.m4 now does that.  Don't require
57973         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57974         module handles this now.
57975         * modules/getdate (Depends-on): Remove timespec.  Add time.
57976         * modules/nanosleep (Depends-on): Likewise.
57977         * modules/stat-time (Depends-on): Likewise.
57978         * modules/nanosleep (Include): Include time.h, not timespec.h.
57979         * modules/strptime (Files): Remove lib/strptime.h.
57980         (Depends-on): Add extensions, time.
57981         (Include): Include time.h, not strptime.h.
57982         * modules/time_r (Files): Remove lib/time_r.h.
57983         (Depends-on): Add time.
57984         (Include): Include time.h, not time_r.h.
57985         * modules/timegm: Likewise.
57986         * modules/timespec (Description): Now does timespec-related decls
57987         of our own, instead of struct timespec itself.
57988         (Depends-on): Add time; remove extensions.
57989         (Maintainer): Add self.
57990         * modules/utimecmp (Depends-on): Add time; remove timespec.
57991         * modules/utimens (Depends-on): Likewise.
57992         * modules/xnanosleep (Depends-on): Likewise.
57993
57994 2007-02-11  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/c-strstr.c: Include allocsa.h.
57997         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57998         * lib/c-strcasestr.c: Include allocsa.h.
57999         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58000         * lib/strcasestr.c: Include allocsa.h.
58001         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58002         * lib/mbsstr.c: Include allocsa.h.
58003         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58004         allocsa/freesa instead of malloc/free.
58005         * lib/mbscasestr.c: Include allocsa.h.
58006         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58007         allocsa/freesa instead of malloc/free.
58008         * modules/c-strstr (Depends-on): Add allocsa.
58009         * modules/c-strcasestr (Depends-on): Likewise.
58010         * modules/strcasestr (Depends-on): Likewise.
58011         * modules/mbsstr (Depends-on): Likewise.
58012         * modules/mbscasestr (Depends-on): Likewise.
58013
58014 2007-02-11  Bruno Haible  <bruno@clisp.org>
58015
58016         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58017
58018         * modules/mbsspn-tests: New file.
58019         * tests/test-mbsspn.sh: New file.
58020         * tests/test-mbsspn.c: New file.
58021
58022 2007-02-11  Bruno Haible  <bruno@clisp.org>
58023
58024         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58025
58026         * modules/mbspbrk-tests: New file.
58027         * tests/test-mbspbrk.sh: New file.
58028         * tests/test-mbspbrk.c: New file.
58029
58030 2007-02-11  Bruno Haible  <bruno@clisp.org>
58031
58032         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58033         unneeded cast.
58034
58035         * modules/mbscspn-tests: New file.
58036         * tests/test-mbscspn.sh: New file.
58037         * tests/test-mbscspn.c: New file.
58038
58039 2007-02-11  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/mbscasecmp-tests: New file.
58042         * tests/test-mbscasecmp.sh: New file.
58043         * tests/test-mbscasecmp.c: New file.
58044
58045 2007-02-11  Bruno Haible  <bruno@clisp.org>
58046
58047         Ensure O(n) worst-case complexity of mbscasestr.
58048         * lib/mbscasestr.c: Include stdbool.h.
58049         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58050         functions.
58051         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58052         the bookkeeping indicates that it's worth it.
58053         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58054
58055         * modules/mbscasestr-tests: New file.
58056         * tests/test-mbscasestr1.c: New file.
58057         * tests/test-mbscasestr2.sh: New file.
58058         * tests/test-mbscasestr2.c: New file.
58059         * tests/test-mbscasestr3.sh: New file.
58060         * tests/test-mbscasestr3.c: New file.
58061         * tests/test-mbscasestr4.sh: New file.
58062         * tests/test-mbscasestr4.c: New file.
58063         * m4/locale-tr.m4: New file.
58064
58065 2007-02-11  Bruno Haible  <bruno@clisp.org>
58066
58067         Ensure O(n) worst-case complexity of mbsstr.
58068         * lib/mbsstr.c: Include stdbool.h.
58069         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58070         functions.
58071         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58072         bookkeeping indicates that it's worth it.
58073         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58074
58075         * modules/mbsstr-tests: New file.
58076         * tests/test-mbsstr1.c: New file.
58077         * tests/test-mbsstr2.sh: New file.
58078         * tests/test-mbsstr2.c: New file.
58079         * tests/test-mbsstr3.sh: New file.
58080         * tests/test-mbsstr3.c: New file.
58081         * m4/locale-fr.m4: New file.
58082
58083 2007-02-11  Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/mbsrchr.c (mbsrchr): Fix bug.
58086
58087         * modules/mbsrchr-tests: New file.
58088         * tests/test-mbsrchr.sh: New file.
58089         * tests/test-mbsrchr.c: New file.
58090
58091 2007-02-11  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/mbschr.c (mbschr): Fix bug.
58094
58095         * modules/mbschr-tests: New file.
58096         * tests/test-mbschr.sh: New file.
58097         * tests/test-mbschr.c: New file.
58098         * m4/locale-zh.m4: New file.
58099
58100 2007-02-11  Bruno Haible  <bruno@clisp.org>
58101
58102         Support for copying multibyte string iterators.
58103         * lib/mbiter.h: Include <string.h>.
58104         (mbiter_multi_copy): New function.
58105         (mbi_copy): New macro.
58106         * lib/mbuiter.h: Include <string.h>.
58107         (mbuiter_multi_copy): New function.
58108         (mbui_copy): New macro.
58109
58110 2007-02-11  Bruno Haible  <bruno@clisp.org>
58111
58112         New module mbslen.
58113         * modules/mbslen: New file.
58114         * lib/mbslen.c: New file.
58115         * lib/string_.h (mbslen): New declaration.
58116         * m4/mbslen.m4: New file.
58117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58118         GNULIB_MBSLEN.
58119         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58120         * MODULES.html.sh (Internationalization functions): Add mbslen.
58121
58122 2007-02-11  Bruno Haible  <bruno@clisp.org>
58123
58124         Ensure O(n) worst-case complexity of strcasestr substitute.
58125         * lib/strcasestr.c: Include stdbool.h.
58126         (knuth_morris_pratt): New function.
58127         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58128         bookkeeping indicates that it's worth it.
58129         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58130
58131         * modules/strcasestr-tests: New file.
58132         * tests/test-strcasestr.c: New file.
58133
58134 2007-02-11  Bruno Haible  <bruno@clisp.org>
58135
58136         Ensure O(n) worst-case complexity of c_strcasestr.
58137         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58138         (knuth_morris_pratt): New function.
58139         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58140         the bookkeeping indicates that it's worth it.
58141         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58142
58143         * modules/c-strcasestr-tests: New file.
58144         * tests/test-c-strcasestr.c: New file.
58145
58146 2007-02-11  Bruno Haible  <bruno@clisp.org>
58147
58148         Ensure O(n) worst-case complexity of c_strstr.
58149         * lib/c-strstr.c: Include stdbool.h, string.h.
58150         (knuth_morris_pratt): New function.
58151         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58152         bookkeeping indicates that it's worth it.
58153         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58154
58155         * lib/c-strstr.c: Complete rewrite for maintainability.
58156
58157         * modules/c-strstr-tests: New file.
58158         * tests/test-c-strstr.c: New file.
58159
58160 2007-02-11  Bruno Haible  <bruno@clisp.org>
58161
58162         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58163         5.2.1 and earlier, whereby \055 was treated just like the range
58164         delimiter '-'.
58165         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58166
58167 2007-02-08  Bruno Haible  <bruno@clisp.org>
58168
58169         * modules/regex (Depends-on): Add stdbool.
58170         Reported by Dalibor Topic <robilad@kaffe.org>.
58171
58172 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58173
58174         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58175         Prefer returning from main to exiting from it.
58176         Remove unnecessary parens after sizeof.
58177
58178 2007-02-05  Bruno Haible  <bruno@clisp.org>
58179
58180         New module mbssep.
58181         * modules/mbssep: New file.
58182         * lib/mbssep.c: New file.
58183         * lib/string_.h (strsep): Add a conditional link warning.
58184         (mbssep): New declaration.
58185         * m4/mbssep.m4: New file.
58186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58187         GNULIB_MBSSEP.
58188         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58189         * MODULES.html.sh (Internationalization functions): Add mbssep.
58190
58191 2007-02-05  Bruno Haible  <bruno@clisp.org>
58192
58193         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58194         Optimize search in case of 1 delimiter.
58195
58196 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58197
58198         * lib/acl.h: Include sys/types.h before sys/acl.h.
58199
58200 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58201
58202         Merge upstream fix for glibc bugzilla #3957:
58203
58204         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58205
58206         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58207         bit for RE_HAT_LISTS_NOT_NEWLINE.
58208         (build_charclass_op): Remove bogus comment.
58209
58210 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58211
58212         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58213
58214 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58217         * lib/memmem.c [!defined _LIBC]: Include config.h.
58218
58219 2007-02-04  Bruno Haible  <bruno@clisp.org>
58220
58221         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58222         warning message.
58223
58224 2007-02-04  Bruno Haible  <bruno@clisp.org>
58225
58226         New module mbstok_r.
58227         * modules/mbstok_r: New file.
58228         * lib/mbstok_r.c: New file.
58229         * lib/string_.h (strtok_r): Change argument names to match the
58230         comments. Add a conditional link warning.
58231         (mbstok_r): New declaration.
58232         * m4/mbstok_r.m4: New file.
58233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58234         GNULIB_MBSTOK_R.
58235         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58236         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58237
58238 2007-02-04  Bruno Haible  <bruno@clisp.org>
58239
58240         New module mbsspn.
58241         * modules/mbsspn: New file.
58242         * lib/mbsspn.c: New file.
58243         * lib/string_.h (strspn): Add a conditional link warning.
58244         (mbsspn): New declaration.
58245         * m4/mbsspn.m4: New file.
58246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58247         GNULIB_MBSSPN.
58248         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58249         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58250
58251 2007-02-04  Bruno Haible  <bruno@clisp.org>
58252
58253         New module mbspbrk.
58254         * modules/mbspbrk: New file.
58255         * lib/mbspbrk.c: New file.
58256         * lib/string_.h (strpbrk): Add a conditional link warning.
58257         (mbspbrk): New declaration.
58258         * m4/mbspbrk.m4: New file.
58259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58260         GNULIB_MBSPBRK.
58261         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58262         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58263
58264 2007-02-04  Bruno Haible  <bruno@clisp.org>
58265
58266         New module mbscspn.
58267         * modules/mbscspn: New file.
58268         * lib/mbscspn.c: New file.
58269         * lib/string_.h (strcspn): Add a conditional link warning.
58270         (mbscspn): New declaration.
58271         * m4/mbscspn.m4: New file.
58272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58273         GNULIB_MBSCSPN.
58274         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58275         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58276
58277 2007-02-04  Bruno Haible  <bruno@clisp.org>
58278
58279         New module mbscasestr, reduced goal of strcasestr.
58280         * modules/mbscasestr: New file.
58281         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58282         (mbscasestr): Renamed from strcasestr.
58283         * lib/strcasestr.c: Don't include mbuiter.h.
58284         (strcasestr): Remove support for multibyte locales.
58285         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58286         Change the conditional link warning.
58287         (mbscasestr): New declaration.
58288         * m4/mbscasestr.m4: New file.
58289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58290         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58291         REPLACE_STRCASESTR.
58292         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58294         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58295         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58296         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58297         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58298         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58299         (Depends-on): Remove mbuiter.
58300         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58301
58302 2007-02-04  Bruno Haible  <bruno@clisp.org>
58303
58304         Simplify handling of strncasecmp.
58305         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58306         the conditional link warning.
58307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58308         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58309         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58310         * modules/strcase (configure.ac): Don't invoke
58311         gl_STRING_MODULE_INDICATOR.
58312         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58313
58314 2007-02-04  Bruno Haible  <bruno@clisp.org>
58315
58316         New module mbscasecmp, reduced goal of strcasecmp.
58317         * modules/mbscasecmp: New file.
58318         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58319         (mbscasecmp): Renamed from strcasecmp.
58320         * lib/strcasecmp.c: Don't include mbuiter.h.
58321         (strcasecmp): Remove support for multibyte locales.
58322         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58323         Change the conditional link warning.
58324         (mbscasecmp): New declaration.
58325         * m4/mbscasecmp.m4: New file.
58326         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58327         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58328         REPLACE_STRCASECMP.
58329         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58331         GNULIB_MBSCASECMP.
58332         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58333         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58334         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58335         (Depends-on): Remove mbuiter.
58336         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58337
58338 2007-02-04  Bruno Haible  <bruno@clisp.org>
58339
58340         New module mbsstr. Remove module strstr.
58341         * modules/mbsstr: New file.
58342         * modules/strstr: Remove file.
58343         * lib/mbsstr.c: Renamed from lib/strstr.c.
58344         (mbsstr): Renamed from strstr.
58345         * lib/string_.h (strstr): Remove declaration. Change the conditional
58346         link warning.
58347         (mbsstr): New declaration.
58348         * m4/mbsstr.m4: New file.
58349         * m4/strstr.m4: Remove file.
58350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58351         REPLACE_STRSTR.
58352         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58353         Don't initialize GNULIB_STRSTR.
58354         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58355         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58356         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58357         (Support for systems lacking ANSI C 89): Remove strstr.
58358
58359 2007-02-04  Bruno Haible  <bruno@clisp.org>
58360
58361         New module mbsrchr.
58362         * modules/mbsrchr: New file.
58363         * lib/mbsrchr.c: New file.
58364         * lib/string_.h (strrchr): Add a conditional link warning.
58365         (mbsrchr): New declaration.
58366         * m4/mbsrchr.m4: New file.
58367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58368         GNULIB_MBSRCHR.
58369         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58370         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58371
58372 2007-02-04  Bruno Haible  <bruno@clisp.org>
58373
58374         New module mbschr.
58375         * modules/mbschr: New file.
58376         * lib/mbschr.c: New file.
58377         * lib/string_.h (strchr): Add a conditional link warning.
58378         (mbschr): New declaration.
58379         * m4/mbschr.m4: New file.
58380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58381         GNULIB_MBSCHR.
58382         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58383         * MODULES.html.sh (Internationalization functions): Add mbschr.
58384
58385 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58388
58389         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58390
58391 2007-02-04  Bruno Haible  <bruno@clisp.org>
58392
58393         New module description section 'configure.ac-early'.
58394         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58395         (func_get_autoconf_early_snippet): New function.
58396         (func_import, func_create_testdir): Use it. Remove special cases for
58397         modules 'extensions' and 'lock'.
58398         * modules/extensions (configure.ac-early): Require
58399         gl_USE_SYSTEM_EXTENSIONS.
58400         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58401
58402 2007-02-04  Bruno Haible  <bruno@clisp.org>
58403
58404         Make use of gcj-4.3's -fsource and -ftarget option.
58405         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58406         and if so try the options -fsource and -ftarget.
58407         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58408         source_version, ftarget_option, target_version arguments.
58409         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58410         (is_envjavac_oldgcj_14_14_usable): Renamed from
58411         is_envjavac_gcj_14_14_usable.
58412         (is_envjavac_oldgcj_14_13_usable): Renamed from
58413         is_envjavac_gcj_14_13_usable.
58414         (is_gcj_present): Update.
58415         (is_gcj_43, is_gcj43_usable): New functions.
58416         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58417         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58418         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58419         try the options -fsource and -ftarget.
58420
58421 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58424         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58425         larger value.
58426
58427 2007-02-03  Jim Meyering  <jim@meyering.net>
58428
58429         Give tools a better chance to allocate space for very large buffers.
58430         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58431
58432         Make pwd and readlink work also when run with an unreadable parent dir
58433         on systems with openat support.
58434         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58435         provided getcwd function, even when we have openat support.
58436         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58437
58438 2007-02-02  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58441         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58442         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58443         portability problems if one of these functions is only used on specific
58444         platforms.
58445         Reported by Paul Eggert.
58446
58447 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58450         is causing more trouble than it's curing.
58451         * lib/regex_internal.h (__mempcpy): Remove.
58452         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58453         (and make the code a tad smaller to boot).
58454         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58455
58456 2007-02-02  Jim Meyering  <jim@meyering.net>
58457
58458         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58459         section, not in the Makefile.am: one.
58460
58461 2007-02-02  Eric Blake  <ebb9@byu.net>
58462
58463         * lib/strchrnul.c: Always include config.h first.
58464
58465         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58466         gnulib strstr is not necessary here.
58467
58468 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58469
58470         * m4/socklen.m4: Fix typo.
58471
58472 2007-02-02  Eric Blake  <ebb9@byu.net>
58473
58474         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58475         * modules/netinet_in (Makefile.am): Likewise.
58476
58477 2007-02-01  Bruno Haible  <bruno@clisp.org>
58478
58479         * lib/string_.h (GL_LINK_WARNING): New macro.
58480         (strcasecmp, strstr, strcasestr): If provided by the system,
58481         conditionally define as a macro that leads to a warning instead of to
58482         an error.
58483         (strncasecmp): Conditionally define as a macro that leads to a warning.
58484
58485 2007-02-01  Karl Berry  <karl@gnu.org>
58486
58487         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58488
58489 2007-02-01  Bruno Haible  <bruno@clisp.org>
58490
58491         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58492         renamings.
58493
58494 2007-02-01  Eric Blake  <ebb9@byu.net>
58495
58496         * modules/regex (Depends-on): Revert dependence on mempcpy.
58497         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58498         module's definition of mempcpy.
58499         Reported by Paul Eggert.
58500
58501 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58504         the symbol XYZ before redefining it.  This fixes a problem with
58505         programs that don't use XYZ, when compiled on systems that define
58506         XYZ to something else.
58507
58508 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58511         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58512         writeable to group or other and (2) is intended to have a special
58513         mode bit that is set or cleared.  In such a case, the directory
58514         should be neither group- nor other-writeable until the special
58515         mode bits are right.
58516
58517 2007-01-31  Eric Blake  <ebb9@byu.net>
58518
58519         * modules/mountlist (Depends-on): Add strstr.
58520
58521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58522         bug.
58523         * modules/string (Makefile.am): Remove redundant replacement.
58524         * modules/regex (Depends-on): Add mempcpy.
58525
58526 2007-01-31  Bruno Haible  <bruno@clisp.org>
58527
58528         New module description field 'Link'.
58529         * gnulib-tool (func_usage): Document --extract-link-directive.
58530         (sed_extract_prog): Recognize 'Link' directive.
58531         (func_get_link_directive): New function.
58532         (func_import): Show summary of link directives.
58533         Handle --extract-link-directive option.
58534         * modules/acl (Link): New section.
58535         * modules/clock-time (Link): New section.
58536         * modules/euidaccess (Link): New section.
58537         * modules/gettext (Link): New section.
58538         * modules/iconv (Link): New section.
58539         * modules/lock (Link): New section.
58540         * modules/nanosleep (Link): New section.
58541         * modules/readline (Link): New section.
58542
58543 2007-01-27  Bruno Haible  <bruno@clisp.org>
58544
58545         Enforce the use of gnulib modules for unportable <string.h> functions.
58546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58547         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58548         (gl_HEADER_STRING_H_BODY): Require it.
58549         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58550         the symbol XYZ to one that gives a link error.
58551         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58552         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58553         * modules/mempcpy (configure.ac): Likewise.
58554         * modules/memrchr (configure.ac): Likewise.
58555         * modules/stpcpy (configure.ac): Likewise.
58556         * modules/stpncpy (configure.ac): Likewise.
58557         * modules/strcase (configure.ac): Likewise.
58558         * modules/strcasestr (configure.ac): Likewise.
58559         * modules/strchrnul (configure.ac): Likewise.
58560         * modules/strdup (configure.ac): Likewise.
58561         * modules/strndup (configure.ac): Likewise.
58562         * modules/strnlen (configure.ac): Likewise.
58563         * modules/strpbrk (configure.ac): Likewise.
58564         * modules/strsep (configure.ac): Likewise.
58565         * modules/strstr (configure.ac): Likewise.
58566         * modules/strtok_r (configure.ac): Likewise.
58567
58568 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58569
58570         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58571
58572 2007-01-30  Jim Meyering  <jim@meyering.net>
58573
58574         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58575
58576 2007-01-29  Bruno Haible  <bruno@clisp.org>
58577
58578         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58579         * lib/execute.c: Likewise.
58580         * lib/pipe.c: Likewise.
58581         * lib/printf-args.h: Likewise.
58582         * lib/printf-args.c: Likewise.
58583         * lib/printf-parse.c: Likewise.
58584         * lib/vasnprintf.c: Likewise.
58585
58586 2007-01-29  Eric Blake  <ebb9@byu.net>
58587
58588         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58589         declaration.
58590
58591 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         * lib/strptime.h (strptime): Use 'restrict' for args where
58594         POSIX requires this.
58595         * lib/strptime.c (strptime): Likewise.
58596         Change license notice from LGPL to GPL, since gnulib-tool will
58597         change this as needed.
58598         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58599         defined.
58600         Include "strptime.h" first, to check interface.
58601         Do not #undef _LIBC and _NL_CURRENT.
58602         Do not include <stdlib.h>; no longer needed.
58603         Include "time_r.h" and declare ptime_locale_status
58604         only if _LIBC is not defined.
58605         (__P): Remove unused macro.
58606         (match_string): Bring back glibc version, but use it only if _LIBC
58607         is defined.
58608         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58609         Remove unnecessary assertion and abort() call.
58610         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58611         * m4/strptime.m4: Fix serial number comment.
58612         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58613         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58614         (Depends-on): Add time_r.
58615
58616 2007-01-29  Bruno Haible  <bruno@clisp.org>
58617
58618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58619         strptime.
58620         * modules/strptime (Depends-on): Add stdbool.
58621         * lib/strptime.h: Include <time.h> always. Add comments.
58622
58623 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58624
58625         * modules/strptime: New file.
58626         * lib/strptime.h: New file.
58627         * lib/strptime.c: New file.
58628         * m4/strptime.m4: New file.
58629
58630 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * MODULES.html.sh: New module mpsort.
58633         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58634
58635         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58636         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58638         All uses changed.
58639         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58640         All uses changed.
58641         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58642         to _Restrict_.
58643         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58644         the parameter matches the prototype.
58645
58646 2007-01-28  Jim Meyering  <jim@meyering.net>
58647
58648         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58649         sys/time.h here, reverting that part of the previous patch:
58650         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58651
58652 2007-01-28  Bruno Haible  <bruno@clisp.org>
58653
58654         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58655         value of $(SYS_TIME_H).
58656         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58657         remove it conditionally, too. [added by Jim Meyering]
58658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58659         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58660         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58661         GETTIMEOFDAY_REPLACEMENT to 1.
58662
58663 2007-01-28  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58666         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58668         Set UNISTD_H instead of UNISTD_H2.
58669         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58670
58671 2007-01-28  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58674         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58675
58676 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58677
58678         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58679         (func_create_testdir): Ensure C locale for `grep' and `tr'
58680         character ranges.
58681         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58682         ACLOCAL_AMFLAGS parsing state machine.
58683
58684 2007-01-27  Bruno Haible  <bruno@clisp.org>
58685
58686         * modules/unistr/base: Update.
58687
58688 2007-01-27  Bruno Haible  <bruno@clisp.org>
58689
58690         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58691         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58692         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58693         modules/unistr/u32-mbtouc.
58694         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58695         * lib/unistr.h: Update.
58696         * lib/linebreak.c: Update.
58697         * modules/unistr/u32-mbtouc: Renamed from
58698         modules/unistr/u32-mbtouc-safe.
58699         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58700         * lib/unistr.h: Update.
58701         * lib/unistr/u32-to-u8.c: Update.
58702         * lib/unistr/u32-to-u16.c: Update.
58703
58704 2007-01-27  Bruno Haible  <bruno@clisp.org>
58705
58706         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58707         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58708         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58709         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58710         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58711         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58712         modules/unistr/u16-mbtouc.
58713         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58714         * lib/unistr.h: Update.
58715         * lib/linebreak.c: Update.
58716         * modules/linebreak: Update.
58717         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58718         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58719         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58720         * modules/unistr/u16-mbtouc: Renamed from
58721         modules/unistr/u16-mbtouc-safe.
58722         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58723         * lib/unistr.h: Update.
58724         * lib/unistr/u16-to-u8.c: Update.
58725         * modules/unistr/u16-to-u8: Update.
58726         * lib/unistr/u16-to-u32.c: Update.
58727         * modules/unistr/u16-to-u32: Update.
58728
58729 2007-01-27  Bruno Haible  <bruno@clisp.org>
58730
58731         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58732         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58733         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58734         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58735         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58736         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58737         modules/unistr/u8-mbtouc.
58738         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58739         * lib/unistr.h: Update.
58740         * lib/striconveh.c: Update.
58741         * modules/striconveh: Update.
58742         * lib/linebreak.c: Update.
58743         * modules/linebreak: Update.
58744         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58745         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58746         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58747         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58748         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58749         * lib/unistr.h: Update.
58750         * lib/striconveh.c: Update.
58751         * modules/striconveh: Update.
58752         * lib/unistr/u8-to-u16.c: Update.
58753         * modules/unistr/u8-to-u16: Update.
58754         * lib/unistr/u8-to-u32.c: Update.
58755         * modules/unistr/u8-to-u32: Update.
58756
58757 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58758
58759         Sync from Libtool.
58760         * lib/argz.c: Do not include strings.h nor memory.h, include
58761         string.h unconditionally.  Patch by Simon Josefsson.
58762
58763 2007-01-27  Bruno Haible  <bruno@clisp.org>
58764
58765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58766         from gl_HEADER_STRING_H_BODY.
58767         (gl_HEADER_STRING_H_BODY): Require it.
58768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58772         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58773         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58774         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58775         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58776         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58777         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58778         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58779         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58780         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58782         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58783
58784 2007-01-27  Bruno Haible  <bruno@clisp.org>
58785
58786         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58787         check_PROGRAMS into noinst_PROGRAMS.
58788         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58789         check_PROGRAMS in this case.
58790         (func_import): Set for_test to false.
58791         (func_create_testdir): Set for_test to true.
58792
58793 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58794             Bruno Haible  <bruno@clisp.org>
58795
58796         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58797         (Depends-on): Add string.
58798         (Includes): Use <string.h> instead of strcasestr.h.
58799         * modules/string (Makefile.am): Also substitute the value of
58800         REPLACE_STRCASESTR.
58801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58802         assume strcasestr is declared in <string.h> not <strings.h>. Also
58803         set REPLACE_STRCASESTR.
58804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58805         REPLACE_STRCASESTR.
58806         * lib/strcasestr.h: Remove file.
58807         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58808         * lib/string_.h (strcasestr): New declaration.
58809
58810 2007-01-27  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/string_.h: Use 'extern'.
58813
58814 2007-01-27  Jim Meyering  <jim@meyering.net>
58815
58816         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58817         of set-but-not-used local, "q".
58818
58819         * lib/mempcpy.c: Include <config.h> before <string.h>.
58820         This fixes a compilation error on HP-UX, due to the system's
58821         "restrict"-using mempcpy prototype.
58822
58823 2007-01-26  Bruno Haible  <bruno@clisp.org>
58824
58825         Small optimization.
58826         * lib/javacomp.c: Include c-strstr.h.
58827          (is_envjavac_gcj): Use c_strstr instead of strstr.
58828         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58829
58830 2007-01-26  Bruno Haible  <bruno@clisp.org>
58831
58832         * MODULES.html.sh (Unicode string functions): Add the new modules.
58833
58834         * modules/uniconv/u32-strconv-to-locale: New file.
58835         * lib/uniconv/u32-strconv-to-locale.c: New file.
58836
58837         * modules/uniconv/u16-strconv-to-locale: New file.
58838         * lib/uniconv/u16-strconv-to-locale.c: New file.
58839
58840         * modules/uniconv/u8-strconv-to-locale: New file.
58841         * lib/uniconv/u8-strconv-to-locale.c: New file.
58842
58843         * modules/uniconv/u32-strconv-from-locale: New file.
58844         * lib/uniconv/u32-strconv-from-locale.c: New file.
58845
58846         * modules/uniconv/u16-strconv-from-locale: New file.
58847         * lib/uniconv/u16-strconv-from-locale.c: New file.
58848
58849         * modules/uniconv/u8-strconv-from-locale: New file.
58850         * lib/uniconv/u8-strconv-from-locale.c: New file.
58851
58852         * modules/uniconv/u32-strconv-to-enc: New file.
58853         * lib/uniconv/u32-strconv-to-enc.c: New file.
58854         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58855         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58856
58857         * modules/uniconv/u16-strconv-to-enc: New file.
58858         * lib/uniconv/u16-strconv-to-enc.c: New file.
58859         * lib/uniconv/u-strconv-to-enc.h: New file.
58860         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58861         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58862
58863         * modules/uniconv/u8-strconv-to-enc: New file.
58864         * lib/uniconv/u8-strconv-to-enc.c: New file.
58865         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58866         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58867
58868         * modules/uniconv/u32-strconv-from-enc: New file.
58869         * lib/uniconv/u32-strconv-from-enc.c: New file.
58870         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58871         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58872
58873         * modules/uniconv/u16-strconv-from-enc: New file.
58874         * lib/uniconv/u16-strconv-from-enc.c: New file.
58875         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58876         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58877
58878         * modules/uniconv/u8-strconv-from-enc: New file.
58879         * lib/uniconv/u8-strconv-from-enc.c: New file.
58880         * lib/uniconv/u-strconv-from-enc.h: New file.
58881         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58882         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58883
58884         * modules/uniconv/u32-conv-from-enc: New file.
58885         * lib/uniconv/u32-conv-from-enc.c: New file.
58886         * modules/uniconv/u32-conv-from-enc-tests: New file.
58887         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58888
58889         * modules/uniconv/u16-conv-from-enc: New file.
58890         * lib/uniconv/u16-conv-from-enc.c: New file.
58891         * lib/uniconv/u-conv-from-enc.h: New file.
58892         * modules/uniconv/u16-conv-from-enc-tests: New file.
58893         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58894
58895         * modules/uniconv/u8-conv-from-enc: New file.
58896         * lib/uniconv/u8-conv-from-enc.c: New file.
58897         * modules/uniconv/u8-conv-from-enc-tests: New file.
58898         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58899
58900         * modules/uniconv/base: New file.
58901         * lib/uniconv.h: New file.
58902
58903 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58904
58905         * doc/gnulib-tool.texi (Initial import): Update to match current
58906         behavior with strdup module.
58907         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58908         * lib/memmem.h: Remove; all uses removed.  This is now done
58909         by <string.h>.
58910         * lib/mempcpy.h: Likewise.
58911         * lib/memrchr.h: Likewise.
58912         * lib/stpcpy.h: Likewise.
58913         * lib/stpncpy.h: Likewise.
58914         * lib/strcase.h: Likewise.
58915         * lib/strchrnul.h: Likewise.
58916         * lib/strdup.h: Likewise.
58917         * lib/strndup.h: Likewise.
58918         * lib/strnlen.h: Likewise.
58919         * lib/strpbrk.h: Likewise.
58920         * lib/strsep.h: Likewise.
58921         * lib/strstr.h: Likewise.
58922         * lib/strtok_r.h: Likewise.
58923         * lib/string_.h: New file.
58924         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58925         Rely on <string.h> instead.
58926         * lib/canon-host.c: Likewise.
58927         * lib/chdir-long.c: Likewise.
58928         * lib/concatpath.c: Likewise.
58929         * lib/exclude.c: Likewise.
58930         * lib/fchdir.c: Likewise.
58931         * lib/getaddrinfo.c: Likewise.
58932         * lib/getcwd.c: Likewise.
58933         * lib/getsubopt.c: Likewise.
58934         * lib/glob.c: Likewise.
58935         * lib/hard-locale.c: Likewise.
58936         * lib/iconvme.c: Likewise.
58937         * lib/javacomp.c: Likewise.
58938         * lib/mempcpy.c: Likewise.
58939         * lib/memrchr.c: Likewise.
58940         * lib/regex_internal.h: Likewise.
58941         * lib/stpncpy.c: Likewise.
58942         * lib/strcasecmp.c: Likewise.
58943         * lib/strchrnul.c: Likewise.
58944         * lib/strdup.c: Likewise.
58945         * lib/striconv.c: Likewise.
58946         * lib/striconveh.c: Likewise.
58947         * lib/striconveha.c: Likewise.
58948         * lib/strncasecmp.c: Likewise.
58949         * lib/strndup.c: Likewise.
58950         * lib/strnlen.c: Likewise.
58951         * lib/strsep.c: Likewise.
58952         * lib/strstr.c: Likewise.
58953         * lib/strtok_r.c: Likewise.
58954         * lib/userspec.c: Likewise.
58955         * lib/w32spawn.h: Likewise.
58956         * lib/xstrndup.c: Likewise.
58957         * lib/mountlist.c (strstr): Remove decl.
58958         * m4/string_h.m4: New file.
58959         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58960         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58962         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58963         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58964         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58965         Set REPLACE_STRCASECMP if necessary.
58966         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58968         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58970         HAVE_DECL_STRDUP if necessary.
58971         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58972         since gl_FUNC_STRNDUP does that now.
58973         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58974         Check for decl here...
58975         (gl_PREREQ_STRNLEN): ... not here.
58976         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58977         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58978         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58979         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58980         necessary.
58981         * modules/string: New file.
58982         * modules/memmem (Files): Remove special-purpose include file.
58983         (Depends-on): Add string.
58984         (Include): Include <string.h>, not the removed file.
58985         * modules/mempcpy: Likewise.
58986         * modules/memrchr: Likewise.
58987         * modules/stpcpy: Likewise.
58988         * modules/stpncpy: Likewise.
58989         * modules/strcase: Likewise.
58990         * modules/strchrnul: Likewise.
58991         * modules/strdup: Likewise.
58992         * modules/strndup: Likewise.
58993         * modules/strnlen: Likewise.
58994         * modules/strpbrk: Likewise.
58995         * modules/strsep: Likewise.
58996         * modules/strstr: Likewise.
58997         * modules/strtok_r: Likewise.
58998         * tests/test-dirname.c: Don't include "strdup.h", since
58999         <string.h> now suffices.
59000         * tests/test-memmem.c: Don't include "memmem.h", since
59001         <string.h> now suffices.
59002
59003 2007-01-25  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59006         *resultp is 0.
59007
59008         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59009         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59010         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59011         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59012
59013         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59014         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59015         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59016         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59017         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59018         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59019
59020 2007-01-24  Bruno Haible  <bruno@clisp.org>
59021
59022         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59024         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59025         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59026         gl_FUNC_FTS_CORE.
59027         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59028         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59029         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59030         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59031         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59032         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59033         gl_FUNC_FCHOWNAT.
59034         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59035         gl_FUNC_STRFTIME.
59036         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59037         Reported by Ralf Wildenhues.
59038
59039 2007-01-24  Bruno Haible  <bruno@clisp.org>
59040
59041         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59042         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59043         gl_GETADDRINFO.
59044         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59045         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59046         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59047
59048 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59049
59050         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59051         Don't use 'exit'; just return from 'main'.
59052         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59053
59054         * lib/fnmatch_.h: Readjust white space and comments to match
59055         glibc, to avoid spurious diffs.
59056
59057 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59058
59059         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59060         2004-12-01 change by Jakub Jelinek, since this code won't compile
59061         if !LIBC.  Problem reported by Bob Proulx.
59062
59063 2007-01-23  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/striconveh.c: Include c-strcaseeq.h.
59066         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59067         * modules/striconveh (Depends-on): Add c-strcaseeq.
59068
59069 2007-01-23  Bruno Haible  <bruno@clisp.org>
59070
59071         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59072
59073         * modules/c-strcaseeq: New file.
59074         * lib/c-strcaseeq.h: New file.
59075
59076         * modules/streq: New file.
59077         * lib/streq.h: New file.
59078
59079 2007-01-23  Bruno Haible  <bruno@clisp.org>
59080
59081         * modules/striconveha-tests: New file.
59082         * tests/test-striconveha.c: New file.
59083
59084         * lib/striconveha.h: Include <stdbool.h>.
59085         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59086         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59087         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59088         (mem_iconveha): New function.
59089         (str_iconveha_notranslit): Renamed from str_iconveha.
59090         (str_iconveha): New function.
59091         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59092         c-strcase.
59093
59094 2007-01-23  Bruno Haible  <bruno@clisp.org>
59095
59096         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59097         encodings without forgiving before trying any encoding with handler.
59098         (str_iconveha): Try all encodings without forgiving before trying any
59099         encoding with handler.
59100
59101 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59102
59103         Import the following changes from libc.
59104
59105         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59106
59107         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59108
59109         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59110
59111         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59112         normal_bracket label.
59113
59114         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59115
59116         [BZ #361]
59117         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59118         to normal_bracket after fetching the next character.
59119
59120 2007-01-22  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59123         argument.
59124         * lib/striconveh.c (iconv_carefully_1): New function.
59125         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59126         argument.
59127         (str_cd_iconveh): Update.
59128         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59129         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59130         * tests/test-striconveh.c (MAGIC): New macro.
59131         (new_offsets): New function.
59132         (main): Test call with and without offsets.
59133
59134 2007-01-22  Bruno Haible  <bruno@clisp.org>
59135
59136         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59137         * modules/sys_select (Makefile.am): Likewise.
59138         * modules/sys_socket (Makefile.am): Likewise.
59139         * modules/sys_time (Makefile.am): Likewise.
59140
59141 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59142
59143         * modules/gettimeofday (License): Change from GPL to LGPL, since
59144         gettimeofday is a library function.
59145
59146 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59147
59148         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59149
59150 2007-01-21  Bruno Haible  <bruno@clisp.org>
59151
59152         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59153
59154 2007-01-21  Bruno Haible  <bruno@clisp.org>
59155
59156         * modules/striconveha: New file.
59157         * lib/striconveha.h: New file.
59158         * lib/striconveha.c: New file.
59159         * MODULES.html.sh (Internationalization functions): Add striconveha.
59160         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59161         string.
59162         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59163
59164 2007-01-21  Bruno Haible  <bruno@clisp.org>
59165
59166         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59167         * lib/striconveh.c (str_iconveh): Likewise.
59168
59169 2007-01-21  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/striconveh.h (mem_iconveh): New declaration.
59172         * lib/striconveh.c (mem_iconveh): New function.
59173         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59174
59175 2007-01-21  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59178
59179         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59180         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59181         original result buffer.
59182         (str_cd_iconveh): Update.
59183         * tests/test-striconveh.c (main): Update.
59184
59185         * lib/striconv.h (mem_cd_iconv): Change specification.
59186         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59187         result buffer.
59188         (str_cd_iconv): Update.
59189         * tests/test-striconv.c (main): Update.
59190
59191 2007-01-21  Bruno Haible  <bruno@clisp.org>
59192
59193         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59194
59195 2007-01-20  Jim Meyering  <jim@meyering.net>
59196
59197         * lib/userspec.c (parse_with_separator): If a user or group string
59198         starts with "+", skip the corresponding name-to-ID look-up, since
59199         such a look-up must fail: user and group names may not include "+".
59200
59201 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59204         since we now assume the sys_time module.
59205         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59206         check for sys/time.h; no longer needed.
59207         * modules/poll (Depends-on): Depend on sys_time.
59208
59209 2007-01-18  Bruno Haible  <bruno@clisp.org>
59210
59211         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59212         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59213
59214         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59215         gettimeofday.
59216
59217         * tests/test-gettimeofday.c: Include <time.h>.
59218         (dummy): Remove variable.
59219
59220         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59221         gl_HEADER_SYS_TIME_H.
59222         (gl_HEADER_SYS_TIME_H): New macro.
59223
59224         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59225         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59227         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59228         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59230         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59231         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59232         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59233         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59234         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59235
59236         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59237         last change; it caused a compilation error when cross-compiling to
59238         Cygwin.
59239
59240 2007-01-18  Jim Meyering  <jim@meyering.net>
59241
59242         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59243         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59244         than the race-prone "test -d sys || mkdir sys".
59245         (configure.ac): Use AC_PROG_MKDIR_P.
59246         * modules/sys_select: Likewise.
59247         * modules/sys_socket: Likewise.
59248         * modules/sys_time: Likewise.
59249
59250 2007-01-18  Eric Blake  <ebb9@byu.net>
59251
59252         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59253         replace gettimeofday.
59254         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59255         name, to avoid infinite recursion.
59256
59257 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59260         module sys_time.
59261         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59262         assume timespec.h defines struct timeval.
59263         * lib/settime.c: Likewise.
59264         * lib/utimens.c: Likewise.
59265         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59266         since we now assume the gettimeofday module.
59267         * lib/tempname.c (__gen_tempname): Likewise.
59268         * lib/gettimeofday.h: Remove.
59269         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59270         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59271         Include <time.h>, for 'time()'.
59272         (localtime_buffer_addr): Also use this workaround if
59273         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59274         to simplify the uses.  All uses changed.
59275         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59276         that #undef is inside {}, and 'const' follows type name consistently.
59277         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59278         (gettimeofday): Do not use the maximum possible value for
59279         tv->tv_usec, since that might break usages other than ls.c.
59280         Instead, we'll leave ls.c alone.  This undoes today's patch
59281         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59282         we've never observed the problem but might as well keep the
59283         canary.
59284         * lib/nanosleep.c: Include timespec.h first, for interface check.
59285         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59286         now assume the sys_time module.
59287         * lib/tempname.c: Likewise.
59288         * lib/timespec.h: Likewise.
59289         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59290         needed.
59291         * lib/strftime.c: Likewise.
59292         * lib/timespec.h: Likewise.
59293         * lib/posixtm.c: Include posixtm.h first, for interface check.
59294         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59295         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59296         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59297         * lib/sys_time_.h: New file.
59298         * lib/timespec.h (struct timespec): Use long int, not long.
59299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59300         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59301         Remove obsolescent call to AC_HEADER_TIME.
59302         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59305         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59306         Likewise.
59307         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59308         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59309         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59310         into the sys_time module.  Check for gettimeofday just once.
59311         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59312         for gettimeofday signature to just check the signature.  Merely
59313         compile it, since linking doesn't test signature.  Improve test for
59314         whether gettimeofday.o is actually needed.
59315         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59316         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59317         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59318         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59319         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59320         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59321         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59322         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59323         than worrying about sys/time.h.
59324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59325         Don't bother worrying about TIME_WITH_SYS_TIME.
59326         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59327         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59328         * m4/sys_time_h.m4: New file.
59329         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59330         Don't include sys/time.h.  Return from main rather than exiting.
59331         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59332         all uses changed.
59333         * modules/gethrxtime (Depends-on): Add sys_time.
59334         * modules/gettime (Depends-on): Likewise.
59335         * modules/gettimeofday (Depends-on): Likewise.
59336         * modules/nanosleep (Depends-on): Likewise.
59337         * modules/settime (Depends-on): Likewise.
59338         * modules/tempname (Depends-on): Likewise.
59339         * modules/utimens (Depends-on): Likewise.
59340         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59341         (Include): Change back to <sys/time.h>.
59342         (Maintainer): Add self.
59343         * modules/sys_time: New file.
59344         * modules/tempname (Depends-on): Add gettimeofday.
59345         * tests/test-gettimeofday.c: Include <sys/time.h>
59346         rather than gettimeofday.h.
59347
59348 2007-01-17  Bruno Haible  <bruno@clisp.org>
59349
59350         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59351         the license default to GPL.
59352         (func_create_testdir): Don't complain if a module is LGPL and its
59353         tests module depends on GPLed modules.
59354
59355 2007-01-17  Bruno Haible  <bruno@clisp.org>
59356
59357         * lib/gettimeofday.c (gettimeofday): Add code for the case
59358         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59359         maximum possible value for tv->tv_usec, rather than the minimum one.
59360
59361 2005-10-08  Martin Lambers  <marlam@marlam.de>
59362 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59363 2007-01-16  Bruno Haible  <bruno@clisp.org>
59364
59365         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59366         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59367         gl_FUNC_GETTIMEOFDAY.
59368         (Include): Add gettimeofday.h.
59369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59370         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59371         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59372         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59373         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59374         * lib/gettimeofday.h: New file.
59375         * lib/gettimeofday.c: Include <sys/timeb.h>.
59376         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59377         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59378         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59379         fall back on time().
59380
59381         * tests/test-gettimeofday.c: New file.
59382         * modules/gettimeofday-tests: New file.
59383
59384 2007-01-16  Eric Blake  <ebb9@byu.net>
59385
59386         * modules/fnmatch (Depends-on): Depend on wchar.
59387         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59388         * m4/fnmatch.m4: Likewise.
59389         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59390         * m4/mbchar.m4: Likewise.
59391         * modules/mbswidth (Depends-on): Depend on wchar.
59392         * lib/mbswidth.c: Assume <wchar.h>.
59393         * m4/mbswidth.m4: Likewise.
59394         * modules/quotearg (Depends-on): Depend on wchar.
59395         * lib/quotearg.c: Assume <wchar.h>.
59396         * m4/quotearg.m4: Likewise.
59397         * modules/regex (Depends-on): Depend on wchar.
59398         * lib/regex_internal.h: Assume <wchar.h>.
59399         * m4/regex.m4: Likewise.
59400         * modules/stdint (Depends-on): Depend on wchar.
59401         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59402         * m4/stdint.m4: Likewise.
59403         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59404         * modules/strftime (Depends-on): Depend on wchar.
59405         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59406         * modules/strtol (Depends-on): Depend on wchar.
59407         * lib/strtol.c: Assume <wchar.h>.
59408         * modules/wcwidth (Depends-on): Depend on wchar.
59409         * lib/wcwidth.h: Assume <wchar.h>.
59410         * m4/wcwidth.m4: Likewise.
59411
59412 2007-01-16  Bruno Haible  <bruno@clisp.org>
59413
59414         * modules/csharpexec-script: New, created from...
59415         * modules/csharpexec: ... this.
59416
59417 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59418
59419         * modules/javaexec-script: New, created from...
59420         * modules/javaexec: ... this.
59421
59422 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59423
59424         * modules/poll (Dependencies): Add sys_select.
59425
59426 2007-01-15  Jim Meyering  <jim@meyering.net>
59427
59428         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59429         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59430         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59431         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59432
59433 2007-01-15  Bruno Haible  <bruno@clisp.org>
59434
59435         * modules/striconveh: New file.
59436         * lib/striconveh.h: New file.
59437         * lib/striconveh.c: New file.
59438         * MODULES.html.sh (Internationalization functions): Add striconveh.
59439
59440         * modules/striconveh-tests: New file.
59441         * tests/test-striconveh.c: New file.
59442
59443 2007-01-15  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59446         not from GNU libiconv or GNU libc.
59447
59448 2007-01-15  Bruno Haible  <bruno@clisp.org>
59449
59450         * doc/gnulib-intro.texi (Copyright): Explain the different license
59451         terms for module descriptions, autoconf macros, tests, documentation.
59452
59453 2007-01-14  Bruno Haible  <bruno@clisp.org>
59454
59455         * modules/striconv-tests: New file.
59456         * tests/test-striconv.c: New file.
59457
59458 2007-01-14  Bruno Haible  <bruno@clisp.org>
59459
59460         * modules/iconv-tests: New file.
59461         * tests/test-iconv.c: New file.
59462
59463 2007-01-14  Bruno Haible  <bruno@clisp.org>
59464
59465         * gnulib-tool (func_get_license): For test modules, use the license of
59466         the main module.
59467
59468 2007-01-14  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59471         if iconv is found to exist.
59472
59473 2007-01-14  Bruno Haible  <bruno@clisp.org>
59474
59475         * modules/c-ctype-tests: New file.
59476         * tests/test-c-ctype.c: New file.
59477
59478 2007-01-14  Bruno Haible  <bruno@clisp.org>
59479
59480         * modules/binary-io-tests: New file.
59481         * tests/test-binary-io.sh: New file.
59482         * tests/test-binary-io.c: New file.
59483
59484 2007-01-14  Bruno Haible  <bruno@clisp.org>
59485
59486         * modules/array-oset-tests: New file.
59487         * tests/test-array_oset.c: New file.
59488
59489 2007-01-14  Bruno Haible  <bruno@clisp.org>
59490
59491         * modules/array-list-tests: New file.
59492         * tests/test-array_list.c: New file.
59493
59494 2007-01-14  Bruno Haible  <bruno@clisp.org>
59495
59496         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59497         and make.
59498         Reported by Simon Josefsson in
59499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59500
59501 2007-01-14  Bruno Haible  <bruno@clisp.org>
59502
59503         * modules/allocsa-tests: New file.
59504         * tests/test-allocsa.c: New file.
59505
59506 2007-01-14  Bruno Haible  <bruno@clisp.org>
59507
59508         * modules/fchdir (Depends-on): Add absolute-header.
59509         * modules/unistd (Depends-on): Likewise.
59510
59511 2006-12-30  Bruno Haible  <bruno@clisp.org>
59512
59513         * modules/fchdir: New file.
59514         * modules/unistd (Files): Add lib/unistd_.h.
59515         (Makefile.am): Generate unistd.h from unistd_.h.
59516         * lib/fchdir.c: New file.
59517         * lib/dirent_.h: New file.
59518         * lib/unistd_.h: New file.
59519         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59520         * m4/fchdir.m4: New file.
59521         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59522         (gl_HEADER_UNISTD): Invoke it.
59523         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59524         function.
59525         * lib/backupfile.c (opendir, closedir): Undefine.
59526         * lib/chown.c (open, close): Undefine.
59527         * lib/clean-temp.c (open, close): Undefine.
59528         * lib/copy-file.c (open, close): Undefine.
59529         * lib/execute.c (open, close): Undefine.
59530         * lib/fsusage.c (open, close): Undefine.
59531         * lib/gc-gnulib.c (open, close): Undefine.
59532         * lib/getcwd.c (opendir, closedir): Undefine.
59533         * lib/glob.c (opendir, closedir): Undefine.
59534         * lib/javacomp.c (open, close): Undefine.
59535         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59536         * lib/openat-proc.c (open, close): Undefine.
59537         * lib/pagealign_alloc.c (open, close): Undefine.
59538         * lib/pipe.c (open, close): Undefine.
59539         * lib/progreloc.c (open, close): Undefine.
59540         * lib/savedir.c (opendir, closedir): Undefine.
59541         * lib/utime.c (open, close): Undefine.
59542         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59543
59544 2007-01-10  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59547
59548 2007-01-12  Eric Blake  <ebb9@byu.net>
59549
59550         Provide a robust <wchar.h>.  Further simplifications are now
59551         possible in other modules, but not included here.
59552         * modules/wchar: New module.
59553         * m4/wchar.m4: New file.
59554         * lib/wchar_.h: Likewise.
59555         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59556         of the new module.
59557         * MODULES.html.sh (Extended multibyte and wide character utilities):
59558         New section.
59559
59560 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59561
59562         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59563         to a reasonable default for memory allocation.
59564         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59565         file system that reports garbage st_size values for symlinks.
59566         Problem reported by Liyang Hu.
59567
59568 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59569
59570         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59571         Emacs .#* auto-save files).
59572
59573 2007-01-11  Bruno Haible  <bruno@clisp.org>
59574
59575         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59576         directory.
59577
59578 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         Use @...@ consistently in lib/wctype_.h.
59581         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59582         on it being set to 1 or 0.
59583         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59584         go back to AC_SUBSTing it.
59585         * modules/wctype (Makefile.am): Undo previous change.
59586
59587 2007-01-10  Eric Blake  <ebb9@byu.net>
59588
59589         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59590         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59591         * modules/wctype (Makefile.am): Likewise.
59592         Reported by Chris McGuire.
59593
59594 2007-01-10  Jim Meyering  <jim@meyering.net>
59595
59596         fts.c: a small readability/maintainability improvement
59597         * lib/fts.c (fts_read): Make this code slightly more readable and
59598         maintainable by hoisting the "sp->fts_cur = p" assignments to
59599         immediately follow the statements that set P.  Derived from
59600         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59601
59602 2007-01-10  Eric Blake  <ebb9@byu.net>
59603
59604         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59605         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59607         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59608         Reported by Chris McGuire.
59609
59610 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59611
59612         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59613         in sed script.
59614
59615 2007-01-09  Bruno Haible  <bruno@clisp.org>
59616
59617         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59618         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59619         variables.
59620         (func_module): Use them.
59621
59622 2007-01-09  Bruno Haible  <bruno@clisp.org>
59623
59624         * modules/unistr/base: New file.
59625         * lib/unistr.h: New file.
59626
59627         * modules/unistr/u8-to-u16: New file.
59628         * lib/unistr/u8-to-u16.c: New file.
59629
59630         * modules/unistr/u8-to-u32: New file.
59631         * lib/unistr/u8-to-u32.c: New file.
59632
59633         * modules/unistr/u16-to-u8: New file.
59634         * lib/unistr/u16-to-u8.c: New file.
59635
59636         * modules/unistr/u16-to-u32: New file.
59637         * lib/unistr/u16-to-u32.c: New file.
59638
59639         * modules/unistr/u32-to-u8: New file.
59640         * lib/unistr/u32-to-u8.c: New file.
59641
59642         * modules/unistr/u32-to-u16: New file.
59643         * lib/unistr/u32-to-u16.c: New file.
59644
59645         * modules/unistr/u8-check: New file.
59646         * modules/unistr/u16-check: New file.
59647         * modules/unistr/u32-check: New file.
59648         * lib/unistr/u8-check.c: New file.
59649         * lib/unistr/u16-check.c: New file.
59650         * lib/unistr/u32-check.c: New file.
59651
59652         * modules/unistr/u8-chr: New file.
59653         * modules/unistr/u16-chr: New file.
59654         * modules/unistr/u32-chr: New file.
59655         * lib/unistr/u8-chr.c: New file.
59656         * lib/unistr/u16-chr.c: New file.
59657         * lib/unistr/u32-chr.c: New file.
59658
59659         * modules/unistr/u8-cmp: New file.
59660         * modules/unistr/u16-cmp: New file.
59661         * modules/unistr/u32-cmp: New file.
59662         * lib/unistr/u8-cmp.c: New file.
59663         * lib/unistr/u16-cmp.c: New file.
59664         * lib/unistr/u32-cmp.c: New file.
59665
59666         * modules/unistr/u8-cpy: New file.
59667         * modules/unistr/u16-cpy: New file.
59668         * modules/unistr/u32-cpy: New file.
59669         * lib/unistr/u8-cpy.c: New file.
59670         * lib/unistr/u16-cpy.c: New file.
59671         * lib/unistr/u32-cpy.c: New file.
59672         * lib/unistr/u-cpy.h: New file.
59673
59674         * modules/unistr/u8-cpy-alloc: New file.
59675         * modules/unistr/u16-cpy-alloc: New file.
59676         * modules/unistr/u32-cpy-alloc: New file.
59677         * lib/unistr/u8-cpy-alloc.c: New file.
59678         * lib/unistr/u16-cpy-alloc.c: New file.
59679         * lib/unistr/u32-cpy-alloc.c: New file.
59680         * lib/unistr/u-cpy-alloc.h: New file.
59681
59682         * modules/unistr/u8-endswith: New file.
59683         * modules/unistr/u16-endswith: New file.
59684         * modules/unistr/u32-endswith: New file.
59685         * lib/unistr/u8-endswith.c: New file.
59686         * lib/unistr/u16-endswith.c: New file.
59687         * lib/unistr/u32-endswith.c: New file.
59688         * lib/unistr/u-endswith.h: New file.
59689
59690         * modules/unistr/u8-mblen: New file.
59691         * modules/unistr/u16-mblen: New file.
59692         * modules/unistr/u32-mblen: New file.
59693         * lib/unistr/u8-mblen.c: New file.
59694         * lib/unistr/u16-mblen.c: New file.
59695         * lib/unistr/u32-mblen.c: New file.
59696
59697         * modules/unistr/u8-mbtouc: New file.
59698         * modules/unistr/u16-mbtouc: New file.
59699         * modules/unistr/u32-mbtouc: New file.
59700         * lib/unistr/u8-mbtouc.c: New file.
59701         * lib/unistr/u16-mbtouc.c: New file.
59702         * lib/unistr/u32-mbtouc.c: New file.
59703
59704         * modules/unistr/u8-mbtouc-safe: New file.
59705         * modules/unistr/u16-mbtouc-safe: New file.
59706         * modules/unistr/u32-mbtouc-safe: New file.
59707         * lib/unistr/u8-mbtouc-safe.c: New file.
59708         * lib/unistr/u16-mbtouc-safe.c: New file.
59709         * lib/unistr/u32-mbtouc-safe.c: New file.
59710
59711         * modules/unistr/u8-move: New file.
59712         * modules/unistr/u16-move: New file.
59713         * modules/unistr/u32-move: New file.
59714         * lib/unistr/u8-move.c: New file.
59715         * lib/unistr/u16-move.c: New file.
59716         * lib/unistr/u32-move.c: New file.
59717         * lib/unistr/u-move.h: New file.
59718
59719         * modules/unistr/u8-next: New file.
59720         * modules/unistr/u16-next: New file.
59721         * modules/unistr/u32-next: New file.
59722         * lib/unistr/u8-next.c: New file.
59723         * lib/unistr/u16-next.c: New file.
59724         * lib/unistr/u32-next.c: New file.
59725
59726         * modules/unistr/u8-prev: New file.
59727         * modules/unistr/u16-prev: New file.
59728         * modules/unistr/u32-prev: New file.
59729         * lib/unistr/u8-prev.c: New file.
59730         * lib/unistr/u16-prev.c: New file.
59731         * lib/unistr/u32-prev.c: New file.
59732
59733         * modules/unistr/u8-set: New file.
59734         * modules/unistr/u16-set: New file.
59735         * modules/unistr/u32-set: New file.
59736         * lib/unistr/u8-set.c: New file.
59737         * lib/unistr/u16-set.c: New file.
59738         * lib/unistr/u32-set.c: New file.
59739         * lib/unistr/u-set.h: New file.
59740
59741         * modules/unistr/u8-startswith: New file.
59742         * modules/unistr/u16-startswith: New file.
59743         * modules/unistr/u32-startswith: New file.
59744         * lib/unistr/u8-startswith.c: New file.
59745         * lib/unistr/u16-startswith.c: New file.
59746         * lib/unistr/u32-startswith.c: New file.
59747         * lib/unistr/u-startswith.h: New file.
59748
59749         * modules/unistr/u8-stpcpy: New file.
59750         * modules/unistr/u16-stpcpy: New file.
59751         * modules/unistr/u32-stpcpy: New file.
59752         * lib/unistr/u8-stpcpy.c: New file.
59753         * lib/unistr/u16-stpcpy.c: New file.
59754         * lib/unistr/u32-stpcpy.c: New file.
59755         * lib/unistr/u-stpcpy.h: New file.
59756
59757         * modules/unistr/u8-stpncpy: New file.
59758         * modules/unistr/u16-stpncpy: New file.
59759         * modules/unistr/u32-stpncpy: New file.
59760         * lib/unistr/u8-stpncpy.c: New file.
59761         * lib/unistr/u16-stpncpy.c: New file.
59762         * lib/unistr/u32-stpncpy.c: New file.
59763         * lib/unistr/u-stpncpy.h: New file.
59764
59765         * modules/unistr/u8-strcat: New file.
59766         * modules/unistr/u16-strcat: New file.
59767         * modules/unistr/u32-strcat: New file.
59768         * lib/unistr/u8-strcat.c: New file.
59769         * lib/unistr/u16-strcat.c: New file.
59770         * lib/unistr/u32-strcat.c: New file.
59771         * lib/unistr/u-strcat.h: New file.
59772
59773         * modules/unistr/u8-strchr: New file.
59774         * modules/unistr/u16-strchr: New file.
59775         * modules/unistr/u32-strchr: New file.
59776         * lib/unistr/u8-strchr.c: New file.
59777         * lib/unistr/u16-strchr.c: New file.
59778         * lib/unistr/u32-strchr.c: New file.
59779
59780         * modules/unistr/u8-strcmp: New file.
59781         * modules/unistr/u16-strcmp: New file.
59782         * modules/unistr/u32-strcmp: New file.
59783         * lib/unistr/u8-strcmp.c: New file.
59784         * lib/unistr/u16-strcmp.c: New file.
59785         * lib/unistr/u32-strcmp.c: New file.
59786
59787         * modules/unistr/u8-strcpy: New file.
59788         * modules/unistr/u16-strcpy: New file.
59789         * modules/unistr/u32-strcpy: New file.
59790         * lib/unistr/u8-strcpy.c: New file.
59791         * lib/unistr/u16-strcpy.c: New file.
59792         * lib/unistr/u32-strcpy.c: New file.
59793         * lib/unistr/u-strcpy.h: New file.
59794
59795         * modules/unistr/u8-strcspn: New file.
59796         * modules/unistr/u16-strcspn: New file.
59797         * modules/unistr/u32-strcspn: New file.
59798         * lib/unistr/u8-strcspn.c: New file.
59799         * lib/unistr/u16-strcspn.c: New file.
59800         * lib/unistr/u32-strcspn.c: New file.
59801         * lib/unistr/u-strcspn.h: New file.
59802
59803         * modules/unistr/u8-strdup: New file.
59804         * modules/unistr/u16-strdup: New file.
59805         * modules/unistr/u32-strdup: New file.
59806         * lib/unistr/u8-strdup.c: New file.
59807         * lib/unistr/u16-strdup.c: New file.
59808         * lib/unistr/u32-strdup.c: New file.
59809         * lib/unistr/u-strdup.h: New file.
59810
59811         * modules/unistr/u8-strlen: New file.
59812         * modules/unistr/u16-strlen: New file.
59813         * modules/unistr/u32-strlen: New file.
59814         * lib/unistr/u8-strlen.c: New file.
59815         * lib/unistr/u16-strlen.c: New file.
59816         * lib/unistr/u32-strlen.c: New file.
59817         * lib/unistr/u-strlen.h: New file.
59818
59819         * modules/unistr/u8-strmblen: New file.
59820         * modules/unistr/u16-strmblen: New file.
59821         * modules/unistr/u32-strmblen: New file.
59822         * lib/unistr/u8-strmblen.c: New file.
59823         * lib/unistr/u16-strmblen.c: New file.
59824         * lib/unistr/u32-strmblen.c: New file.
59825
59826         * modules/unistr/u8-strmbtouc: New file.
59827         * modules/unistr/u16-strmbtouc: New file.
59828         * modules/unistr/u32-strmbtouc: New file.
59829         * lib/unistr/u8-strmbtouc.c: New file.
59830         * lib/unistr/u16-strmbtouc.c: New file.
59831         * lib/unistr/u32-strmbtouc.c: New file.
59832
59833         * modules/unistr/u8-strncat: New file.
59834         * modules/unistr/u16-strncat: New file.
59835         * modules/unistr/u32-strncat: New file.
59836         * lib/unistr/u8-strncat.c: New file.
59837         * lib/unistr/u16-strncat.c: New file.
59838         * lib/unistr/u32-strncat.c: New file.
59839         * lib/unistr/u-strncat.h: New file.
59840
59841         * modules/unistr/u8-strncmp: New file.
59842         * modules/unistr/u16-strncmp: New file.
59843         * modules/unistr/u32-strncmp: New file.
59844         * lib/unistr/u8-strncmp.c: New file.
59845         * lib/unistr/u16-strncmp.c: New file.
59846         * lib/unistr/u32-strncmp.c: New file.
59847
59848         * modules/unistr/u8-strncpy: New file.
59849         * modules/unistr/u16-strncpy: New file.
59850         * modules/unistr/u32-strncpy: New file.
59851         * lib/unistr/u8-strncpy.c: New file.
59852         * lib/unistr/u16-strncpy.c: New file.
59853         * lib/unistr/u32-strncpy.c: New file.
59854         * lib/unistr/u-strncpy.h: New file.
59855
59856         * modules/unistr/u8-strnlen: New file.
59857         * modules/unistr/u16-strnlen: New file.
59858         * modules/unistr/u32-strnlen: New file.
59859         * lib/unistr/u8-strnlen.c: New file.
59860         * lib/unistr/u16-strnlen.c: New file.
59861         * lib/unistr/u32-strnlen.c: New file.
59862         * lib/unistr/u-strnlen.h: New file.
59863
59864         * modules/unistr/u8-strpbrk: New file.
59865         * modules/unistr/u16-strpbrk: New file.
59866         * modules/unistr/u32-strpbrk: New file.
59867         * lib/unistr/u8-strpbrk.c: New file.
59868         * lib/unistr/u16-strpbrk.c: New file.
59869         * lib/unistr/u32-strpbrk.c: New file.
59870         * lib/unistr/u-strpbrk.h: New file.
59871
59872         * modules/unistr/u8-strrchr: New file.
59873         * modules/unistr/u16-strrchr: New file.
59874         * modules/unistr/u32-strrchr: New file.
59875         * lib/unistr/u8-strrchr.c: New file.
59876         * lib/unistr/u16-strrchr.c: New file.
59877         * lib/unistr/u32-strrchr.c: New file.
59878
59879         * modules/unistr/u8-strspn: New file.
59880         * modules/unistr/u16-strspn: New file.
59881         * modules/unistr/u32-strspn: New file.
59882         * lib/unistr/u8-strspn.c: New file.
59883         * lib/unistr/u16-strspn.c: New file.
59884         * lib/unistr/u32-strspn.c: New file.
59885         * lib/unistr/u-strspn.h: New file.
59886
59887         * modules/unistr/u8-strstr: New file.
59888         * modules/unistr/u16-strstr: New file.
59889         * modules/unistr/u32-strstr: New file.
59890         * lib/unistr/u8-strstr.c: New file.
59891         * lib/unistr/u16-strstr.c: New file.
59892         * lib/unistr/u32-strstr.c: New file.
59893         * lib/unistr/u-strstr.h: New file.
59894
59895         * modules/unistr/u8-strtok: New file.
59896         * modules/unistr/u16-strtok: New file.
59897         * modules/unistr/u32-strtok: New file.
59898         * lib/unistr/u8-strtok.c: New file.
59899         * lib/unistr/u16-strtok.c: New file.
59900         * lib/unistr/u32-strtok.c: New file.
59901         * lib/unistr/u-strtok.h: New file.
59902
59903         * modules/unistr/u8-uctomb: New file.
59904         * modules/unistr/u16-uctomb: New file.
59905         * modules/unistr/u32-uctomb: New file.
59906         * lib/unistr/u8-uctomb.c: New file.
59907         * lib/unistr/u16-uctomb.c: New file.
59908         * lib/unistr/u32-uctomb.c: New file.
59909
59910         * MODULES.html.sh (Unicode string functions): Add the new modules.
59911
59912 2007-01-08  Bruno Haible  <bruno@clisp.org>
59913
59914         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59915         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59916         subdirectories.
59917
59918 2007-01-08  Karl Berry  <karl@gnu.org>
59919
59920         * doc/error.texi: mention that main() fns must set program_name
59921         when progname is used.
59922
59923 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59926         WCTYPE_H is empty, for the benefit of builds from non-distclean
59927         directories.  Problem reported by Eric Blake in
59928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59929
59930 2007-01-08  Bruno Haible  <bruno@clisp.org>
59931
59932         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59933         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59934         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59935         PROVIDE_CANONICALIZE_FILENAME_MODE.
59936         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59937
59938 2007-01-08  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59941         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59942         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59943         * lib/fts.c: Likewise.
59944         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59945
59946 2006-12-25  Bruno Haible  <bruno@clisp.org>
59947
59948         * modules/utf8-ucs4-safe: New file.
59949         * lib/utf8-ucs4-safe.h: New file.
59950         * lib/unistr/utf8-ucs4-safe.c: New file.
59951
59952         * modules/utf16-ucs4-safe: New file.
59953         * lib/utf16-ucs4-safe.h: New file.
59954         * lib/unistr/utf16-ucs4-safe.c: New file.
59955
59956         * MODULES.html.sh (Unicode string functions): Add the new modules.
59957
59958 2007-01-08  Bruno Haible  <bruno@clisp.org>
59959
59960         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59961         (Depends-on): Add unitypes.
59962         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59963         (u8_mbtouc_aux): Move out to separate file.
59964         (u8_mbtouc): Use ucs4_t, uint8_t types.
59965         * lib/unistr/utf8-ucs4.c: New file.
59966
59967         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59968         (Depends-on): Add unitypes.
59969         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59970         (u16_mbtouc_aux): Move out to separate file.
59971         (u16_mbtouc): Use ucs4_t, uint16_t types.
59972         * lib/unistr/utf16-ucs4.c: New file.
59973
59974         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59975         (Depends-on): Add unitypes.
59976         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59977         (u8_uctomb_aux): Move out to separate file.
59978         (u8_uctomb): Use ucs4_t, uint8_t types.
59979         * lib/unistr/ucs4-utf8.c: New file.
59980
59981         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59982         (Depends-on): Add unitypes.
59983         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59984         (u16_uctomb_aux): Move out to separate file.
59985         (u16_uctomb): Use ucs4_t, uint16_t types.
59986         * lib/unistr/ucs4-utf16.c: New file.
59987
59988 2006-12-25  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/unitypes: New file.
59991         * lib/unitypes.h: New file.
59992         * MODULES.html.sh (func_all_modules): New section "Unicode string
59993         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59994         this section. Add unitypes.
59995
59996 2007-01-08  Bruno Haible  <bruno@clisp.org>
59997
59998         Avoid variable names that conflict with those from libtool.
59999         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60000         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60001         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60002         library_names_spec to acl_library_names_spec, hardcode_* to
60003         acl_hardcode_*.
60004         Reported by Ralf Wildenhues.
60005
60006 2007-01-08  Bruno Haible  <bruno@clisp.org>
60007
60008         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60009         definition.
60010         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60011         definition.
60012         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60013         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60014         definition.
60015         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60016         definition.
60017         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60018         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60019         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60020         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60021         definition.
60022         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60023         definition.
60024         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60025         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60026         GC_USE_<algorithm>.
60027         * lib/gc-libgcrypt.c: Likewise.
60028         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60029         * modules/gc-arctwo (configure.ac): Likewise.
60030         * modules/gc-des (configure.ac): Likewise.
60031         * modules/gc-hmac-md5 (configure.ac): Likewise.
60032         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60033         * modules/gc-md2 (configure.ac): Likewise.
60034         * modules/gc-md4 (configure.ac): Likewise.
60035         * modules/gc-md5 (configure.ac): Likewise.
60036         * modules/gc-random (configure.ac): Likewise.
60037         * modules/gc-rijndael (configure.ac): Likewise.
60038         * modules/gc-sha1 (configure.ac): Likewise.
60039
60040 2007-01-08  Bruno Haible  <bruno@clisp.org>
60041
60042         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60043         macro definition.
60044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60045         definition.
60046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60047         definition.
60048         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60049         * modules/fcntl-safer (configure.ac): Likewise.
60050         * modules/fopen-safer (configure.ac): Likewise.
60051         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60052         GNULIB_FWRITEERROR macro definition.
60053
60054 2007-01-08  Bruno Haible  <bruno@clisp.org>
60055
60056         * m4/gnulib-common.m4: New file.
60057         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60058         (func_get_filelist): Add m4/gnulib-common.m4.
60059
60060 2007-01-08  Bruno Haible  <bruno@clisp.org>
60061
60062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60063         command.
60064
60065 2007-01-08  Jim Meyering  <jim@meyering.net>
60066
60067         Use a more robust test for a "can't happen" condition.
60068         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60069         narrowed the st_size value.  Presuming the "can't happen" condition
60070         is true, that narrowing could conceivably convert an invalid st_size
60071         value into a valid one.  Instead, use a change based on Matthew
60072         Woehlke's original patch.
60073
60074         Slight readability improvement: use an assert-like macro
60075         in place of literal "abort ()" uses.
60076         * lib/fts.c (fts_assert): Define.
60077         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60078         Use this macro instead of a bare 'abort'.
60079
60080 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60083         simply work around them.
60084         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60085         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60086         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60087         declaring.
60088         Don't bother to define as macros, since the standard doesn't require it.
60089         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60090         longer worry about IRIX 5.3.
60091         (HAVE_WCTYPE_CTMP_BUG): Remove.
60092
60093 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60096         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60097         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60098         Problems reported by Georg Schwarz for IRIX 5.3.
60099
60100         * gnulib-tool (autoconf_minversion): Take the maximum version number
60101         found, not the minimum.  Problem reported by James Youngman.
60102
60103 2007-01-03  Karl Berry  <karl@gnu.org>
60104
60105         * doc/error.texi: new file, explaining interaction with progname.
60106         * doc/gnulib.texi: include it.  Update copyright.
60107
60108 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60109
60110         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60111         AC_CANONICAL_HOST, to improve autobuild outputs.
60112
60113 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60114             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60115
60116         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60117         sockets, server sockets, and other file descriptors.  Count errors
60118         to compute the return value.  Reorder the code a bit to be easier
60119         to follow.  Don't set event bits that were not requested (except
60120         POLLERR and POLLHUP).
60121
60122 2007-01-01  Bruno Haible  <bruno@clisp.org>
60123
60124         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60125
60126 2007-01-03  Jim Meyering  <jim@meyering.net>
60127
60128         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60129
60130 2007-01-02  Bruno Haible  <bruno@clisp.org>
60131
60132         * modules/settime (Include): Require timespec.h.
60133         * modules/nanosleep (Include): Likewise.
60134
60135 2007-01-01  Bruno Haible  <bruno@clisp.org>
60136
60137         * gnulib-tool (func_emit_copyright_notice): Bump year.
60138         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60139
60140 2007-01-01  Bruno Haible  <bruno@clisp.org>
60141
60142         Improve support for OpenBSD.
60143         * build-aux/config.rpath (libname_spec): Export.
60144         (library_names_spec): New variable. Export.
60145         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60146         library_names_spec from the config.rpath output. Locate shared library
60147         through the name pattern in library_names_spec.
60148
60149 2007-01-01  Eric Blake  <ebb9@byu.net>
60150
60151         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60152
60153 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60154
60155         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60156         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60157         assume the C locale, and avoid an "eval" that could cause trouble.
60158         Problem with SORT reported by Bob Proulx.
60159
60160         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60161         Define.  Trivial patch from Henning Nielsen Lund, originally
60162         sent to bug-grep@gnu.org today.
60163
60164 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60167         struct stat.  Problem reported by Henning Nielsen Lund.
60168         * lib/acl.c: Include acl.h first, to check interface.  Don't
60169         bother to include sys/types.h and sys/stat.h again.
60170
60171 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60172
60173         Import the following change from libc; problem reported by
60174         Sven Verdoolaege.
60175
60176         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60177
60178         [BZ #1373]
60179         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60180
60181 2006-12-28  Jim Meyering  <jim@meyering.net>
60182
60183         * build-aux/announce-gen: Do not assume that the package
60184         builds any of tar.gz, tar.bz2, and .xdelta files.
60185         Suggestion from Simon Josefsson.
60186
60187 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60188
60189         * modules/announce-gen: New file.
60190
60191 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60194         handles its gotchas now.
60195         * lib/mbswidth.c: Likewise.
60196         * lib/wcwidth.h: Likewise.
60197         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60198         and iswcntrl; the wctype module does this stuff now.
60199         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60201         * modules/mbchar (Depends-on): Add wctype.
60202         * modules/mbswidth (Depends-on): Likewise.
60203         * modules/wcwidth (Depends-on): Likewise.
60204
60205 2006-12-27  Eric Blake  <ebb9@byu.net>
60206
60207         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60208         module uses more than what <wctype.h> is required to provide.
60209
60210 2006-12-26  Eric Blake  <ebb9@byu.net>
60211
60212         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60213
60214 2006-12-26  Eric Blake  <ebb9@byu.net>
60215
60216         * modules/absolute-header: New module.
60217         * modules/fcntl (Depends-on): Depend on it.
60218         * modules/inttypes (Depends-on): Likewise.
60219         * modules/stdint (Depends-on): Likewise.
60220         * modules/sys_stat (Depends-on): Likewise.
60221         * modules/wctype (Depends-on): Likewise.
60222         * MODULES.html.sh (Support for building libraries and
60223         executables): Document it.
60224
60225 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         * gnulib-tool (SED): Remove, undoing previous change.
60228         The problem was that it broke coreutils on Solaris, because
60229         "sed --posix" leaked into a makefile.
60230         (sed): New alias, if 'alias' and GNU sed.
60231
60232 2006-12-24  Jim Meyering  <jim@meyering.net>
60233
60234         Work around an fchownat bug in glibc-2.4:
60235         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60236         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60237         in spite of the -P option.
60238         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60239         New macros.
60240         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60241         * modules/openat (Files): Add lib/fchownat.c.
60242         * lib/openat.c (fchownat): Don't define here.  Move to...
60243         * lib/fchownat.c: ...this new file.
60244
60245 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60246
60247         Fix bug reported by Bruno Haible in
60248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60249         where quotearg.c didn't compile on Mac OS X 10.2 because it
60250         lacks <wchar.h> and wint_t.
60251         * lib/wctype_.h (__wctype_wint_t): New type.
60252         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60253         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60254         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60255         Arg is now of type __wctype_wint_t, not wint_t.
60256         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60257         substitute HAVE_WINT_T.
60258         * modules/wctype (Files): Add m4/wint_t.m4.
60259         (wctype.h): Substitute HAVE_WINT_T.
60260
60261 2006-12-23  Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60264
60265 2006-12-23  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60268         S_ISLNK.
60269         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60270         mingw.
60271
60272 2006-12-22  Bruno Haible  <bruno@clisp.org>
60273
60274         * lib/copy-file.c: Include acl.h.
60275         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60276         Close the file descriptors only after being done with copy_acl.
60277         * modules/copy-file (Depends-on): Add acl.
60278
60279 2006-12-22  Bruno Haible  <bruno@clisp.org>
60280
60281         * gnulib-tool (SED): New variable.
60282         Use $SED instead of sed everywhere.
60283
60284 2006-12-22  Bruno Haible  <bruno@clisp.org>
60285
60286         * modules/no-c++: New file.
60287         * m4/no-c++.m4: New file.
60288         * MODULES.html.sh (Support for building libraries and executables):
60289         Add no-c++.
60290
60291 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60292
60293         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60294         Include <limits.h>, and use its INT_MAX to rewrite the
60295         j loop so that it does not overflow 'int'.  Problem reported by
60296         Ralf Wildenhues in
60297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60298         Play it safe by shifting left by 1 rather than multiplying by 2,
60299         as GCC is less likely to optimize this away when the value
60300         is signed (when it assumes overflow leads to undefined behavior).
60301         Also, don't assume time_t uses two's complement.
60302
60303 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         * MODULES.html.sh: New module wctype.
60306         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60307         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60308         <wctype.h>, since the new wctype module should fix this.
60309         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60310         the wctype module should arrange for it.
60311         * lib/regex_internal.h: Likewise.
60312         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60313         since the wctype module should handle this now.
60314         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60315         * modules/fnmatch (Depends-on): Add wctype.
60316         * modules/quotearg (Depends-on): Likewise.
60317         * modules/regex (Depends-on): Likewise.
60318
60319 2006-12-19  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60322         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60323
60324 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60325
60326         * modules/savewd (Depends-on): Fix dependency on fcntl.
60327
60328 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60331         conforms to C99, rather than relying on the user's environment
60332         setting of STDINT_H.
60333
60334 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60335         and Eric Blake  <ebb9@byu.net>
60336
60337         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60338         This is more consistent with the other defines here.
60339         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60340         Port to z/OS.  Problem reported by Paul Gilmartin.
60341         Change local vars to use gl_ prefix rather than ac_.
60342         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60343         with other defines.
60344         * modules/double-slash-root: New module.
60345         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60346         (Depends-on): Add double-slash-root.
60347         * MODULES.html.sh (File system functions): Mention new module.
60348
60349 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60350
60351         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60352         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60353         This is for the benefit of gzip, which doesn't do i18n.
60354
60355 2006-12-12  Jim Meyering  <jim@meyering.net>
60356
60357         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60358         Reported by Andreas Schwab <schwab@suse.de>.
60359
60360 2006-12-12  Bruno Haible  <bruno@clisp.org>
60361
60362         Merge these changes.
60363         2006-09-05  Bruno Haible  <bruno@clisp.org>
60364         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60365         iconv_alloc succeeded.
60366         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60367         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60368         test for " && dest " at the end - dest is always != NULL there. Call
60369         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60370         with 2xNULL arguments, also to flush the state storage. Handle the
60371         IRIX iconv behaviour. Realloc the final result, to throw away unused
60372         memory.
60373
60374 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60377         and fchmodat unconditionally, since glibc 2.4 has them.
60378         Problem reported by Arkadiusz Miskiewicz.
60379
60380 2006-12-10  Bruno Haible  <bruno@clisp.org>
60381
60382         * gnulib-tool (func_import): Show the include files only for those
60383         modules that are copied and specified.
60384         Reported by Karl Berry.
60385
60386 2006-12-08  Jim Meyering  <jim@meyering.net>
60387
60388         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60389         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60390
60391         * build-aux/announce-gen: Add two new options, both optional:
60392         --bootstrap-tools=TOOL_LIST
60393               a comma-separated list of tools, e.g.,
60394               autoconf,automake,bison,gnulib
60395         --gnulib-snapshot-date=DATE
60396               if gnulib is in the bootstrap tool list,
60397               then report this as the snapshot date.
60398               If not specified, use the current date/time.
60399               If you specify a date here, be sure it's UTC.
60400
60401 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60402
60403         * tests/test-argp-2.sh: Fix test to match actual output.
60404         (func_compare): Fix sed script to be portable.
60405
60406 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60409         workaround for this case.  It is not autoconfigured now; offhand
60410         it's hard to see how to autoconfigure it.
60411
60412 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60415         a directory that is about to be chowned.  Such a directory's
60416         initial file permissions should permit the owner only and this
60417         should not be changed until after the chown, since the group and
60418         other bits would be incorrect if they granted permission before
60419         the chown.
60420
60421         Fix porting problem for iswctype reported by Georg Schwarz in:
60422         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60423         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60424         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60426         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60427
60428 2006-12-03  Jim Meyering  <jim@meyering.net>
60429
60430         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60431         p->fts_statp may not yet be defined.
60432         (fts_read): Instead, set it in the caller, once p->fts_statp is
60433         sure to be defined, and corresponds to a top-level directory.
60434         This bug made du -x fail.  Here's the coreutils test case:
60435         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60436         Reported by Mike Frysinger.
60437
60438 2006-12-01  Jim Meyering  <jim@meyering.net>
60439
60440         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60441         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60442         Reported by Simon Josefsson.
60443
60444 2006-11-30  Jim Meyering  <jim@meyering.net>
60445
60446         * m4/warning.m4: Use the all-permissive copyright notice
60447         recommended by RMS (rather than LGPL).
60448         * m4/vararrays.m4: Likewise.
60449         * m4/flexmember.m4: Likewise.
60450
60451 2006-11-29  Bruno Haible  <bruno@clisp.org>
60452
60453         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60454         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60455         using +=.
60456         Reported by Simon Josefsson <simon@josefsson.org>.
60457
60458 2006-11-28  James Youngman <jay@gnu.org>
60459
60460         * README: Advise users that they might find the bug-gnulib@gnu.org
60461         and autotools-announce@gnu.org mailing lists useful.
60462
60463 2006-11-28  Bruno Haible  <bruno@clisp.org>
60464
60465         * m4/ptrdiff_max.m4: Remove file.
60466
60467 2006-11-21  Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60470         _AC_COMPUTE_INT.
60471         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60472         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60473         _AC_COMPUTE_INT.
60474         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60475         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60476         _AC_COMPUTE_INT.
60477         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60478
60479 2006-11-28  Jim Meyering  <jim@meyering.net>
60480
60481         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60482         warning from "gcc -Wshadow" about shadowing the builtin.
60483
60484 2006-11-27  Bruno Haible  <bruno@clisp.org>
60485
60486         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60487         _AC_COMPUTE_INT.
60488         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60489
60490 2006-11-27  Bruno Haible  <bruno@clisp.org>
60491             Paul Eggert  <eggert@cs.ucla.edu>
60492
60493         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60494
60495 2006-11-26  Bruno Haible  <bruno@clisp.org>
60496
60497         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60498         noinst_LTLIBRARIES.
60499
60500 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60501             Bruno Haible  <bruno@clisp.org>
60502
60503         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60504         if compiling with "gcc -ansi".
60505
60506 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         Fix some incompatibilities with gcc -ansi -pedantic.
60509         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60510         if compiling pedantically with GCC, unless it's C99 or later.
60511         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60512         it mishandles gcc -ansi -pedantic as well.
60513         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60514         if gcc -pedantic.
60515         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60516         initializers for struct if -pedantic, unless it's C99 or later.
60517
60518 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60519
60520         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60521         Don't close an fd more than once. Identical atimes indicate
60522         success, not failure.
60523
60524 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60525
60526         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60527
60528 2006-11-23  Jim Meyering  <jim@meyering.net>
60529
60530         * build-aux/announce-gen: New file.  From coreutils.
60531
60532 2006-11-22  Jim Meyering  <jim@meyering.net>
60533
60534         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60535         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60536         (fts_read): Use a temporary to narrow the overused st_size member
60537         before using it in a switch statement.  Reported by Matthew Woehlke.
60538
60539         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60540         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60541
60542 2006-11-20  Bruno Haible  <bruno@clisp.org>
60543
60544         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60545         changequote instead of pairs of brackets.
60546         Reported by Andreas Schwab <schwab@suse.de>.
60547
60548 2006-11-21  Jim Meyering  <jim@meyering.net>
60549
60550         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60551         so as to remain compatible with older compilers.
60552         Patch from Michael Deutschmann.
60553
60554 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * MODULES.html.sh (File system functions): Add openat.
60557
60558         * lib/openat.h (rpl_fstatat): New macro, if
60559         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60560         (fstatat): Define to rpl_fstatat under the same conditions,
60561         unless COMPILING_FSTATAT.
60562         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60563         seems to have the bug.
60564         * lib/fstatat.c: New file.
60565         * modules/openat (Files): Add it.
60566
60567 2006-11-20  Bruno Haible  <bruno@clisp.org>
60568
60569         * Makefile: New file.
60570
60571 2006-11-20  Jim Meyering  <jim@meyering.net>
60572
60573         The beginnings of syntax-related checks for gnulib.
60574         * lib/Makefile: New file.
60575         * lib/t-idcache: New script.  Ensure that the two halves of
60576         idcache.c stay in sync.
60577
60578         * lib/idcache.c: Adjust comments in user- and group- portions to
60579         be more accurate, and to be consistent with one another.
60580
60581 2006-11-20  Jim Meyering  <jim@meyering.net>
60582
60583         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60584         continue using the flexible array member (thus, this module performs
60585         half as many malloc calls), with the addition that...
60586         (getgroup, getuser): Consistently record a non-match via an empty
60587         "name" string, and map an empty string match to a NULL return value.
60588         * modules/idcache (Depends-on): Re-add flexmember.
60589
60590         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60591         (getuidbyname, getgroup, getgidbyname): Likewise.
60592
60593         Use cleaner syntax: NULL rather than 0.
60594         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60595
60596 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60599         It mishandled the case where the group was missing.
60600         Problem reported by Greg Schafer.
60601         * modules/idcache: Likewise.
60602
60603 2006-11-18  Jim Meyering  <jim@meyering.net>
60604
60605         * check-module (%exempt_header): Add exception for some
60606         conditionally-included headers.
60607
60608         * modules/i-ring (Depends-on): Add verify.
60609         (License): Change to LGPL.
60610
60611 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60612
60613         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60614         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60615         and inttostr.h.  Use snprintf rather than uinttostr, so that
60616         LGPLed code doesn't depend on GPLed.
60617
60618 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60619
60620         * modules/inline (License): Change from GPL to LGPL.
60621
60622 2006-11-17  Jim Meyering  <jim@meyering.net>
60623
60624         * modules/d-type (License): Switch to LGPL.
60625
60626 2006-11-15  Bruno Haible  <bruno@clisp.org>
60627
60628         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60629
60630 2006-11-15  Eric Blake  <ebb9@byu.net>
60631
60632         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60633         the module dependency.
60634
60635 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60636             Bruno Haible  <bruno@clisp.org>
60637
60638         * gnulib-tool (func_create_testdir): Add license consistency check.
60639
60640 2006-11-15  Eric Blake  <ebb9@byu.net>
60641
60642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60643         random "(cached)" in configure output.
60644
60645 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60646
60647         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60648         test for conforming inttypes.h is both announced and cached.
60649
60650         * MODULES.html.sh (seen_modules, seen_files): New variables.
60651         (func_module): Rewrite to use a few less gnulib-tool and sed
60652         invocations.  Avoid a couple of quadratic algorithms for ...
60653         (missed_modules, missed_files): ... these, with ...
60654         (func_append, func_tmpdir): ... these new functions, from
60655         gnulib-tool.  Analogously, install traps for cleanup.
60656
60657         * tests/test-gc.c (main): Remove unused variables.
60658         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60659
60660 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * modules/inttostr (License): Change to LGPL.
60663
60664 2006-11-14  Eric Blake  <ebb9@byu.net>
60665
60666         * modules/tempname (License): Change to LGPL.
60667
60668 2006-11-14  Eric Blake  <ebb9@byu.net>
60669
60670         * doc/functions.texi (Function Portability): *printf functions on
60671         Cygwin now understand all POSIX size specifiers.
60672
60673 2006-11-14  Bruno Haible  <bruno@clisp.org>
60674
60675         * modules/c-ctype (License): Change to LGPL.
60676
60677 2006-11-12  Bruno Haible  <bruno@clisp.org>
60678
60679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60680         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60681         for GNOME libraries, for which the include files are installed in
60682         subdirectories of $prefix/include.
60683
60684 2006-11-12  Bruno Haible  <bruno@clisp.org>
60685
60686         * m4/lib-link.m4: Require at least autoconf-2.54.
60687         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60688         name to underscores for the --with option.
60689
60690 2006-11-13  Bruno Haible  <bruno@clisp.org>
60691
60692         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60693         the tests directory.
60694         Reported by Ralf Wildenhues.
60695
60696 2006-11-13  Bruno Haible  <bruno@clisp.org>
60697
60698         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60699         (func_emit_initmacro_end): Undo the override here.
60700         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60701         Works around the famous automake error in coreutils.
60702
60703 2006-11-13  Eric Blake  <ebb9@byu.net>
60704
60705         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60706         element, not its node.
60707
60708 2006-11-12  Bruno Haible  <bruno@clisp.org>
60709
60710         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60711         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60712
60713 2006-11-12  Bruno Haible  <bruno@clisp.org>
60714
60715         * gnulib-tool: New option --local-symlink.
60716         (func_usage): Document it.
60717         (lsymbolic): New variable.
60718         (func_import, func_create_testdir): If --symlink was not specified,
60719         test whether --local-symlink was specified and the file comes from
60720         the local_gnulib_dir.
60721
60722 2006-11-12  Bruno Haible  <bruno@clisp.org>
60723
60724         * gnulib-tool (func_ln): New function.
60725         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60726
60727 2006-11-12  Bruno Haible  <bruno@clisp.org>
60728
60729         Finish support for source files in subdirectories.
60730         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60731         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60732         AUTOMAKE_OPTIONS.
60733         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60734
60735 2006-11-12  Bruno Haible  <bruno@clisp.org>
60736
60737         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60738         EXTRA_lib_SOURCES augmentation.
60739         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60740
60741 2006-11-12  Jim Meyering  <jim@meyering.net>
60742
60743         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60744         file descriptors.  This also averts a failure on systems with
60745         native openat support when a traversed directory lacks "x" access.
60746         * lib/fts_.h: Include "i-ring.h"
60747         (struct FTS) [fts_fd_ring]: New member.
60748         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60749         (FCHDIR): Add parentheses.
60750         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60751         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60752         When descending, rather than simply closing the previous
60753         fts_cwd_fd value, push that file descriptor onto the ring.
60754         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60755         (fts_open): Initialize the new fd_ring member.
60756         (fts_close): Clear the ring.
60757         (fts_safe_changedir): When possible, use our new fd_ring to skip
60758         the diropen and fstat and dev/ino comparison that would normally
60759         accompany a virtual `chdir ("..")'.
60760
60761         * modules/fts (Depends-on): Add i-ring.
60762         * modules/i-ring: New module.
60763         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60764         * m4/i-ring.m4: New file.
60765
60766 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60767
60768         * gnulib-tool (func_create_testdir): Fix replacement of
60769         `build-aux' in configure.ac.  Run autotools in gltests
60770         subdirectory.
60771         (func_create_testdir, func_create_megatestdir, test): There is
60772         no need for '--force' in most autotool invocations in a new
60773         tree.  Actually fail the whole test if any of the tools, or the
60774         configure or make stages fail.
60775
60776         Sync from Automake.
60777         * build-aux/gnupload: Revert last change.  Add pointer to upload
60778         instructions of the GNU Maintenance Instructions.
60779         Suggestion by Karl Berry.
60780
60781 2006-11-10  Jim Meyering  <jim@meyering.net>
60782
60783         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60784
60785 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60788         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60789         (bind_textdomain_codeset) [! ENABLE_NLS]:
60790         Evaluate all the arguments.  That way, callers get compatible behavior
60791         if the arguments have side effects.  Also, it avoids some GCC
60792         diagnostics in some cases; Joel E. Denny reported problems when Bison
60793         was configured with --enable-gcc-warnigs.
60794
60795 2006-11-10  Jim Meyering  <jim@meyering.net>
60796
60797         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60798         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60799         account.
60800
60801 2006-11-10  Jim Meyering  <jim@meyering.net>
60802
60803         * modules/inline: New file/module.
60804         * modules/xalloc (Files): Remove m4/inline.m4.
60805         (Depends-on): Add inline, instead.
60806         * modules/oset: Likewise.
60807         * modules/list: Likewise.
60808
60809 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60810
60811         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60812         Problem reported by Matthew Woehlke.
60813
60814 2006-11-09  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/tempname.c (gen_tempname): Remove variant that invokes
60817         __gen_tempname.
60818         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60819         __gen_tempname.
60820
60821 2006-11-08  Bruno Haible  <bruno@clisp.org>
60822
60823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60824         to 'yes' instead of 'cross-compiling'.
60825
60826 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         * lib/quotearg.h (quotearg_free): New decl.
60829         * lib/quotearg.c (quotearg_free): New function.
60830         (slot0, nslots, slotvec0, slotvec):
60831         Now file-scope so that quotearg_free can get at them.
60832
60833 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60834
60835         Sync from Automake.
60836         * build-aux/gnupload: Add missing 'gnu' to example URL.
60837         Report by Karl Berry.
60838
60839 2006-11-08  Bruno Haible  <bruno@clisp.org>
60840
60841         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60842         Suggested by Paul Eggert.
60843
60844 2006-11-08  Jim Meyering  <jim@meyering.net>
60845
60846         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60847         It's already included if !_LIBC.
60848         (fts_safe_changedir): Add a comment.
60849
60850 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60853         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60854         Matthew Woehlke.
60855
60856         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60857         definitions up, to avoid colliding with change below.
60858         (static_inline) [HAVE_INLINE]: New macro.
60859         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60860         Provide extern decls when !HAVE_INLINE.  Do not define unless
60861         static_inline is defined, either by us or by xmalloc.c.  Use
60862         static_inline rather than static inline.
60863         (XCALLOC): Optimize sizeof(T) = 1 case.
60864         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60865
60866 2006-11-07  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60869         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60870         AC_C_INLINE.
60871         * modules/xalloc (Files): Add m4/inline.m4.
60872
60873 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60874
60875         * README: Fix typo.
60876         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60877         (Miscellanous Notes): ...from this.
60878
60879 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60880
60881         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60882         Mention that offsetof should be used instead of sizeof.
60883         From Bruno Haible.
60884
60885 2006-11-07  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60888
60889 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60890
60891         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60892         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60893         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60894         (gl_tree_add_before, gl_tree_add_after):
60895         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60896         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60897         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60898         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60899         (gl_linked_add_after, gl_linked_add_at): Likewise.
60900         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60901         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60902         (gl_tree_add_before, gl_tree_add_after): Likewise.
60903         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60904         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60905         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60906
60907 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60908
60909         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60910
60911 2006-11-06  Bruno Haible  <bruno@clisp.org>
60912
60913         * m4/inline.m4: New file.
60914         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60915         * modules/list (Files): Add m4/inline.m4.
60916         * modules/oset (Files): Likewise.
60917
60918 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/idcache.c: Include <stddef.h>, for offsetof.
60921         (struct userid.name): Change from char * to a flexible array member.
60922         All uses changed.
60923         * modules/idcache (Depends-on): Add flexmember.
60924
60925         * MODULES.html.sh (Core language properties): New module flexmember.
60926         * modules/flexmember, m4/flexmember.m4: New files.
60927
60928         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60929         inline functions that are identical with the old xnmalloc_inline,
60930         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60931         that we can avoid some unnecessary integer multiplications and
60932         divisions in the common case where the element size is known at
60933         compile time.
60934         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60935         needed.
60936         (xnboundedmalloc): Remove.
60937         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60938         arguments, for consistency with rest of this header.
60939         (xcharalloc): Rewrite using XNMALLOC.
60940         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60941         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60942         versions have been moved to lib/xalloc.h and renamed to be the
60943         non-*_inline versions.
60944         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60945         and xnrealloc functions, since those functions are now inline and
60946         now call us.
60947         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60948         renaming described above.
60949         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60950         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60951         captures the dependency in AC_C_INLINE.
60952
60953         New module canonicalize-lgpl, proposed by Charles Wilson in
60954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60955         with a few small changes afterwards.
60956         * MODULES.html.sh (File system functions): New module
60957         canonicalize-lgpl.
60958         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60959         and canonicalize_file_name.
60960         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60961         * modules/canonicalize-lgpl: New files.
60962
60963 2006-11-05  Bruno Haible  <bruno@clisp.org>
60964
60965         * gnulib-tool (func_import, func_create_testdir): Create directories
60966         also for files in subdirectories of lib/.
60967
60968 2006-11-05  Bruno Haible  <bruno@clisp.org>
60969
60970         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60971         ANSI C compliant.
60972
60973 2006-11-03  Bruno Haible  <bruno@clisp.org>
60974
60975         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60976         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60977         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60978         (xnboundedmalloc): New inline function.
60979         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60980         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60981         xmalloc.
60982         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60983         xmalloc.
60984         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60985         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60986         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60987         xmalloc.
60988         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60989         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60990         xmalloc.
60991         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60992         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60993         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60994         xmalloc.
60995         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60996         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60997         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60998         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60999         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61000         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61001         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61002
61003 2006-11-03  Bruno Haible  <bruno@clisp.org>
61004
61005         * lib/c-ctype.h [C++]: Define functions without name mangling.
61006         * lib/fwriteerror.h [C++]: Likewise.
61007         * lib/gcd.h [C++]: Likewise.
61008         * lib/linebreak.h [C++]: Likewise.
61009
61010 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61013         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61014         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61015         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61016         Check for functions and headers just once.
61017         Check for declaration of canonicalize_file_name.
61018         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61019
61020 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61021
61022         * gnulib-tool (func_import): Fix typo in actioncmd.
61023
61024 2006-11-02  Bruno Haible  <bruno@clisp.org>
61025
61026         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61027         newline sequence in the Makefile.am snippet as a space, like "make"
61028         does.
61029         Reported by Roger Persson <perrog@gmail.com>.
61030
61031 2006-11-01  Bruno Haible  <bruno@clisp.org>
61032
61033         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61034         already declared in <string.h>.
61035         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61036
61037 2006-11-01  Bruno Haible  <bruno@clisp.org>
61038
61039         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61040         * lib/strcase.h: Include <string.h>.
61041         (strcasecmp): Define to rpl_strcasecmp here.
61042
61043 2006-11-01  Bruno Haible  <bruno@clisp.org>
61044
61045         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61046
61047 2006-11-01  Eric Blake  <ebb9@byu.net>
61048
61049         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61050
61051         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61052
61053 2006-10-29  Bruno Haible  <bruno@clisp.org>
61054
61055         Make it compile in C++ mode.
61056         * lib/full-write.c (full_rw): Add a cast.
61057
61058 2006-11-01  Bruno Haible  <bruno@clisp.org>
61059
61060         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61061         be POSIX compliant.
61062         Reported by Roger Persson <perrog@gmail.com>.
61063
61064 2006-11-01  Eric Blake  <ebb9@byu.net>
61065
61066         * lib/getopt_.h: Fix comments.
61067
61068 2006-10-31  Eric Blake  <ebb9@byu.net>
61069
61070         * modules/tmpdir (Depends-on): Add sys_stat.
61071         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61072         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61073         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61074         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61075         tempname.
61076
61077 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         Avoid some C++ diagnostics reported by Bruno Haible.
61080         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61081         xmalloc.
61082         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61083         (struct slotvec): Move to top level.
61084         (quotearg_n_options): Rewrite to avoid xmalloc.
61085         * lib/xalloc.h (xcharalloc): New function.
61086         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61087         [defined __cplusplus]: Add function template that provides result
61088         type propagation.  This part of the change is from Bruno Haible.
61089
61090 2006-10-29  Bruno Haible  <bruno@clisp.org>
61091
61092         Make it compile in C++ mode.
61093         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61094         * lib/strnlen1.c (strnlen1): Cast memchr result.
61095         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61096         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61097         (create_temp_dir): Rename local variable 'template'.
61098         (compile_csharp_using_sscli): Add cast.
61099         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61100         * lib/findprog.c (find_in_path): Likewise.
61101         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61102         * lib/wait-process.c (register_slave_subprocess): Likewise.
61103
61104 2006-10-22  Bruno Haible  <bruno@clisp.org>
61105
61106         * modules/tsearch: New file.
61107         * lib/tsearch.h: New file.
61108         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61109         * m4/tsearch.m4: New file.
61110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61111
61112 2006-10-29  Eric Blake  <ebb9@byu.net>
61113
61114         * lib/arcfour.c: Assume config.h.
61115         * lib/arctwo.c: Likewise.
61116         * lib/base64.c: Likewise.
61117         * lib/check-version.c: Likewise.
61118         * lib/crc.c: Likewise.
61119         * lib/des.c: Likewise.
61120         * lib/gc-gnulib.c: Likewise.
61121         * lib/gc-libgcrypt.c: Likewise.
61122         * lib/gc-pbkdf2-sha1.c: Likewise.
61123         * lib/getaddrinfo.c: Likewise.
61124         * lib/getdelim.c: Likewise.
61125         * lib/getline.c: Likewise.
61126         * lib/hmac-md5.c: Likewise.
61127         * lib/hmac-sha1.c: Likewise.
61128         * lib/iconvme.c: Likewise.
61129         * lib/md2.c: Likewise.
61130         * lib/md4.c: Likewise.
61131         * lib/memxor.c: Likewise.
61132         * lib/read-file.c: Likewise.
61133         * lib/readline.c: Likewise.
61134         * lib/rijndael-alg-fst.c: Likewise.
61135         * lib/rijndael-api-fst.c: Likewise.
61136         * lib/xgetdomainname.c: Likewise.
61137
61138 2006-10-28  Eric Blake  <ebb9@byu.net>
61139
61140         * lib/xstrndup.c: Assume config.h.
61141
61142 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61143
61144         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61145         stat-macros.h is now for our own macros, whereas stat_h is for
61146         macros in the <sys/stat.h> name space.
61147         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61148         (STAT_MACROS_H): Remove.
61149         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61150         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61151         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61152         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61153         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61154         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61155         Move these macros to ...
61156         * lib/stat_.h: here.  Don't include stat-macros.h.
61157         * lib/canonicalize.c: Don't include stat-macros.h.
61158         * lib/chown.c: Likewise.
61159         * lib/euidaccess.c: Likewise.
61160         * lib/file-type.c: Likewise.
61161         * lib/filemode.c: Likewise.
61162         * lib/glob.c: Likewise.
61163         * lib/isapipe.c: Likewise.
61164         * lib/lchown.c: Likewise.
61165         * lib/lstat.c: Likewise.
61166         * lib/mkdir-p.c: Likewise.
61167         * lib/rmdir.c: Likewise.
61168         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61169         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61170         unless mkdir isn't declared, to speed up 'configure'.
61171         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61172         would define all the S_* symbols.
61173         * modules/canonicalize (Depends-on):
61174         Depend on sys_stat, not stat-macros.
61175         * modules/chown: Likewise.
61176         * modules/euidaccess: Likewise.
61177         * modules/filemode: Likewise.
61178         * modules/file-type: Likewise.
61179         * modules/glob: Likewise.
61180         * modules/isapipe: Likewise.
61181         * modules/lchown: Likewise.
61182         * modules/lstat: Likewise.
61183         * modules/mkancesdirs: Likewise.
61184         * modules/rmdir: Likewise.
61185         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61186         * modules/modechange: Likewise.
61187         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61188         (configure.ac): Remove gl_STAT_MACROS.
61189         * modules/sys_stat (Depends-on): Remove stat-macros.
61190
61191 2006-10-27  Bruno Haible  <bruno@clisp.org>
61192
61193         * m4/signed.m4: Remove file.
61194         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61195         invocation.
61196         * modules/vasnprintf (Files): Remove m4/signed.m4.
61197
61198 2006-10-27  Bruno Haible  <bruno@clisp.org>
61199
61200         Update to GNU gettext 0.16.
61201         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61202         m4/inttypes-h.m4, m4/signed.m4.
61203         * m4/gettext.m4: Update to GNU gettext 0.16.
61204         * m4/intl.m4: New file, from GNU gettext.
61205         * m4/intldir.m4: New file, from GNU gettext.
61206         * config/srclist.txt: Update
61207
61208 2006-10-27  Eric Blake  <ebb9@byu.net>
61209
61210         * MODULES.html.sh: Document tempname.
61211         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61212         dependencies.
61213         (Files): Move lib/tempname.c...
61214         * modules/tempname: ...to this new module.
61215         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61216         (gl_PREREQ_TEMPNAME): Move...
61217         * m4/tempname.m4: ...to this new file.
61218         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61219         * modules/sys_stat (Depends-on): Add stat-macros.
61220         * lib/stat_.h (includes): Pick up stat macros.
61221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61222         if stat macros are broken.
61223         * lib/tempname.c (includes): No need to include "stat-macros.h".
61224         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61225         (direxists, __path_search) [!_LIBC]: Don't compile these in
61226         gnulib; the tmpdir module covers that.
61227         * lib/tempname.h: New file.
61228
61229 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         * COPYING: Explain how gnulib-tool converts licence headers.
61232         Almost all wording by Eric Blake.
61233
61234 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * lib/mbchar.h (is_basic_table): Make read-only.
61237         * lib/mbchar.c (is_basic_table): Likewise.
61238         Reported by John Darrington.
61239
61240 2006-10-25  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/progname.h (set_program_name): Undefine before defining.
61243
61244 2006-10-25  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61247         false for non-gcc C++ compilers.
61248         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61249
61250 2006-10-24  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61253         iconv implementations like Irix iconv.
61254
61255 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * modules/vararrays: New file.
61258         * m4/vararrays.m4: New file, taken from diffutils.
61259         * MODULES.html.sh: New module vararrays.
61260
61261 2006-10-24  Karl Berry  <karl@gnu.org>
61262
61263         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61264         Don't call GNU Unix.
61265
61266 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61267
61268         * users.txt: Add Libtool.
61269
61270         Sync from Libtool:
61271
61272         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61275         to gnulib's policy of including config.h unconditionally.
61276
61277 2006-10-24  Bruno Haible  <bruno@clisp.org>
61278
61279         * modules/wcwidth (Files): Add m4/wint_t.m4.
61280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61281         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61282
61283 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61284
61285         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61286         to pacify GCC with some -W flags enabled.  Problem reported by
61287         Bruno Haible.
61288
61289 2006-10-24  Jim Meyering  <jim@meyering.net>
61290
61291         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61292         Reported by Karl Berry.
61293
61294 2006-10-23  Bruno Haible  <bruno@clisp.org>
61295
61296         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61297
61298 2006-10-24  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/gl_list.h: Use C comment style, not C++ comment style.
61301
61302 2006-10-23  Eric Blake  <ebb9@byu.net>
61303
61304         * lib/getaddrinfo.c (includes): Add missing include.
61305
61306 2006-10-23  Bruno Haible  <bruno@clisp.org>
61307             Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         Ability to rename obstack_free.
61310         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61311         obstack_free.
61312         (obstack_free): Invoke the __obstack_free macro.
61313         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61314
61315 2006-10-23  Bruno Haible  <bruno@clisp.org>
61316             Paul Eggert  <eggert@cs.ucla.edu>
61317
61318         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61319         __argc, __argv from the declaration. (They are defined as macros on
61320         mingw.)
61321
61322 2006-10-22  Bruno Haible  <bruno@clisp.org>
61323
61324         * doc/gnulib-intro.texi: New file.
61325         * doc/gnulib.texi: Include it.
61326
61327 2006-10-21  Bruno Haible  <bruno@clisp.org>
61328
61329         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61330         "Introduction", "Miscellanous Notes", "Particular Modules".
61331
61332 2006-10-21  Bruno Haible  <bruno@clisp.org>
61333
61334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61335         Change mostlyclean-local rule to avoid sh syntax error from bash
61336         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61337
61338 2006-10-23  Jim Meyering  <jim@meyering.net>
61339
61340         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61341         in place of snprintf.
61342
61343         * modules/inttostr (Files): Add lib/uinttostr.c.
61344         * lib/uinttostr.c (inttostr): New file/function.
61345         * lib/inttostr.h (uinttostr): Declare.
61346         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61347         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61348         Add uinttostr.
61349         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61350
61351 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * lib/canonicalize.c (ELOOP): Define if not already defined.
61354         Problem reported by Bruno Haible in
61355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61356
61357 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61360         Problem reported by Perry Smith and Ville Laurikari.
61361
61362         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61363         uses.
61364
61365 2006-10-19  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61368         for mingw.
61369
61370 2006-10-19  Bruno Haible  <bruno@clisp.org>
61371
61372         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61373         Needed for mingw.
61374
61375 2006-10-19  Bruno Haible  <bruno@clisp.org>
61376
61377         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61378
61379 2006-10-19  Bruno Haible  <bruno@clisp.org>
61380
61381         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61382         it.
61383
61384 2006-10-19  Bruno Haible  <bruno@clisp.org>
61385
61386         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61387         invocation.
61388
61389 2006-10-19  Bruno Haible  <bruno@clisp.org>
61390
61391         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61392         mountlist by default.
61393
61394 2006-10-16  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/c-strstr.c: Include c-strstr.h.
61397
61398 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61399
61400         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61401         in a slash.
61402
61403 2006-10-18  Bruno Haible  <bruno@clisp.org>
61404
61405         * lib/lock.h [C++]: Wrap definitions in extern "C".
61406
61407 2006-10-18  Bruno Haible  <bruno@clisp.org>
61408
61409         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61410         gl_LIBOBJS list.
61411
61412 2006-10-18  Bruno Haible  <bruno@clisp.org>
61413
61414         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61415
61416 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61417
61418         * lib/xstrtol.h: Include gettext.h.
61419         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61420         Problem reported by Eric Blake.
61421         * modules/xstrtol (Depends-on): Add gettext-h.
61422
61423 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61424
61425         * lib/strftime.c (advance): New macro.
61426         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61427         incomplete type, so you can't add 0 to it.  Problem and patch
61428         reported by Eelco Dolstra for dietlibc.
61429
61430 2006-10-18  Jim Meyering  <jim@meyering.net>
61431
61432         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61433         type for a local, and rename it: s/up/user_proc/.
61434
61435 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61436
61437         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61438         READ_UTMP_USER_PROCESS.
61439         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61440
61441 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61444         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61445
61446 2006-10-17  Eric Blake  <ebb9@byu.net>
61447
61448         * lib/sigprocmask.c (sigprocmask): Fix typo.
61449
61450         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61451
61452         * modules/clean-temp (Makefile.am): Don't add to make output...
61453         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61454         config.h.
61455
61456 2006-10-17  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61459         differently if DEFAULT_TEXT_DOMAIN is set.
61460
61461 2006-10-16  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/clean-temp.c: Include fwriteerror.h.
61464
61465 2006-10-16  Bruno Haible  <bruno@clisp.org>
61466
61467         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61468
61469 2006-10-16  Bruno Haible  <bruno@clisp.org>
61470
61471         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61472         * lib/sigprocmask.h: Include <sys/types.h>.
61473         (sigset_t): Use the system's definition if present.
61474
61475 2006-10-17  Eric Blake  <ebb9@byu.net>
61476
61477         * lib/xvasprintf.c (includes): Assume config.h.
61478         * lib/xasprintf.c (includes): Likewise.
61479
61480 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61483         at least as wide as intmax_t.
61484
61485 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61486
61487         (Imported from Automake.)
61488         * build-aux/gnupload: Update to version 1.1 of directive file.
61489
61490 2006-10-16  Eric Blake  <ebb9@byu.net>
61491
61492         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61493         match Automake 1.10a.
61494
61495 2006-10-14  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/sigprocmask: New file.
61498         * lib/sigprocmask.h: New file.
61499         * lib/sigprocmask.c: New file.
61500         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61501         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61502         request sigprocmask.o.
61503         (gl_PREREQ_SIGPROCMASK): New macro.
61504         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61505         (Depends-on): Add sigprocmask.
61506         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61507         gt_SIGNALBLOCKING. Test for 'raise' only once.
61508         * lib/fatal-signal.c: Include sigprocmask.h.
61509         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61510         unblock_fatal_signals): Define always.
61511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61512         sigprocmask.
61513
61514 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         Sync from Automake.
61517         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61518         which incorrectly sets the mode of an existing destination
61519         directory.  In some cases the unpatched install-sh could do the
61520         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61521         system.  We hope this is rare in practice, but it's clearly worth
61522         fixing.  Problem reported by Alex Unleashed in
61523         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61524         Also, don't bother to check for -m bugs unless we're using -m;
61525         suggested by Stepan Kasal.
61526
61527 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61528
61529         Sync from Automake.
61530         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61531         `-c' flag, so they appear at the same position as in %FASTDEP%
61532         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61533         which ignores unknown options only after the first non-option.
61534         Bug report against M4 by Nelson H. F. Beebe.
61535
61536 2006-10-13  Jim Meyering  <jim@meyering.net>
61537
61538         Fix a bug in yesterday's change.
61539         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61540         p->fts_statp->st_dev would be used uninitialized.
61541         Ensures that we always call fts_stat on the very first entry.
61542         Miklos Szeredi reported that find -xdev stopped working.
61543
61544 2006-10-12  Bruno Haible  <bruno@clisp.org>
61545
61546         * gnulib-tool (func_get_automake_snippet): Append an automatically
61547         computed EXTRA_DIST augmentation.
61548         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61549         * modules/alloca-opt (Makefile.am): Likewise.
61550         * modules/allocsa (Makefile.am): Likewise.
61551         * modules/arcfour (Makefile.am): Likewise.
61552         * modules/arctwo (Makefile.am): Likewise.
61553         * modules/argmatch (Makefile.am): Likewise.
61554         * modules/argz (Makefile.am): Likewise.
61555         * modules/atexit (Makefile.am): Likewise.
61556         * modules/backupfile (Makefile.am): Likewise.
61557         * modules/byteswap (Makefile.am): Likewise.
61558         * modules/c-strtod (Makefile.am): Likewise.
61559         * modules/c-strtold (Makefile.am): Likewise.
61560         * modules/calloc (Makefile.am): Likewise.
61561         * modules/canon-host (Makefile.am): Likewise.
61562         * modules/canonicalize (Makefile.am): Likewise.
61563         * modules/chdir-long (Makefile.am): Likewise.
61564         * modules/chdir-safer (Makefile.am): Likewise.
61565         * modules/check-version (Makefile.am): Likewise.
61566         * modules/chown (Makefile.am): Likewise.
61567         * modules/cloexec (Makefile.am): Likewise.
61568         * modules/close-stream (Makefile.am): Likewise.
61569         * modules/closeout (Makefile.am): Likewise.
61570         * modules/crc (Makefile.am): Likewise.
61571         * modules/csharpexec (Makefile.am): Likewise.
61572         * modules/cycle-check (Makefile.am): Likewise.
61573         * modules/des (Makefile.am): Likewise.
61574         * modules/dev-ino (Makefile.am): Likewise.
61575         * modules/dirfd (Makefile.am): Likewise.
61576         * modules/dirname (Makefile.am): Likewise.
61577         * modules/dup2 (Makefile.am): Likewise.
61578         * modules/eealloc (Makefile.am): Likewise.
61579         * modules/error (Makefile.am): Likewise.
61580         * modules/euidaccess (Makefile.am): Likewise.
61581         * modules/exclude (Makefile.am): Likewise.
61582         * modules/exitfail (Makefile.am): Likewise.
61583         * modules/fcntl-safer (Makefile.am): Likewise.
61584         * modules/fcntl (Makefile.am): Likewise.
61585         * modules/file-type (Makefile.am): Likewise.
61586         * modules/fileblocks (Makefile.am): Likewise.
61587         * modules/filemode (Makefile.am): Likewise.
61588         * modules/filenamecat (Makefile.am): Likewise.
61589         * modules/fnmatch (Makefile.am): Likewise.
61590         * modules/fopen-safer (Makefile.am): Likewise.
61591         * modules/fpending (Makefile.am): Likewise.
61592         * modules/fprintftime (Makefile.am): Likewise.
61593         * modules/free (Makefile.am): Likewise.
61594         * modules/fsusage (Makefile.am): Likewise.
61595         * modules/ftruncate (Makefile.am): Likewise.
61596         * modules/fts (Makefile.am): Likewise.
61597         * modules/gc-arcfour (Makefile.am): Likewise.
61598         * modules/gc-des (Makefile.am): Likewise.
61599         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61600         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61601         * modules/gc-md4 (Makefile.am): Likewise.
61602         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61603         * modules/gc-sha1 (Makefile.am): Likewise.
61604         * modules/gc (Makefile.am): Likewise.
61605         * modules/getaddrinfo (Makefile.am): Likewise.
61606         * modules/getcwd (Makefile.am): Likewise.
61607         * modules/getdelim (Makefile.am): Likewise.
61608         * modules/getdomainname (Makefile.am): Likewise.
61609         * modules/getgroups (Makefile.am): Likewise.
61610         * modules/gethostname (Makefile.am): Likewise.
61611         * modules/gethrxtime (Makefile.am): Likewise.
61612         * modules/getline (Makefile.am): Likewise.
61613         * modules/getloadavg (Makefile.am): Likewise.
61614         * modules/getlogin_r (Makefile.am): Likewise.
61615         * modules/getndelim2 (Makefile.am): Likewise.
61616         * modules/getopt (Makefile.am): Likewise.
61617         * modules/getpagesize (Makefile.am): Likewise.
61618         * modules/getpass-gnu (Makefile.am): Likewise.
61619         * modules/getpass (Makefile.am): Likewise.
61620         * modules/getsubopt (Makefile.am): Likewise.
61621         * modules/gettime (Makefile.am): Likewise.
61622         * modules/gettimeofday (Makefile.am): Likewise.
61623         * modules/getugroups (Makefile.am): Likewise.
61624         * modules/getusershell (Makefile.am): Likewise.
61625         * modules/glob (Makefile.am): Likewise.
61626         * modules/group-member (Makefile.am): Likewise.
61627         * modules/hard-locale (Makefile.am): Likewise.
61628         * modules/hash (Makefile.am): Likewise.
61629         * modules/hmac-md5 (Makefile.am): Likewise.
61630         * modules/hmac-sha1 (Makefile.am): Likewise.
61631         * modules/human (Makefile.am): Likewise.
61632         * modules/idcache (Makefile.am): Likewise.
61633         * modules/imaxabs (Makefile.am): Likewise.
61634         * modules/imaxdiv (Makefile.am): Likewise.
61635         * modules/inet_ntop (Makefile.am): Likewise.
61636         * modules/inet_pton (Makefile.am): Likewise.
61637         * modules/intprops (Makefile.am): Likewise.
61638         * modules/inttostr (Makefile.am): Likewise.
61639         * modules/inttypes (Makefile.am): Likewise.
61640         * modules/isapipe (Makefile.am): Likewise.
61641         * modules/javaversion (Makefile.am): Likewise.
61642         * modules/lchmod (Makefile.am): Likewise.
61643         * modules/lchown (Makefile.am): Likewise.
61644         * modules/localcharset (Makefile.am): Likewise.
61645         * modules/long-options (Makefile.am): Likewise.
61646         * modules/lstat (Makefile.am): Likewise.
61647         * modules/malloc (Makefile.am): Likewise.
61648         * modules/mathl (Makefile.am): Likewise.
61649         * modules/mbchar (Makefile.am): Likewise.
61650         * modules/md2 (Makefile.am): Likewise.
61651         * modules/md4 (Makefile.am): Likewise.
61652         * modules/md5 (Makefile.am): Likewise.
61653         * modules/memcasecmp (Makefile.am): Likewise.
61654         * modules/memchr (Makefile.am): Likewise.
61655         * modules/memcmp (Makefile.am): Likewise.
61656         * modules/memcoll (Makefile.am): Likewise.
61657         * modules/memcpy (Makefile.am): Likewise.
61658         * modules/memmem (Makefile.am): Likewise.
61659         * modules/memmove (Makefile.am): Likewise.
61660         * modules/mempcpy (Makefile.am): Likewise.
61661         * modules/memrchr (Makefile.am): Likewise.
61662         * modules/memset (Makefile.am): Likewise.
61663         * modules/memxor (Makefile.am): Likewise.
61664         * modules/mkancesdirs (Makefile.am): Likewise.
61665         * modules/mkdir-p (Makefile.am): Likewise.
61666         * modules/mkdir (Makefile.am): Likewise.
61667         * modules/mkdtemp (Makefile.am): Likewise.
61668         * modules/mkstemp (Makefile.am): Likewise.
61669         * modules/mktime (Makefile.am): Likewise.
61670         * modules/modechange (Makefile.am): Likewise.
61671         * modules/mountlist (Makefile.am): Likewise.
61672         * modules/nanosleep (Makefile.am): Likewise.
61673         * modules/obstack (Makefile.am): Likewise.
61674         * modules/openat (Makefile.am): Likewise.
61675         * modules/pagealign_alloc (Makefile.am): Likewise.
61676         * modules/pathmax (Makefile.am): Likewise.
61677         * modules/physmem (Makefile.am): Likewise.
61678         * modules/poll (Makefile.am): Likewise.
61679         * modules/posixtm (Makefile.am): Likewise.
61680         * modules/posixver (Makefile.am): Likewise.
61681         * modules/putenv (Makefile.am): Likewise.
61682         * modules/quote (Makefile.am): Likewise.
61683         * modules/quotearg (Makefile.am): Likewise.
61684         * modules/raise (Makefile.am): Likewise.
61685         * modules/read-file (Makefile.am): Likewise.
61686         * modules/readline (Makefile.am): Likewise.
61687         * modules/readlink (Makefile.am): Likewise.
61688         * modules/readtokens (Makefile.am): Likewise.
61689         * modules/readutmp (Makefile.am): Likewise.
61690         * modules/realloc (Makefile.am): Likewise.
61691         * modules/regex (Makefile.am): Likewise.
61692         * modules/rename-dest-slash (Makefile.am): Likewise.
61693         * modules/rename (Makefile.am): Likewise.
61694         * modules/rijndael (Makefile.am): Likewise.
61695         * modules/rmdir (Makefile.am): Likewise.
61696         * modules/rpmatch (Makefile.am): Likewise.
61697         * modules/safe-read (Makefile.am): Likewise.
61698         * modules/safe-write (Makefile.am): Likewise.
61699         * modules/same-inode (Makefile.am): Likewise.
61700         * modules/same (Makefile.am): Likewise.
61701         * modules/save-cwd (Makefile.am): Likewise.
61702         * modules/savedir (Makefile.am): Likewise.
61703         * modules/setenv (Makefile.am): Likewise.
61704         * modules/settime (Makefile.am): Likewise.
61705         * modules/sha1 (Makefile.am): Likewise.
61706         * modules/sig2str (Makefile.am): Likewise.
61707         * modules/snprintf (Makefile.am): Likewise.
61708         * modules/stat-macros (Makefile.am): Likewise.
61709         * modules/stat-time (Makefile.am): Likewise.
61710         * modules/stdbool (Makefile.am): Likewise.
61711         * modules/stdint (Makefile.am): Likewise.
61712         * modules/stdlib-safer (Makefile.am): Likewise.
61713         * modules/stpcpy (Makefile.am): Likewise.
61714         * modules/stpncpy (Makefile.am): Likewise.
61715         * modules/strcase (Makefile.am): Likewise.
61716         * modules/strcasestr (Makefile.am): Likewise.
61717         * modules/strchrnul (Makefile.am): Likewise.
61718         * modules/strcspn (Makefile.am): Likewise.
61719         * modules/strdup (Makefile.am): Likewise.
61720         * modules/strerror (Makefile.am): Likewise.
61721         * modules/strftime (Makefile.am): Likewise.
61722         * modules/strndup (Makefile.am): Likewise.
61723         * modules/strnlen (Makefile.am): Likewise.
61724         * modules/strpbrk (Makefile.am): Likewise.
61725         * modules/strsep (Makefile.am): Likewise.
61726         * modules/strstr (Makefile.am): Likewise.
61727         * modules/strtod (Makefile.am): Likewise.
61728         * modules/strtoimax (Makefile.am): Likewise.
61729         * modules/strtok_r (Makefile.am): Likewise.
61730         * modules/strtol (Makefile.am): Likewise.
61731         * modules/strtoll (Makefile.am): Likewise.
61732         * modules/strtoul (Makefile.am): Likewise.
61733         * modules/strtoull (Makefile.am): Likewise.
61734         * modules/strtoumax (Makefile.am): Likewise.
61735         * modules/strverscmp (Makefile.am): Likewise.
61736         * modules/sys_socket (Makefile.am): Likewise.
61737         * modules/sys_stat (Makefile.am): Likewise.
61738         * modules/sysexits (Makefile.am): Likewise.
61739         * modules/time_r (Makefile.am): Likewise.
61740         * modules/timegm (Makefile.am): Likewise.
61741         * modules/timespec (Makefile.am): Likewise.
61742         * modules/tmpfile-safer (Makefile.am): Likewise.
61743         * modules/trim (Makefile.am): Likewise.
61744         * modules/unistd-safer (Makefile.am): Likewise.
61745         * modules/unlinkdir (Makefile.am): Likewise.
61746         * modules/unlocked-io (Makefile.am): Likewise.
61747         * modules/userspec (Makefile.am): Likewise.
61748         * modules/utime (Makefile.am): Likewise.
61749         * modules/utimecmp (Makefile.am): Likewise.
61750         * modules/utimens (Makefile.am): Likewise.
61751         * modules/vasnprintf (Makefile.am): Likewise.
61752         * modules/vasprintf (Makefile.am): Likewise.
61753         * modules/vsnprintf (Makefile.am): Likewise.
61754         * modules/xalloc (Makefile.am): Likewise.
61755         * modules/xgetcwd (Makefile.am): Likewise.
61756         * modules/xnanosleep (Makefile.am): Likewise.
61757         * modules/xreadlink (Makefile.am): Likewise.
61758         * modules/xstrtod (Makefile.am): Likewise.
61759         * modules/xstrtol (Makefile.am): Likewise.
61760         * modules/xstrtold (Makefile.am): Likewise.
61761         * modules/yesno (Makefile.am): Likewise.
61762         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61763
61764 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61765
61766         * modules/error (Makefile.am): Distribute files through
61767         EXTRA_DIST, not lib_SOURCES.
61768
61769 2006-10-12  Eric Blake  <ebb9@byu.net>
61770
61771         * modules/error (Makefile.am): Distribute files in /lib.
61772         * modules/obstack (Makefile.am): Likewise.
61773
61774 2006-10-12  Bruno Haible  <bruno@clisp.org>
61775
61776         * modules/acl (Makefile.am): Distribute all files in lib/ through
61777         EXTRA_DIST.
61778         * modules/arcfour (Makefile.am): Likewise.
61779         * modules/arctwo (Makefile.am): Likewise.
61780         * modules/argmatch (Makefile.am): Likewise.
61781         * modules/argz (Makefile.am): Likewise.
61782         * modules/atexit (Makefile.am): Likewise.
61783         * modules/backupfile (Makefile.am): Likewise.
61784         * modules/c-strtod (Makefile.am): Likewise.
61785         * modules/c-strtold (Makefile.am): Likewise.
61786         * modules/calloc (Makefile.am): Likewise.
61787         * modules/canon-host (Makefile.am): Likewise.
61788         * modules/canonicalize (Makefile.am): Likewise.
61789         * modules/chdir-long (Makefile.am): Likewise.
61790         * modules/chdir-safer (Makefile.am): Likewise.
61791         * modules/check-version (Makefile.am): Likewise.
61792         * modules/chown (Makefile.am): Likewise.
61793         * modules/cloexec (Makefile.am): Likewise.
61794         * modules/close-stream (Makefile.am): Likewise.
61795         * modules/closeout (Makefile.am): Likewise.
61796         * modules/crc (Makefile.am): Likewise.
61797         * modules/cycle-check (Makefile.am): Likewise.
61798         * modules/des (Makefile.am): Likewise.
61799         * modules/dirfd (Makefile.am): Likewise.
61800         * modules/dirname (Makefile.am): Likewise.
61801         * modules/dup2 (Makefile.am): Likewise.
61802         * modules/euidaccess (Makefile.am): Likewise.
61803         * modules/exclude (Makefile.am): Likewise.
61804         * modules/exitfail (Makefile.am): Likewise.
61805         * modules/fcntl-safer (Makefile.am): Likewise.
61806         * modules/file-type (Makefile.am): Likewise.
61807         * modules/fileblocks (Makefile.am): Likewise.
61808         * modules/filemode (Makefile.am): Likewise.
61809         * modules/filenamecat (Makefile.am): Likewise.
61810         * modules/fnmatch (Makefile.am): Likewise.
61811         * modules/fopen-safer (Makefile.am): Likewise.
61812         * modules/fpending (Makefile.am): Likewise.
61813         * modules/fprintftime (Makefile.am): Likewise.
61814         * modules/free (Makefile.am): Likewise.
61815         * modules/fsusage (Makefile.am): Likewise.
61816         * modules/ftruncate (Makefile.am): Likewise.
61817         * modules/fts (Makefile.am): Likewise.
61818         * modules/gc (Makefile.am): Likewise.
61819         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61820         * modules/getaddrinfo (Makefile.am): Likewise.
61821         * modules/getcwd (Makefile.am): Likewise.
61822         * modules/getdelim (Makefile.am): Likewise.
61823         * modules/getdomainname (Makefile.am): Likewise.
61824         * modules/getgroups (Makefile.am): Likewise.
61825         * modules/gethostname (Makefile.am): Likewise.
61826         * modules/gethrxtime (Makefile.am): Likewise.
61827         * modules/getline (Makefile.am): Likewise.
61828         * modules/getloadavg (Makefile.am): Likewise.
61829         * modules/getlogin_r (Makefile.am): Likewise.
61830         * modules/getopt (Makefile.am): Likewise.
61831         * modules/getpass (Makefile.am): Likewise.
61832         * modules/getpass-gnu (Makefile.am): Likewise.
61833         * modules/getsubopt (Makefile.am): Likewise.
61834         * modules/gettime (Makefile.am): Likewise.
61835         * modules/gettimeofday (Makefile.am): Likewise.
61836         * modules/getugroups (Makefile.am): Likewise.
61837         * modules/getusershell (Makefile.am): Likewise.
61838         * modules/glob (Makefile.am): Likewise.
61839         * modules/group-member (Makefile.am): Likewise.
61840         * modules/hard-locale (Makefile.am): Likewise.
61841         * modules/hash (Makefile.am): Likewise.
61842         * modules/hmac-md5 (Makefile.am): Likewise.
61843         * modules/hmac-sha1 (Makefile.am): Likewise.
61844         * modules/human (Makefile.am): Likewise.
61845         * modules/idcache (Makefile.am): Likewise.
61846         * modules/imaxabs (Makefile.am): Likewise.
61847         * modules/imaxdiv (Makefile.am): Likewise.
61848         * modules/inet_ntop (Makefile.am): Likewise.
61849         * modules/inet_pton (Makefile.am): Likewise.
61850         * modules/inttostr (Makefile.am): Likewise.
61851         * modules/isapipe (Makefile.am): Likewise.
61852         * modules/lchown (Makefile.am): Likewise.
61853         * modules/long-options (Makefile.am): Likewise.
61854         * modules/lstat (Makefile.am): Likewise.
61855         * modules/malloc (Makefile.am): Likewise.
61856         * modules/mathl (Makefile.am): Likewise.
61857         * modules/mbchar (Makefile.am): Likewise.
61858         * modules/md2 (Makefile.am): Likewise.
61859         * modules/md4 (Makefile.am): Likewise.
61860         * modules/md5 (Makefile.am): Likewise.
61861         * modules/memcasecmp (Makefile.am): Likewise.
61862         * modules/memchr (Makefile.am): Likewise.
61863         * modules/memcmp (Makefile.am): Likewise.
61864         * modules/memcoll (Makefile.am): Likewise.
61865         * modules/memcpy (Makefile.am): Likewise.
61866         * modules/memmem (Makefile.am): Likewise.
61867         * modules/memmove (Makefile.am): Likewise.
61868         * modules/mempcpy (Makefile.am): Likewise.
61869         * modules/memrchr (Makefile.am): Likewise.
61870         * modules/memset (Makefile.am): Likewise.
61871         * modules/memxor (Makefile.am): Likewise.
61872         * modules/mkancesdirs (Makefile.am): Likewise.
61873         * modules/mkdir (Makefile.am): Likewise.
61874         * modules/mkdir-p (Makefile.am): Likewise.
61875         * modules/mkdtemp (Makefile.am): Likewise.
61876         * modules/mkstemp (Makefile.am): Likewise.
61877         * modules/mktime (Makefile.am): Likewise.
61878         * modules/modechange (Makefile.am): Likewise.
61879         * modules/mountlist (Makefile.am): Likewise.
61880         * modules/nanosleep (Makefile.am): Likewise.
61881         * modules/openat (Makefile.am): Likewise.
61882         * modules/pagealign_alloc (Makefile.am): Likewise.
61883         * modules/physmem (Makefile.am): Likewise.
61884         * modules/poll (Makefile.am): Likewise.
61885         * modules/posixtm (Makefile.am): Likewise.
61886         * modules/posixver (Makefile.am): Likewise.
61887         * modules/putenv (Makefile.am): Likewise.
61888         * modules/quote (Makefile.am): Likewise.
61889         * modules/quotearg (Makefile.am): Likewise.
61890         * modules/raise (Makefile.am): Likewise.
61891         * modules/read-file (Makefile.am): Likewise.
61892         * modules/readline (Makefile.am): Likewise.
61893         * modules/readlink (Makefile.am): Likewise.
61894         * modules/readtokens (Makefile.am): Likewise.
61895         * modules/readutmp (Makefile.am): Likewise.
61896         * modules/realloc (Makefile.am): Likewise.
61897         * modules/regex (Makefile.am): Likewise.
61898         * modules/rename (Makefile.am): Likewise.
61899         * modules/rename-dest-slash (Makefile.am): Likewise.
61900         * modules/rijndael (Makefile.am): Likewise.
61901         * modules/rmdir (Makefile.am): Likewise.
61902         * modules/rpmatch (Makefile.am): Likewise.
61903         * modules/safe-read (Makefile.am): Likewise.
61904         * modules/safe-write (Makefile.am): Likewise.
61905         * modules/same (Makefile.am): Likewise.
61906         * modules/save-cwd (Makefile.am): Likewise.
61907         * modules/savedir (Makefile.am): Likewise.
61908         * modules/setenv (Makefile.am): Likewise.
61909         * modules/settime (Makefile.am): Likewise.
61910         * modules/sha1 (Makefile.am): Likewise.
61911         * modules/sig2str (Makefile.am): Likewise.
61912         * modules/snprintf (Makefile.am): Likewise.
61913         * modules/stdlib-safer (Makefile.am): Likewise.
61914         * modules/stpcpy (Makefile.am): Likewise.
61915         * modules/stpncpy (Makefile.am): Likewise.
61916         * modules/strcase (Makefile.am): Likewise.
61917         * modules/strcasestr (Makefile.am): Likewise.
61918         * modules/strchrnul (Makefile.am): Likewise.
61919         * modules/strcspn (Makefile.am): Likewise.
61920         * modules/strdup (Makefile.am): Likewise.
61921         * modules/strerror (Makefile.am): Likewise.
61922         * modules/strftime (Makefile.am): Likewise.
61923         * modules/strndup (Makefile.am): Likewise.
61924         * modules/strnlen (Makefile.am): Likewise.
61925         * modules/strpbrk (Makefile.am): Likewise.
61926         * modules/strsep (Makefile.am): Likewise.
61927         * modules/strstr (Makefile.am): Likewise.
61928         * modules/strtod (Makefile.am): Likewise.
61929         * modules/strtoimax (Makefile.am): Likewise.
61930         * modules/strtok_r (Makefile.am): Likewise.
61931         * modules/strtol (Makefile.am): Likewise.
61932         * modules/strtoll (Makefile.am): Likewise.
61933         * modules/strtoul (Makefile.am): Likewise.
61934         * modules/strtoull (Makefile.am): Likewise.
61935         * modules/strtoumax (Makefile.am): Likewise.
61936         * modules/strverscmp (Makefile.am): Likewise.
61937         * modules/time_r (Makefile.am): Likewise.
61938         * modules/timegm (Makefile.am): Likewise.
61939         * modules/tmpfile-safer (Makefile.am): Likewise.
61940         * modules/unistd-safer (Makefile.am): Likewise.
61941         * modules/unlinkdir (Makefile.am): Likewise.
61942         * modules/userspec (Makefile.am): Likewise.
61943         * modules/utime (Makefile.am): Likewise.
61944         * modules/utimecmp (Makefile.am): Likewise.
61945         * modules/utimens (Makefile.am): Likewise.
61946         * modules/vasnprintf (Makefile.am): Likewise.
61947         * modules/vasprintf (Makefile.am): Likewise.
61948         * modules/vsnprintf (Makefile.am): Likewise.
61949         * modules/xalloc (Makefile.am): Likewise.
61950         * modules/xgetcwd (Makefile.am): Likewise.
61951         * modules/xnanosleep (Makefile.am): Likewise.
61952         * modules/xreadlink (Makefile.am): Likewise.
61953         * modules/xstrtod (Makefile.am): Likewise.
61954         * modules/xstrtol (Makefile.am): Likewise.
61955         * modules/xstrtold (Makefile.am): Likewise.
61956         * modules/yesno (Makefile.am): Likewise.
61957
61958 2006-10-12  Jim Meyering  <jim@meyering.net>
61959
61960         * m4/getloadavg.m4: Revert the change below.
61961
61962         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61963         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61964         fail with a symlink, which is what coreutils' ./bootstrap now
61965         creates by default.
61966
61967 2006-10-12  Bruno Haible  <bruno@clisp.org>
61968
61969         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61970         mingw.
61971         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61972         MSVC and mingw explicitly.
61973
61974 2006-10-11  Simon Josefsson  <jas@extundo.com>
61975             Bruno Haible  <bruno@clisp.org>
61976
61977         Add support for multiple gnulib-tool invocations in the scope of a
61978         single configure.ac file.
61979         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61980         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61981         with the same contents as the _LIBADD variable.
61982         (func_emit_initmacro_start, func_emit_initmacro_end,
61983         func_emit_initmacro_done): New functions.
61984         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61985         gl_LIBOBJS and gl_LTLIBOBJS.
61986
61987 2006-10-11  Bruno Haible  <bruno@clisp.org>
61988
61989         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61990         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61991         autoreconf. Instead, invoke autopoint explicitly but move back the
61992         *.m4 files from gnulib.
61993
61994 2006-10-11  Bruno Haible  <bruno@clisp.org>
61995
61996         * gnulib-tool (func_usage): Make module names after --create-testdir
61997         optional.
61998         (func_create_testdir): If no module was specified, use nearly all
61999         modules.
62000
62001 2006-10-12  Jim Meyering  <jim@meyering.net>
62002
62003         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62004         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62005         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62006         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62007         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62008         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62009         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62010         (fts_set_stat_required): New function.
62011         (fts_open): Defer the calls to fts_stat, if possible or requested.
62012         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62013         into fts_stat itself.
62014         (fts_read): Perform any required (deferred) fts_stat call.
62015         (fts_build): Likewise, for the directory we're about to open and read.
62016         In the readdir loop, carefully decide whether each entry will require
62017         an eventual call to fts_stat, using dirent.d_type info if available.
62018         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62019         a command line argument into this function.  Update all callers.
62020         Map a return value of FTS_DOT to FTS_D for a command line argument.
62021         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62022         Thanks to Miklos Szeredi for his tenacity and for the initial
62023         bug report about "find" failing on a FUSE-based file system.
62024
62025         * lib/fts.c (fts_open): Use consistent indentation.
62026
62027 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62030         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62031         reported by Jim Meyering.  All uses of cache variables renamed
62032         to match Autoconf's.
62033         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62034         the other one.
62035
62036         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62037         Fix misspelling in diagnostic.
62038
62039 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62042         defined.  Problem reported by Matthew Woehlke.
62043
62044         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62045         Add support for Tandem NonStop R series.
62046         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62047         Use new macro.
62048
62049         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62050         (has_trailing_slash): Omit size arg; all callers changed.
62051         Omit 'inline', since it doesn't help performance and we'd
62052         need to configure it.
62053         Don't count //, ///, etc. as having a trailing slash.
62054         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62055         (rpl_rename_dest_slash): On failure, use rename's errno rather
62056         than (in some cases) an incorrect or junk errno.
62057         Simplify code by removing need to compute length; this does
62058         cause it to make two passes instead of one over the file name,
62059         but it's worth it.
62060
62061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62062         change, since Autoconf's version may no longer be appropriate now
62063         that we are using CVS Autoconf's version.  Add support for Tandem.
62064
62065 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62066             Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62069         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62070         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62071         gl_AC_TYPE_LONG_LONG.
62072
62073         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62074         instead of HAVE_LONG_LONG.
62075         * lib/printf-args.c (printf_fetchargs): Likewise.
62076         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62077         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62079         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62080         gl_AC_TYPE_LONG_LONG.
62081
62082 2006-10-11  Bruno Haible  <bruno@clisp.org>
62083
62084         * m4/longlong.m4: Add comments.
62085         * m4/ulonglong.m4: Likewise.
62086
62087 2006-10-10  Bruno Haible  <bruno@clisp.org>
62088
62089         Make it possible to #define stpcpy, strdup to aliases.
62090         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62091         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62092
62093 2006-10-10  Bruno Haible  <bruno@clisp.org>
62094
62095         Make it possible to #define gcd to an alias.
62096         * lib/gcd.c: Include config.h.
62097
62098 2006-10-10  Bruno Haible  <bruno@clisp.org>
62099
62100         Make it possible to #define c_isascii to an alias.
62101         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62102         defined. Undefine the macros before defining them, to avoid gcc
62103         warnings.
62104         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62105         define NO_C_CTYPE_MACROS early.
62106
62107 2006-10-10  Bruno Haible  <bruno@clisp.org>
62108
62109         Make it possible to #define set_program_name to an alias.
62110         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62111         ENABLE_RELOCATABLE early.
62112
62113 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62116         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62117         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62118         More generally, don't assume that 64-bit signed int is available
62119         if unsigned int is, and vice versa.
62120         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62121         unsigned symbols, not on their signed counterparts.
62122         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62123         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62124         (UINT64_C, UINTMAX_C):
62125         Likewise.
62126         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62127         unsigned counterparts.
62128         (Have_long_long, Unsigned): New macros.
62129         (Int): Renamed from INT.
62130         (strtoimax): Use the new macros.
62131         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62132         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62133         * modules/inttypes (inttypes.h): Substitute
62134         HAVE_UNSIGNED_LONG_LONG_INT.
62135         * modules/stdint (stdint.h): Likewise.
62136         (Files): Add m4/ulonglong.m4.
62137
62138 2006-10-10  Bruno Haible  <bruno@clisp.org>
62139
62140         Fix a gcc -Wshadow warning.
62141         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62142         to 'bucket'.
62143         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62144         gl_linked_indexof_from_to): Likewise.
62145         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62146         Likewise.
62147         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62148         Likewise.
62149         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62150         Reported by Eric Blake.
62151
62152 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62155         for NetBSD.  Problem reported by Bruno Haible.
62156
62157 2006-10-09  Jim Meyering  <jim@meyering.net>
62158
62159         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62160         Patch from Bruno Haible.
62161
62162 2006-10-09  Jim Meyering  <jim@meyering.net>
62163
62164         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62165         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62166         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62167
62168 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         Don't include <config.h> twice; this doesn't work in some cases,
62171         e.g., when config.h has "#define intmax_t long long int" and
62172         we include <config.h>, <inttypes.h>, <config.h> in that order.
62173         Problem reported by Matthew Woehlke in:
62174         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62175         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62176         * lib/fts-cycle.c: Don't include config.h.
62177         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62178         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62179         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62180         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62181         inttypes.h.
62182         * lib/xstrtoumax.c: Likewise.
62183         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62184         __strtol and the like, so that this module is more like its siblings.
62185         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62186         Remove; no longer needed now that we assume gnulib inttypes.h.
62187
62188 2006-10-08  Bruno Haible  <bruno@clisp.org>
62189
62190         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62191         option.
62192
62193 2006-10-07  Jim Meyering  <jim@meyering.net>
62194
62195         * modules/inttypes (inttypes.h): Revert what seems to have been
62196         an inadvertent part of today's change: use "|", not "/" in the
62197         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62198
62199 2006-10-07  Bruno Haible  <bruno@clisp.org>
62200
62201         * modules/sublist: New file.
62202
62203 2006-10-07  Bruno Haible  <bruno@clisp.org>
62204
62205         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62206         * modules/argz (argz.h): Likewise.
62207         * modules/arpa_inet (arpa/inet.h): Likewise.
62208         * modules/byteswap (byteswap.h): Likewise.
62209         * modules/configmake (configmake.h): Likewise.
62210         * modules/fcntl (fcntl.h): Likewise.
62211         * modules/fnmatch (fnmatch.h): Likewise.
62212         * modules/getopt (getopt.h): Likewise.
62213         * modules/glob (glob.h): Likewise.
62214         * modules/inttypes (inttypes.h): Likewise.
62215         * modules/netinet_in (netinet/in.h): Likewise.
62216         * modules/poll (poll.h): Likewise.
62217         * modules/stdbool (stdbool.h): Likewise.
62218         * modules/stdint (stdint.h): Likewise.
62219         * modules/sys_select (sys/select.h): Likewise.
62220         * modules/sys_socket (sys/socket.h): Likewise.
62221         * modules/sys_stat (sys/stat.h): Likewise.
62222         * modules/sysexits (sysexits.h): Likewise.
62223         * modules/unistd (unistd.h): Likewise.
62224         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62225         Add a "DO NOT EDIT" comment to the generated file.
62226         (func_import): Likewise for gnulib-comp.m4.
62227
62228 2006-10-07  Bruno Haible  <bruno@clisp.org>
62229
62230         * lib/gl_sublist.h: New file.
62231         * lib/gl_sublist.c: New file.
62232
62233 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62234
62235         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62236         name (relative to the original working directory) and the file
62237         name component (relative to the temporary working directory).  All
62238         callers changed.
62239         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62240         * lib/mkdir-p.c (make_dir_parents): Likewise.
62241         * lib/mkdir-p.h (make_dir_parents): Likewise.
62242
62243 2006-10-06  Eric Blake  <ebb9@byu.net>
62244
62245         Define several macros for use by the clean-temp module.
62246         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62248         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62249
62250         * lib/clean-temp.h (close_stream_temp): New declaration.
62251         * lib/clean-temp.c (includes): Pull in headers according to what
62252         other modules are in use.
62253         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62254
62255 2006-10-06  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62258         instead of fopen, fwriteerror.
62259
62260 2006-10-06  Bruno Haible  <bruno@clisp.org>
62261
62262         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62263         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62264         int.
62265         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62266         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62267         Return an error indicator.
62268         Suggested by Eric Blake.
62269
62270 2006-10-06  Bruno Haible  <bruno@clisp.org>
62271
62272         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62273         Reported by Eric Blake.
62274
62275 2006-10-06  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/closeout (Description): Mention stderr too.
62278
62279 2006-10-06  Bruno Haible  <bruno@clisp.org>
62280         and Paul Eggert  <eggert@cs.ucla.edu>
62281
62282         * lib/closeout.c (close_stdout): Also close stderr.
62283         * lib/closeout.h: Update comment.
62284
62285 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62286
62287         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62288         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62289         * lib/dirchownmod.c: Include lchown.h.
62290         * lib/lchown.c: Don't include files that lchown.h now includes.
62291         Don't declare chown, since lchown.h now does that.
62292         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62293         (lchown): Define to rpl_chown if lchown is declared but
62294         does not exist.  Declare using a prototype if lchown is not
62295         declared.  Add a copyright notice.
62296         * lib/mkstemp.h: Include <unistd.h>.
62297         * lib/openat.c: Include lchown.h.
62298
62299         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62300         we now test for that separately.
62301         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62302         rather than O_NOFOLLOW, when testing whether it's possible to
62303         avoid a race condition reliably.
62304         * lib/savewd.c (savewd_chdir): Likewise.
62305
62306         Remove macros that are no longer needed now that stdint.h is
62307         reliable.
62308         * lib/fsusage.c (UINTMAX_MAX): Remove.
62309         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62310         * lib/utimecmp.c (SIZE_MAX): Remove.
62311
62312         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62313
62314         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62315         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62316         O_NOATIME works.
62317
62318 2006-10-05  Bruno Haible  <bruno@clisp.org>
62319
62320         * lib/gl_list.h (gl_sortedlist_search_from_to,
62321         gl_sortedlist_indexof_from_to): New declarations.
62322         (gl_list_implementation): New fields sortedlist_search_from_to,
62323         sortedlist_indexof_from_to.
62324         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62325         inline functions.
62326         * lib/gl_list.c (gl_sortedlist_search_from_to,
62327         gl_sortedlist_indexof_from_to): New functions.
62328         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62329         function.
62330         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62331         (gl_array_sortedlist_search_from_to): New function.
62332         (gl_array_list_implementation): Update.
62333         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62334         function.
62335         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62336         (gl_carray_sortedlist_search_from_to): New function.
62337         (gl_carray_list_implementation): Update.
62338         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62339         gl_linked_sortedlist_indexof_from_to): New functions.
62340         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62341         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62342         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62343         gl_tree_sortedlist_indexof_from_to): New functions.
62344         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62345         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62346         Update.
62347         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62348         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62349         Update.
62350
62351 2006-10-05  Bruno Haible  <bruno@clisp.org>
62352
62353         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62354         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62355         (struct gl_list_implementation): Add fields search_from_to,
62356         indexof_from_to. Remove fields search, indexof.
62357         (gl_list_search): Use the search_from_to method.
62358         (gl_list_search_from, gl_list_search_from_to): New functions.
62359         (gl_list_indexof): Use the indexof_from_to method.
62360         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62361         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62362         (gl_list_search_from, gl_list_search_from_to): New functions.
62363         (gl_list_indexof): Use the indexof_from_to method.
62364         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62365         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62366         gl_array_indexof. Add start_index, end_index arguments.
62367         (gl_array_search_from_to): Renamed from gl_array_search. Add
62368         start_index, end_index arguments.
62369         (gl_array_remove, gl_array_list_implementation): Update.
62370         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62371         gl_carray_indexof. Add start_index, end_index arguments.
62372         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62373         start_index, end_index arguments.
62374         (gl_carray_remove, gl_carray_list_implementation): Update.
62375         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62376         gl_linked_search. Add start_index, end_index arguments.
62377         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62378         start_index, end_index arguments.
62379         (gl_linked_remove): Update.
62380         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62381         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62382         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62383         field to 'size_t'.
62384         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62385         gl_tree_search. Add start_index, end_index arguments.
62386         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62387         start_index, end_index arguments.
62388         (gl_tree_remove): Update.
62389         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62390         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62391         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62392         function.
62393         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62394         gl_tree_search. Add start_index, end_index arguments.
62395         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62396         start_index, end_index arguments.
62397         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62398         Update.
62399         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62400
62401 2006-10-05  Bruno Haible  <bruno@clisp.org>
62402
62403         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62404
62405         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62406         fwriteerror_temp): New declarations.
62407         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62408         (descriptors): New variable.
62409         (cleanup): First, close the descriptors.
62410         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62411         fclose_temp, fwriteerror_temp): New functions.
62412
62413 2006-10-04  Jim Meyering  <jim@meyering.net>
62414
62415         * lib/fts.c (fts_open): Tiny comment change.
62416
62417 2006-10-04  Bruno Haible  <bruno@clisp.org>
62418
62419         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62420         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62421         gl_LOCK_BODY.
62422         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62423         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62424         gl_LOCK_EARLY_BODY.
62425         (gl_LOCK): Require gl_LOCK_BODY.
62426
62427 2006-10-04  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62430         (gl_oset_search_atleast): New declaration.
62431         (struct gl_oset_implementation): Add field 'search_atleast'.
62432         (gl_oset_search_atleast): New inline function.
62433         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62434         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62435         (gl_array_oset_implementation): Update.
62436         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62437         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62438         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62439
62440 2006-10-04  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62443
62444 2006-10-03  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62447         from gl_avltreehash_list_implementation.
62448
62449 2006-10-03  Bruno Haible  <bruno@clisp.org>
62450
62451         * lib/gl_oset.c (gl_oset_add): Fix return type.
62452
62453 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62454
62455         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62456
62457 2006-10-02  Eric Blake  <ebb9@byu.net>
62458
62459         * modules/strnlen (Depends-on): Add extensions.
62460
62461 2006-10-02  Eric Blake  <ebb9@byu.net>
62462
62463         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62464         definition in 2.60+.
62465
62466 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62467
62468         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62469         checks.
62470
62471 2006-10-02  Bruno Haible  <bruno@clisp.org>
62472
62473         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62474         to the AUTOMAKE_OPTIONS.
62475         Reported by Jim Meyering.
62476
62477 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         Work around bug in Solaris 10 /proc file system:
62480         /proc/self/fd/NNN/.. isn't the parent directory of
62481         the directory whose file descriptor is NNN.  This needs to
62482         be worked around at run time, not compile time, since a
62483         program might be built on Solaris 8, where things work, and
62484         run on Solaris 10.
62485         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62486         to use the following interface instead:
62487         (OPENAT_BUFFER_SIZE): New macro.
62488         (openat_proc_name): New function.
62489         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62490         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62491         Likewise.
62492         * lib/openat-proc.c: New file.
62493         * modules/openat (Files): Add lib/openat-proc.c.
62494         (Depends-on): Add same-inode, stdbool.
62495         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62496
62497 2006-09-29  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62500         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62501         argument. Set stdout_closed before testing for ferror, not after.
62502         (fwriteerror, fwriteerror_no_ebadf): New functions.
62503
62504 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62505
62506         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62507
62508 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62509
62510         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62511         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62512
62513 2006-09-28  Jim Meyering  <jim@meyering.net>
62514
62515         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62516         Include <unistd.h>.
62517
62518 2006-09-28  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62521         * modules/linkedhash-list (Depends-on): Likewise.
62522         * modules/rbtreehash-list (Depends-on): Likewise.
62523
62524 2006-09-28  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/strndup.h: Simplify the redefinition of strndup.
62527         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62529
62530 2006-09-28  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62533         * lib/gl_linkedhash_list.c: Likewise.
62534         * lib/gl_rbtreehash_list.c: Likewise.
62535
62536 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62537
62538         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62539         getaddrinfo.
62540
62541         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62542         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62543         it causes <stdio_ext.h> to cause a compile-time error.
62544         Problem reported by Nelson H. F. Beebe.
62545         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62546         of HAVE_DECL___PENDING.
62547
62548         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62549         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62550         declaration.
62551
62552 2006-09-27  Jim Meyering  <jim@meyering.net>
62553
62554         This file could end up with a definition for a function
62555         named __strndup, rather than rpl_strndup on a system with
62556         incomplete weak_alias support.
62557         * lib/strndup.c (strndup): Rename from __strndup.
62558         Remove #defines that used to map __strndup to strndup.
62559         Don't use K&R prototypes.
62560         Remove LIBC-related code, since this file is not sync'd with glibc.
62561         * lib/strndup.h: Revamp, accordingly.
62562         * m4/strndup.m4: Modernize.
62563
62564 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         * modules/savewd (Depends-on): Add 'raise'.
62567         * lib/savewd.c: Include <signal.h>, for 'raise'.
62568
62569 2006-09-26  Jim Meyering  <jim@meyering.net>
62570
62571         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62572         when we detect Darwin 8.7.0's acl_get_file bug.
62573         Rearrange to perform the new (below) run-test while $LIBS
62574         contains any acl-related library.  Set USE_ACL at the end.
62575         (gl_ACL_GET_FILE): New function.
62576
62577 2006-09-26  Eric Blake  <ebb9@byu.net>
62578
62579         * lib/verror.c: Include <config.h> unconditionally.
62580
62581 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * modules/clock-time (Maintainer): Add self.
62584         * modules/getlogin_r (Depends-on): Add extensions.
62585
62586 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62587
62588         * modules/clock-time: New module.
62589         * modules/nanosleep (Depends-on): Add clock-time.
62590         * modules/gethrxtime (Depends-on): Likewise.
62591         * modules/gettime (Depends-on): Likewise.
62592         * modules/settime (Depends-on): Likewise.
62593
62594         * modules/fts-lgpl: Depend on openat.
62595         * modules/mkancesdirs: Depend on savewd.
62596         * modules/mkdir-p: Likewise.
62597
62598 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62599
62600         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62601
62602         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62603         `gl_have_arbitrary_file_name_length_limit' to
62604         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62605         actually works between configure runs.
62606
62607 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62608             Bruno Haible  <bruno@clisp.org>
62609
62610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62611
62612 2006-09-25  Jim Meyering  <jim@meyering.net>
62613
62614         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62615         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62616
62617 2006-09-25  Eric Blake  <ebb9@byu.net>
62618
62619         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62620         exec's in 2006-09-18 patch when shuffling fds.
62621
62622 2006-09-25  Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62625         Reported by Jim Meyering.
62626
62627 2006-09-24  Jim Meyering  <jim@meyering.net>
62628
62629         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62630         compare a pointer against a literal "0".  That caused failures with
62631         at least HP-UX's hpcc.
62632
62633 2006-09-22  Simon Josefsson  <jas@extundo.com>
62634
62635         * modules/gc-sha1:
62636         * modules/gc-md4:
62637         * modules/gc-hmac-sha1:
62638         * modules/gc-hmac-md5:
62639         * modules/gc-des:
62640         * modules/gc-arcfour: Distribute more files.
62641
62642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62643
62644         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62645         (gl_linked_iterator_from_to): Initialize struct completely.
62646         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62647         (gl_tree_iterator_from_to): Likewise
62648         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62649         * lib/gl_array_list.c [lint] (gl_array_iterator)
62650         (gl_array_iterator_from_to): Likewise.
62651         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62652         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62653         (gl_carray_iterator_from_to): Likewise.
62654
62655         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62656         * lib/md4.c (md4_process_block): Remove unused variable.
62657         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62658         parentheses for clarity.
62659
62660 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62661
62662         * modules/bison-i18n (Depends-on): Add gettext.
62663
62664 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62665
62666         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62667         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62668         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62669         also add missing comma that caused broken test.
62670         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62671         stdlib.h, for `abort'.
62672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62673         variables.
62674         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62675         include unistd.h if present, for `rmdir'.
62676         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62677         variables.
62678         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62679         in the process include standard headers for prototypes.
62680         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62681         gets declared on GNU/Linux.
62682         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62683         unistd.h, for `rmdir'.
62684         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62685
62686         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62687         always true.
62688         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62689
62690         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62691
62692 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62693
62694         * gnulib-tool (func_version): Create output all at once.  This
62695         may help avoid triggering unnecessary SIGPIPEs, and at any
62696         rate it doesn't hurt.
62697
62698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62699             Bruno Haible  <bruno@clisp.org>
62700
62701         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62702         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62703         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62704
62705         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62706         (gl_FUNC_VASPRINTF): Invoke it.
62707
62708 2006-09-22  Bruno Haible  <bruno@clisp.org>
62709
62710         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62711         getloadavg.c as first argument.
62712
62713 2006-09-22  Bruno Haible  <bruno@clisp.org>
62714
62715         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62716         at the beginning of the gl_INIT macro.
62717         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62718         gl_GETLOADAVG.
62719
62720 2006-09-22  Bruno Haible  <bruno@clisp.org>
62721
62722         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62723         module.
62724         Suggested by Ralf Wildenhues.
62725
62726 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62727
62728         Import this patch from libc:
62729
62730         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62731
62732         * lib/regex_internal.c (re_string_reconstruct): Handle
62733         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62734         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62735         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62736         re_string_context_at.
62737
62738         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62739         now requires it.
62740         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62741         gl_REGEX now does it for us.
62742         (gl_REGEX): Add test taken from
62743         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62744
62745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62746         Check that large offsets work.  Modernize Autoconf usages.
62747         Prefer "yes" to mean a good thing rather than a bad.
62748         Don't put "#define mkstemp" in config.h, as this might interfere
62749         with standard system headers that "#define mkstemp mkstemp64".
62750
62751         * modules/mkstemp (Depends-on): Add extensions, so that
62752         mkstemp is visible on some platforms.
62753         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62754         (Include): Change to "mkstemp.h" from <stdlib.h>.
62755         (Files): Add mkstemp.h.
62756
62757         * lib/mkstemp.h: New file, since some standard headers
62758         #define mkstemp.
62759         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62760         Include "mkstemp.h".
62761         Make the _LIBC code resemble glibc original more,
62762         e.g., use K&R style.
62763         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62764         (mkstemp): Remove, since mkstemp.h does this for us.
62765         * lib/stdlib--.h: Include mkstemp.h.
62766
62767         Import this patch from libc:
62768
62769         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62770
62771         * lib/tempname.c (__gen_tempname): Change attempts_min
62772         into a macro.  Use preprocessor to decide how to initialize
62773         attempts [Coverity CID 67].
62774
62775 2006-09-20  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/mkdtemp.c: Import from libc.
62778         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62779                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62780                 attempts_min into a macro.  Use preprocessor to decide how to
62781                 initialize attempts [Coverity CID 67].
62782         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62783                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62784                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62785
62786 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62787
62788         * gnulib-tool (func_exit): New function, to allow to pass the
62789         exit status portably through the trap.  Use everywhere.
62790         (--help, --version): Signal a write error.
62791         (trap): catch SIGPIPE, for write errors.
62792         Exit at the end of the trap, with the correct exit status.
62793
62794 2006-09-19  Karl Berry  <karl@gnu.org>
62795
62796         * doc/gnulib.texi: note about the license texinfo files.
62797
62798 2006-09-19  Eric Blake  <ebb9@byu.net>
62799
62800         * gnulib-tool: Avoid space-tab.
62801
62802 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62805         that prevented coreutils 6.1 from building.  Problem reported
62806         by Petter Reinholdtsen.
62807
62808 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * gnulib-tool (avoidlist): Fix typo that broke options like
62811         --avoid=lock that are used by coreutils bootstrap.
62812
62813 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62814
62815         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62816         more systematically.
62817
62818 2006-09-18  Jim Meyering  <jim@meyering.net>
62819
62820         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62821
62822 2006-09-18  Bruno Haible  <bruno@clisp.org>
62823
62824         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62825
62826 2006-09-18  Bruno Haible  <bruno@clisp.org>
62827
62828         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62829         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62830         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62831         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62832         * m4/gettext.m4: Require autoconf >= 2.52.
62833         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62834         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62835         of gl_cv_header_inttypes_h.
62836
62837 2006-09-18  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/javaversion.c: Include configmake.h.
62840
62841 2006-09-18  Bruno Haible  <bruno@clisp.org>
62842
62843         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62844         avoid that the while loops be executed in a subshell.
62845
62846 2006-09-18  Bruno Haible  <bruno@clisp.org>
62847
62848         * MODULES.html.sh (func_module): Break long lines.
62849         Suggested by Bruce Korb <bkorb@gnu.org>.
62850
62851 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62852
62853         Speed up by a factor of 1.12.
62854         * gnulib-tool (nl): New variable.
62855         (func_import): Rewrite include directive extraction to only read each
62856         directive once.
62857
62858 2006-09-17  Bruno Haible  <bruno@clisp.org>
62859
62860         * modules/javaversion (Makefile.am): Remove DEFS setting.
62861         (Depends-on): Add configmake, for PKGDATADIR definition.
62862
62863 2006-09-17  Bruno Haible  <bruno@clisp.org>
62864
62865         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62866
62867 2006-09-17  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62870         (func_modules_transitive_closure, func_modules_add_dummy,
62871         func_modules_to_filelist, func_import, func_create_testdir,
62872         func_create_megatestdir, ...): Use it wherever possible.
62873         Suggested by Ralf Wildenhues.
62874
62875 2006-09-16  Karl Berry  <karl@gnu.org>
62876
62877         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62878         to avoid sectioning errors.
62879         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62880         [ifinfo]: blank line after @center-ed titles.
62881         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62882         Spell FSF address consistently with others.
62883         (These changes approved by rms.)
62884
62885 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62886
62887         Speed up by a factor of 1.61.
62888         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62889         already checked module names again.
62890
62891 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62892
62893         Speed up by a factor of 1.13.
62894         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62895         for new_files, and the input to func_add_or_update.
62896
62897 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62898
62899         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62900         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62901
62902 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62903
62904         * modules/mkancesdirs (Depends-on): Add fcntl.
62905         * modules/savewd: New file.
62906         * MODULES.html.sh (File system functions): Add savewd.
62907
62908         * modules/configmake (Makefile.am): Add support for the
62909         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62910
62911 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         * m4/savewd.m4: New file.
62914
62915 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62918         (dirchownmod): New arg FD.  All callers changed.
62919         Use FD rather than opening the directory ourself, as opening is
62920         now the caller's responsibility.
62921         * lib/dirchownmod.h: Likewise.
62922         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62923         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62924         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62925         (test_dir): Remove.
62926         (mkancesdirs): Return length of prefix of FILE that has already
62927         been made, or -2 if there is a child doing the work.  Redo
62928         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62929         ".", and treat ".." specially since it might stray back into
62930         already-created areas.  Use a subprocess if necessary.  New arg
62931         WD; all users changed.  MAKE_DIR function should now return 1
62932         if it creates a directory that is not readable.  Return -2 if
62933         a child process is spun off.
62934         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62935         Adjust signature to match code.
62936         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62937         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62938         all users changed.
62939         * lib/savewd.c, lib/savewd.h: New files.
62940
62941 2006-09-15  Jim Meyering  <jim@meyering.net>
62942
62943         * modules/rename-dest-slash: New module.
62944         * MODULES.html.sh (posix_compat): Add it here.
62945
62946         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62947
62948 2006-09-15  Jim Meyering  <jim@meyering.net>
62949
62950         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62951         file.
62952
62953         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62954
62955 2006-09-15  Jim Meyering  <jim@meyering.net>
62956
62957         * lib/rename-dest-slash.c (has_trailing_slash): Use
62958         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62959         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62960         test before testing whether SRC is a directory.
62961         Suggestions from Bruno Haible.
62962
62963         Avoid a warning about an unused variable.
62964         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62965         into the #ifdef block where it's used.
62966
62967         * lib/rename-dest-slash.c: New file.
62968
62969 2006-09-14  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/allocsa.c: Include <config.h> unconditionally.
62972         * lib/asnprintf.c: Likewise.
62973         * lib/asprintf.c: Likewise.
62974         * lib/c-strcasecmp.c: Likewise.
62975         * lib/c-strcasestr.c: Likewise.
62976         * lib/c-strncasecmp.c: Likewise.
62977         * lib/c-strstr.c: Likewise.
62978         * lib/classpath.c: Likewise.
62979         * lib/clean-temp.c: Likewise.
62980         * lib/concatpath.c: Likewise.
62981         * lib/copy-file.c: Likewise.
62982         * lib/csharpcomp.c: Likewise.
62983         * lib/csharpexec.c: Likewise.
62984         * lib/execute.c: Likewise.
62985         * lib/fatal-signal.c: Likewise.
62986         * lib/findprog.c: Likewise.
62987         * lib/fwriteerror.c: Likewise.
62988         * lib/gl_array_list.c: Likewise.
62989         * lib/gl_array_oset.c: Likewise.
62990         * lib/gl_avltree_list.c: Likewise.
62991         * lib/gl_avltree_oset.c: Likewise.
62992         * lib/gl_avltreehash_list.c: Likewise.
62993         * lib/gl_carray_list.c: Likewise.
62994         * lib/gl_linked_list.c: Likewise.
62995         * lib/gl_linkedhash_list.c: Likewise.
62996         * lib/gl_list.c: Likewise.
62997         * lib/gl_oset.c: Likewise.
62998         * lib/gl_rbtree_list.c: Likewise.
62999         * lib/gl_rbtree_oset.c: Likewise.
63000         * lib/gl_rbtreehash_list.c: Likewise.
63001         * lib/imaxabs.c: Likewise.
63002         * lib/imaxdiv.c: Likewise.
63003         * lib/javacomp.c: Likewise.
63004         * lib/javaexec.c: Likewise.
63005         * lib/javaversion.c: Likewise.
63006         * lib/linebreak.c: Likewise.
63007         * lib/localcharset.c: Likewise.
63008         * lib/lock.c: Likewise.
63009         * lib/mbchar.c: Likewise.
63010         * lib/mbswidth.c: Likewise.
63011         * lib/mkdtemp.c: Likewise.
63012         * lib/pipe.c: Likewise.
63013         * lib/printf-args.c: Likewise.
63014         * lib/printf-parse.c: Likewise.
63015         * lib/progname.c: Likewise.
63016         * lib/progreloc.c: Likewise.
63017         * lib/readlink.c: Likewise.
63018         * lib/sh-quote.c: Likewise.
63019         * lib/stpcpy.c: Likewise.
63020         * lib/stpncpy.c: Likewise.
63021         * lib/strcasecmp.c: Likewise.
63022         * lib/strcasestr.c: Likewise.
63023         * lib/strcspn.c: Likewise.
63024         * lib/striconv.c: Likewise.
63025         * lib/strncasecmp.c: Likewise.
63026         * lib/strnlen1.c: Likewise.
63027         * lib/strstr.c: Likewise.
63028         * lib/strtok_r.c: Likewise.
63029         * lib/tls.c: Likewise.
63030         * lib/tmpdir.c: Likewise.
63031         * lib/unicodeio.c: Likewise.
63032         * lib/unsetenv.c: Likewise.
63033         * lib/vasnprintf.c: Likewise.
63034         * lib/vasprintf.c: Likewise.
63035         * lib/wait-process.c: Likewise.
63036         * lib/xallocsa.c: Likewise.
63037         * lib/xsetenv.c: Likewise.
63038         * lib/xstriconv.c: Likewise.
63039
63040 2006-09-13  Simon Josefsson  <jas@extundo.com>
63041
63042         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63043         that internally, suggested by Ralf Wildenhues
63044         <Ralf.Wildenhues@gmx.de>.
63045
63046 2006-09-13  Simon Josefsson  <jas@extundo.com>
63047
63048         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63049         @LIBOBJS@.
63050         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63051
63052 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63055         longer worry about uses that don't define HAVE_CONFIG_H.
63056         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63057         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63058         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63059         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63060         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63061         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63062         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63063         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63064         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63065         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63066         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63067         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63068         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63069         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63070         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63071         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63072         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63073         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63074         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63075         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63076         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63077         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63078         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63079         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63080         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63081         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63082         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63083         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63084         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63085         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63086         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63087         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63088         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63089         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63090         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63091         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63092         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63093         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63094         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63095         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63096         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63097         Likewise.
63098
63099 2006-09-13  Eric Blake  <ebb9@byu.net>
63100
63101         * lib/getopt.c: Fix typo in last commit.
63102
63103 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63104
63105         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63106         dgettext.
63107
63108 2006-09-12  Jim Meyering  <jim@meyering.net>
63109
63110         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63111         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63112         Reported by Nelson H. F. Beebe.
63113
63114 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63115
63116         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63117         program_invocation_name and program_invocation_short_name are
63118         initialized.
63119         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63120         and program_invocation_short_name to argp.h, so they are visible
63121         to user programs.
63122         * lib/argp.h: Likewise
63123
63124 2006-09-10  Bruno Haible  <bruno@clisp.org>
63125
63126         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63127         m4/inttypes_h.m4, m4/uintmax_t.m4.
63128
63129 2006-09-10  Bruno Haible  <bruno@clisp.org>
63130
63131         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63132         gl_AC_TYPE_UINTMAX_T.
63133
63134 2006-09-10  Bruno Haible  <bruno@clisp.org>
63135
63136         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63137
63138 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63139
63140         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63141         convention.  Text proposed by Bruno Haible.
63142         (struct argp_option): Document the use of N_() wrappers.
63143
63144         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63145         '\v', and translate the two parts separately, instead of feeding
63146         the whole string to gettext.  This allows to exclude
63147         '\v' from the strings visible to the translator by writing doc
63148         strings as N_("..") "\v" N_("..").
63149
63150 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * config/srclist.txt: Undo latest change; the bug was fixed.
63153
63154 2006-09-09  Bruno Haible  <bruno@clisp.org>
63155
63156         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63157         assignments if building a library without libtool.
63158         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63159         in func_emit_lib_Makefile_am.
63160         (func_import): When building a static library libfoo.a, arrange to
63161         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63162         (func_create_testdir): Likewise.
63163         * modules/gc (configure.ac, Makefile.am): If building statically,
63164         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63165         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63166         * modules/striconv (configure.ac, Makefile.am): Likewise.
63167         Based on a suggestion by Ralf Wildenhues.
63168
63169 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63172         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63173         Also:
63174
63175         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63176         Add year_2050_test to catch glibc bug 2821
63177         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63178
63179         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63180         Prefer #ifdef to #if.
63181
63182         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63183         Return from 'main' instead of calling 'exit'.
63184
63185 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63188         returned the maximum time_t value rather than (time_t) -1.
63189         Problem originally reported by William Bardwell
63190         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63191
63192         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63193         Moved to here ...
63194         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63195         ... from here.
63196
63197 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63200         2821 is fixed.
63201
63202 2006-09-08  Jim Meyering  <jim@meyering.net>
63203
63204         Don't make generated files read-only.  That would bother too many
63205         people.  However, do retain the ability to work when targets are
63206         read-only: remove the destination and temporary files before writing
63207         them (when generated via sed or echo), or by using the -f option for
63208         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63209         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63210         * modules/byteswap, modules/configmake, modules/fcntl:
63211         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63212         * modules/localcharset, modules/netinet_in, modules/poll:
63213         * modules/stdbool, modules/stdint, modules/sys_select:
63214         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63215
63216 2006-09-08  Jim Meyering  <jim@meyering.net>
63217
63218         Avoid new build failure on FreeBSD 6.0.
63219         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63220         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63221         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63222
63223 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63224
63225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63226
63227 2006-09-07  Jim Meyering  <jim@meyering.net>
63228
63229         Fix global typo in last change: use chmod u-w, not chmod u-x.
63230         Spotted by Paul Eggert and Bruce Korb.
63231         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63232         * modules/byteswap, modules/configmake, modules/fcntl:
63233         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63234         * modules/localcharset, modules/netinet_in, modules/poll:
63235         * modules/stdbool, modules/stdint, modules/sys_select:
63236         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63237
63238 2006-09-06  Jim Meyering  <jim@meyering.net>
63239
63240         Make generated files be read-only.
63241         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63242         Ensure that each generated file is now read-only.
63243         * modules/argz: Likewise.
63244         * modules/arpa_inet: Likewise.
63245         * modules/byteswap: Likewise.
63246         * modules/configmake: Likewise.
63247         * modules/fcntl: Likewise.
63248         * modules/fnmatch: Likewise.
63249         * modules/getopt: Likewise.
63250         * modules/glob: Likewise.
63251         * modules/inttypes: Likewise.
63252         * modules/netinet_in: Likewise.
63253         * modules/poll: Likewise.
63254         * modules/stdbool: Likewise.
63255         * modules/stdint: Likewise.
63256         * modules/sys_select: Likewise.
63257         * modules/sys_socket: Likewise.
63258         * modules/sys_stat: Likewise.
63259         * modules/sysexits: Likewise.
63260         * modules/localcharset: Same as above, but continue using temporary
63261         file named "t-$@" (why different?) rather than the "$@-t" used
63262         everywhere else.
63263
63264         * modules/sysexits (Makefile.am): Replace literal occurrences
63265         of "sysexit.h" more readable, and more consistent, "$@".
63266
63267 2006-09-06  Bruno Haible  <bruno@clisp.org>
63268
63269         * modules/striconv: New file.
63270         * modules/xstriconv: New file.
63271         * MODULES.html.sh (Internationalization functions): Add striconv,
63272         xstriconv.
63273
63274 2006-09-06  Bruno Haible  <bruno@clisp.org>
63275
63276         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63277         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63278         not using libtool correctly.
63279
63280 2006-09-06  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/striconv.h: New file.
63283         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63284         iconvstring.c.
63285         * lib/xstriconv.h: New file.
63286         * lib/xstriconv.c: New file.
63287
63288 2006-09-06  Bruno Haible  <bruno@clisp.org>
63289
63290         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63291         lib_..._LDFLAGS.
63292
63293 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63294
63295         * lib/argz_.h: Sync from Libtool.
63296
63297         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63298                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63299
63300         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63301
63302 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63303
63304         * modules/trim: New file.
63305
63306 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63307
63308         * lib/trim.h: New file.
63309         * lib/trim.c: New file.
63310
63311 2006-09-05  Bruno Haible  <bruno@clisp.org>
63312
63313         * MODULES.html.sh (String handling): Add trim.
63314
63315 2006-09-04  Karl Berry  <karl@gnu.org>
63316
63317         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63318         until next release.
63319
63320 2006-09-03  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63323         correctly.
63324
63325 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63328         not gl_GETLOADAVG.  Omit unneeded semicolons.
63329         Problems reported by Ralf Wildenhues in
63330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63331         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63332         at the end, which is the usual gnulib style.
63333
63334         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63335         of doing all the work ourselves.
63336         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63337         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63338
63339 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63340
63341         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63342         Problem reported by Ralf Wildenhues in
63343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63344
63345         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63346         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63347
63348 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63349
63350         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63351         yesterday's patch by changing test -n to test -z.
63352
63353 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63354
63355         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63356         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63357         the former is now obsolescent.
63358
63359         * modules/chdir-long (Depends-on): Add fcntl.
63360
63361 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63362
63363         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63364         obsolescent, and programs should use gnulib instead.
63365         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63366         but with prefixes changed.
63367
63368 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63371         or stdbool.h, because they might not exist while configuring.
63372
63373         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63374         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63375         does that for us.
63376         (O_DIRECTORY): Remove.
63377
63378 2006-08-31  Eric Blake  <ebb9@byu.net>
63379
63380         * gnulib-tool: Don't let emacs change spaces to TAB.
63381
63382 2006-08-31  Bruno Haible  <bruno@clisp.org>
63383
63384         * gnulib-tool: When calling func_import more than once, do it in a
63385         subshell.
63386         Reported by Eric Blake <ebb9@byu.net>.
63387
63388 2006-08-31  Bruno Haible  <bruno@clisp.org>
63389
63390         * gnulib-tool (nl): Remove variable.
63391         (sed_transform_lib_file): Use more robust test for config-h module.
63392         (func_import): Fix typo in 2006-08-25 patch.
63393
63394 2006-08-31  Bruno Haible  <bruno@clisp.org>
63395
63396         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63397         specified, augment Makefile.am variables instead of assigning them.
63398
63399 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63400
63401         Work around a bug in both the Linux and SunOS 64-bit kernels:
63402         nanosleep mishandles sleeps for longer than 2**31 seconds.
63403         Problem reported by Frank v Waveren in
63404         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63406         Check for nanosleep bug.
63407         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63408
63409 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63410
63411         Work around a bug in both the Linux and SunOS 64-bit kernels:
63412         nanosleep mishandles sleeps for longer than 2**31 seconds.
63413         Problem reported by Frank v Waveren in
63414         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63415         * lib/nanosleep.c (BILLION): New constant.
63416         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63417         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63418         implementation.
63419
63420 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63421
63422         * modules/nanosleep (Depends-on): Add gettime.
63423
63424 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63425         and Simon Josefsson  <jas@extundo.com>
63426         and Oskar Liljeblad  <oskar@osk.mine.nu>
63427
63428         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63429         * gnulib-tool (func_import): New license type 'unmodifiable license
63430         text'.
63431         * modules/fdl: Use it.  Longer description.
63432         * module/gpl, module/lgpl: New files.
63433
63434 2006-08-30  Jim Meyering  <jim@meyering.net>
63435
63436         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63437         shadowing the parameter.
63438
63439 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63440
63441         Sync from Libtool:
63442
63443         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63444
63445         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63446         sharing with gnulib.  Report by Eric Blake.
63447
63448 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * modules/isapipe: New file.
63451         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63452
63453 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63454
63455         * modules/configmake (Makefile.am): Add a comment, and omit
63456         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63457         by Bruno Haible.
63458
63459 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * m4/isapipe.m4: New file.
63462
63463 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * lib/isapipe.c, lib/isapipe.h: New files.
63466
63467 2006-08-29  Jim Meyering  <jim@meyering.net>
63468
63469         * modules/configmake (Makefile.am): Make configmake.h depend on
63470         Makefile.  Otherwise, a stale configmake.h could hang around.
63471
63472 2006-08-29  Eric Blake  <ebb9@byu.net>
63473
63474         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63475         resolution of upstream bug 3044.
63476
63477 2006-08-29  Bruno Haible  <bruno@clisp.org>
63478
63479         * modules/localcharset (Depends-on): Add configmake.
63480         (Makefile.am): Remove setting of LIBDIR through DEFS.
63481
63482 2006-08-29  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63485         defined.
63486
63487 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63488
63489         * modules/fcntl: New file.
63490         * modules/chdir-safer (Depends-on): Add fcntl.
63491         * modules/fts: Likewise.
63492         * modules/mkdir-p: Likewise.
63493
63494         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63495         This undoes the most recent change, since we're now addressing the
63496         problem in a different way.
63497
63498         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63499         into output, since the output might be called Makefile.am even
63500         if $makefile_name is something different.
63501         (func_import): Use $makefile_am rather than
63502         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63503         empty.
63504
63505         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63506
63507 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63510         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63511         recent change to stdint.m4, since we're now addressing the problem in a
63512         different way.
63513
63514 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * m4/fcntl_h.m4: New file.
63517
63518 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * lib/fcntl_.h: New file.
63521         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63522         the fcntl module.
63523         * lib/dirchownmod.c: Likewise.
63524         * lib/fts.c: Likewise.
63525
63526         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63527         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63528         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63529         just before including <inttypes.h>, to avoid circular inclusion.
63530
63531 2006-08-28  Jim Meyering  <jim@meyering.net>
63532
63533         * doc/visibility.texi: Actually read and correct the grammar of the
63534         sentence affected by yesterday's change.
63535
63536 2006-08-28  Eric Blake  <ebb9@byu.net>
63537
63538         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63539         needs wrapper.
63540
63541 2006-08-28  Eric Blake  <ebb9@byu.net>
63542
63543         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63544
63545 2006-08-28  Eric Blake  <ebb9@byu.net>
63546
63547         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63548
63549 2006-08-28  Bruno Haible  <bruno@clisp.org>
63550
63551         * modules/c-strstr: New file, from GNU gettext.
63552         * MODULES.html.sh (String handling): Add c-strstr.
63553
63554 2006-08-28  Bruno Haible  <bruno@clisp.org>
63555
63556         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63557         macros.
63558         Reported by Eric Blake.
63559
63560 2006-08-28  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63563         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63564         * lib/vasprintf.c: Include errno.h, limits.h.
63565         (EOVERFLOW): New fallback definition.
63566         (vasprintf): Test here whether the string length is > INT_MAX.
63567         * lib/vsnprintf.c: Include errno.h, limits.h.
63568         (EOVERFLOW): New fallback definition.
63569         (vsnprintf): Fix bug when generated string was too long for the buffer.
63570         Test here whether the string length is > INT_MAX.
63571
63572 2006-08-28  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/inttypes_.h (SCNX*): Remove definitions.
63575         Reported by Eric Blake.
63576
63577 2006-08-28  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/c-strstr.h: New file, from GNU gettext.
63580         * lib/c-strstr.c: New file, from GNU gettext.
63581
63582 2006-08-28  Bruno Haible  <bruno@clisp.org>
63583
63584         * gnulib-tool: Reorder some statements.
63585
63586 2006-08-28  Bruno Haible  <bruno@clisp.org>
63587
63588         * gnulib-tool: New option --makefile-name.
63589         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63590         $makefile_name.
63591         (func_import): Write $makefile_name to the cache file, and read it from
63592         there unless explicitly specified. Use $makefile_name as file name
63593         instead of Makefile.am. Adjust the recommendations accordingly.
63594
63595 2006-08-28  Bruno Haible  <bruno@clisp.org>
63596
63597         * gnulib-tool (func_verify_module): Check against misapplying patch.
63598
63599 2006-08-28  Bruno Haible  <bruno@clisp.org>
63600
63601         * gnulib-tool (func_relativize, func_relconcat): New functions.
63602         Give an error if --local-dir is given with --update.
63603         Remove trailing slashes from $local_gnulib_dir.
63604         (func_import): Store the relativized $local_gnulib_dir in
63605         gnulib-cache.m4, and read it from there if not specified explicitly.
63606
63607 2006-08-28  Bruno Haible  <bruno@clisp.org>
63608
63609         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63610         is the current directory. Respect also $local_gnulib_dir.
63611
63612 2006-08-28  Bruno Haible  <bruno@clisp.org>
63613             Simon Josefsson  <jas@extundo.com>
63614
63615         BeOS portability.
63616         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63617
63618 2006-08-27  Jim Meyering  <jim@meyering.net>
63619
63620         * doc/visibility.texi: Remove duplicate word: "pointer".
63621
63622 2006-08-26  Bruno Haible  <bruno@clisp.org>
63623
63624         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63625         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63626         (Makefile.am): Create inttypes.h from inttypes_.h.
63627         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63628
63629         * modules/imaxabs: New file.
63630
63631         * modules/imaxdiv: New file.
63632
63633 2006-08-26  Bruno Haible  <bruno@clisp.org>
63634
63635         * m4/inttypes.m4: New file.
63636         * m4/_inttypes_h.m4: Remove file.
63637         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63638         PRI_MACROS_BROKEN.
63639         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63640
63641         * m4/imaxabs.m4: New file.
63642
63643         * m4/imaxdiv.m4: New file.
63644
63645 2006-08-26  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/inttypes_.h: New file.
63648         * lib/inttypes.h: Remove file.
63649         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63650
63651         * lib/imaxabs.c: New file.
63652
63653         * lib/imaxdiv.c: New file.
63654
63655 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         New config-h module, so that "make" output needn't be cluttered
63658         by -DHAVE_CONFIG_H.
63659         * MODULES.html.sh (Support for building libraries and executables):
63660         Add config-h.
63661         * modules/config-h: New file.
63662         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63663         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63664         the config-h module is used.
63665
63666         New configmake module, so that "make" output needn't be cluttered
63667         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63668         * MODULES.html.sh (Support for building libraries and executables):
63669         Add configmake.
63670         * modules/configmake: New file.
63671
63672 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * m4/config-h.m4: New file.
63675
63676 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         * config/srclist.txt: Add elisp-comp.
63679
63680 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         * MODULES.html.sh (Support for building libraries and executables):
63683         Add elisp-comp.
63684         * build-aux/elisp-comp: New file.
63685         * modules/elisp-comp: New file.
63686
63687 2006-08-24  Bruno Haible  <bruno@clisp.org>
63688
63689         * gnulib-tool (func_create_testdir): Use non-default values of
63690         sourcebase and m4base.
63691
63692 2006-08-24  Bruno Haible  <bruno@clisp.org>
63693
63694         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63695         HTML structure.
63696
63697 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * modules/openat (Depends-on): Add lchown.
63700
63701 2006-08-23  Bruno Haible  <bruno@clisp.org>
63702
63703         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63704         of gl_LOCK_EARLY instead of gl_LOCK.
63705
63706 2006-08-23  Bruno Haible  <bruno@clisp.org>
63707
63708         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63709         on OSF/1 to no.
63710         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63711
63712 2006-08-23  Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63715         as unusable.
63716
63717         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63718         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63719         (gl_LOCK): New macro.
63720
63721 2006-08-22  Simon Josefsson  <jas@extundo.com>
63722
63723         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63724         to md5 module.
63725
63726 2006-08-22  Simon Josefsson  <jas@extundo.com>
63727
63728         * MODULES.html.sh: Add "Support for maintaining and release
63729         projects".
63730
63731         * build-aux/gnupload: New file, from coreutils.
63732
63733 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         Avoid the need for AC_LIBSOURCES in m4 macros.
63736         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63737         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63738         * modules/check-version (EXTRA_DIST): Add check-version.h.
63739         * modules/crc (EXTRA_DIST): Add crc.h.
63740         * modules/des (EXTRA_DIST): Add des.h.
63741         * modules/gc (EXTRA_DIST): Add gc.h.
63742         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63743         * modules/getline (EXTRA_DIST): Add getline.h.
63744         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63745         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63746         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63747         * modules/md2 (EXTRA_DIST): Add md2.h.
63748         * modules/md4 (EXTRA_DIST): Add md4.h.
63749         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63750         * modules/read-file (EXTRA_DIST): Add read-file.h.
63751         * modules/readline (EXTRA_DIST): Add readline.h.
63752         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63753         rijndael-api-fst.h.
63754
63755 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63756
63757         * m4/rijndael.m4 (gl_ARCFOUR):
63758         * m4/arctwo.m4 (gl_ARCTWO):
63759         * m4/check-version.m4 (gl_CHECK_VERSION):
63760         * m4/crc.m4 (gl_CRC):
63761         * m4/des.m4 (gl_DES):
63762         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63763         * m4/gc.m4 (gl_GC):
63764         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63765         * m4/getline.m4 (gl_FUNC_GETLINE):
63766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63767         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63768         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63769         * m4/md2.m4 (gl_MD2):
63770         * m4/md4.m4 (gl_MD4):
63771         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63772         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63773         * m4/readline.m4 (gl_FUNC_READLINE):
63774         * m4/rijndael.m4 (gl_RIJNDAEL):
63775         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63776         to get the necessary .h files and whatnot.
63777
63778 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63779
63780         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63781         gnulib rather than the other way around.
63782         * config/srclistvars.sh (COREUTILS): Remove.
63783
63784 2006-08-22  Jim Meyering  <jim@meyering.net>
63785
63786         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63787
63788         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63789
63790 2006-08-22  Eric Blake  <ebb9@byu.net>
63791
63792         * modules/regexprops-generic: New file.
63793         * MODULES.html.sh (Support for building documentation): List it.
63794
63795 2006-08-22  Eric Blake  <ebb9@byu.net>
63796
63797         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63798         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63799         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63800         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63801
63802 2006-08-22  Bruno Haible  <bruno@clisp.org>
63803
63804         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63805         and lib_LTLIBRARIES like the other lib_* variables.
63806
63807 2006-08-22  Bruno Haible  <bruno@clisp.org>
63808
63809         * build-aux/x-to-1.in: New file, from GNU gettext.
63810
63811 2006-08-22  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63814         <utmpx.h> exists.
63815
63816 2006-08-22  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63819         <utmpx.h> exists.
63820
63821 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         BeOS portability.
63824         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63825         exist.
63826         Problem reported by Bruno Haible.
63827
63828 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         Avoid the need for AC_LIBSOURCES in m4 macros.
63831         * modules/acl (EXTRA_DIST): Add acl.h.
63832         * modules/argmatch (Files): Add m4/argmatch.m4.
63833         (configure.ac): Add gl_ARGMATCH.
63834         (EXTRA_DIST): Renamed from lib_SOURCES, for
63835         consistency with the other modules.  Remove argmatch.c.
63836         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63837         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63838         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63839         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63840         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63841         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63842         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63843         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63844         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63845         * modules/closeout (EXTRA_DIST): Add closeout.h.
63846         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63847         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63848         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63849         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63850         dirname.h; remove basename.c and stripslash.c.
63851         * modules/exclude (EXTRA_DIST): Add exclude.h.
63852         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63853         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63854         * modules/file-type (EXTRA_DIST): Add file-type.h.
63855         * modules/filemode (EXTRA_DIST): Add filemode.h.
63856         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63857         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63858         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63859         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63860         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63861         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63862         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63863         * modules/getdate (EXTRA_DIST): Add getdate.c.
63864         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63865         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63866         * modules/getpass (EXTRA_DIST): Add getpass.h.
63867         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63868         * modules/group-member (EXTRA_DIST): Add group-member.h.
63869         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63870         * modules/hash (EXTRA_DIST): Add hash.h.
63871         * modules/human (EXTRA_DIST): Add human.h.
63872         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63873         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63874         * modules/lchown (EXTRA_DIST): Add lchown.h.
63875         * modules/long-options (EXTRA_DIST): Add long-options.h.
63876         * modules/lstat (EXTRA_DIST): Add lstat.h.
63877         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63878         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63879         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63880         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63881         * modules/memxor (EXTRA_DIST): Add memxor.h.
63882         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63883         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63884         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63885         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63886         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63887         * modules/physmem (EXTRA_DIST): Add physmem.h.
63888         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63889         * modules/posixver (EXTRA_DIST): Add posixver.h.
63890         * modules/quote (EXTRA_DIST): Add quote.h.
63891         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63892         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63893         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63894         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63895         regex_internal.h regexec.c.
63896         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63897         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63898         * modules/same (EXTRA_DIST): Add same.h.
63899         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63900         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63901         * modules/savedir (EXTRA_DIST): Add savedir.h.
63902         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63903         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63904         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63905         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63906         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63907         * modules/strdup (EXTRA_DIST): Add strdup.h.
63908         * modules/strftime (EXTRA_DIST): Add strftime.h.
63909         * modules/strndup (EXTRA_DIST): Add strndup.h.
63910         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63911         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63912         * modules/time_r (EXTRA_DIST): Add time_r.h.
63913         * modules/timespec (EXTRA_DIST): Add timespec.h.
63914         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63915         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63916         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63917         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63918         * modules/userspec (EXTRA_DIST): Add userspec.h.
63919         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63920         * modules/utimens (EXTRA_DIST): Add utimens.h.
63921         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63922         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63923         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63924         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63925         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63926         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63927         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63928         * modules/yesno (EXTRA_DIST): Add yesno.h.
63929
63930 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63931
63932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63933
63934         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63935         * m4/dev-ino.m4, same-inode.m4: Remove.
63936
63937         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63938         * m4/acl.m4 (AC_FUNC_ACL):
63939         * m4/backupfile.m4 (gl_BACKUPFILE):
63940         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63941         * m4/canon-host.m4 (gl_CANON_HOST):
63942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63944         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63945         * m4/cloexec.m4 (gl_CLOEXEC):
63946         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63947         * m4/closeout.m4 (gl_CLOSEOUT):
63948         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63949         * m4/dirname.m4 (gl_DIRNAME):
63950         * m4/exclude.m4 (gl_EXCLUDE):
63951         * m4/exitfail.m4 (gl_EXITFAIL):
63952         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63953         * m4/file-type.m4 (gl_FILE_TYPE):
63954         * m4/filemode.m4 (gl_FILEMODE):
63955         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63956         * m4/fpending.m4 (gl_FUNC_FPENDING):
63957         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63958         * m4/fts.m4 (gl_FUNC_FTS):
63959         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63960         * m4/getdate.m4 (gl_GETDATE):
63961         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63962         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63963         * m4/getpass.m4 (gl_FUNC_GETPASS):
63964         * m4/gettime.m4 (gl_GETTIME):
63965         * m4/getugroups.m4 (gl_GETUGROUPS):
63966         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63967         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63968         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63969         * m4/hash.m4 (gl_HASH):
63970         * m4/idcache.m4 (gl_IDCACHE):
63971         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63972         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63973         * m4/long-options.m4 (gl_LONG_OPTIONS):
63974         * m4/lstat.m4 (gl_FUNC_LSTAT):
63975         * m4/md5.m4 (gl_MD5):
63976         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63977         * m4/memcoll.m4 (gl_MEMCOLL):
63978         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63979         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63980         * m4/memxor.m4 (gl_MEMXOR):
63981         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63982         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63983         * m4/modechange.m4 (gl_MODECHANGE):
63984         * m4/mountlist.m4 (gl_MOUNTLIST):
63985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63986         * m4/openat.m4 (gl_FUNC_OPENAT):
63987         * m4/pathmax.m4 (gl_PATHMAX):
63988         * m4/physmem.m4 (gl_PHYSMEM):
63989         * m4/posixtm.m4 (gl_POSIXTM):
63990         * m4/posixver.m4 (gl_POSIXVER):
63991         * m4/quote.m4 (gl_QUOTE):
63992         * m4/quotearg.m4 (gl_QUOTEARG):
63993         * m4/readtokens.m4 (gl_READTOKENS):
63994         * m4/readutmp.m4 (gl_READUTMP):
63995         * m4/regex.m4 (gl_REGEX):
63996         * m4/safe-read.m4 (gl_SAFE_READ):
63997         * m4/safe-write.m4 (gl_SAFE_WRITE):
63998         * m4/same.m4 (gl_SAME):
63999         * m4/save-cwd.m4 (gl_SAVE_CWD):
64000         * m4/savedir.m4 (gl_SAVEDIR):
64001         * m4/settime.m4 (gl_SETTIME):
64002         * m4/sha1.m4 (gl_SHA1):
64003         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64004         * m4/stat-macros.m4 (gl_STAT_MACROS):
64005         * m4/stat-time.m4 (gl_STAT_TIME):
64006         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64007         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64008         * m4/strdup.m4 (gl_FUNC_STRDUP):
64009         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64010         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64011         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64012         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64013         * m4/time_r.m4 (gl_TIME_R):
64014         * m4/timespec.m4 (gl_TIMESPEC):
64015         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64016         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64017         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64018         * m4/userspec.m4 (gl_USERSPEC):
64019         * m4/utimecmp.m4 (gl_UTIMECMP):
64020         * m4/utimens.m4 (gl_UTIMENS):
64021         * m4/xalloc.m4 (gl_XALLOC):
64022         * m4/xgetcwd.m4 (gl_XGETCWD):
64023         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64024         * m4/xreadlink.m4 (gl_XREADLINK):
64025         * m4/xstrtod.m4 (gl_XSTRTOD):
64026         * m4/yesno.m4 (gl_YESNO):
64027         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64028         to get the necessary .h files and whatnot.
64029
64030 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64031             Bruno Haible  <bruno@clisp.org>
64032
64033         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64034         /bin/sh understanding of '!' conditional negation.
64035
64036 2006-08-21  Jim Meyering  <jim@meyering.net>
64037
64038         * modules/openat (Depends-on): Really alphabetize.
64039
64040         * modules/acl (Depends-on): Add error and quote.
64041
64042         * check-module (find_included_lib_files): Add at-func.c to the
64043         ok-to-include-more-than-once white list.
64044
64045         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64046
64047 2006-08-21  Bruno Haible  <bruno@clisp.org>
64048
64049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64050         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64051         Reported by Martin Lambers <marlam@marlam.de>.
64052
64053 2006-08-21  Bruno Haible  <bruno@clisp.org>
64054
64055         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64056         specify an installation location, don't emit a noinst_LIBRARIES or
64057         noinst_LTLIBRARIES assignment.
64058
64059 2006-08-21  Bruno Haible  <bruno@clisp.org>
64060
64061         BeOS portability.
64062         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64063         BeOS has mbrtowc() but no <wctype.h>.
64064
64065 2006-08-21  Bruno Haible  <bruno@clisp.org>
64066
64067         BeOS portability.
64068         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64069         exist.
64070
64071 2006-08-21  Bruno Haible  <bruno@clisp.org>
64072
64073         BeOS portability.
64074         * lib/mbchar.h: Include <wctype.h> only if it exists.
64075
64076 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         Remove files that are no longer needed by their respective modules.
64079         * m4/obstack.m4: Remove.
64080         * m4/strerror_r.m4: Remove.
64081         * m4/uint32_t.m4: Remove.
64082         * m4/uintptr_t.m4: Remove.
64083         * m4/ullong_max.m4: Remove.
64084         * m4/xstrtoimax.m4: Remove.
64085         * m4/xstrtoumax.m4: Remove.
64086
64087         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64088         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64089         dependencies now capture this.
64090
64091         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64092         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64093         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64094         * m4/human.m4 (gl_HUMAN): Likewise.
64095         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64096         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64097
64098         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64099
64100         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64101         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64102         stdint.
64103         * m4/human.m4 (gl_HUMAN): Likewise.
64104         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64105         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64106         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64107         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64108         * m4/xstrtol (gl_XSTRTOL): Likewise.
64109
64110         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64111         AC_TYPE_LONG_LONG_INT.
64112         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64113         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64114         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64115         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64116
64117         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64118         on stdbool.
64119
64120         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64121         (gl_PREREQ_XSTRTOUL): Remove.
64122
64123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64124
64125         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64126         mode.
64127
64128 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         Add and change modules to make it easier for coreutils to use
64131         gnulib-tool.
64132         * modules/backupfile (Files): Remove m4/d-ino.m4.
64133         (Depends-on): Add d-ino.
64134         * modules/cycle-check (Depends-on): Add stdint.
64135         (lib_SOURCES): Add cycle-check.h.
64136         * modules/d-ino: New module.
64137         * modules/d-type: New module.
64138         * modules/error (Files): Remove m4/strerror_r.m4.
64139         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64140         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64141         m4/inttypes_h.m4, m4/uintmax_t.m4.
64142         (Depends-on): Add stdint.
64143         (lib_SOURCES): Add fsusage.h.
64144         * modules/getcwd (Files): Remove d-ino.m4.
64145         (Depends-on): Add d-ino.
64146         * modules/getndelim2 (Depends-on): Add stdint.
64147         * modules/glob (Files): Remove m4/d-type.m4.
64148         (Depends-on): Add d-type.
64149         * modules/host-os: New module.
64150         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64151         m4/inttypes_h.m4, m4/uintmax_t.m4.
64152         * Depends-on: Add stdint.
64153         (lib_SOURCES): Add human.h.
64154         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64155         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64156         m4/uintmax_t.m4, m4/ulonglong.m4.
64157         (Depends-on): Add stdint.
64158         (EXTRA_DIST): Add inttostr.h.
64159         * modules/lchmod: New module.
64160         * modules/link-follow: New module.
64161         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64162         (Depends-on): Add lchmod.
64163         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64164         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64165         (Depends-on): Add stdint.
64166         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64167         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64168         (Depends-on): Add stdint.
64169         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64170         * modules/perl: New module.
64171         * modules/regex (Depends-on): Add stdint.
64172         * modules/rmdir-errno: New module.
64173         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64174         m4/intmax_t.m4.
64175         (Depends-on): Add stdint.
64176         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64177         m4/uintmax_t.m4.
64178         (Depends-on): Add stdint.
64179         * modules/unlink-busy: New module.
64180         * modules/utimecmp (Depends-on): Add stdint.
64181         * modules/uptime: New module.
64182         * modules/winsz-ioctl: New module.
64183         * modules/winsz-termios: New module.
64184         * modules/xnanosleep (Depends-on): Add nanosleep.
64185         * modules/ullong_max: Remove.
64186         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64187         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64188         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64189         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64190         (Depends-on): Add inttypes.
64191         (lib_SOURCES): Add xstrtol.h.
64192         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64193         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64194         * MODULES.html.sh: Move 'assert' into the assert section.
64195         Move 'dummy' into the linking section.
64196         Remove ullong_max.
64197         Add section for compatibility checks for POSIX:2001 functions,
64198         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64199         winsz-ioctl, and winsz-termios into it.
64200         Add lchmod.
64201         Add top-level Misc section and put host-os, perl, and uptime
64202         into it.
64203
64204 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64207         now assume the stdint module.  Do not include inttypes.h.
64208         * lib/fsusage.h: Likewise.
64209         * lib/getndelim2.c: Likewise.
64210         * lib/human.h: Likewise.
64211         * lib/inttostr.h: Likewise.
64212         * lib/obstack.c: Likewise.
64213         * lib/regex_internal.h: Likewise.
64214         * lib/tempname.c: Likewise.
64215         * lib/utimecmp.c: Likewise.
64216         * lib/xstrtol.h: Likewise.
64217
64218         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64219
64220         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64221         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64222         * lib/xtime.h: Likewise.
64223
64224 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * modules/openat (Files): Add lib/fchmodat.c.
64227         Fixes problem reported by Jay Youngman.
64228
64229 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64232         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64233
64234 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64235             Bruno Haible  <bruno@clisp.org>
64236
64237         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64238         and is a script that invokes bison. Tighten the code. Add comments.
64239
64240 2006-08-18  Jim Meyering  <jim@meyering.net>
64241
64242         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64243         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64244         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64245         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64246
64247 2006-08-18  Bruno Haible  <bruno@clisp.org>
64248
64249         * modules/bison-i18n: New file.
64250         * MODULES.html.sh (Internationalization functions): Add it.
64251
64252 2006-08-18  Bruno Haible  <bruno@clisp.org>
64253
64254         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64255         sys/statvfs.h. When getmntinfo was found, check its declaration and
64256         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64257
64258 2006-08-18  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/bison-i18n.m4: New file, from bison.
64261
64262 2006-08-18  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64265         (ME_DUMMY): Treat "kernfs" as a dummy.
64266         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64267
64268 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64269
64270         Update from coreutils.
64271
64272         2006-08-15  Jim Meyering  <jim@meyering.net>
64273
64274         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64275
64276         2006-01-17  Jim Meyering  <jim@meyering.net>
64277
64278         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64279
64280         2006-01-11  Jim Meyering  <jim@meyering.net>
64281
64282         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64283         Check for the lchmod function.
64284
64285 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         Update from coreutils.
64288
64289         * lib/__fpending.h: Add copyright notice.
64290         * lib/fprintftime.h: Likewise.
64291         * lib/savedir.c: Use (C) in copyright notice.
64292         * lib/savedir.h: Likewise.
64293
64294         2006-08-15  Jim Meyering  <jim@meyering.net>
64295
64296         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64297         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64298         in support of the EXPECTED_ERRNO macro.
64299         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64300         definitions.  Instead, define the appropriate symbols and include
64301         "at-func.c".
64302         * lib/mkdirat.c (mkdirat): Likewise.
64303         * lib/fchmodat.c (fchmodat): Likewise.
64304         (ENOSYS): Remove definition.
64305         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64306         it.  Don't include "unistd--.h" -- it wasn't ever used.
64307
64308         2006-01-17  Jim Meyering  <jim@meyering.net>
64309
64310         Rewrite fts.c not to change the current working directory,
64311         by using openat, fstatat, fdopendir, etc..
64312
64313         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64314         (HAVE_OPENAT_SUPPORT): Define.
64315         [_LIBC] (fchdir): Don't undef or define; no longer used.
64316         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64317         Now, this `function' always succeeds, and consumes its file descriptor
64318         parameter -- so callers must not close such FDs.  Update callers.
64319         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64320         (diropen): Add parameter, SP.  Adjust all callers.
64321         Implement using diropen_fd, rather than open.
64322         (fts_open): Initialize new member, fts_cwd_fd.
64323         Remove fts_rft-setting code.
64324         (fts_close): Close fts_cwd_fd, if necessary.
64325         (__opendir2): Define in terms of opendir or opendirat,
64326         depending on whether the FST_NOCHDIR flag is set.
64327         (fts_build): Since fts_safe_changedir consumes its FD, and since
64328         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64329         and close the dup'd file descriptor upon failure.
64330         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64331         (fts_safe_changedir): Tweak semantics to reflect that this function
64332         now calls cwd_advance_fd and hence consumes its FD argument.
64333         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64334         [struct FTS] (fts_rft): Remove now-unused member.
64335         [struct FTS] (fts_cycle.state): Improve comment.
64336
64337         * lib/openat.c (openat_needs_fchdir): New function.
64338         * lib/openat.h (openat_needs_fchdir): Declare it.
64339
64340 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64343         Problem and fix reported by Pádraig Brady in
64344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64345
64346 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64349
64350 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * lib/memcoll.c (memcoll): Optimize for the common case where the
64353         arguments are bytewise equal.
64354
64355 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64356
64357         * doc/regexprops-generic.texi: Add a copyright notice.
64358
64359 2006-08-15  Bruno Haible  <bruno@clisp.org>
64360
64361         * modules/tmpdir (License): Change to LGPL.
64362
64363 2006-08-15  Bruno Haible  <bruno@clisp.org>
64364
64365         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64366         module.
64367
64368 2006-08-14  Simon Josefsson  <jas@extundo.com>
64369
64370         * config/srclist.txt: Add gnupload.
64371
64372 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         Change copyright notice from LGPL 2 to GPL 2, since that's the
64375         standard form used in the gnulib repository.
64376         * tests/test-lock.c: Likewise.
64377         * tests/test-stdint.c: Likewise.
64378         * tests/test-tls.c: Likewise.
64379
64380         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64381         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64382         Add copyright notice.
64383
64384         * check-module: Add copyright notice.  Output a copyright
64385         notice if "--version" is specified.
64386         * modules/COPYING: New file.
64387         * tests/test-getaddrinfo.c: Add copyright notice.
64388         * tests/test-verify.c: Likewise.
64389
64390 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64391
64392         Change copyright notice from LGPL 2 to GPL 2, since that's the
64393         standard form used in the gnulib repository.
64394         * lib/lock.c: LGPL -> GPL.
64395         * lib/lock.h: Likewise.
64396         * lib/strnlen1.c: Likewise.
64397         * lib/strnlen1.h: Likewise.
64398         * lib/tls.c: Likewise.
64399         * lib/tls.h: Likewise.
64400         * lib/tmpdir.c: Likewise.
64401
64402         * lib/TODO: Remove; this belongs only in coreutils.
64403
64404 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64405
64406         Add copyright notices to long-enough files that lack them, since
64407         otherwise the files aren't clearly free.  Use the same notice that
64408         getdate.texi already uses.
64409         * doc/alloca-opt.texi: Add copyright notice.
64410         * doc/alloca.texi: Likewise.
64411         * doc/ctime.texi: Likewise.
64412         * doc/functions.texi: Likewise.
64413         * doc/gcd.texi: Likewise.
64414         * doc/gnulib-tool.texi: Likewise.
64415         * doc/inet_ntoa.texi: Likewise.
64416         * doc/visibility.texi: Likewise.
64417
64418         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64419         * doc/quote.texi: Add copyright notice.
64420
64421         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64422         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64423         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64424         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64425         is now obsolete, and give a pointer to the Sun list.
64426         Add copyright notice.
64427
64428 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * config/srclistvars.sh: Add copyright notice.
64431
64432 2006-08-14  Eric Blake  <ebb9@byu.net>
64433
64434         Import the following change from libc:
64435
64436         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64437
64438         Upstream bug 2997.
64439         * lib/misc/error.c: Add space between program name and message if file
64440         name is missing.
64441
64442 2006-08-12  Karl Berry  <karl@gnu.org>
64443
64444         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64445         remove, these originate in gnulib now.
64446
64447 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64448
64449         * doc/Makefile (standards.info standards.html standards.dvi):
64450         Also depend on make-stds.texi.
64451
64452 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64455         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64456
64457         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64458         in wchar_t.  Problem reported by Eric Blake.
64459
64460         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64461         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64462         Also, help the compiler to keep LEN in a register.
64463
64464 2006-08-11  Eric Blake  <ebb9@byu.net>
64465
64466         * users.txt: Sort.  Add tar.
64467
64468 2006-08-11  Bruno Haible  <bruno@clisp.org>
64469
64470         * users.txt: New file.
64471
64472 2006-08-11  Bruno Haible  <bruno@clisp.org>
64473
64474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64475         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64476
64477 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * modules/snprintf (Depends-on): Remove minmax.
64480         (Maintainer): Add self and Bruno.
64481
64482 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64485         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64486         (EOVERFLOW): Define if the system does not.
64487         Do not include "minmax.h"; it wasn't used.
64488         (snprintf): Don't assume size_t promotes to an unsigned type.
64489         Fix bug when generated string was too long for the buffer: the
64490         buffer's contents are supposed to be the initial prefix of the
64491         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64492         exceeds INT_MAX; do the check ourselves.
64493
64494         Import the following changes from libc:
64495
64496         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64497
64498         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64499         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64500         set wc to the byte which couldn't be converted.
64501         (re_string_reconstruct): Don't clear valid_raw_len before calling
64502         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64503         tip_context using re_string_context_at.
64504
64505         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64506
64507         * lib/posix/regex.h: g++ still cannot handled [restrict].
64508
64509         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64510
64511         * lib/posix/regex.h: Remove special handling for VMS.
64512
64513 2006-08-10  Jim Meyering  <jim@meyering.net>
64514
64515         * modules/same-inode: New module.
64516         * modules/dev-ino: New module.
64517         * modules/cycle-check: Depend on these modules, rather than simply
64518         including their .h files.
64519         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64520         required via m4/cycle-check.m4.
64521         * modules/same: Depend on new same-inode module, rather than
64522         including same-inode.h.
64523         * modules/chdir-safer: New file.
64524
64525         * modules/chown (Depends-on): Add stat-macros.
64526
64527 2006-08-10  Jim Meyering  <jim@meyering.net>
64528
64529         * m4/cycle-check.m4: New file.
64530         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64531         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64532
64533 2006-08-10  Eric Blake  <ebb9@byu.net>
64534
64535         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64536         in from original proposal.
64537
64538 2006-08-10  Eric Blake  <ebb9@byu.net>
64539         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64540
64541         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64542         namespace.
64543
64544 2006-08-10  Bruno Haible  <bruno@clisp.org>
64545
64546         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64547         as well.
64548
64549 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         Sync from coreutils.
64552
64553         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64554
64555         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64556         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64557
64558 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         * modules/restrict: Remove; no longer needed now that we assume
64561         Autoconf 2.59 or later.
64562         * MODULES.html.sh: Remove 'restrict'.
64563         * modules/argp (Depends-on): Remove 'restrict'.
64564         * modules/base64 (Depends-on): Likewise.
64565         * modules/gc (Depends-on): Likewise.
64566         * modules/getaddrinfo (Depends-on): Likewise.
64567         * modules/glob (Depends-on): Likewise.
64568         * modules/inet_ntop (Depends-on): Likewise.
64569         * modules/inet_pton (Depends-on): Likewise.
64570         * modules/memxor (Depends-on): Likewise.
64571         * modules/regex (Depends-on): Likewise.
64572         * modules/strtok_r (Depends-on): Likewise.
64573         * modules/time_r (Depends-on): Likewise.
64574
64575 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64578         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64579         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64580         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64581         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64582         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64583         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64584         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64585
64586         Merge from coreutils.
64587         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64588         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64589         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64590         * m4/time_r.m4 (gl_TIME_R): Likewise.
64591
64592 2006-08-09  Karl Berry  <karl@gnu.org>
64593
64594         * config/srclist.txt: no more gettext-tools, per Bruno.
64595
64596 2006-08-08  Eric Blake  <ebb9@byu.net>
64597
64598         * modules/verror: New module.
64599         * MODULES.html.sh: Document it.
64600
64601 2006-08-08  Eric Blake  <ebb9@byu.net>
64602
64603         * lib/verror.h, lib/verror.c: New files.
64604
64605 2006-08-08  Eric Blake  <ebb9@byu.net>
64606
64607         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64608         verror_at_line output complies with GNU Coding Standards even when
64609         file is NULL.
64610
64611 2006-08-07  Bruno Haible  <bruno@clisp.org>
64612
64613         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64614         versions of AIX.
64615         Reported by Ralf Wildenhues.
64616
64617 2006-08-07  Bruno Haible  <bruno@clisp.org>
64618
64619         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64620         in an AC_DEFUN. Needed so that the autoconf snippets can use
64621         AC_REQUIRE.
64622
64623 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64624
64625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64626         Initialize pkgdata_DATA.
64627         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64628         overriding it.
64629
64630 2006-08-06  Eric Blake  <ebb9@byu.net>
64631
64632         * lib/error.h: Fold in some upstream changes from glibc.
64633         * lib/error.c: Likewise.
64634
64635 2006-08-04  Bruno Haible  <bruno@clisp.org>
64636
64637         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64638         Make the mostlyclean-local rule depend on mostlyclean-generic.
64639         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64640
64641 2006-07-31  Bruno Haible  <bruno@clisp.org>
64642
64643         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64644         <stdlib.h>, <string.h>.
64645
64646 2006-07-30  Bruno Haible  <bruno@clisp.org>
64647
64648         * modules/readlink (License): Change to LGPL.
64649
64650 2006-07-30  Bruno Haible  <bruno@clisp.org>
64651
64652         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64653         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64654         set PKGDATADIR to point to it.
64655
64656 2006-07-30  Bruno Haible  <bruno@clisp.org>
64657
64658         * modules/csharpexec (configure.ac): Comment out macro invocation.
64659         * modules/javaexec (configure.ac): Likewise.
64660         * modules/javacomp-script (configure.ac): Likewise.
64661
64662         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64663
64664 2006-07-30  Bruno Haible  <bruno@clisp.org>
64665
64666         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64667         linked-list.
64668
64669 2006-07-30  Bruno Haible  <bruno@clisp.org>
64670
64671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64672
64673 2006-07-30  Bruno Haible  <bruno@clisp.org>
64674
64675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64676         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64677         get removed.
64678
64679 2006-07-29  Bruno Haible  <bruno@clisp.org>
64680
64681         Make it possible for gnulib-tool to work with locally modified or
64682         augmented gnulib repositories.
64683         * gnulib-tool (func_usage): Document --local-dir option.
64684         (local_gnulib_dir): New variable.
64685         Handle --local-dir option.
64686         (func_lookup_file): New function.
64687         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64688         (func_get_description, func_get_filelist, func_get_description,
64689         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64690         func_get_automake_snippet, func_get_include_directive,
64691         func_get_license, func_get_maintainer): Use func_lookup_file.
64692         (func_import, func_create_testdir): Use func_lookup_file.
64693
64694 2006-07-29  Bruno Haible  <bruno@clisp.org>
64695
64696         * modules/setenv (Depends-on): Add unistd.
64697
64698 2006-07-29  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64701
64702 2006-07-29  Bruno Haible  <bruno@clisp.org>
64703
64704         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64705
64706 2006-07-29  Bruno Haible  <bruno@clisp.org>
64707
64708         * gnulib-tool (import, update): If there is no Makefile.am, look at
64709         aclocal.m4, instead of bailing out.
64710
64711 2006-07-29  Bruno Haible  <bruno@clisp.org>
64712
64713         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64714         Categorize the options by when they are useful.
64715
64716 2006-07-29  Bruno Haible  <bruno@clisp.org>
64717
64718         * gnulib-tool (func_usage): Document option --no-libtool.
64719         Handle option --no-libtool.
64720         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64721         for changed semantics of $libtool variable.
64722         (func_import): Likewise. If libtool is not used, show this through
64723         an option --no-libtool.
64724         (func_create_testdir): Update.
64725
64726 2006-07-29  Bruno Haible  <bruno@clisp.org>
64727
64728         * gnulib-tool (func_import): Extend error message about missing
64729         --doc-base.
64730
64731 2006-07-29  Bruno Haible  <bruno@clisp.org>
64732
64733         * gnulib-tool (func_import): Don't create the $docbase directory if
64734         there is no file to store there.
64735
64736 2006-07-29  Bruno Haible  <bruno@clisp.org>
64737
64738         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64739         relevant, look for configure.ac there, not in the current directory.
64740         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64741
64742 2006-07-29  Bruno Haible  <bruno@clisp.org>
64743
64744         * gnulib-tool (SORT): New variable.
64745         (func_usage): Undocument --assume-autoconf option.
64746         Remove --assume-autoconf option handling.
64747         (autoconf_minversion): Determine from the contents of configure.ac.
64748         (func_import): Remove autoconf_minversion handling.
64749         Suggested by Eric Blake.
64750
64751 2006-07-29  Bruno Haible  <bruno@clisp.org>
64752
64753         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64754
64755 2006-07-29  Bruno Haible  <bruno@clisp.org>
64756
64757         * config/srclist.txt (*setenv.[ch]): Remove rules.
64758
64759 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64760
64761         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64762
64763 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64764
64765         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64766         arpa/inet.h.
64767
64768 2006-07-28  Simon Josefsson  <jas@extundo.com>
64769
64770         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64771         * modules/inet_pton (Depends-on): Likewise.
64772
64773 2006-07-28  Simon Josefsson  <jas@extundo.com>
64774
64775         * m4/netinet_in_h.m4: New file.
64776
64777 2006-07-28  Simon Josefsson  <jas@extundo.com>
64778
64779         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64780         #include's.
64781
64782 2006-07-28  Simon Josefsson  <jas@extundo.com>
64783
64784         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64785         #include's.
64786
64787 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64790         setgid on directories only if they set these bits.
64791         * lib/modechange.h: Remove obsolete comment about masks.
64792
64793 2006-07-28  Eric Blake  <ebb9@byu.net>
64794
64795         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64796         macro expansion.
64797
64798 2006-07-28  Bruno Haible  <bruno@clisp.org>
64799
64800         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64801
64802 2006-07-28  Bruno Haible  <bruno@clisp.org>
64803
64804         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64805
64806 2006-07-28  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64809         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64810         Define fallbacks.
64811         Avoids link error on FreeBSD 4.x.
64812         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64813
64814         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64815         encoding.
64816         * lib/mbswidth.c (iswcntrl): Likewise.
64817
64818 2006-07-27  Bruno Haible  <bruno@clisp.org>
64819
64820         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64821         test.
64822
64823 2006-07-27  Bruno Haible  <bruno@clisp.org>
64824
64825         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64826         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64827         defined.
64828
64829 2006-07-26  Eric Blake  <ebb9@byu.net>
64830
64831         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64832
64833 2006-07-26  Eric Blake  <ebb9@byu.net>
64834
64835         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64836         like mingw that lack mkstemp.
64837         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64838         avoid compilation warning on mingw.
64839
64840 2006-07-26  Bruno Haible  <bruno@clisp.org>
64841
64842         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64843         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64844         INT_FAST*_MIN, INTPTR_MIN.
64845
64846 2006-07-25  Bruno Haible  <bruno@clisp.org>
64847
64848         * modules/version-etc (Depends-on): Add stdarg.
64849
64850 2006-07-25  Bruno Haible  <bruno@clisp.org>
64851
64852         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64853         complex commands.
64854
64855 2006-07-25  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64858         defined in <stdarg.h> or config.h.
64859
64860 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64863         (gl_STDIO_SAFER): Remove.
64864
64865 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * MODULES.html.sh (File stream based Input/Output):
64868         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64869         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64870         * modules/fopen-safer, modules/tmpfile-safer: New files.
64871         * modules/stdio-safer: Remove.
64872
64873 2006-07-24  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/tmpdir: New file.
64876         * MODULES.html.sh (File system functions): Add it.
64877
64878 2006-07-24  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64881         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64882
64883 2006-07-24  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/clean-temp: New file.
64886
64887 2006-07-24  Bruno Haible  <bruno@clisp.org>
64888
64889         * m4/tmpdir.m4: New file, from GNU gettext.
64890
64891 2006-07-24  Bruno Haible  <bruno@clisp.org>
64892
64893         * lib/tmpdir.h: New file, from GNU gettext.
64894         * lib/tmpdir.c: New file, from GNU gettext.
64895
64896 2006-07-24  Bruno Haible  <bruno@clisp.org>
64897
64898         * lib/clean-temp.h: New file, from GNU gettext.
64899         * lib/clean-temp.c: New file, from GNU gettext.
64900
64901 2006-07-23  Eric Blake  <ebb9@byu.net>
64902
64903         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64904         (Depends-on): Add binary-io.
64905
64906 2006-07-23  Eric Blake  <ebb9@byu.net>
64907
64908         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64909
64910 2006-07-23  Eric Blake  <ebb9@byu.net>
64911
64912         * lib/tmpfile-safer.c: New file.
64913         * lib/stdio-safer.h (fopen_safer): Add prototype.
64914         * lib/stdio--.h (tmpfile): Make safer.
64915
64916 2006-07-23  Bruno Haible  <bruno@clisp.org>
64917
64918         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64919         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64920         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64921         gl_linked_remove_at): Use it.
64922
64923 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64924         and Simon Josefsson <jas@extundo.com>
64925
64926         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64927
64928         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64929
64930 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * modules/close-stream: New file.
64933         * modules/closeout (Description): Make it clear that it exits
64934         with a diagnostic on error.
64935         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64936         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64937
64938 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * m4/close-stream.m4: New file.
64941
64942 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * lib/close-stream.c, lib/close-stream.h: New files.
64945
64946 2006-07-22  Bruno Haible  <bruno@clisp.org>
64947
64948         Merge from GNU gettext 0.15.
64949
64950         2006-05-01  Bruno Haible  <bruno@clisp.org>
64951
64952                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64953
64954         2006-07-22  Bruno Haible  <bruno@clisp.org>
64955
64956                 * modules/javaversion: New file.
64957                 * MODULES.html.sh (Java): Add javaversion.
64958
64959         2006-03-12  Bruno Haible  <bruno@clisp.org>
64960
64961                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64962
64963         2005-12-04  Bruno Haible  <bruno@clisp.org>
64964
64965                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64966                 (untested).
64967
64968         2006-06-21  Bruno Haible  <bruno@clisp.org>
64969
64970                 Avoid warnings from recent versions of mcs.
64971                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64972                 -o, -L, -r any more. Use options documented since mcs-1.0
64973                 instead. Similarly for -g.
64974
64975         2005-12-04  Bruno Haible  <bruno@clisp.org>
64976
64977                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64978                 .resources, not .resource.
64979
64980         2005-07-09  Bruno Haible  <bruno@clisp.org>
64981
64982                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64983                 add a .dll suffix.
64984                 Reported by Mark Junker <mjscod@gmx.de>.
64985
64986         2006-07-22  Bruno Haible  <bruno@clisp.org>
64987
64988                 * modules/gettext: Upgrade to gettext-0.15.
64989                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64990                 m4/visibility.m4.
64991                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64992
64993 2006-07-22  Bruno Haible  <bruno@clisp.org>
64994
64995         Merge from GNU gettext 0.15.
64996
64997         2006-03-25  Bruno Haible  <bruno@clisp.org>
64998
64999                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65000
65001         2006-07-21  Bruno Haible  <bruno@clisp.org>
65002
65003                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65004                 "1.1".
65005
65006         2006-05-09  Bruno Haible  <bruno@clisp.org>
65007
65008                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65009                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65010                 for the conftestver execution.
65011
65012         2006-05-01  Bruno Haible  <bruno@clisp.org>
65013
65014                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65015                 optional target-version argument. Verify that the compiler
65016                 groks source of the specified source-version, or add -source
65017                 option as necessary. Verify that the compiler produces
65018                 bytecode in the specified target-version, or add -target and
65019                 -source options as necessary. Make the result of the test
65020                 available as variable CONF_JAVAC. Also log error output in
65021                 config.log.
65022
65023         2006-03-11  Bruno Haible  <bruno@clisp.org>
65024
65025                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65026
65027         2006-05-09  Bruno Haible  <bruno@clisp.org>
65028
65029                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65030                 CLASSPATH_SEPARATOR to a semicolon.
65031
65032         2006-03-12  Bruno Haible  <bruno@clisp.org>
65033
65034                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65035                 available as variable CONF_JAVA, for subsequent autoconf
65036                 tests. Also log error output in config.log.
65037
65038         2006-07-19  Bruno Haible  <bruno@clisp.org>
65039
65040                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65041                 that getline works on glibc2 systems. Needed to avoid trouble
65042                 in relocatable.c.
65043                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65044
65045         2005-12-04  Bruno Haible  <bruno@clisp.org>
65046
65047                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65048                 launcher (untested).
65049
65050         2005-12-04  Bruno Haible  <bruno@clisp.org>
65051
65052                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65053
65054         2006-07-22  Bruno Haible  <bruno@clisp.org>
65055
65056                 * gettext.m4: Update from GNU gettext-0.15.
65057                 * nls.m4: Likewise.
65058                 * po.m4: Likewise.
65059                 * inttypes-pri.m4: Likewise.
65060                 * inttypes-h.m4: Renamed from inttypes.m4.
65061                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65062
65063 2006-07-22  Bruno Haible  <bruno@clisp.org>
65064
65065         Merge from GNU gettext 0.15.
65066
65067         2005-07-05  Bruno Haible  <bruno@clisp.org>
65068
65069                 * printf-args.c (printf_fetchargs): Work around broken
65070                 definition of wint_t on mingw.
65071
65072         2005-02-12  Bruno Haible  <bruno@clisp.org>
65073
65074                 * xallocsa.h: Add extern "C" for C++.
65075
65076         2006-05-17  Bruno Haible  <bruno@clisp.org>
65077
65078                 Cygwin portability.
65079                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65080
65081         2006-04-30  Bruno Haible  <bruno@clisp.org>
65082
65083                 * progreloc.c: Include <mach-o/dyld.h> if available.
65084                 (find_executable): Use _NSGetExecutablePath when possible.
65085
65086         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65087
65088                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65089                 function.
65090
65091         2005-12-29  Bruno Haible  <bruno@clisp.org>
65092
65093                 * progreloc.c (set_program_name_and_installdir): Fix
65094                 compilation error.
65095
65096         2005-12-04  Bruno Haible  <bruno@clisp.org>
65097
65098                 Cygwin portability.
65099                 * progreloc.c: Include <windows.h> also on Cygwin.
65100                 (find_executable): Add support for Cygwin.
65101                 (set_program_name_and_installdir): Handle also platforms with
65102                 nonempty EXEEXT.
65103
65104         2006-07-11  Bruno Haible  <bruno@clisp.org>
65105
65106                 * javacomp.c: Fix a comment.
65107                 Reported by Jim Meyering.
65108
65109         2006-04-30  Bruno Haible  <bruno@clisp.org>
65110
65111                 * javacomp.h (compile_java_class): Add source_version,
65112                 target_version arguments.
65113                 * javacomp.c: Rewritten to choose only a compiler that
65114                 respects the specified source_version and target_version.
65115
65116         2006-06-27  Bruno Haible  <bruno@clisp.org>
65117
65118                 Assume correct S_ISDIR macro.
65119                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65120
65121         2006-07-22  Bruno Haible  <bruno@clisp.org>
65122
65123                 * javaversion.h: New file, from GNU gettext.
65124                 * javaversion.c: New file, from GNU gettext.
65125                 * javaversion.java: New file, from GNU gettext.
65126                 * javaversion.class: New file, from GNU gettext.
65127
65128         2006-05-17  Bruno Haible  <bruno@clisp.org>
65129
65130                 Cygwin portability.
65131                 * javaexec.c (execute_java_class): Test for jview program
65132                 also on Cygwin.
65133
65134         2006-04-09  Bruno Haible  <bruno@clisp.org>
65135
65136                 * fatal-signal.c: Don't include string.h.
65137                 (at_fatal_signal): Use a copying loop instead of memcpy.
65138
65139         2005-12-04  Bruno Haible  <bruno@clisp.org>
65140
65141                 * csharpexec.c: Add support for 'clix' launcher (untested).
65142                 (execute_csharp_using_sscli): New function.
65143                 (execute_csharp_program): Call it.
65144
65145         2006-06-21  Bruno Haible  <bruno@clisp.org>
65146
65147                 Avoid warnings from recent versions of mcs.
65148                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65149                 -o, -L, -r any more. Use options documented since mcs-1.0
65150                 instead. Similarly for -g.
65151
65152         2005-07-09  Bruno Haible  <bruno@clisp.org>
65153
65154                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65155                 add a .dll suffix.
65156                 Reported by Mark Junker <mjscod@gmx.de>.
65157
65158         2006-06-17  Bruno Haible  <bruno@clisp.org>
65159
65160                 * config.charset: Update for NetBSD 3.0.
65161
65162         2006-05-17  Bruno Haible  <bruno@clisp.org>
65163
65164                 Cygwin portability.
65165                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65166
65167         2006-05-16  Bruno Haible  <bruno@clisp.org>
65168
65169                 * localcharset.c [CYGWIN]: Include <windows.h>.
65170                 (get_charset_aliases): For Cygwin, return the same CPxxx
65171                 aliases list as under WIN32.
65172                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65173                 the environment variables. Fall back to GetACP().
65174
65175         2006-04-05  Bruno Haible  <bruno@clisp.org>
65176
65177                 * config.charset: Update Juan Manuel Guerrero's address.
65178
65179         2005-02-12  Bruno Haible  <bruno@clisp.org>
65180
65181                 * allocsa.h: Add extern "C" for C++.
65182
65183         2005-02-10  Bruno Haible  <bruno@clisp.org>
65184
65185                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65186                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65187
65188         2006-07-22  Bruno Haible  <bruno@clisp.org>
65189
65190                 * gettext.h: Update to GNU gettext-0.15.
65191
65192 2006-07-22  Bruno Haible  <bruno@clisp.org>
65193
65194         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65195         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65196         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65197
65198 2006-07-21  Eric Blake  <ebb9@byu.net>
65199
65200         * modules/stdlib-safer: New file.
65201         * MODULES.html.sh (File stream based Input/Output): Add
65202         stdlib-safer.
65203
65204 2006-07-21  Eric Blake  <ebb9@byu.net>
65205
65206         * lib/stdlib-safer.h: New file from coreutils, required by
65207         stdlib--.h.
65208
65209 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65210
65211         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65212
65213 2006-07-20  Bruno Haible  <bruno@clisp.org>
65214
65215         * gnulib-tool: Recognize new option --assume-autoconf.
65216         (autoconf_minversion): New variable.
65217         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65218
65219 2006-07-20  Bruno Haible  <bruno@clisp.org>
65220
65221         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65222
65223 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65224
65225         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65226         Reindent and repaginate.
65227
65228 2006-07-19  Derek Price  <derek@ximbiot.com>
65229
65230         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65231         Correct grammar.
65232
65233 2006-07-17  Bruno Haible  <bruno@clisp.org>
65234
65235         * modules/list: New file.
65236         * modules/array-list: New file.
65237         * modules/carray-list, modules/carray-list-tests: New files.
65238         * modules/linked-list, modules/linked-list-tests: New files.
65239         * modules/avltree-list, modules/avltree-list-tests: New files.
65240         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65241         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65242         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65243         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65244         * modules/oset: New file.
65245         * modules/array-oset: New file.
65246         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65247         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65248         * tests/test-carray_list.c: New file.
65249         * tests/test-linked_list.c: New file.
65250         * tests/test-avltree_list.c: New file.
65251         * tests/test-rbtree_list.c: New file.
65252         * tests/test-linkedhash_list.c: New file.
65253         * tests/test-avltreehash_list.c: New file.
65254         * tests/test-rbtreehash_list.c: New file.
65255         * tests/test-avltree_oset.c: New file.
65256         * tests/test-rbtree_oset.c: New file.
65257         * MODULES.html.sh (Container data structures): New section.
65258
65259 2006-07-17  Bruno Haible  <bruno@clisp.org>
65260
65261         * m4/gl_list.m4: New file.
65262
65263 2006-07-17  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/gl_list.h: New file.
65266         * lib/gl_list.c: New file.
65267         * lib/gl_array_list.h: New file.
65268         * lib/gl_array_list.c: New file.
65269         * lib/gl_carray_list.h: New file.
65270         * lib/gl_carray_list.c: New file.
65271         * lib/gl_linked_list.h: New file.
65272         * lib/gl_linked_list.c: New file.
65273         * lib/gl_anylinked_list1.h: New file.
65274         * lib/gl_anylinked_list2.h: New file.
65275         * lib/gl_avltree_list.h: New file.
65276         * lib/gl_avltree_list.c: New file.
65277         * lib/gl_anyavltree_list1.h: New file.
65278         * lib/gl_anyavltree_list2.h: New file.
65279         * lib/gl_rbtree_list.h: New file.
65280         * lib/gl_rbtree_list.c: New file.
65281         * lib/gl_anyrbtree_list1.h: New file.
65282         * lib/gl_anyrbtree_list2.h: New file.
65283         * lib/gl_anytree_list1.h: New file.
65284         * lib/gl_anytree_list2.h: New file.
65285         * lib/gl_linkedhash_list.h: New file.
65286         * lib/gl_linkedhash_list.c: New file.
65287         * lib/gl_anyhash_list1.h: New file.
65288         * lib/gl_anyhash_list2.h: New file.
65289         * lib/gl_avltreehash_list.h: New file.
65290         * lib/gl_avltreehash_list.c: New file.
65291         * lib/gl_rbtreehash_list.h: New file.
65292         * lib/gl_rbtreehash_list.c: New file.
65293         * lib/gl_anytreehash_list1.h: New file.
65294         * lib/gl_anytreehash_list2.h: New file.
65295
65296         * lib/gl_oset.h: New file.
65297         * lib/gl_oset.c: New file.
65298         * lib/gl_array_oset.h: New file.
65299         * lib/gl_array_oset.c: New file.
65300         * lib/gl_avltree_oset.h: New file.
65301         * lib/gl_avltree_oset.c: New file.
65302         * lib/gl_rbtree_oset.h: New file.
65303         * lib/gl_rbtree_oset.c: New file.
65304         * lib/gl_anytree_oset.h: New file.
65305
65306 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65307
65308         * m4/mkancesdirs.m4: New file.
65309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65310         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65311         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65312         it.
65313
65314 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65317         * lib/mkancesdirs.h: New files.
65318         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65319         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65320         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65321         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65322         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65323         callers changed.  Revamp internals significantly, by not
65324         attempting to create directories that are temporarily more
65325         permissive than the final results.  Do not attempt to use
65326         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65327         This removes some race conditions, fixes some bugs, and simplifies
65328         things.  Use new dirchownmod function to do owner and mode changes.
65329         * lib/mkdir-p.h: Likewise.
65330         * lib/modechange.c (octal_to_mode): New function.
65331         (struct mode_change): New member mentioned.
65332         (make_node_op_equals): New arg mentioned.  All callers changed.
65333         (mode_compile): Keep track of which mode bits the user has explicitly
65334         mentioned.
65335         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65336         New arg PMODE_BITS, to keep track of which mode bits the user
65337         mentioned; it treats S_ISUID and S_ISGID speciall.
65338         All callers changed.
65339         * lib/modechange.h: Likewise.
65340
65341 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * MODULES.html.sh: Add mkancestors.
65344         * modules/mkancesdirs: New module.
65345         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65346         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65347         The chdir-safer and afs files are now orphans; I'll remove them
65348         unless someone speaks up.
65349         Add lib/dirchownmod.c, lib/dirchownmod.h.
65350         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65351         Add lchown, mkancesdirs.
65352         (Maintainer): Add self.
65353
65354 2006-07-15  Karl Berry  <karl@gnu.org>
65355
65356         * gnulib-tool: help message wording/arrangement.
65357
65358 2006-07-14  Simon Josefsson  <jas@extundo.com>
65359
65360         * doc/gnulib.texi (Libtool and Windows): New section.
65361
65362 2006-07-12  Simon Josefsson  <jas@extundo.com>
65363
65364         * modules/gendocs (License): Fix license, approved by Karl.
65365
65366 2006-07-12  Eric Blake  <ebb9@byu.net>
65367
65368         * MODULES.html.sh: Add gendocs.
65369
65370 2006-07-11  Eric Blake  <ebb9@byu.net>
65371
65372         * modules/fdl: New module, to install doc/fdl.texi.
65373         * MODULES.html.sh: Add new section for documentation modules.
65374         * gnulib-tool: Avoid space-tab.
65375         (--doc-base): New option, to manage files from doc.
65376
65377 2006-07-11  Eric Blake  <ebb9@byu.net>
65378
65379         * m4/absolute-header.m4: Fix comments to match recent change.
65380
65381 2006-07-11  Eric Blake  <ebb9@byu.net>
65382
65383         * gnulib-tool: List --doc-base before --tests-base.
65384
65385 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65386
65387         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65388
65389 2006-07-11  Bruno Haible  <bruno@clisp.org>
65390
65391         * README: Mention where to put documentation.
65392
65393 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65394
65395         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65396
65397 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65400         to stdint.m4.
65401
65402 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65403
65404         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65405         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65406         "no/such/file/stdint.h" when there is no such file, so that
65407         the resulting C code can be parsed by dodgy compilers.
65408         Problems reported by Bob Proulx.
65409
65410 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65411
65412         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65413         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65414         macros into the GNU _D_EXACT_NAMLEN.
65415         * lib/savedir.c:  Likewise.
65416         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65417
65418 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65419         and Paul Eggert  <eggert@cs.ucla.edu>
65420
65421         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65422         * m4/savedir.m4:
65423         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65424         macros into the GNU _D_EXACT_NAMLEN.
65425
65426 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65429         around the absolute name, to work around a problem with the HP-UX
65430         11.23 native C compiler, reported by Bob Proulx.
65431
65432 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * doc/maintain.texi, make-stds.texi: Sync from
65435         <http://savannah.gnu.org/projects/gnustandards>.
65436
65437 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65440
65441 2006-07-09  Jim Meyering  <jim@meyering.net>
65442
65443         * m4/glob.m4: Remove a doubled word in a comment.
65444
65445 2006-07-09  Jim Meyering  <jim@meyering.net>
65446
65447         * lib/argp-pv.c: Remove a doubled word in a comment.
65448         * lib/check-version.c (check_version): Likewise.
65449         * lib/javacomp.c (compile_java_class): Likewise.
65450
65451 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65452
65453         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65454         for the benefit of people using Autoconf 2.60.  If you want to
65455         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65456         (or m4/onceonly.m4, if pre-2.57) manually.
65457
65458 2006-07-08  Jim Meyering  <jim@meyering.net>
65459
65460         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65461         comment.
65462         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65463         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65464         comment.
65465
65466 2006-07-08  Jim Meyering  <jim@meyering.net>
65467
65468         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65469
65470 2006-07-07  Simon Josefsson  <jas@extundo.com>
65471
65472         * tests/test-crc.c: Change expected crc value, the test vector
65473         were probably computed using the old broken crc.c?
65474
65475 2006-07-06  Simon Josefsson  <jas@extundo.com>
65476
65477         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65478         now the canonical place for the M4 file).
65479
65480         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65481         from the sys_socket dependency now.
65482
65483         * modules/inet_pton (Files): Ditto.
65484
65485         * modules/inet_ntop (Files): Ditto.
65486
65487 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65488
65489         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65490         not gl_PREREQ_GETUSERSHELL.
65491
65492 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65493
65494         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65495         with only one argument, for Autoconf 2.60.
65496         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65497         expand to nothing, so add a shell command to avoid syntax error.
65498         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65499
65500 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65501
65502         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65503
65504 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65507         no longer needed.  Check for isblank decl.
65508         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65509         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65510         of existence.
65511
65512 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         * lib/getloadavg.c: Use __VMS, not VMS.
65515         * lib/getopt.c: Likewise.
65516         * lib/getpagesize.h: Likewise.
65517         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65518         and probably does not work.
65519
65520 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * lib/.cppi-disable: Add wcwidth.
65523         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65524         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65525         (ISGRAPH): Remove.  All uses changed to isgraph.
65526         (FOLD) [!defined _LIBC]: Remove special case.
65527         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65528         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65529         HAVE_ISBLANK.
65530         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65531         case.
65532
65533 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65534
65535         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65536         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65537         brackets.  Other minor changes to suppress some compiler
65538         warnings.
65539
65540 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65541         and Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65544         of invoking obsolescent AC_HEADER_DIRENT macro.
65545         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65546         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65547         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65548         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65549         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65550         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65551         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65552         * m4/readdir.m4: Remove; no longer needed.
65553
65554 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65555         and Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65558         Don't worry about this obsolete case any more.
65559         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65560         directories.
65561         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65562         worry about this obsolete case any more.
65563         * lib/fts.c: Likewise.
65564         * lib/getcwd.c: Likewise.
65565         * lib/glob.h: Likewise.
65566         * lib/savedir.c: Likewise.
65567
65568 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65571         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65572         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65573         needed.
65574         All uses removed.
65575         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65576         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65577         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65578         needed.
65579         * m4/getdate.m4 (gl_GETDATE): Likewise.
65580         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65581         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65582         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65583         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65584         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65585         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65586         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65587         needed.
65588
65589 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * lib/memcasecmp.c: Include <limits.h>.
65592         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65593         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65594         Don't assume isdigit succeeds only on '0' through '9'.
65595
65596 2006-07-05  Eric Blake  <ebb9@byu.net>
65597
65598         * modules/getaddrinfo (Depends-on): Add snprintf.
65599
65600 2006-07-05  Eric Blake  <ebb9@byu.net>
65601
65602         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65603         to avoid 'header present but could not be compiled' on cygwin.
65604
65605 2006-07-05  Eric Blake  <ebb9@byu.net>
65606
65607         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65608         missing from netdb.h.
65609         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65610
65611 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65612
65613         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65614         no longer needed.
65615         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65616         * m4/getdate.m4 (gl_GETDATE): Likewise.
65617         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65618         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65619         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65620         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65621         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65622
65623 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65624
65625         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65626         All uses of is_space replaced by isspace.
65627         * lib/exit.h: Don't talk about STDC_HEADERS.
65628         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65629         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65630         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65631         replaced by isprint etc.
65632         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65633         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65634         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65635         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65636         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65637         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65638
65639 2006-07-05  Bruno Haible  <bruno@clisp.org>
65640
65641         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65642         the function exists, before testing against AIX.
65643         Reported by Martin Lambers <marlam@marlam.de>.
65644
65645 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65648         From Mark D. Baushke.
65649
65650 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65653         to the absolute name, not just one, to bypass Sun C 5.8's
65654         "warning: #include of /usr/include/... may be non-portable".
65655
65656 2006-07-04  Eric Blake  <ebb9@byu.net>
65657
65658         * modules/dirname-tests: New test module.
65659         * tests/test-dirname.c: New file, replacing dirname.c
65660         TEST_DIRNAME section that was recently deleted.
65661
65662 2006-07-04  Bruno Haible  <bruno@clisp.org>
65663
65664         Assume ANSI C header files and <ctype.h> functions.
65665         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65666         (mbsnwidth): Use isprint, iscntrl instead.
65667
65668 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         Merge from coreutils.
65671         * MODULES.html.sh: Add xstrtold.
65672         * modules/xstrtold: New file.
65673         * modules/cycle-check (Files): Add lib/same-inode.h.
65674         * modules/dirname (Files): Add m4/double-slash-root.m4.
65675         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65676         * modules/mkdir-p (Files): Add lib/same-inode.h.
65677         * modules/same (Files): Add lib/same-inode.h.
65678
65679 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65682         This is to keep the terminology clean; POSIX talks about
65683         "absolute pathnames", not "full pathnames", but the GNU
65684         Coding Standards say to use "path" for something else;
65685         so use "absolute" to keep both sides happy.
65686         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65687         Set gl_absolute_header, not gl_full_header_path.
65688         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65689         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65690         All uses changed.
65691
65692         Merge from coreutils.
65693
65694         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65697         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65698         want to require the building of c-strtod.o.
65699         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65700         needs -lm directly.
65701         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65702
65703         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65706         --as-needed option if available.  Problem reported by Albert Chin in
65707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65708         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65709         cc merely issues a bunch of annoying warnings for --as-needed
65710         (this problem was reported by Bob Proulx).  Also, try linking with
65711         -lm to detect a bug in binutils 2.16 (this problem was reported
65712         by Ralf Wildenhues).
65713
65714         2006-06-18  Jim Meyering  <jim@meyering.net>
65715
65716         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65717         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65718         macro.
65719         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65720         also check for glibc-2.4's abort-inducing bug.
65721
65722         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65723         Low-probability clean-up should be to use rmdir to get rid of
65724         the just-created directory, not unlink.
65725
65726         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65727         configure fail, and request a bug report to inform us about it.
65728         Add a comment that, barring reports to the contrary, in 2007 we'll
65729         assume ftruncate is universally available.
65730
65731         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65734
65735         2006-03-12  Jim Meyering  <jim@meyering.net>
65736
65737         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65738         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65739         * m4/same.m4 (gl_SAME): Likewise.
65740         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65741
65742         2006-03-11  Eric Blake  <ebb9@byu.net>
65743
65744         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65745         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65746         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65747         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65748
65749 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65750
65751         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65752         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65753         reported by Mark D. Baushke, one in
65754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65755
65756         Merge from coreutils.
65757
65758         * lib/.cppi-disable: Add stdint_.h.
65759         * lib/.cvsignore: Add stdint.h.
65760
65761         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65762
65763         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65764         both double and long double versions.
65765         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65766         * lib/xstrtold.c: New file.
65767         * lib/xstrtod.h (xstrtold): New decl.
65768
65769         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         * lib/filemode.c (setst): Remove.
65772         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65773         (arguably) clearer, and the generated code is a bit smaller on my
65774         Debian GNU/Linux stable x86 host.
65775
65776         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65779         Assume that filemode.h includes sys/types.h and sys/stat.h.
65780         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65781         (ftypelet): Reorder to put common cases first, for efficiency.
65782         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65783         to do 'M'.
65784         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65785         of 10, for compatibility with FreeBSD.  All callers changed.
65786         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65787         types that can't be deduced solely from st_mode.  First arg is now a
65788         const pointer.
65789         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65790         (strmode): Renamed from mode_string.
65791         (filemodestring): New decl.
65792         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65793         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65794         needed.
65795         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65796
65797         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65800         fsusage.h now does that.  Include fsusage.h first, to test interface.
65801         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65802         at most one method (the old code could have generated decls that
65803         didn't conform to C89, not that this was ever exercised).
65804         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65805
65806         2006-03-19  Jim Meyering  <jim@meyering.net>
65807
65808         Work even in a chroot where d_ino values for entries in "/"
65809         don't match the stat.st_ino values for the same names.
65810         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65811         number, iterate through all entries again, using lstat instead.
65812         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65813         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65814
65815         * lib/getcwd.c (__getcwd): Clarify a comment.
65816         Use memcpy in place of a call to strcpy.
65817
65818         2006-03-12  Jim Meyering  <jim@meyering.net>
65819
65820         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65821         matches that of the current directory (which we're about to chdir ".."
65822         out of), then save the dev-ino of the parent, instead.
65823
65824         * lib/same-inode.h (SAME_INODE): New file/macro.
65825         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65826         Include "same-inode.h", instead.
65827         * lib/same.c: Likewise.
65828         * lib/cycle-check.h: Include "same-inode.h".
65829         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65830         * lib/cycle-check.c (SAME_INODE): Remove definition.
65831         * lib/root-dev-ino.h: Include "same-inode.h".
65832
65833         2006-03-11  Eric Blake  <ebb9@byu.net>
65834
65835         * lib/same.c (same_name): s/base_name/last_component/
65836         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65837         * lib/filenamecat.c (file_name_concat): Likewise.
65838
65839         2006-03-11  Eric Blake  <ebb9@byu.net>,
65840                     Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65843         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65844         drive prefix.
65845         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65846         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65847         (last_component): New method.
65848         * lib/dirname.c (dir_len): Determine when drive letters need a
65849         subsequent slash.  Preserve // when it is special.
65850         (dir_name): Don't append dot when drive letter is absolute.
65851         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65852         * lib/basename.c (base_name): New semantics - malloc the result.
65853         Preserve // when it is special.  Preserve relative files that look
65854         like drive letters.
65855         (base_len): Preserve // when it is special.
65856         (last_component): New method, similar to old base_name semantics.
65857         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65858         base_name.  Strip redundant slashes from ///.
65859
65860 2006-07-03  Jim Meyering  <jim@meyering.net>
65861
65862         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65863         macro is used before the first cycle_check call.
65864
65865 2006-07-03  Eric Blake  <ebb9@byu.net>
65866
65867         * modules/dirname (Depends-on): Add xstrndup.
65868
65869 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65870
65871         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65872         test cases, so that config.log is a bit easier to follow.
65873
65874 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65877         both are 64 bits, since this seems to be the tradition, and this
65878         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65879         we ever run into a host that prefers long long to long in this
65880         case, we'll need another configure-time test.  Problem reported by
65881         Jim Meyering.
65882
65883 2006-07-02  Eric Blake  <ebb9@byu.net>
65884
65885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65886
65887 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * modules/inttypes (Depends-on): No longer depends on stdint.
65890         * modules/stdint (Description): Say more about assumptions.
65891         Say that the fast types might differ.  Say macros are used.
65892         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65893         (Makefile.am): Revise list of substituted symbols to match
65894         new stdint.m4.
65895         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65896         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65897         * tests/test-stdint.c (verify_same_types)
65898         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65899         the code conforms to C99/C89.
65900         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65901         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65902
65903 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65906         but fix a bug, by requiring at least 64 bits.
65907         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65908         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65909         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65910         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65911
65912         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65913         changes.  Make 2.59 a prerequisite.  Check and substitute for
65914         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65915         inttypes.h.  Do not use special include files; just use the
65916         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65917         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65918         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65919         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65920         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65921         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65922         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65923         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65924         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65925         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65926         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65927         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65928         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65929         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65930         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65931         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65932         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65933         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65934         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65935         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65936         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65937         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65938         not check for things that C99 does not require, e.g., int8_t.  If
65939         a test isn't needed unless <stdint.h> isn't working, and is
65940         unlikely to be needed for any other reason, then don't do it
65941         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65942         size_t, since we assume C89 freestanding at least.  Do not check
65943         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65944         the right thing even if the types are not defined.  Instead use:
65945         (gl_STDINT_TYPE_PROPERTIES): New macro.
65946         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65947         testing whether <sys/types.h> clashes, as Autoconf does this for
65948         us now.  All uses removed.
65949         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65950         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65951         (gl_CHECK_TYPE_SAME):
65952         Remove; no longer needed.
65953         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65954         exists, since we'll return 0 anyway in that case.
65955         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65956
65957 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65960         possible collision with system files.
65961         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65962         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65963         WCHAR_MIN and WCHAR_MAX in this case.
65964         (<stddef.h>): Do not include; no longer needed.
65965         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65966         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65967         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65968         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65969         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65970         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65971         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65972         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65973         !defined(__c99))]: Include in this case too, since it's harmless
65974         now.
65975         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65976         dangerous to do so.
65977         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65978         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65979         (_STDINT_MIN, _STDINT_MAX): New macros.
65980         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65981         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65982         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65983         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65984         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65985         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65986         macros, not typedefs; this simplifies things quite a bit.
65987         Use long int for all types narrower than int64_t.
65988         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65989         Define in terms of long long int or int64_t or long int,
65990         not int64_t or int32_t.  This saves some compile-time testing.
65991         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65992         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65993         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65994         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65995         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65996         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65997         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65998         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65999         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66000         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66001         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66002         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66003         undef any previous version and define our own version, for
66004         simplicity and consistency with the new macros for types.
66005         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66006         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66007         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66008         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66009         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66010         @WINT_T_SUFFIX@ to keep things simple here.
66011         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66012         Simplify by assuming typical 8/16/32/64 host, since we're
66013         already doing that elsewhere anyway.
66014         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66015         and assume long long int is 64 bits if available.  This
66016         speeds up 'configure'.
66017
66018 2006-07-01  Eric Blake  <ebb9@byu.net>
66019
66020         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66021         Reported by Andreas Buening.
66022
66023 2006-07-01  Eric Blake  <ebb9@byu.net>
66024
66025         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66026
66027 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66028
66029         * lib/getaddrinfo.c: fixed typo
66030
66031 2006-06-29  Jim Meyering  <jim@meyering.net>
66032
66033         * modules/strftime (Maintainer): Add my name, since with the
66034         FPRINTFTIME changes strftime.c has forked from glibc.
66035
66036 2006-06-29  Eric Blake  <ebb9@byu.net>
66037
66038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66039
66040 2006-06-29  Eric Blake  <ebb9@byu.net>
66041
66042         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66043
66044 2006-06-29  Eric Blake  <ebb9@byu.net>
66045
66046         * lib/stat_.h: New file.
66047
66048 2006-06-29  Eric Blake  <ebb9@byu.net>
66049
66050         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66051         unused static function.
66052
66053 2006-06-29  Eric Blake  <ebb9@byu.net>
66054
66055         * doc/functions.texi (Function Portability): Document missing lstat
66056         on mingw.
66057
66058 2006-06-29  Eric Blake  <ebb9@byu.net>
66059
66060         * MODULES.html.sh: Add sys_stat.
66061         * modules/sys_stat: New module.
66062         * modules/mkstemp (Depends-on): Add sys_stat.
66063
66064 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66065
66066         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66067
66068 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66069
66070         * m4/c-bs-a.m4: Removed.
66071
66072 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66073
66074         * lib/strftime.c: Assume strftime() exists.
66075
66076 2006-06-29  Derek Price  <derek@ximbiot.com>
66077
66078         * modules/c-bs-a: Removed - \a is C89.
66079         * MODULES.html.sh: Remove c-bs-a.
66080
66081 2006-06-29  Bruno Haible  <bruno@clisp.org>
66082
66083         * modules/wcwidth (License): Change to LGPL.
66084
66085 2006-06-28  Simon Josefsson  <jas@extundo.com>
66086
66087         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66088         on _WIN32.
66089
66090         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66091         getnameinfo.
66092
66093 2006-06-28  Simon Josefsson  <jas@extundo.com>
66094
66095         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66096
66097 2006-06-28  Simon Josefsson  <jas@extundo.com>
66098
66099         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66100         functions there.  It will succeed on Windows XP, but on Windows
66101         2000 and (presumably) earlier, it will fail, and use the internal
66102         re-implementation.
66103         (use_win32_p): New function.
66104         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66105         Support AI_NUMERICSERV to disable getservbyname.
66106         (getnameinfo): New function, only supports
66107         NI_NUMERICHOST|NI_NUMERICSERV for now.
66108
66109         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66110         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66111         getnameinfo.
66112
66113 2006-06-28  Eric Blake  <ebb9@byu.net>
66114
66115         * modules/wcwidth: New file.
66116         * modules/mbchar (Depends-on): Add wcwidth.
66117         * modules/mbswidth (Depends-on): Add wcwidth.
66118         * MODULES.html.sh: Add wcwidth.
66119
66120 2006-06-28  Eric Blake  <ebb9@byu.net>
66121
66122         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66124
66125 2006-06-28  Eric Blake  <ebb9@byu.net>
66126
66127         * lib/xvasprintf.h: Fix comments.
66128
66129 2006-06-28  Eric Blake  <ebb9@byu.net>
66130
66131         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66132         * lib/mbswidth.c (wcwidth): Move from here...
66133         * lib/wcwidth.h: ...to this new file.
66134
66135 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66136
66137         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66138
66139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66140         it's obsolete.
66141         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66142
66143 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66144
66145         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66146         Autoconf 2.60 says this stuff was obsolete.
66147
66148 2006-06-28  Bruno Haible  <bruno@clisp.org>
66149
66150         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66151
66152 2006-06-28  Bruno Haible  <bruno@clisp.org>
66153
66154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66155         gt_TYPE_WCHAR_T.
66156
66157 2006-06-28  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66160         declaration for wcwidth.
66161         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66162
66163 2006-06-28  Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66166         (mkdir): Define using _mkdir.
66167
66168 2006-06-28  Bruno Haible  <bruno@clisp.org>
66169
66170         * lib/getaddrinfo.h: Fix POSIX URL.
66171         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66172         _WIN32.
66173         (use_win32_p): Make static.
66174         (getaddrinfo): Reject service name if it is empty or does not consist
66175         solely of decimal digits, or if its value is > 65535.
66176         (getnameinfo): Remove useless casts.
66177
66178 2006-06-27  Simon Josefsson  <jas@extundo.com>
66179
66180         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66181         Eggert and Martin Lambers.
66182
66183 2006-06-27  Simon Josefsson  <jas@extundo.com>
66184
66185         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66186         Eggert and Martin Lambers.
66187
66188 2006-06-27  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66191         result to 0, not to empty.
66192         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66193
66194 2006-06-27  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66197
66198 2006-06-26  Simon Josefsson  <jas@extundo.com>
66199
66200         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66201         present.
66202
66203 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66206         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66208
66209 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66210
66211         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66212
66213 2006-06-26  Bruno Haible  <bruno@clisp.org>
66214
66215         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66216
66217 2006-06-26  Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66220
66221 2006-06-26  Bruno Haible  <bruno@clisp.org>
66222
66223         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66224         SGI C compiler in pre-C99 mode.
66225         Suggested by Mark D. Baushke and Larry Jones.
66226
66227 2006-06-26  Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66230         WCHAR_MAX.
66231         Reported by Mark D. Baushke and Larry Jones.
66232
66233 2006-06-26  Bruno Haible  <bruno@clisp.org>
66234
66235         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66236         in pre-C99 mode.
66237         Suggested by Mark D. Baushke and Larry Jones.
66238
66239 2006-06-23  Simon Josefsson  <jas@extundo.com>
66240             Bruno Haible  <bruno@clisp.org>
66241
66242         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66243         Emit mostlyclean-local rule.
66244         (func_emit_tests_Makefile_am): Likewise.
66245         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66246
66247 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66248
66249         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66250
66251 2006-06-23  Bruno Haible  <bruno@clisp.org>
66252
66253         * tests/test-stdint.c: Update to match ISO C 99 Technical
66254         Corrigendum 1.
66255
66256 2006-06-23  Bruno Haible  <bruno@clisp.org>
66257
66258         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66259
66260 2006-06-23  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/stdint_.h: Treat IRIX like OpenBSD.
66263
66264 2006-06-23  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66267         ISO C 99 Technical Corrigendum 1.
66268
66269 2006-06-22  Simon Josefsson  <jas@extundo.com>
66270
66271         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66272         MinGW.
66273
66274 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66277         needed.  Some compiler complained about some of them.  Problem reported
66278         by Larry Jones in
66279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66280
66281 2006-06-21  Simon Josefsson  <jas@extundo.com>
66282
66283         * tests/test-getaddrinfo.c: New file.
66284
66285         * modules/getaddrinfo-tests: New file.
66286
66287         * MODULES.html.sh: Add inet_pton.
66288
66289         * modules/inet_pton: New file.
66290
66291 2006-06-21  Simon Josefsson  <jas@extundo.com>
66292
66293         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66294         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66295         of using the (limited) gnulib implementation on Windows XP.
66296
66297         * m4/inet_pton.m4: New file.
66298
66299 2006-06-21  Simon Josefsson  <jas@extundo.com>
66300
66301         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66302         variable.
66303
66304         * lib/socket_.h: Don't define WINVER.
66305
66306         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66307         slightly modified to work in gnulib.
66308
66309 2006-06-21  Simon Josefsson  <jas@extundo.com>
66310
66311         * doc/gnulib.texi (Windows sockets): Add.
66312
66313 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * lib/read-file.c (fread_file): Start with buffer allocation of
66316         0 bytes rather than 1 byte; this simplifies the code.
66317         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66318         code to free buffer and save/restore errno.
66319         (internal_read_file): Remove unused local.
66320
66321 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66324         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66325         Problem reported by Denis Excoffier in
66326         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66327
66328 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66329
66330         * modules/sys_socket, modules/socklen: Include sys/types since
66331         FreeBSD 4.x's sys/socket.h needs it.
66332
66333 2006-06-19  Simon Josefsson  <jas@extundo.com>
66334
66335         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66336
66337 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66340
66341 2006-06-19  Bruno Haible  <bruno@clisp.org>
66342
66343         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66344         and FULL_PATH_INTTYPES_H in angle brackets.
66345         Reported by Mark D. Baushke <mdb@gnu.org>.
66346
66347 2006-06-17  Eric Blake  <ebb9@byu.net>
66348
66349         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66350         errno.
66351
66352 2006-06-17  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66355         <sys/inttypes.h>.
66356
66357 2006-06-17  Bruno Haible  <bruno@clisp.org>
66358
66359         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66360         whether errno is declared. Assume <errno.h> declares errno.
66361
66362 2006-06-17  Bruno Haible  <bruno@clisp.org>
66363
66364         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66365
66366 2006-06-17  Bruno Haible  <bruno@clisp.org>
66367
66368         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66369         problem on Solaris 2.5.1.
66370
66371 2006-06-16  Eric Blake  <ebb9@byu.net>
66372
66373         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66374         * lib/unicodeio.c [!defined errno]: Likewise.
66375         * lib/strtol.c [!defined errno]: Likewise.
66376         * lib/strtod.c [!defined errno]: Likewise.
66377
66378 2006-06-15  Eric Blake  <ebb9@byu.net>
66379
66380         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66381
66382 2006-06-15  Eric Blake  <ebb9@byu.net>
66383
66384         * config/srclist.txt (ssize_t.m4): Lose sync.
66385
66386 2006-06-15  Bruno Haible  <bruno@clisp.org>
66387
66388         * modules/stdint (Files): Include m4/full-header-path.m4,
66389         m4/size_max.m4, m4/wchar_t.m4.
66390         (Makefile.am): Many more substitutions.
66391         * modules/stdint-tests: New file.
66392         * tests/test-stdint.c: New file.
66393
66394 2006-06-15  Bruno Haible  <bruno@clisp.org>
66395
66396         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66397         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66398         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66399         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66400         gl_CHECK_TYPE_SAME): New macros.
66401
66402 2006-06-15  Bruno Haible  <bruno@clisp.org>
66403
66404         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66405
66406 2006-06-15  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/stdint_.h: Rewritten to be fully auto-configured.
66409         Fixes bug on HP-UX/IA64.
66410
66411 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * lib/getdate.y (__attribute__): Don't define if already defined.
66414         Problem reported by Larry Jones.
66415         * lib/utimens.c (__attribute__): Likewise.
66416
66417 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66420         reported by Andreas Schwab.
66421
66422 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66423             Bruno Haible  <bruno@clisp.org>
66424
66425         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66426         check for the declaration of strnlen and a run test that exposes the
66427         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66428         rpl_strndup.
66429
66430 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66431             Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66434
66435 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66436
66437         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66438         compile test, for Tru64 4.0D.
66439
66440 2006-05-28  Karl Berry  <karl@gnu.org>
66441
66442         * config/srclist.txt (printf-args.c): lose sync.
66443
66444 2006-05-26  Martin Lambers  <marlam@marlam.de>
66445
66446         * lib/getpass.c: Updates the test for the native W32 API, and adds
66447         missing includes, thus fixing compilation warnings.
66448
66449 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66450
66451         * lib/exclude.c (exclude_fnmatch): New function.
66452         (excluded_file_name): Call exclude_fnmatch.
66453         * lib/exclude.h (excluded_file_name): New prototype
66454
66455 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         * lib/tempname.c (small_open, large_open): New macros.
66458         (__open, __open64) [!_LIBC]: Remove.
66459         (__gen_tempname): Use small_open and large_open instead of __open
66460         and __open64.  This fixes a portability bug on HP-UX 11.11i
66461         reported by Simon Wing-Tang in
66462         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66463
66464 2006-05-24  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66467         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66468         Reported by Thorsten Maerz <torte@netztorte.de> via
66469         Aaron Stone <aaron@serendipity.cx>.
66470
66471 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66472
66473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66474         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66475         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66476         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66477         not really conditional on the cache.
66478         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66479
66480 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66483         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66484         (my_usleep): Don't mishandle maximum value.
66485
66486 2006-05-19  Jim Meyering  <jim@meyering.net>
66487
66488         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66489
66490 2006-05-17  Bruno Haible  <bruno@clisp.org>
66491
66492         Cygwin portability.
66493         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66494
66495 2006-05-17  Bruno Haible  <bruno@clisp.org>
66496
66497         * lib/stdint_.h: Fix recognition of Cygwin.
66498
66499 2006-05-15  Bruno Haible  <bruno@clisp.org>
66500
66501         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66502         on libtool patch by Ralf Wildenhues.
66503
66504 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66507         test for C99 conformance; (bool) 0.5 is an integer constant
66508         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66509         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66510
66511 2006-05-11  Simon Josefsson  <jas@extundo.com>
66512
66513         * m4/xvasprintf.m4: Fix obvious typo.
66514
66515 2006-05-11  Jim Meyering  <jim@meyering.net>
66516
66517         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66518         James Lemley.
66519
66520 2006-05-10  Simon Josefsson  <jas@extundo.com>
66521
66522         * lib/md4.c: Typo fix, update copyright years.
66523         (K1, K2): Don't use L because it turn computations into 64-bit on
66524         64-bit platforms.
66525
66526 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66527
66528         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66529         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66530         unwanted sign propagation, e.g., on hosts with 64-bit int.
66531         There still are some problems with reeelly weird theoretical hosts
66532         (e.g., 33-bit int) but it's not worth worrying about now.
66533         * lib/sha1.c (rol): Likewise.
66534         (K1, K2, K3, K4): Remove unnecessary L suffix.
66535
66536 2006-05-10  Bruno Haible  <bruno@clisp.org>
66537
66538         * lib/des.c: Cast to avoid warnings.
66539
66540 2006-05-09  Bruno Haible  <bruno@clisp.org>
66541
66542         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66543         (Depends-on): Depend also on xsize, stdarg.
66544         (configure.ac): Add gl_XVASPRINTF.
66545
66546 2006-05-09  Bruno Haible  <bruno@clisp.org>
66547
66548         * m4/xvasprintf.m4: New file.
66549
66550 2006-05-09  Bruno Haible  <bruno@clisp.org>
66551
66552         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66553         (EOVERFLOW): Define fallback value.
66554         (xstrcat): New function.
66555         (xvasprintf): Recognize the special case of a string concatenation.
66556
66557 2006-05-08  Eric Blake  <ebb9@byu.net>
66558
66559         * gnulib-tool (func_version): Base copyright year on CVS date.
66560         (func_emit_copyright_notice): New function.
66561         (func_emit_lib_Makefile_am): Use it.
66562         (func_emit_tests_Makefile_am): Likewise.
66563         (func_import): Likewise.
66564
66565 2006-05-08  Bruno Haible  <bruno@clisp.org>
66566
66567         * modules/stdarg: New file.
66568         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66569
66570 2006-05-08  Bruno Haible  <bruno@clisp.org>
66571
66572         * m4/stdarg.m4: New file, from GNU gettext.
66573
66574 2006-05-08  Bruno Haible  <bruno@clisp.org>
66575
66576         * config/srclist.txt (build-aux/config.rpath): different from latest
66577         release.
66578
66579 2006-05-08  Bruno Haible  <bruno@clisp.org>
66580
66581         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66582
66583 2006-05-05  Jim Meyering  <jim@meyering.net>
66584
66585         * m4/warning.m4: New file, derived from bison's file by the same name.
66586
66587 2006-05-03  Bruno Haible  <bruno@clisp.org>
66588
66589         * lib/stdint_.h: Shorter URL.
66590         * lib/inttypes.h: Likewise.
66591
66592 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66595
66596 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66597
66598         * lib/verify.h: Document the internals better.  Most of this change
66599         was written by Bruno Haible.
66600
66601 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         * doc/verify.texi: New file, partly based on a proposal by
66604         Bruno Haible.
66605
66606 2006-05-02  Bruno Haible  <bruno@clisp.org>
66607
66608         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66609         test from here...
66610         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66611
66612 2006-04-29  Bruno Haible  <bruno@clisp.org>
66613
66614         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66615         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66616
66617 2006-04-29  Bruno Haible  <bruno@clisp.org>
66618
66619         * gnulib-tool: Make --update option actually work.
66620
66621 2006-04-29  Bruno Haible  <bruno@clisp.org>
66622
66623         * doc/gcd.texi: New file.
66624         * doc/gnulib.texi: Include it.
66625
66626 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         * lib/getdate.y (get_date): When adding relative date, start with the
66629         initial time, not with the result of the first mktime call.
66630
66631 2006-04-25  Bruno Haible  <bruno@clisp.org>
66632
66633         * gnulib-tool (func_import): Output the include directives in three
66634         blocks, sorted separately.
66635         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66636
66637 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66638
66639         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66640         to define main with arguments, for C++.  Reported by Eric Blake.
66641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66642         Prefer 'int main ()' to 'int main (void)', for C++.
66643         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66645         for 'main', for C99 and C++.
66646
66647 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66650         Don't assume that exit status -1 is valid.
66651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66652         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66653         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66654         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66655         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66656         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66657         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66658         functions can be used without declaring them, or that you can
66659         exit with status -1.
66660         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66661
66662 2006-04-24  Karl Berry  <karl@gnu.org>
66663
66664         * config/srclist.txt (longdouble.m4): sync lost.
66665
66666 2006-04-24  Eric Blake  <ebb9@byu.net>
66667
66668         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66669
66670 2006-04-24  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66673         poll() implementation in AIX.
66674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66675
66676 2006-04-24  Bruno Haible  <bruno@clisp.org>
66677
66678         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66679         assigned exactly once.
66680
66681 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66682             Bruno Haible  <bruno@clisp.org>
66683
66684         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66685         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66686         for AM_CPPFLAGS.
66687
66688 2006-04-23  Bruno Haible  <bruno@clisp.org>
66689
66690         * modules/copy-file: Depend on unistd.
66691         * modules/execute: Likewise.
66692         * modules/fatal-signal: Likewise.
66693         * modules/findprog: Likewise.
66694         * modules/mkdtemp : Likewise.
66695         * modules/pipe: Likewise.
66696         * modules/wait-process: Likewise.
66697
66698 2006-04-23  Bruno Haible  <bruno@clisp.org>
66699
66700         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66701         condition was already detected.
66702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66703
66704 2006-04-23  Bruno Haible  <bruno@clisp.org>
66705
66706         * lib/copy-file.c: Include <unistd.h> unconditionally.
66707         * lib/execute.c: Likewise.
66708         * lib/fatal-signal.c: Likewise.
66709         * lib/findprog.c: Likewise.
66710         * lib/mkdtemp.c: Likewise.
66711         * lib/pipe.h: Likewise.
66712         * lib/pipe.c: Likewise.
66713         * lib/wait-process.h: Likewise.
66714
66715 2006-04-23  Bruno Haible  <bruno@clisp.org>
66716
66717         * gnulib-tool (func_usage): Fix --import description. Document
66718         --update.
66719         (func_import): Create temporary file in a temporary directory, if
66720         --dry-run is specified. Silence errors from 'grep' when there are no
66721         m4 files in $m4dir.
66722         (func_create_testdir): Silence errors from 'grep' when there are no
66723         m4 files in $m4dir.
66724         Reported by Karl Berry <karl@freefriends.org>.
66725
66726 2006-04-20  Bruno Haible  <bruno@clisp.org>
66727
66728         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66729         one argument, so that the code will be portable to Autoconf 2.60.
66730         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66731         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66732         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66733
66734 2006-04-19  Derek Price  <derek@ximbiot.com>
66735             Eric Blake  <ebb9@byu.net>
66736
66737         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66738         rather than "/full/path.h".  Update comment to match.  Shorten &
66739         generalize m4_translit call via AS_TR_CPP.
66740
66741 2006-04-19  Derek Price  <derek@ximbiot.com>
66742             Eric Blake  <ebb9@byu.net>
66743
66744         * lib/inttypes.h: Correct grammar in comment.
66745
66746 2006-04-18  Derek Price  <derek@ximbiot.com>
66747             Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * modules/inttypes: New file.
66750         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66751
66752 2006-04-18  Derek Price  <derek@ximbiot.com>
66753             Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66756         New files.
66757
66758 2006-04-18  Derek Price  <derek@ximbiot.com>
66759             Paul Eggert  <eggert@cs.ucla.edu>
66760
66761         * lib/inttypes.h: New file.
66762         * lib/strtoimax.c: Assume <inttypes.h>.
66763
66764 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66765
66766         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66767         isn't mounted.  Problem reported by Kir Kolyshkin.
66768
66769 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66772         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66773         Derek R. Price.
66774         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66775         implementation.
66776
66777 2006-04-12  Eric Blake  <ebb9@byu.net>
66778
66779         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66780         is now done automatically by the corresponding Autoconf macro.
66781
66782 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66785         time_r.h.
66786
66787 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66788
66789         Merge regex changes from libc, removing some of our
66790         POSIX-conformance changes that were rejected and redoing them in a
66791         less-intrusive way.
66792
66793         * lib/regcomp.c (re_compile_internal, init_dfa):
66794         Length arg is now size_t, not Idx.  All uses changed.
66795         (peek_token): Forward decl now says internal_function.
66796         (__re_error_msgid, __re_error_msgid_idx):
66797         Now static rather than extern with attribute_hidden.
66798         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66799         For some reason libc prefers K&R style defns for external functions.
66800         (regerror) [!defined _LIBC]: Likewise.
66801         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66802         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66803         (build_range_exp, build_collating_symbol):
66804         Use K&R-style defn.
66805         (re_compile_fastmap): Use '\0' to memset, not 0.
66806         (utf8_sb_map): Make the calculations more obvious.
66807         (init_dfa, parse_bracket_exp, build_charclass_op):
66808         Call calloc and cast result, as glibc does.
66809         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66810         (build_range_exp, build_collating_symbol):
66811         Now internal functions.
66812
66813         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66814
66815         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66816         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66817         Don't depend on VMS; depend on __VMS instead, for POSIX
66818         namespace cleanness.
66819         (regoff_t): Define to ssize_t, not long int.
66820
66821         Remove the REG_ macros named below.  Instead, make the old names
66822         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66823         __USE_GNU_REGEX.
66824         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66825         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66826         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66827         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66828         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66829         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66830         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66831         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66832         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66833         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66834         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66835         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66836         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66837         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66838         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66839         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66840         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66841         (REG_NREGS):
66842         Remove.  All uses replaced by the old RE_* names.
66843         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66844         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66845         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66846         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66847         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66848         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66849         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66850         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66851         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66852         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66853         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66854         Don't bother having these macros be independent of each others'
66855         values, since they no longer exist in the POSIX name space.
66856
66857         Rename the following member names back to their old names,
66858         unless !__USE_GNU_REGEX.  All uses changed back.
66859         (buffer): Renamed from re_buffer.
66860         (allocated): Renamed from re_allocated.
66861         (used): Renamed from re_used.
66862         (syntax): Renamed from re_syntax.
66863         (fastmap): Renamed from re_fastmap.
66864         (translate): Renamed from re_translate.
66865         (can_be_null): Renamed from re_can_be_null.
66866         (regs_allocated): Renamed from re_regs_allocated.
66867         (fastmap_accurate): Renamed from re_fastmap_accurate.
66868         (no_sub): Renamed from re_no_sub.
66869         (not_bol): Renamed from re_not_bol.
66870         (not_eol): Renamed from re_not_eol.
66871         (newline_anchor): Renamed from re_newline_anchor.
66872         (num_regs): Renamed from rm_num_regs.
66873         (start): Renamed from rm_start.
66874         (end): Renamed from rm_end.
66875
66876         (free_state): Move up a bit.
66877
66878         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66879         #define to be empty.
66880         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66881         when that is what is intended.
66882         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66883         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66884         (MAX): New macro.
66885         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66886         All uses changed back to re_malloc, etc.  It's now the caller's
66887         responsibility to check for overflow; all callers changed.
66888         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66889         (re_x2nrealloc): Remove.
66890         (free_state): Remove decl.
66891
66892         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66893         (re_set_registers, re_exec):
66894         Use K&R-style defn.
66895
66896         2006-01-31  Roland McGrath  <roland@redhat.com>
66897
66898         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66899         Reported by Mike Frysinger <vapier@gentoo.org>.
66900
66901         2006-01-15  Andreas Jaeger  <aj@suse.de>
66902
66903         [BZ #1950]
66904         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66905         build_wcs_upper_buffer change.
66906         (build_wcs_upper_buffer): Change return type.
66907
66908         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66909
66910         * lib/regex_internal.h: Include <stdint.h> if available.
66911
66912         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66913
66914         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66915
66916         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66917
66918         * lib/regcomp.c: Adjust for changed secondary hash function.
66919
66920         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66921
66922         * lib/regex.h: Pretty printing.
66923         Clean up namespace a bit.
66924
66925         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66926
66927         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66928         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66929
66930         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66931                     Ulrich Drepper  <drepper@redhat.com>
66932
66933         [BZ #1302]
66934         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66935         changed.
66936         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66937
66938         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66939
66940         [BZ #281]
66941         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66942         * lib/regcomp.c: Remove unnecessary uses of
66943         unsigned RE_TRANSLATE_TYPE.
66944         * lib/regex_internal.h: Likewise.
66945         * lib/regex_internal.c: Likewise.
66946         * lib/regexec.c: Likewise.
66947         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66948
66949         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66950
66951         * lib/regexec.c (find_recover_state): Remove unnecessary
66952         initialization.
66953         (transit_state_bkref): Make DFA a const pointer.
66954         (get_subexp): Likewise.
66955         (check_arrival): Likewise.
66956         (update_cur_sifted_state): Likewise.
66957         (re_search_internal): Likewise.
66958         (prune_impossible_nodes): Likewise.
66959         (acquire_init_state_context): Likewise.
66960         (proceed_next_node): Likewise.
66961         (set_regs): Likewise.
66962         (free_fail_stack_return): Likewise.
66963         (check_arrival_expand_ecl): Mark DFA parameter as const.
66964         (check_arrival_expand_ecl_sub): Likewise.
66965         (check_subexp_limits): Likewise.
66966         (sub_epsilon_src_nodes):  Likewise.
66967         (add_epsilon_src_nodes):  Likewise.
66968         (merge_state_array): Likewise.
66969         (update_regs): Likewise.
66970         (build_trtable): Likewise.
66971         (sift_states_backward): Mark MCTX parameter as const.
66972         (build_sifted_states): Likewise.
66973         (update_cur_sifted_state): Likewise.
66974         (sift_states_mkref): Likewise.
66975         (check_arrival_expand_ecl): Mark eclosure as const.
66976         (check_dst_limits_calc_pos_1): Likewise.
66977         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66978         pointer.
66979
66980         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66981
66982         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66983         (transit_state_sb): Likewise.
66984         (transit_state_mb): Likewise.
66985         (sift_states_iter_mb): Likewise.
66986         (check_arrival_add_next_nodes): Likewise.
66987         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66988         [_LIBC] (re_search_2_stub): Use mempcpy.
66989
66990         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66991         mbrtowc for very simple UTF-8 case.
66992
66993         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66994         a pointer-to-const.
66995         (re_acquire_state_context): Likewise.
66996         * lib/regex_internal.h: Adjust prototypes.
66997
66998         * lib/regex.c: Prevent using C++ compilers.
66999
67000         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67001         (re_acquire_state_context): Likewise.
67002
67003 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * modules/regex (Depends-on): Add ssize_t.
67006
67007 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67008
67009         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67010         translation table.
67011
67012 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67015
67016 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67017             Bruno Haible  <bruno@clisp.org>
67018
67019         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67020         <sys/types.h> and <inttypes.h>.
67021
67022 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67023
67024         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67025         `__error_t_defined', so argp.h will not typedef the former.
67026
67027 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67030         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67031         glibc names.  Even if glibc is changed to conform to POSIX, the
67032         traditional names will be available anyway, since regex depends on
67033         the extensions module.  Also, fix a longstanding typo in the
67034         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67035         reported by Emanuele Giaquinta.  Also, change sense of cached
67036         variable, so that the message makes sense.
67037
67038 2006-03-24  Simon Josefsson  <jas@extundo.com>
67039
67040         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67041         including some doc fixes.
67042         (base64_encode_alloc): Fix +1 bug on allocation failures.
67043
67044 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67045
67046         * lib/base64.c (base64_encode): Do not read past end of array with
67047         unsanitized input on systems with CHAR_BIT > 8.
67048
67049 2006-03-24  Eric Blake  <ebb9@byu.net>
67050
67051         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67052
67053 2006-03-22  Karl Berry  <karl@gnu.org>
67054
67055         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67056         * config/srclistvars.sh (COREUTILS): new var.
67057
67058 2006-03-17  Jim Meyering  <jim@meyering.net>
67059
67060         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67061         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67062
67063 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67066         no longer needs it.  Instead, check that regoff_t is as least
67067         as wide as ptrdiff_t.
67068
67069         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67070         so that our regex.h stays compatible with the installed regex.
67071         This is helpful for installers who configure --without-included-regex.
67072         Problem reported by Emanuele Giaquinta.
67073
67074 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67075
67076         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67077         Typedef to long int, not to off_, as POSIX will likely change
67078         in that direction.
67079
67080 2006-03-15  Eric Blake  <ebb9@byu.net>
67081
67082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67083
67084 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67085
67086         * lib/argp-help.c (validate_uparams): Fix typo
67087         * lib/argp-parse.c (argp_default_options): Consistently begin help
67088         messages with a lowercase letter.
67089
67090 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67093         overrun buffers and shouldn't be used (much as gets shouldn't be
67094         used).
67095         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67096
67097 2006-03-08  Simon Josefsson  <jas@extundo.com>
67098
67099         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67100         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67101
67102 2006-03-08  Simon Josefsson  <jas@extundo.com>
67103
67104         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67105         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67106
67107 2006-03-08  Simon Josefsson  <jas@extundo.com>
67108
67109         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67110         signal that configure disabled the device.
67111
67112 2006-03-08  Simon Josefsson  <jas@extundo.com>
67113
67114         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67115         languages.
67116
67117 2006-03-07  Simon Josefsson  <jas@extundo.com>
67118
67119         * modules/getopt (Depends-on): Add unistd.
67120
67121         * modules/unistd: New file.
67122
67123 2006-03-07  Simon Josefsson  <jas@extundo.com>
67124
67125         * modules/gc-random: New file.
67126
67127 2006-03-07  Simon Josefsson  <jas@extundo.com>
67128
67129         * m4/unistd_h.m4: New file.
67130
67131 2006-03-07  Simon Josefsson  <jas@extundo.com>
67132
67133         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67134         test to be side-effect free by storing the result in the cache
67135         variable gl_cv_lib_readline, and moving the assignment of
67136         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67137         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67138
67139 2006-03-07  Simon Josefsson  <jas@extundo.com>
67140
67141         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67142         error on missing devices (the functions will return an error).
67143
67144         * m4/gc.m4: Move random stuff to gc-random.m4
67145
67146 2006-03-07  Simon Josefsson  <jas@extundo.com>
67147
67148         * lib/unistd_.h: New file.
67149
67150 2006-03-07  Simon Josefsson  <jas@extundo.com>
67151
67152         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67153
67154 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67155
67156         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67157         Problem reported by Juan Manuel Guerrero.
67158
67159 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67162         the unistd module.
67163         * lib/getlogin_r.c: Likewise.
67164         * lib/getlogin_r.h: Likewise.
67165         * lib/glob.c: Likewise.
67166         * lib/pagealign_alloc.c: Likewise.
67167         * lib/unistd_.h: Remove; no longer needed.
67168
67169 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67172         Add unistd.
67173         * modules/c-stack (Depends-on): Add unistd.
67174         * modules/getlogin_r: Likewise.
67175         * modules/glob: Likewise.
67176         * modules/pagealign_alloc: Likewise.
67177         * modules/unistd (Files): Remove lib/unistd_.h.
67178         (EXTRA_DIST): Remove.
67179         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67180         need unistd_.h.
67181         (MOSTLYCLEANFILES): Remove unistd.h-t.
67182
67183 2006-03-03  Simon Josefsson  <jas@extundo.com>
67184
67185         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67186
67187 2006-03-03  Simon Josefsson  <jas@extundo.com>
67188
67189         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67190         libidn and bison.
67191
67192 2006-03-03  Simon Josefsson  <jas@extundo.com>
67193
67194         * build-aux/maint.mk: Add indent target.
67195
67196 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67197
67198         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67199         our replacement poll.h in any case, to avoid a differing
67200         declaration from a system header.  Seen on AIX.
67201
67202 2006-03-01  Simon Josefsson  <jas@extundo.com>
67203
67204         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67205         <kasal@ucw.cz>.
67206
67207 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * modules/gettime (Depends-on): Add extensions module.
67210         * modules/nanosleep (Depends-on): Likewise.
67211         * modules/settime (Depends-on): Likewise.
67212
67213 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67214
67215         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67216         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67217         pedantically.
67218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67219         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67220
67221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67222         not "==".  Reported by Ralf Wildenhues.
67223
67224 2006-03-01  Karl Berry  <karl@gnu.org>
67225
67226         * doc/Copyright/request-*: new files, synced from gnuorg.
67227
67228 2006-03-01  Karl Berry  <karl@gnu.org>
67229
67230         * config/srclist.txt (Copyright/*): new entries.
67231
67232 2006-02-28  Simon Josefsson  <jas@extundo.com>
67233
67234         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67235
67236 2006-02-27  Simon Josefsson  <jas@extundo.com>
67237
67238         * lib/base64.h: Indent #define's.  From Jim Meyering
67239         <jim@meyering.net>.
67240
67241 2006-02-27  Jim Meyering  <jim@meyering.net>
67242
67243         Revert the change of 2006-02-24, so these files can continue
67244         to be sync'd from gettext.
67245         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67246         of `config.h'.
67247
67248 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * modules/intprops: New file.
67251         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67252         Add intprops.
67253         * modules/getloadavg (Files): Remove lib/intprops.h.
67254         (Depends-on): Add intprops.
67255         * modules/human: Likewise.
67256         * modules/inttostr: Likewise.
67257         * modules/openat: Likewise.
67258         * modules/sig2str: Likewise.
67259         * modules/userspec: Likewise.
67260         * modules/utimecmp: Likewise.
67261         * modules/xnanosleep: Likewise.
67262         * modules/xstrtol: Likewise.
67263
67264 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67265
67266         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67267         * modules/lock-tests (TESTS): Use $(EXEEXT).
67268         * modules/tls-tests: Likewise.
67269         * modules/argp-tests: Likewise.
67270         (check_PROGRAMS): New var, replacing...
67271         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67272
67273 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67274
67275         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67276         `config.h'.
67277
67278 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67279
67280         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67281
67282 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67283
67284         Sync from coreutils.
67285         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67286         gl_CHDIR_SAFER.
67287
67288 2006-02-22  Jim Meyering  <jim@meyering.net>
67289
67290         Sync from coreutils.
67291         * m4/chdir-safer.m4: New file.
67292
67293 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67296         AT_FDCWD exceeds INT_MAX.
67297         * lib/openat.h (AT_FDCWD): Likewise.
67298
67299 2006-02-17  Eric Blake  <address@hidden>
67300
67301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67302
67303 2006-02-16  Simon Josefsson  <jas@extundo.com>
67304
67305         * modules/getaddrinfo (Depends-on): Add sys_socket.
67306
67307 2006-02-15  Simon Josefsson  <jas@extundo.com>
67308
67309         * build-aux/maint.mk: Add dsyntax-check rule.
67310
67311 2006-02-15  Eric Blake  <ebb9@byu.net>
67312
67313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67314         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67315         'present but cannot compile' warnings on cygwin.
67316         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67317         use ws2tcpip.h if sys/socket.h works.
67318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67319         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67320
67321 2006-02-14  Simon Josefsson  <jas@extundo.com>
67322
67323         * modules/maintainer-makefile (Files): Rename.
67324
67325         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67326         and (the local) Makefile.cfg to maint-cfg.mk.
67327
67328         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67329         to the latter.
67330
67331         * modules/maintainer-makefile: New module.
67332
67333         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67334         severaly stripped to make it possible to build it up from scratch
67335         with reliable tests.
67336
67337         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67338         fixes to permit overriding the default actions when configure and
67339         makefile are not available.
67340
67341 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         Sync from coreutils.
67344         * modules/lstat (Depends-on): Don't depend on xalloc.
67345         (License): Change from GPL to LGPL, since this is now simply a
67346         replacement for a libc function.
67347
67348 2006-02-14  Jim Meyering  <jim@meyering.net>
67349
67350         Sync from coreutils.
67351
67352         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67353         failure on deficient systems, and simplify gnulib lgpl dependencies.
67354         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67355         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67356
67357         * lib/xalloc-die.c: Remove unused definition of N_.
67358
67359 2006-02-14  Jim Meyering  <jim@meyering.net>
67360
67361         Sync from coreutils.
67362         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67363         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67364         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67365         double-quote uses of that variable, to accommodate the rare case in
67366         which getmntent is available in none of the libraries checked.  This
67367         happens at least on FreeBSD 5.0.
67368
67369 2006-02-13  Simon Josefsson  <jas@extundo.com>
67370
67371         * gnulib-tool (Usage): Fix --import, from
67372         karl@freefriends.org (Karl Berry).
67373
67374 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67375
67376         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67377
67378 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67379
67380         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67381         "autoupdate" on 2005-12-12.
67382
67383 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67384
67385         * modules/closeout (Depends-on): Remove atexit.
67386
67387 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67388
67389         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67390         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67391
67392 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67395         __EXTENSIONS__ if this causes compilation to fail.  Problem
67396         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67397         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67398
67399 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67402         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67404         All uses changed.
67405
67406 2006-01-26  Simon Josefsson  <jas@extundo.com>
67407
67408         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67409         prototype is visible on mingw32.
67410
67411         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67412         for mingw32.
67413
67414         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67415         mingw32).
67416
67417 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67420         attempt to open for write; this always fails, at least on POSIX
67421         hosts.  This reinstates the 2006-01-09 change, which was
67422         inadvertently removed.
67423
67424 2006-01-26  Bruno Haible  <bruno@clisp.org>
67425
67426         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67427         Reported by Paul Eggert.
67428
67429 2006-01-26  Bruno Haible  <bruno@clisp.org>
67430             Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         * lib/stdbool_.h (_Bool)
67433         [(! (defined __cplusplus || defined __BEOS__)
67434           && !defined __GNUC__
67435           && !(defined __HP_cc || defined __xlc__
67436                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67437                || defined __sgi))]:
67438         #define to signed char in these cases too; this simplifies
67439         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67440         etc., separately) and makes it more conservative.
67441
67442 2006-01-25  Simon Josefsson  <jas@extundo.com>
67443
67444         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67445         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67446         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67447
67448 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67449
67450         * lib/argp-namefrob.h: Bugfix. Remove stray #
67451
67452 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67455         so that we test the test.
67456         Check for yet another HP-UX cc bug involving *bool |= bool.
67457
67458 2006-01-25  Karl Berry  <karl@gnu.org>
67459
67460         * config/srclist.txt (vasnprintf.c): sync lost.
67461
67462 2006-01-25  Jim Meyering  <jim@meyering.net>
67463
67464         Sync from the stable (b5) branch of coreutils:
67465
67466         * lib/fts.c (fts_children): Don't let close() clobber errno from
67467         failed fchdir().
67468
67469         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67470         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67471         a dangling symlink.  That can also happen at least for ELOOP.
67472         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67473         FYI, this bug predates the inclusion of fts.c in coreutils.
67474
67475         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67476         in their own block, so pre-c99 compilers don't object.
67477
67478         Avoid the double-free (first in fts_read, second in fts_close) that
67479         would occur when an `active' directory is made inaccessible (e.g.,
67480         via chmod a-x) during a traversal.
67481         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67482         before returning.  Reproduce this failure by
67483         mkdir -p a/b; cd a; chmod a-x . b
67484         Reported by Stavros Passas.
67485
67486 2006-01-25  Jim Meyering  <jim@meyering.net>
67487
67488         * lib/fileblocks.c: Remove more useless parentheses.
67489         * lib/readutmp.h: Likewise.
67490
67491 2006-01-25  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67494         warnings.
67495         Reported by Paul Eggert.
67496
67497 2006-01-25  Bruno Haible  <bruno@clisp.org>
67498
67499         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67500         rid of a trap command. For Solaris sh.
67501         Reported by Mark D. Baushke <mdb@gnu.org>.
67502
67503 2006-01-24  Simon Josefsson  <jas@extundo.com>
67504
67505         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67506         Bruno.
67507
67508 2006-01-24  Karl Berry  <karl@gnu.org>
67509
67510         * config/srclist.txt (argp-namefrob.h): sync lost.
67511
67512 2006-01-24  Jim Meyering  <jim@meyering.net>
67513
67514         * modules/openat (Files): Add lib/intprops.h.
67515         From Mark D. Baushke.
67516
67517 2006-01-24  Jim Meyering  <jim@meyering.net>
67518
67519         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67520         Reported by Mark D. Baushke.
67521
67522 2006-01-24  Jim Meyering  <jim@meyering.net>
67523
67524         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67525
67526 2006-01-24  Bruno Haible  <bruno@clisp.org>
67527
67528         * modules/strnlen (Maintainer): Change from glibc to all.
67529
67530 2006-01-24  Bruno Haible  <bruno@clisp.org>
67531
67532         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67533         Patch by Paul Eggert.
67534
67535 2006-01-24  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67538         already has it.
67539         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67540         2005-11-26.
67541
67542         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67543         'signed char' to avoid problems with the built-in _Bool type.
67544         Reported by Paul Eggert on 2005-11-26.
67545
67546 2006-01-24  Bruno Haible  <bruno@clisp.org>
67547
67548         * gnulib-tool (func_import): Avoid constructing complicated sed
67549         expressions inside backquote.
67550         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67551
67552 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67553
67554         These changes imported from libc.
67555         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67556         test and two separate function calls.
67557         * lib/strndup.c (__strndup): Add libc_hidden_def.
67558
67559 2006-01-23  Simon Josefsson  <jas@extundo.com>
67560
67561         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67562         Remove the test_*_SOURCES variable: automake infers it by default.
67563         * modules/tls-tests: Likewise.
67564
67565 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         Work around porting bugs reported by Dieter in
67568         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67569         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67570         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67571         Include "getopt.h" first, to check interface.
67572         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67573         !HAVE_DECL_GETENV.
67574         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67575         (__strndup): Revert to K&R-style function dfns, the glibc style.
67576         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67577         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67578         Include strnlen.h first, to get prototype properly.
67579         (strnlen): Renamed from __strnlen.
67580         Remove weak alias.
67581
67582 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67583
67584         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67585
67586 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         * config/srclist.txt: Adjust to reflect glibc reorganization.
67589         This affects only comments.
67590
67591 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67592
67593          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67594          Reported by Bruce Korb <bkorb@gnu.org>.
67595
67596 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67599         to pacify gcc -Wswitch-default.
67600
67601 2006-01-22  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67604         temporary buffer for sprintf, take into account the precision also
67605         for 'd', 'i', 'u', 'o', 'x', 'X'.
67606
67607 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67608
67609         * modules/argp-tests: New module
67610         * tests/test-argp.c: New file
67611         * tests/test-argp-2.sh: New file
67612
67613 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67614
67615         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67616         (__argp_base_name): Removed
67617         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67618         typo.
67619         (__argp_base_name): Provide macro definition or extern declaration
67620         depending on the configuration
67621
67622 2006-01-20  Simon Josefsson  <jas@extundo.com>
67623
67624         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67625
67626 2006-01-20  Simon Josefsson  <jas@extundo.com>
67627
67628         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67629
67630 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67631
67632         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67633         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67634         Suggested by Bruno Haible.
67635
67636 2006-01-20  Karl Berry  <karl@gnu.org>
67637
67638         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67639         until changes propagate, I guess.
67640
67641 2006-01-19  Simon Josefsson  <jas@extundo.com>
67642
67643         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67644
67645 2006-01-19  Simon Josefsson  <jas@extundo.com>
67646
67647         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67648
67649 2006-01-19  Simon Josefsson  <jas@extundo.com>
67650
67651         * gnulib-tool: Set check_PROGRAMS.
67652
67653         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67654         modules/des-tests, modules/gc-arcfour-tests,
67655         modules/gc-arctwo-tests, modules/gc-des-tests,
67656         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67657         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67658         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67659         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67660         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67661         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67662         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67663         test_*_SOURCES.
67664
67665 2006-01-18  Simon Josefsson  <jas@extundo.com>
67666
67667         * modules/socklen (Depends-on): Depend on sys_socket.
67668
67669 2006-01-18  Simon Josefsson  <jas@extundo.com>
67670
67671         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67672         modules/des-tests, modules/gc-arcfour-tests,
67673         modules/gc-arctwo-tests, modules/gc-des-tests,
67674         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67675         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67676         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67677         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67678         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67679         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67680         $(EXEEXT) to automake TESTS variable, for mingw32.
67681
67682 2006-01-17  Simon Josefsson  <jas@extundo.com>
67683
67684         * modules/socklen (Include): Need sys/socket.h.
67685
67686 2006-01-17  Bruno Haible  <bruno@clisp.org>
67687
67688         * modules/ssize_t (Include): Add <sys/types.h>.
67689
67690 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67693         it's not portable and it doesn't work with cross-compiles.
67694         Problem reported by Bruno Haible.  Fix missing-$ typo in
67695         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67696         -zignore from being used with Sun's C compiler.
67697
67698 2006-01-12  Simon Josefsson  <jas@extundo.com>
67699
67700         * lib/base64.c: Fix warning, reported by Bruno Haible
67701         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67702
67703 2006-01-12  Bruno Haible  <bruno@clisp.org>
67704
67705         * modules/ldd: New file.
67706         * build-aux/ldd.sh.in: New file.
67707         * MODULES.html.sh (Support for building libraries and executables): Add
67708         ldd.
67709
67710 2006-01-12  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/ldd.m4: New file.
67713
67714 2006-01-12  Bruno Haible  <bruno@clisp.org>
67715
67716         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67717         endless loop while replacing $auxdir with build-aux.
67718
67719 2006-01-11  Simon Josefsson  <jas@extundo.com>
67720
67721         * lib/stdint_.h (SIZE_MAX): Add missing (.
67722
67723 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         Sync from coreutils.
67726         * lib/md5.c: Fix commentary typos.
67727         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67728         * lib/md5.h (__attribute__): Remove; unused.
67729         * lib/sha1.c: Fix commentary to match md5 better.
67730         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67731         so that we don't need to worry about alignment.  All uses changed.
67732         This merges the 2005-10-28 md5 change into sha1.
67733
67734 2006-01-11  Jim Meyering  <jim@meyering.net>
67735
67736         Sync from coreutils.
67737         * lib/md5.c (OP): Fix spacing.
67738
67739 2006-01-11  Bruno Haible  <bruno@clisp.org>
67740
67741         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67742         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67743         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67744
67745 2006-01-11  Bruno Haible  <bruno@clisp.org>
67746
67747         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67748         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67749         the "early" section as well.
67750
67751 2006-01-11  Bruno Haible  <bruno@clisp.org>
67752
67753         Avoid "ar: no archive members specified" error on MacOS X.
67754         * gnulib-tool (func_modules_add_dummy): New function.
67755         (func_import, func_create_testdir): Invoke it.
67756
67757 2006-01-11  Bruno Haible  <bruno@clisp.org>
67758
67759         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67760         with $auxdir in AC_CONFIG_FILES statements.
67761
67762 2006-01-11  Bruno Haible  <bruno@clisp.org>
67763
67764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67765         Initialize also noinst_HEADERS to empty.
67766
67767 2006-01-11  Bruno Haible  <bruno@clisp.org>
67768
67769         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67770         variables.
67771         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67772         autoreconf.
67773
67774 2006-01-11  Bruno Haible  <bruno@clisp.org>
67775
67776         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67777         overridable by the user.
67778         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67779
67780 2006-01-10  Simon Josefsson  <jas@extundo.com>
67781
67782         * modules/sys_socket: New file.
67783
67784 2006-01-10  Simon Josefsson  <jas@extundo.com>
67785
67786         * m4/sys_socket_h.m4: New file.
67787
67788 2006-01-10  Simon Josefsson  <jas@extundo.com>
67789
67790         * lib/socket_.h: New file.
67791
67792 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * modules/readutmp (Maintainer): Add myself.
67795
67796 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67799         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67800         People who are still concerned with buggy memcmp implementations
67801         can invoke gl_FUNC_MEMCMP themselves.
67802
67803 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67804
67805         * lib/regex_internal.h (BITSET_WORD_BITS):
67806         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67807         preprocessor mishandles large unsigned values as if they were signed.
67808         Problem reported by Claudio Fontana in
67809         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67810
67811 2006-01-10  Jim Meyering  <jim@meyering.net>
67812
67813         Avoid the double-free (first in fts_read, second in fts_close) that
67814         would occur when an `active' directory is made inaccessible (e.g.,
67815         via chmod a-x) during a traversal.
67816         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67817         before returning.  Reproduce this failure by
67818         mkdir -p a/b; cd a; chmod a-x . b
67819         Reported by Stavros Passas.
67820
67821         Sync from coreutils.
67822         * lib/sha1.c: Tweak grammar in a comment.
67823
67824 2006-01-10  Jim Meyering  <jim@meyering.net>
67825
67826         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67827         Patch by Joerg Sonnenberger.
67828
67829 2006-01-10  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/readutmp: Depend on module free.
67832         * modules/strtok_r: Depend on module restrict.
67833
67834 2006-01-10  Bruno Haible  <bruno@clisp.org>
67835
67836         * modules/gettext (configure.ac): Add an invocation of
67837         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67838
67839 2006-01-10  Bruno Haible  <bruno@clisp.org>
67840
67841         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67842         Reported by Werner Lemberg <wl@gnu.org>.
67843
67844 2006-01-10  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/localcharset.c: Update from GNU gettext.
67847
67848 2006-01-10  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/argp.h (__const): Remove macro. Use const instead.
67851         * lib/argp-fmtstream.h (__const): Likewise.
67852         * lib/glob_.h (__const): Remove macro.
67853         * lib/glob-libc.h: Use const instead of __const.
67854
67855 2006-01-10  Bruno Haible  <bruno@clisp.org>
67856
67857         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67858         variable.
67859         Needed to avoid an automake error regarding the 'gettext' module.
67860
67861 2006-01-09  Simon Josefsson  <jas@extundo.com>
67862
67863         * modules/inet_ntop (Depends-on): Add restrict.
67864
67865 2006-01-09  Simon Josefsson  <jas@extundo.com>
67866
67867         * modules/gc-rijndael-tests (License): Put under LGPL.
67868
67869         * modules/gc-des-tests (License): Likewise.
67870
67871         * modules/gc-arcfour-tests (License): Likewise.
67872
67873         * modules/gc-arctwo-tests (License): Likewise.
67874
67875         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67876
67877         * modules/gc-hmac-sha1-tests (Files): Likewise.
67878
67879         * modules/gc-hmac-md5-tests (License): Likewise.
67880
67881         * modules/gc-sha1-tests (License): Likewise.
67882
67883         * modules/gc-md5-tests (License): Likewise.
67884
67885         * modules/gc-md4-tests (License): Likewise.
67886
67887         * modules/gc-md2-tests (License): Likewise.
67888
67889         * modules/gc-tests (License): Likewise.
67890
67891         * modules/des-tests (License): Likewise.
67892
67893         * modules/md4-tests (License): Likewise.
67894
67895         * modules/md2-tests (License): Likewise.
67896
67897 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         Sync from coreutils:
67900
67901         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67902         * modules/lib-ignore: New file.
67903         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67904         chdir-safer.m4, lchmod.m4.
67905         * modules/openat: Add mkdirat.c, openat-priv.h.
67906
67907 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         Sync from coreutils.
67910         * m4/lib-ignore.m4: New file.
67911         * m4/lchmod.m4: New file.
67912
67913 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         Sync from coreutils.
67916         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67917         for write access: POSIX says that must fail.
67918         * lib/fts.c (diropen): Likewise.
67919         * lib/save-cwd.c (save_cwd): Likewise.
67920         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67921         well, for minor improvements on hosts that lack O_DIRECTORY.
67922         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67923         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67924         Fall back on chown if open failed with EACCES.
67925
67926         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67927         Report an error at compile-time if only a 1-second nominal clock
67928         resolution is found.
67929
67930         * lib/lchmod.h: New file.
67931         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67932         (make_dir_parents): Use lchown rather than chown, and
67933         lchmod rather than chmod.
67934
67935         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67936         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67937         "proc" reported by n0dalus.
67938
67939         * lib/mountlist.c: Include <limits.h>.
67940         (dev_from_mount_options)
67941         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67942         New function.  It no longer assumes "dev=" has the System V meaning
67943         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67944         (read_file_system_list)
67945         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67946         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67947         dev= in that case.
67948
67949         * lib/posixtm.h (PDS_PRE_2000): New macro.
67950         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67951         allow_century.  All usages changed.  Reject dates outside the range
67952         1969-1999 if PDS_PRE_2000 is used.
67953
67954 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         Sync from coreutils.
67957         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67958         (Time of day items): Mention the possibility of leap seconds.
67959         Problem reported by Dr. David Alan Gilbert.
67960
67961 2006-01-09  Jim Meyering  <jim@meyering.net>
67962
67963         Sync from coreutils.
67964
67965         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67966
67967         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67968
67969         * lib/modechange.c (mode_compile): Reject an invalid mode string
67970         that starts with an octal digit.  From Andreas Gruenbacher.
67971
67972         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67973         and dup to open_safer and dup_safer, respectively.
67974         (openat_permissive): Fix typo in comment.
67975
67976         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67977         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67978         (_): Remove; no longer needed.
67979         (openat): Renamed from rpl_openat; no need for rpl_openat
67980         since openat.h renames openat for us.
67981         Replace most of the body with a call to openat_permissive,
67982         to avoid duplicate code.
67983         Port to (probably hypothetical) environments were mode_t is
67984         wider than int.
67985         (openat_permissive): Require mode arg, so that we can check
67986         types better.  Put it just after flags.  Change cwd failure
67987         indicator from pointer-to-bool to pointer-to-errno-value.
67988         All callers changed.
67989         Invoke openat_save_fail and/or openat_restore_fail if
67990         cwd_errno is null, so that openat can call us.
67991         (openat_permissive, fdopendir, fstatat, unlinkat):
67992         Simplify errno handling to avoid some duplicate code,
67993         as it's OK to set errno on success.
67994         * lib/openat.h: Revamp code so that function macros depend on
67995         __OPENAT_PREFIX only, not also on AT_FDCWD.
67996         (openat_ro): Remove.  Caller changed to use openat_permissive.
67997         (openat_permissive): Now a macro, if not a function.
67998         (openat_restore_fail, openat_save_fail): Now always functions,
67999         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68000
68001         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68002         and openat.c.
68003         * lib/mkdirat.c: Include openat-priv.h.
68004         Remove definitions of macros defined therein.
68005         * lib/openat.c: Likewise.
68006
68007         * lib/mkdirat.c (mkdirat): New file and function.
68008         * lib/openat.h (mkdirat): Declare.
68009
68010         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68011
68012         * lib/openat.h (openat_permissive): Declare.
68013         (openat_ro): Define.
68014
68015         * lib/openat.c (EXPECTED_ERRNO): New macro.
68016         (openat_permissive): New function -- used in remove.c rewrite.
68017         (all functions): Set errno just before returning, only if there
68018         was an actual failure.
68019         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68020
68021         Emulate openat-family functions using Linux's procfs, if possible.
68022         Idea and some code based on Ulrich Drepper's glibc changes.
68023
68024         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68025         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68026         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68027         before falling back on save_cwd and restore_cwd.
68028         (fdopendir, fstatat, unlinkat): Likewise.
68029
68030         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68031         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68032
68033         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68034         as second argument to va_arg.  Otherwise, some versions of gcc
68035         warn that `if this code is reached, the program will abort'.
68036
68037 2006-01-09  Jim Meyering  <jim@meyering.net>
68038
68039         Sync from coreutils.
68040         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68041         Require openat-priv.h.
68042
68043 2006-01-09  Bruno Haible  <bruno@clisp.org>
68044
68045         * modules/strnlen (Include): Use strnlen.h.
68046
68047 2006-01-09  Bruno Haible  <bruno@clisp.org>
68048
68049         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68050
68051 2006-01-09  Bruno Haible  <bruno@clisp.org>
68052
68053         * lib/sysexit_.h (EX_OK): New macro.
68054         Suggested by Martin Lambers <marlam@marlam.de>.
68055
68056 2006-01-09  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68059         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68060
68061 2006-01-09  Bruno Haible  <bruno@clisp.org>
68062
68063         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68064         numbers.
68065
68066 2006-01-09  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68069         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68070         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68071         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68072
68073 2006-01-09  Bruno Haible  <bruno@clisp.org>
68074
68075         * build-aux/javacomp.sh.in: New file, moved from lib/.
68076         * modules/javacomp-script (Files): Update.
68077         (configure.ac): Add AC_CONFIG_FILES invocation.
68078         (EXTRA_DIST): Remove variable.
68079
68080         * build-aux/javaexec.sh.in: New file, moved from lib/.
68081         * modules/javaexec (Files): Update.
68082         (configure.ac): Add AC_CONFIG_FILES invocation.
68083         (EXTRA_DIST): Remove javaexec.sh.in.
68084
68085         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68086         * modules/csharpcomp-script (Files): Update.
68087         (configure.ac): Add AC_CONFIG_FILES invocation.
68088         (EXTRA_DIST): Remove variable.
68089
68090         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68091         * modules/csharpexec (Files): Update.
68092         (configure.ac): Add AC_CONFIG_FILES invocation.
68093         (EXTRA_DIST): Remove csharpexec.sh.in.
68094
68095 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68096
68097         Sync from coreutils.
68098
68099         Add POSIX ACL support
68100         * lib/acl.h (copy_acl, set_acl): Add declarations.
68101         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68102         systems other than Linux.
68103         (chmod_or_fchmod): New function: use fchmod when possible,
68104         and chmod otherwise.
68105         (file_has_acl): Add a POSIX ACL implementation, with a
68106         Linux-specific subcase.
68107         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68108         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68109         acls are unsupported.
68110         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68111         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68112         are unsupported.
68113
68114 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68115
68116         Sync from coreutils.
68117         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68118
68119 2006-01-07  Bruno Haible  <bruno@clisp.org>
68120
68121         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68122         gl_EARLY.
68123
68124 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68125
68126         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68127         Problem reported for Mingw by Mark Junker.
68128
68129 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68130
68131         * README: Gnulib normally doesn't generate a tarball.
68132
68133 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68136         long int, not int, for nanosecond counts, so that people who are
68137         used to POSIX struct timespec won't be surprised.  Reported by Jim
68138         Meyering.
68139
68140 2005-12-28  Bruno Haible  <bruno@clisp.org>
68141
68142         * build-aux/config.rpath: Update from GNU gettext.
68143
68144 2005-12-16  Jim Meyering  <jim@meyering.net>
68145
68146         * modules/fprintftime: New module.
68147         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68148
68149 2005-12-16  Jim Meyering  <jim@meyering.net>
68150
68151         * m4/fprintftime.m4: New file.
68152
68153 2005-12-16  Jim Meyering  <jim@meyering.net>
68154
68155         * lib/fprintftime.c, lib/fprintftime.h: New files.
68156
68157 2005-12-15  Simon Josefsson  <jas@extundo.com>
68158
68159         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68160         new m4/socklen.m4.
68161
68162 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68163
68164         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68165         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68166
68167 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68168
68169         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68170         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68171         struct uparams is valid. Fall back to the default values if it is
68172         not.
68173
68174 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68175
68176         * modules/argp (Files): Add argp-pin.c
68177         (Depends-on): dirname
68178         (lib_SOURCES): Add argp-pin.c
68179
68180 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68181
68182         * m4/argp.m4:  Check if program_invocation_name and
68183         program_invocation_short_name are declared and define appropriate
68184         macros if they are not.
68185
68186 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68187
68188         * lib/argp-help.c (__argp_base_name): New function
68189         (__argp_short_program_name): Rewrite using __argp_base_name
68190         * lib/argp-namefrob.h: Define program_invocation_name and
68191         program_invocation_short_name if requested
68192         (__argp_base_name): Add prototype
68193         * lib/argp-parse.c (argp_def): Use gettext wrappers
68194         (argp_default_parser): Use __argp_base_name
68195         * lib/argp-pin.c: New file. Defines program_invocation_name and
68196         program_invocation_short_name on systems that lack them.
68197
68198 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68201         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68202         porting problem reported by Georg Schwarz in
68203         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68204
68205 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68208         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68209         porting problem reported by Georg Schwarz in
68210         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68211
68212 2005-12-05  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68215         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68216         Reported by Mark Junker <mjscod@gmx.de>.
68217
68218 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68219
68220         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68221         Use implementation from Albert Chin, with some
68222         comments/corrections by Stepan Kasal and myself.
68223
68224 2005-12-02  Bruno Haible  <bruno@clisp.org>
68225
68226         * gnulib-tool (func_import): Accept GPLed build tool modules when
68227         --lgpl is given.
68228         * modules/csharpcomp-script: New file.
68229         * modules/csharpcomp: Depend on it.
68230         * modules/javacomp-script: New file.
68231         * modules/javacomp: Depend on it.
68232         Suggested by Simon Josefsson.
68233
68234 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68235
68236         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68237         statement, to work around an HP-UX 10.20 compiler bug reported by
68238         Peter O'Gorman.
68239
68240 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68241
68242         * modules/savedir (Depends-on): Add openat.
68243
68244 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68245
68246         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68247         (uintmax_t) [defined uintmax_t]: Do not declare.
68248         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68249         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68250         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68251         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68252         sake of portability to weird hosts that C allows (though we don't
68253         know of any practical examples).
68254
68255         * lib/savedir.h (fdsavedir): New decl.
68256         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68257         contains most of the former guts of savedir.
68258         (savedir): Use savedirstream.
68259         Include "openat.h".
68260
68261 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * modules/obstack (Files): Add m4/ulonglong.m4.
68264         Problem reported by Davide Angelocola.
68265
68266 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68269         coreutils no longer futzes with rounding modes.
68270
68271 2005-11-14  Jim Meyering  <jim@meyering.net>
68272
68273         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68274         replacement of mkstemp.
68275
68276 2005-11-10  Simon Josefsson  <jas@extundo.com>
68277
68278         * lib/readline.c: Remove EOL.
68279
68280 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68281
68282         * modules/gethrxtime (Depends-on): Add gettime.
68283
68284 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68287         or gettimeofday; no longer needed.
68288
68289 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68292         time business.
68293         (gethrxtime) [! (HAVE_NANOUPTIME
68294         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68295         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68296         our own approximation.
68297
68298 2005-11-08  Eric Blake  <ebb9@byu.net>
68299
68300         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68301
68302 2005-11-08  Eric Blake  <ebb9@byu.net>
68303
68304         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68305
68306 2005-11-04  Bruno Haible  <bruno@clisp.org>
68307
68308         * gnulib-tool: Implement --update mode.
68309
68310 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         Fix porting problem reported by Theodoros V. Kalamatianos.
68313         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68314         Don't assume that futimes failing means we must fail.
68315
68316 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68319         variables to suggest the intended function of the PATH_MAX check.
68320
68321 2005-10-30  Kean Johnston  <jkj@sco.com>
68322
68323         Trivial changes to support SCO systems.
68324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68325         as PATH_MAX.
68326         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68327         where __ptr is null when no I/O is pending.
68328
68329 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68330
68331         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68332         leave errno alone.  Problem reported by Dmitry V. Levin.
68333
68334 2005-10-28  Simon Josefsson  <jas@extundo.com>
68335
68336         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68337         Test more.
68338
68339         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68340
68341         * modules/md2, modules/md2-tests: New files.
68342
68343 2005-10-28  Simon Josefsson  <jas@extundo.com>
68344
68345         * m4/inet_ntop.m4: More tests.
68346
68347         * m4/gc-md2.m4, md2.m4: New file.
68348
68349 2005-10-28  Simon Josefsson  <jas@extundo.com>
68350
68351         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68352         "restrict" keywords, as per POSIX.  Protect the function
68353         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68354         Don't use K&R prototypes.  Check the sprintf return values.
68355         Re-define EAFNOSUPPORT if not present.  Indent.
68356
68357         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68358         suggested by Bruno Haible <bruno@clisp.org>.
68359
68360         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68361
68362         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68363
68364         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68365         libgcrypt).
68366
68367         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68368
68369         * lib/md2.h, lib/md2.c: New files.
68370
68371 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68374         errno alone.  Problem reported by Frederic Jolliton.
68375
68376 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68377
68378         * modules/verify (License): Change from GPL to LGPL.  This is a
68379         tiny module and there are apparently near-equivalents that are
68380         under the BSD license.
68381
68382 2005-10-24  Simon Josefsson  <jas@extundo.com>
68383
68384         * modules/sha1: Relicense to LGPL.
68385
68386 2005-10-24  Simon Josefsson  <jas@extundo.com>
68387
68388         * lib/md4.h: Shrink buffer size, now that we changed the type.
68389
68390 2005-10-23  Simon Josefsson  <jas@extundo.com>
68391
68392         * gnulib-tool (func_import): Fix --tests-base.
68393
68394 2005-10-22  Simon Josefsson  <jas@extundo.com>
68395
68396         * modules/arcfour (Depends-on): Need stdint.
68397
68398 2005-10-22  Simon Josefsson  <jas@extundo.com>
68399
68400         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68401         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68402
68403 2005-10-22  Simon Josefsson  <jas@extundo.com>
68404
68405         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68406         suggested by Bruno Haible <bruno@clisp.org>.
68407
68408 2005-10-22  Simon Josefsson  <jas@extundo.com>
68409
68410         * lib/crc.h: Include stddef.h, for size_t.
68411
68412 2005-10-22  Simon Josefsson  <jas@extundo.com>
68413
68414         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68415         arcfour_context struct (simplify test vector testing in GNU
68416         Shishi).
68417
68418 2005-10-21  Simon Josefsson  <jas@extundo.com>
68419
68420         * modules/des, modules/des-tests: New files.
68421
68422         * modules/gc-des, modules/gc-des-tests: New files.
68423
68424         * tests/test-des.c, tests/test-gc-des.c: New file.
68425
68426 2005-10-21  Simon Josefsson  <jas@extundo.com>
68427
68428         * modules/arctwo, modules/arctwo-tests: New files.
68429
68430         * tests/test-arctwo.c: New file.
68431
68432         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68433
68434         * tests/test-gc-arctwo.c: New file.
68435
68436 2005-10-21  Simon Josefsson  <jas@extundo.com>
68437
68438         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68439         Bruno Haible <bruno@clisp.org>.
68440
68441         * m4/gc-des.m4: New file.
68442
68443 2005-10-21  Simon Josefsson  <jas@extundo.com>
68444
68445         * m4/arctwo.m4: New file.
68446
68447         * m4/gc-arctwo.m4: New file.
68448
68449 2005-10-21  Simon Josefsson  <jas@extundo.com>
68450
68451         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68452         block.
68453
68454 2005-10-21  Simon Josefsson  <jas@extundo.com>
68455
68456         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68457         <bruno@clisp.org>.
68458
68459         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68460
68461         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68462         Bruno Haible <bruno@clisp.org>.
68463
68464         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68465         <bruno@clisp.org>.
68466
68467 2005-10-21  Simon Josefsson  <jas@extundo.com>
68468
68469         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68470
68471 2005-10-21  Simon Josefsson  <jas@extundo.com>
68472
68473         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68474
68475 2005-10-21  Simon Josefsson  <jas@extundo.com>
68476
68477         * lib/des.h, lib/des.c: New files.
68478
68479         * lib/gc-gnulib.c: Support DES.c
68480
68481 2005-10-21  Simon Josefsson  <jas@extundo.com>
68482
68483         * lib/arctwo.h, lib/arctwo.c: New files.
68484
68485         * lib/gc-gnulib.c: Support ARCTWO.
68486
68487 2005-10-21  Simon Josefsson  <jas@extundo.com>
68488
68489         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68490         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68491
68492 2005-10-21  Simon Josefsson  <jas@extundo.com>
68493
68494         * gnulib-tool (func_import, func_create_testdir): Define automake
68495         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68496         Makefile.am snippet),
68497         suggested by Bruno Haible <bruno@clisp.org>.
68498
68499         * modules/gc (Makefile.am): Use it.
68500
68501 2005-10-21  Bruno Haible  <bruno@clisp.org>
68502
68503         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68504         patch.
68505
68506 2005-10-19  Simon Josefsson  <jas@extundo.com>
68507
68508         * tests/test-gc-rijndael.c: New file.
68509
68510         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68511
68512 2005-10-19  Simon Josefsson  <jas@extundo.com>
68513
68514         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68515         interface too.
68516
68517 2005-10-19  Simon Josefsson  <jas@extundo.com>
68518
68519         * tests/test-gc-arcfour.c: New file.
68520
68521         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68522
68523 2005-10-19  Simon Josefsson  <jas@extundo.com>
68524
68525         * modules/gc-md4, modules/gc-md4-tests: New file.
68526
68527         * tests/test-gc-md4.c: New file.
68528
68529 2005-10-19  Simon Josefsson  <jas@extundo.com>
68530
68531         * m4/gc-md4.m4: New file.
68532
68533 2005-10-19  Simon Josefsson  <jas@extundo.com>
68534
68535         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68536         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68537         <kasal@ucw.cz>.
68538
68539 2005-10-19  Simon Josefsson  <jas@extundo.com>
68540
68541         * m4/gc-arcfour.m4: New file.
68542
68543         * m4/gc-rijndael.m4: New file.
68544
68545 2005-10-19  Simon Josefsson  <jas@extundo.com>
68546
68547         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68548
68549 2005-10-19  Simon Josefsson  <jas@extundo.com>
68550
68551         * lib/gc-gnulib.c: Support ARCFOUR.
68552
68553 2005-10-19  Simon Josefsson  <jas@extundo.com>
68554
68555         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68556         support.
68557
68558         * lib/gc.h: Add ECB enum type.
68559
68560         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68561
68562 2005-10-18  Simon Josefsson  <jas@extundo.com>
68563
68564         * tests/test-md5.c: New file.
68565
68566         * modules/md5-tests: New file.
68567
68568 2005-10-18  Simon Josefsson  <jas@extundo.com>
68569
68570         * tests/test-md4.c: New file.
68571
68572         * modules/md4, modules/md4-tests: New files.
68573
68574 2005-10-18  Simon Josefsson  <jas@extundo.com>
68575
68576         * m4/md4.m4: New file.
68577
68578 2005-10-18  Simon Josefsson  <jas@extundo.com>
68579
68580         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68581
68582 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68583
68584         * gnulib-tool (func_create_testdir): Omit the second check whether
68585         BUILT_SOURCES in nonempty.
68586
68587 2005-10-17  Simon Josefsson  <jas@extundo.com>
68588
68589         * tests/test-rijndael.c: New file.
68590
68591 2005-10-17  Simon Josefsson  <jas@extundo.com>
68592
68593         * modules/sha1: Depend on stdint instead of md5.
68594
68595         * modules/md5: Depend on stdint, remove uint32_t.
68596
68597 2005-10-17  Simon Josefsson  <jas@extundo.com>
68598
68599         * modules/gc-sha1-tests: New file.
68600
68601         * tests/test-gc-sha1.c: New file.
68602
68603 2005-10-17  Simon Josefsson  <jas@extundo.com>
68604
68605         * m4/md5.m4: Remove call to uint32_t.m4.
68606
68607 2005-10-17  Simon Josefsson  <jas@extundo.com>
68608
68609         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68610
68611         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68612         md5.h.
68613
68614         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68615
68616         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68617
68618 2005-10-17  Simon Josefsson  <jas@extundo.com>
68619
68620         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68621
68622 2005-10-17  Simon Josefsson  <jas@extundo.com>
68623
68624         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68625
68626 2005-10-17  Simon Josefsson  <jas@extundo.com>
68627
68628         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68629
68630         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68631
68632 2005-10-17  Bruno Haible  <bruno@clisp.org>
68633
68634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68635         that it can also be used in a test.
68636
68637 2005-10-16  Bruno Haible  <bruno@clisp.org>
68638
68639         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68640         TESTS_ENVIRONMENT, so that individual tests can augment it.
68641
68642         * gnulib-tool (func_create_testdir): Use an intermediate target for
68643         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68644         macros, like $(ALLOCA_H), which cannot be passed through the command
68645         line.
68646
68647 2005-10-15  Simon Josefsson  <jas@extundo.com>
68648
68649         * modules/rijndael-tests: New file.
68650
68651         * modules/rijndael: New file.
68652
68653 2005-10-15  Simon Josefsson  <jas@extundo.com>
68654
68655         * m4/rijndael.m4: New file.
68656
68657 2005-10-15  Simon Josefsson  <jas@extundo.com>
68658
68659         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68660
68661         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68662
68663 2005-10-14  Simon Josefsson  <jas@extundo.com>
68664
68665         * tests/test-arcfour.c: New file.
68666
68667         * modules/arcfour, modules/arcfour-tests: New files.
68668
68669 2005-10-14  Simon Josefsson  <jas@extundo.com>
68670
68671         * m4/arcfour.m4: New file.
68672
68673 2005-10-14  Simon Josefsson  <jas@extundo.com>
68674
68675         * lib/arcfour.h, lib/arcfour.c: New files.
68676
68677 2005-10-14  Roland McGrath  <roland@redhat.com>
68678
68679         Import from libc.  [BZ #1331]
68680         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68681         macro argument.
68682         Reported by Matej Vela <vela@debian.org>.
68683
68684 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68687         include <wchar.h>; no longer needed.
68688
68689 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68692
68693 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68694         and  Ulrich Drepper  <drepper@redhat.com>
68695
68696         Import from libc.
68697         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68698         instead of inline stream orientation test and two separate
68699         function calls.  Pay no attention to USE_IN_LIBIO.
68700
68701 2005-10-13  Simon Josefsson  <jas@extundo.com>
68702
68703         * modules/gc-hmac-md5-tests: New file.
68704
68705         * tests/test-gc-hmac-sha1.c: New file.
68706
68707         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68708
68709         * modules/gc-hmac-md5-tests: New file.
68710
68711         * tests/test-gc-md5.c: New file.
68712
68713         * modules/gc-md5-tests: New file.
68714
68715 2005-10-13  Simon Josefsson  <jas@extundo.com>
68716
68717         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68718         Move memory allocation outside of loop.
68719
68720 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68723         intermediate directory is in a read-only file system.  Problem
68724         reported by Eric Blake.
68725
68726 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68727
68728         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68729
68730 2005-10-12  Simon Josefsson  <jas@extundo.com>
68731
68732         * tests/test-hmac-sha1.c: New file.
68733
68734         * modules/hmac-sha1-tests: New file.
68735
68736         * modules/hmac-sha1: New file.
68737
68738 2005-10-12  Simon Josefsson  <jas@extundo.com>
68739
68740         * modules/gc-sha1: New file.
68741
68742 2005-10-12  Simon Josefsson  <jas@extundo.com>
68743
68744         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68745
68746         * tests/test-gc-pbkdf2-sha1.c: New file.
68747
68748 2005-10-12  Simon Josefsson  <jas@extundo.com>
68749
68750         * modules/gc-md5, modules/gc-hmac-md5: New files.
68751
68752         * modules/gc (Files): Remove md5, memxor and hmac files.
68753
68754 2005-10-12  Simon Josefsson  <jas@extundo.com>
68755
68756         * m4/gc-pbkdf2-sha1.m4: New file.
68757
68758         * m4/gc-hmac-sha1.m4: New file.
68759
68760         * m4/gc-sha1: New file.
68761
68762         * m4/hmac-sha1.m4: New file.
68763
68764 2005-10-12  Simon Josefsson  <jas@extundo.com>
68765
68766         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68767
68768         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68769
68770 2005-10-12  Simon Josefsson  <jas@extundo.com>
68771
68772         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68773         suggested by Bruno Haible <bruno@clisp.org>.
68774
68775 2005-10-12  Simon Josefsson  <jas@extundo.com>
68776
68777         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68778
68779 2005-10-12  Simon Josefsson  <jas@extundo.com>
68780
68781         * lib/gc-pbkdf2-sha1.c: New file.
68782
68783         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68784
68785 2005-10-12  Simon Josefsson  <jas@extundo.com>
68786
68787         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68788
68789         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68790
68791 2005-10-12  Simon Josefsson  <jas@extundo.com>
68792
68793         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68794         GC_USE_HMAC_MD5, respectively.
68795
68796         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68797         (gc_md5): Fix typo.
68798
68799         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68800
68801         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68802
68803         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68804
68805 2005-10-12  Bruno Haible  <bruno@clisp.org>
68806
68807         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68808         Reported by Stepan Kasal <kasal@ucw.cz>.
68809
68810 2005-10-11  Simon Josefsson  <jas@extundo.com>
68811
68812         * tests/test-crc.c: New file.
68813
68814         * modules/crc, modules/crc-tests: New files.
68815
68816 2005-10-11  Simon Josefsson  <jas@extundo.com>
68817
68818         * m4/crc.m4: New file.
68819
68820 2005-10-11  Simon Josefsson  <jas@extundo.com>
68821
68822         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68823
68824         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68825
68826         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68827
68828 2005-10-11  Simon Josefsson  <jas@extundo.com>
68829
68830         * lib/crc.h, lib/crc.c: New files.
68831
68832         * lib/gc.h (gc_hash_buffer): Add doc.
68833
68834 2005-10-11  Bruno Haible  <bruno@clisp.org>
68835
68836         * modules/c-strcasestr: New file.
68837         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68838
68839 2005-10-11  Bruno Haible  <bruno@clisp.org>
68840
68841         * modules/c-strcase: New file.
68842         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68843
68844 2005-10-11  Bruno Haible  <bruno@clisp.org>
68845
68846         * lib/strcasecmp.c: Include limits.h.
68847         (strcasecmp): Avoid integer overflow on exotic platforms.
68848         * lib/strncasecmp.c: Include limits.h.
68849         (strncasecmp): Avoid integer overflow on exotic platforms.
68850         Reported by Paul Eggert.
68851
68852 2005-10-11  Bruno Haible  <bruno@clisp.org>
68853
68854         * lib/c-strcasestr.h: New file, from GNU gettext.
68855         * lib/c-strcasestr.c: New file, from GNU gettext.
68856
68857 2005-10-11  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/c-strcase.h: New file, from GNU gettext.
68860         * lib/c-strcasecmp.c: New file, from GNU gettext.
68861         * lib/c-strncasecmp.c: New file, from GNU gettext.
68862
68863 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * modules/mempcpy (License): GPL -> LGPL.
68866         * modules/strchrnul (License): Likewise.
68867         * modules/sysexits (License): Likewise.
68868
68869 2005-10-08  Simon Josefsson  <jas@extundo.com>
68870
68871         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68872
68873 2005-10-07  Simon Josefsson  <jas@extundo.com>
68874
68875         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68876
68877 2005-10-06  Simon Josefsson  <jas@extundo.com>
68878
68879         * tests/test-hmac-md5.c: New file.
68880
68881         * modules/hmac-md5-tests: New file.
68882
68883         * modules/hmac-md5: New file.
68884
68885 2005-10-06  Simon Josefsson  <jas@extundo.com>
68886
68887         * m4/hmac-md5.m4: New file.
68888
68889         * m4/memxor.m4: Require gl_C_RESTRICT.
68890
68891 2005-10-06  Simon Josefsson  <jas@extundo.com>
68892
68893         * lib/memxor.c (memxor): Avoid casts and warnings.
68894
68895 2005-10-06  Simon Josefsson  <jas@extundo.com>
68896
68897         * lib/hmac-md5.c: New file.
68898
68899         * lib/hmac.h: New file.
68900
68901 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68904         promotes to int, not unsigned int, to catch the AIX 5.3
68905         compiler bug.
68906
68907 2005-10-05  Simon Josefsson  <jas@extundo.com>
68908
68909         * modules/memxor: New file.
68910
68911         * modules/iconv (Files): Move config.rpath to havelib, it is used
68912         there.
68913
68914         * modules/havelib (Files): Add config.rpath.
68915
68916 2005-10-05  Simon Josefsson  <jas@extundo.com>
68917
68918         * m4/memxor.m4: New file.
68919
68920 2005-10-05  Simon Josefsson  <jas@extundo.com>
68921
68922         * lib/memxor.c (memxor): Fix compiler error.
68923
68924         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68925         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68926
68927         * lib/memxor.h, lib/memxor.c: New files.
68928
68929         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68930         we assume all systems have it, suggested by Jim Meyering
68931         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68932         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68933         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68934         same reasons.
68935
68936 2005-10-05  Simon Josefsson  <jas@extundo.com>
68937
68938         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68939
68940 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68943         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68944         needed, since the source code now assumes these .h files.
68945
68946 2005-10-05  Derek Price  <derek@ximbiot.com>
68947
68948         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68949
68950 2005-10-05  Bruno Haible  <bruno@clisp.org>
68951
68952         * modules/stdint (License): Change to LGPL.
68953
68954 2005-10-04  Simon Josefsson  <jas@extundo.com>
68955
68956         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68957         D. Baushke" <mdb@gnu.org>.
68958
68959 2005-10-04  Bruno Haible  <bruno@clisp.org>
68960
68961         * lib/verify.h (verify_true): Provide alternative definition for C++.
68962
68963 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68966         (SSIZE_MAX): New macro, if not already defined.
68967         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68968         than 2 GiB.
68969
68970 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         Sync from coreutils.
68973         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68974         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68975         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68976         ULLONG_MAX doesn't work with 2.7.2.1.
68977
68978 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68979
68980         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68981         From Ben Pfaff.
68982
68983         * modules/exclude (Depends-on): Depend on verify.
68984         * modules/strtoimax (Depends-on): Likewise.
68985         * modules/utimecmp (Depends-on): Likewise.
68986
68987 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/exclude.c: Include verify.h.
68990         (verify): Remove.  All callers changed to use verify.h's version.
68991         * lib/strtoimax.c: Likewise.
68992         * lib/utimecmp.c: Likewis.e
68993
68994         Sync from coreutils.
68995         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68996         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68997         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68998         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68999         bother returning ENOSYS if settimeofday or stime fails; just let
69000         them return whatever errno they want to return.
69001         * lib/utimens.c: Include unistd.h, for dup2.
69002         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69003         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69004
69005 2005-10-02  Jim Meyering  <jim@meyering.net>
69006
69007         Sync from coreutils.
69008         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69009         from glibc-2.2.5 that fails for read-only files.
69010
69011 2005-10-02  Jim Meyering  <jim@meyering.net>
69012
69013         Sync from coreutils.
69014         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69015         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69016         `#if HAVE_CONFIG_H'.
69017         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69018         Remove AT_FDCWD test.
69019         Do not consume the fd unless successful.
69020         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69021         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69022         block, so that we don't even try to compile it if settimeofday is
69023         available.  This works around a compilation failure on OSF1 V5.1,
69024         due to stime requiring a `long int*' while tv_sec is `int'.
69025
69026 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69027
69028         Sync from coreutils.
69029         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69030         against `yes', rather than just testing for nonempty.
69031
69032 2005-10-01  Simon Josefsson  <jas@extundo.com>
69033
69034         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69035         and Darwin.
69036
69037         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69038         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69039         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69040         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69041         Check if struct addrinfo is declared.
69042
69043 2005-10-01  Simon Josefsson  <jas@extundo.com>
69044
69045         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69046         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69047         AI_* and EAI_* definitions.  Protect function declarations.
69048
69049 2005-10-01  Jim Meyering  <jim@meyering.net>
69050
69051         Sync from coreutils.
69052
69053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69054         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69055         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69057         in the inet and nsl libraries.  Required on Solaris 5.7.
69058
69059 2005-10-01  Jim Meyering  <jim@meyering.net>
69060
69061         Sync from coreutils.
69062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69063         in the inet and nsl libraries.  Required on Solaris 5.7.
69064
69065 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69066
69067         * lib/getdelim.c (getdelim): Remove unused variables.
69068
69069 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69072         so that the code works even with ancient cpp.  Portability problem
69073         with GCC 2.7.2.1 reported by Thomas M.Ott.
69074
69075 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * modules/regex (Depends-on): Add strcase.
69078
69079         * modules/gethostname (Licence): Change from GPL to LGPL, since
69080         gethostname.c is a trivial implementation of a standard library
69081         function.
69082         * modules/poll (License): Change from GPL to LGPL, since it's
69083         derived from LGPL code.
69084
69085 2005-09-27  Jim Meyering  <jim@meyering.net>
69086
69087         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69088         HAVE_CONFIG_H.
69089
69090         * lib/intprops.h (signed_type_or_expr__): Define.
69091         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69092         for unsigned types.
69093
69094 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69095
69096         * lib/verify.h (verify_expr): Remove, replacing with:
69097         (verify_true): New macro that returns true instead of void.
69098         (verify_type__): Remove.
69099         (verify): Use verify_true rather than verify_type__.
69100
69101 2005-09-26  Bruno Haible  <bruno@clisp.org>
69102
69103         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69104         is necessary.
69105         (lib_SOURCES): Remove mbchar.c.
69106         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69107         (Files): Add m4/mbrtowc.m4.
69108         * modules/mbiter: Likewise.
69109         * modules/mbuiter: Likewise.
69110
69111 2005-09-26  Bruno Haible  <bruno@clisp.org>
69112
69113         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69114         compile mbchar.c if they are not both present.
69115         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69116         * m4/mbiter.m4 (gl_MBITER): Likewise.
69117         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69118         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69119         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69120
69121 2005-09-25  Jim Meyering  <jim@meyering.net>
69122
69123         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69124         also uses socklen_t.
69125
69126 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * lib/utimens.c (ENOSYS): Define if not already defined.
69129         (futimens): Support having a null PATH if the file descriptor
69130         is nonnegative.
69131
69132         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69133         Remove.
69134         (__attribute): Define to empty unless GCC 3.1 or later.
69135         This works around a core dump on OpenBSD 3.4, which has GCC
69136         2.95.3, which dumps core when given __attribute__(()).  It also
69137         simplifies other tests, since we really don't want to bother with
69138         worrying about which ancient version of GCC supported what.
69139         Original problem reported by Yoann Vandoorselaere, with part of
69140         the fix suggested by Derek Price.
69141
69142 2005-09-24  Jim Meyering  <jim@meyering.net>
69143
69144         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69145         so we can once again use a positive bitfield width of 1 -- now we
69146         don't have to explain why we were using a bitfield width of 2.
69147
69148 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69151         and similarly for the other external symbols.  Problem reported
69152         by James Gallager.
69153
69154         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69155         bug reported by Jim Meyering.
69156
69157         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69158         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69159         not needed, since socklen is a prerequisite module.
69160
69161 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69162
69163         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69164         Problem reported by Eric Blake.
69165         (getaddrinfo): Initialize se so that it's not garbage.
69166         Redo internal storage allocation so that it doesn't make unportable
69167         assumptions about alignment.
69168         Fix a memory leak.
69169
69170         * lib/utimens.c (futimens): Use futimesat if available.
69171         Prefer it to futimes since it doesn't have the futimes bug.
69172
69173         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69174         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69175         Instead, declare a function that returns a pointer to an array,
69176         and use verify_type__ to declare the size of the array.
69177         Problem and germ of a solution reported by Bruno Haible.
69178         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69179         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69180
69181 2005-09-23  Jim Meyering  <jim@meyering.net>
69182
69183         Sync from coreutils.
69184         Correct build failure (socklen_t not defined) on at least
69185         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69186         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69187
69188 2005-09-23  Jim Meyering  <jim@meyering.net>
69189
69190         * modules/getaddrinfo (Depends-on): Add socklen.
69191
69192 2005-09-23  Bruno Haible  <bruno@clisp.org>
69193
69194         * tests/test-verify.c: New file.
69195
69196 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69197
69198         Sync from coreutils.
69199
69200         * modules/argmatch (Depends-on): Add verify.
69201         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69202         unistd-safer.
69203         * modules/save-cwd (Depends-on): Likewise.
69204
69205         * modules/openat (Files): Add lib/openat-die.c.
69206         (Depends-on): Remove error, exitfail.
69207         Add dirname.
69208
69209         * modules/verify: New file.
69210         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69211         with "verify" module.
69212
69213 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69214
69215         Sync from coreutils.
69216
69217         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69218         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69219         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69220         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69221         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69222         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69223         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69224         Don't bother checking for string.h, stdlib.h, unistd.h.
69225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69226         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69227         module's job.
69228         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69229         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69230
69231         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69232         (gl_GETDATE): Use it.
69233
69234         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69235
69236 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         Sync from coreutils.
69239
69240         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69241         stat-time.h.
69242         * lib/argmatch.h: Include verify.h
69243         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69244         (ARGMATCH_ASSERT): Remove; unused.
69245         * lib/canonicalize.c: Assume STDC_HEADERS.
69246         * lib/exclude.c: Include "strcase.h".
69247         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69248         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69249         and stdio-safer.h.
69250         (getusershell): Call fopen, not fopen_safer.
69251         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69252         Do not include unistd-safer.h.
69253         (save_cwd): Don't call fd_safer; no longer needed
69254         now that we include fcntl--.h.
69255
69256         * lib/getdate.y (relative_time): New type.
69257         (RELATIVE_TIME_0): New constant.
69258         (parser_control): Use relative_time instead of doing it ourselves.
69259         (%union): Add new relative_time rel member.
69260         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69261         Now typeless.
69262         (relunit, relunit_snumber): Now of type rel.
69263         (zone, rel, relunit, get_date): Adjust to above changes.
69264
69265         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69266         Do not include unistd-safer.h.
69267         (getloadavg): Don't call fd_safer; no longer needed
69268         now that we include fcntl--.h.
69269
69270         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69271         (make_dir_parents): Treat ENOSYS like EEXIST.
69272
69273         Improve quality of diagnostics on restore_cwd failure.
69274         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69275         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69276         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69277         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69278         each time through the loop.  Do not diagnose restore_cwd failure;
69279         that is the caller's job (and perhaps the caller does not care).
69280
69281         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69282         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69283         If the file already exists but is not a directory, don't bother
69284         to try to make its parents.
69285         Close potential file descriptor leak if we can't chdir("/") (!).
69286         Don't always return true if chdir($PWD) fails; return true only
69287         if the requested action was done successfully (except for the
69288         chdir($PWD)).
69289         Don't log final directory unless we actually made it.
69290         Refactor to avoid duplicate code to fix up permissions.
69291         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69292
69293         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69294         to make it a bit faster and (I hope) clearer.
69295         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69296         Fix bug in formats like %2N.
69297
69298         * lib/verify.h: New file.
69299
69300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         Sync from coreutils.
69303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69304
69305 2005-09-22  Jim Meyering  <jim@meyering.net>
69306
69307         Sync from coreutils.
69308
69309         * m4/lstat.m4 (gl_FUNC_LSTAT):
69310         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69311         Remove obsolete comment.
69312         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69313         * m4/xstrtod.m4: Likewise.
69314
69315         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69316
69317 2005-09-22  Jim Meyering  <jim@meyering.net>
69318
69319         Sync from coreutils.
69320
69321         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69322
69323         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69324         the .tm_year member, since otherwise gcc-4.0 would now warn about
69325         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69326
69327         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69328         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69329
69330         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69331         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69332         when run in a time zone for which daylight savings time is in effect
69333         for the starting date.
69334
69335         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69336         stop us from restricting permissions of just-created absolute-named
69337         directories.
69338         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69339         to restore initial working directory.
69340         * lib/mkdir-p.c (make_dir_parents): New parameter:
69341         different_working_dir, to tell caller if/when we change the working
69342         directory and are unable to return to the initial one.
69343         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69344         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69345         `return false'.  This fixes a bug introduced on 2004-07-30.
69346
69347         * lib/openat.c (fdopendir): Be sure to close the supplied
69348         file descriptor before returning.  This makes our replacement
69349         implementation a little closer to Solaris's, where fdopendir
69350         ties the file descriptor to the returned DIR* pointer.
69351         * lib/openat.c (unlinkat): New function.
69352         * lib/openat.h (unlinkat): Add prototype.
69353         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69354         (openat_restore_fail): Rename from openat_restore_die.
69355         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69356
69357         Provide an alternative to exiting immediately upon save_cwd or
69358         restore_cwd failure.  Now, an application can arrange e.g.,
69359         to perform a longjump in that case.
69360         * lib/openat.c: Include dirname.h.
69361         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69362         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69363         and openat_restore_die rather than calling error directly.
69364         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69365
69366         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69367         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69368         define.
69369
69370         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69371         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69372                             int utc, int nanoseconds);
69373         Background:
69374         date should not have to allocate a megabyte of virtual memory to
69375         handle a format argument like +%1048575T.  When implemented with
69376         strftime, it must allocate such a buffer, use strftime to fill it
69377         in, print it, then free it.
69378         With fprintftime, it simply prints everything and exits.
69379         With no need for memory allocation, that's one fewer way to fail.
69380         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69381         optional field width, not before, so we accept %9:z, not %:9z.
69382         (my_strftime): Be sure to use L_('x') for literals.
69383
69384         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69385         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69386         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69387         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69388         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69389         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69390         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69391         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69392         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69393         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69394         * lib/xgethostname.c, lib/xreadlink.c:
69395         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69396
69397         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69398         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69399         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69400         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69401         and don't include <sys/file.h>).
69402
69403 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69404
69405         Sync from coreutils.
69406
69407         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69408         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69409         [!LDAV_DONE]: Avoid unused variable warning.
69410
69411 2005-09-21  Bruno Haible  <bruno@clisp.org>
69412
69413         * lib/unicodeio.h (unicode_to_mb): New declaration.
69414
69415 2005-09-20  Derek Price  <derek@ximbiot.com>
69416
69417         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69418         getaddrinfo.h.
69419
69420 2005-09-20  Bruno Haible  <bruno@clisp.org>
69421
69422         * gnulib-tool: Remove trailing slashes from the values specified for
69423         --source-base, --m4-base, --tests-base, --aux-dir.
69424         Suggested by Simon Josefsson <jas@extundo.com>.
69425
69426 2005-09-20  Bruno Haible  <bruno@clisp.org>
69427
69428         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69429         func_modules_to_filelist, func_import, func_create_testdir): Make all
69430         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69431         change when gnulib-tool is invoked in a different locale.
69432
69433 2005-09-19  Simon Josefsson  <jas@extundo.com>
69434
69435         * m4/socklen.m4: Fix typo.
69436
69437 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69438
69439         Use a consistent style for including <config.h>.
69440         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69441         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69442         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69443         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69444         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69445         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69446         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69447         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69448         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69449         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69450         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69451         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69452         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69453         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69454         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69455         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69456         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69457         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69458         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69459         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69460         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69461         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69462         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69463         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69464         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69465         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69466         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69467         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69468         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69469         lib/xstrtoumax.c, lib/yesno.c:
69470         Standardize inclusion of config.h.
69471         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69472         lib/inttostr.h:  Removed inclusion of config.h from header files.
69473         * lib/inttostr.c:  Adjusted in-tree users.
69474         * lib/timespec.h: Remove superfluous warning to include config.h.
69475         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69476         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69477         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69478         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69479         config.h with HAVE_CONFIG_H.
69480
69481 2005-09-19  Jim Meyering  <jim@meyering.net>
69482
69483         * modules/pathmax (License): Change to LGPL.
69484
69485 2005-09-19  Derek Price  <derek@ximbiot.com>
69486
69487         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69488
69489 2005-09-19  Bruno Haible  <bruno@clisp.org>
69490
69491         * gnulib-tool (import): Provide default for --tests-base.
69492
69493 2005-09-19  Bruno Haible  <bruno@clisp.org>
69494
69495         * doc/quote.texi: New file, extracted from gnulib.texi.
69496         * doc/ctime.texi: New file, extracted from gnulib.texi.
69497         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69498         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69499         * doc/gnulib.texi: Include them.
69500
69501 2005-09-18  Bruno Haible  <bruno@clisp.org>
69502
69503         Portability fix.
69504         * gnulib-tool (func_readlink): New function.
69505         (func_ln_if_changed): Use it.
69506
69507 2005-09-18  Bruno Haible  <bruno@clisp.org>
69508
69509         * gnulib-tool: Support --with-tests also with --import.
69510         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69511         (func_import): Use variables $testsbase and $inctests. Emit a
69512         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69513         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69514         SUBDIRS += $testsdir.
69515         (func_create_testdir): Update.
69516
69517 2005-09-18  Bruno Haible  <bruno@clisp.org>
69518
69519         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69520         instead of $dry_run.
69521         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69522         (func_ln_if_changed): Don't handle dry-run here.
69523         (func_import): In dry-run mode, detect more precisely which actions
69524         would be performed, and don't use "...ing" verbs.
69525
69526 2005-09-18  Bruno Haible  <bruno@clisp.org>
69527
69528         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69529         (func_import): Use join on two temporary files instead of three nested
69530         loops, in order to determine which files are new or old.
69531
69532 2005-09-18  Bruno Haible  <bruno@clisp.org>
69533
69534         * gnulib-tool (func_import): Comment out code that spits out the
69535         new files with --dry-run.
69536
69537 2005-09-18  Bruno Haible  <bruno@clisp.org>
69538
69539         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69540
69541 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * lib/stat-time.h: New file.
69544         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69545         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69546         in a different way.
69547         (timespec_cmp): New function.
69548         * lib/utimecmp.c: Include stat-time.h.
69549         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69550         members exist, not on the obsolescent ST_MTIM_NSEC.
69551         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69552
69553 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69556
69557 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69558
69559         * MODULES.html.sh (File system functions): Add stat-time.
69560         * modules/stat-time: New file.
69561         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69562         is now done in a different way, by the stat-time module.
69563         * modules/utimecmp (Depends-on): Add stat-time.
69564
69565 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * m4/st_mtim.m4: Remove.  Superseded by...
69568         * m4/stat-time.m4: New file.
69569         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69570         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69571
69572 2005-09-15  Derek Price  <derek@ximbiot.com>
69573
69574         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69575
69576 2005-09-15  Derek Price  <derek@ximbiot.com>
69577
69578         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69579         * lib/regex_internal.c: Ditto, using this...
69580         (__GNUC_PREREQ): ...new macro.
69581         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69582         using...
69583         (__GNUC_PREREQ): ...this new macro.
69584
69585         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69586
69587 2005-09-15  Derek Price  <derek@ximbiot.com>
69588             Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69591         changes, consolidating in...
69592         * lib/regex_internal.h: ...this file.
69593
69594 2005-09-13  Jim Meyering  <jim@meyering.net>
69595
69596         * lib/canon-host.c: Filter through gnu indent and reword comments
69597         slightly.
69598         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69599
69600 2005-09-13  Derek Price  <derek@ximbiot.com>
69601
69602         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69603         failure.
69604         Reported by Jim Meyering  <jim@meyering.net>.
69605
69606 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69607
69608         * lib/base64.c: Typo.
69609         (base64_encode): Put b64str in initialized data section.
69610
69611 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         Merge glibc and coreutils changes into gnulib, plus a few
69614         extra fixes.
69615         * lib/md5.c: Use #error rather than a string.
69616         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69617         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69618         (__attribute__): Define to empty for non recent-GCC.
69619         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69620         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69621         Renamed from their non-__ counterparts, with new macros replacing
69622         them if not _LIBC.  Add __THROW attribute.
69623         (rol): Remove.
69624         (struct md5_ctx): Align buffer if using GCC.
69625         * lib/sha1.h (struct sha1_ctx): Likewise.
69626         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69627         The old name was backwards.
69628         (NOTSWAP): Remove; not used.
69629         (rol): New macro, moved here from md5.h.
69630         (sha1_process_block): Remove a FIXME that doesn't make sense.
69631
69632 2005-09-12  Derek Price  <derek@ximbiot.com>
69633
69634         Return usable errors from canon-host.
69635         * lib/canon-host.h: New file.
69636         * lib/canon-host.c (canon_host): Wrap...
69637         (canon_host_r): ...this new function, which now relies exclusively on
69638         getaddrinfo.
69639         (ch_strerror): New function.
69640         (last_cherror): New global.
69641         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69642         interface.
69643         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69644         void *.
69645         (freeaddrinfo): Free ai->ai_canonname when set.
69646
69647 2005-09-12  Derek Price  <derek@ximbiot.com>
69648
69649         Make canon-host require getaddrinfo.
69650         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69651         AC_LIBSOURCE canon-host.h.  Call...
69652         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69653         gl_GETADDRINFO.
69654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69655
69656 2005-09-12  Derek Price  <derek@ximbiot.com>
69657
69658         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69659         LGPL.
69660         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69661
69662 2005-09-12  Derek Price  <derek@ximbiot.com>
69663
69664         * lib/gai_strerror.c: Include config.h when available.  Include
69665         getaddrinfo.h before other headers to test interface.
69666         Reported by Larry Jones <lawrence.jones@ugs.com>.
69667
69668 2005-09-12  Derek Price  <derek@ximbiot.com>
69669             Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * modules/glob (Files): Add glob-libc.h.
69672
69673 2005-09-12  Derek Price  <derek@ximbiot.com>
69674             Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69677         glob_.h, glob-libc.h.
69678         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69679
69680 2005-09-12  Derek Price  <derek@ximbiot.com>
69681             Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69684         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69685         protecting things that should be done only in gnulib contexts.
69686         * lib/glob_.h: New file, containing only the glob things needed for
69687         gnulib.
69688         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69689         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69690         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69691         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69692         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69693         and to respect the namespace rules better.
69694
69695 2005-09-08  Simon Josefsson  <jas@extundo.com>
69696
69697         * modules/socklen: New file.
69698
69699 2005-09-08  Simon Josefsson  <jas@extundo.com>
69700
69701         * m4/socklen.m4: New file.
69702
69703 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69704
69705         * modules/utimens (Files): Add m4/utimbuf.m4, since
69706         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69707         Reported by Sergey Poznyakoff.
69708
69709 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69712         definitions, since that's the preferred style in glibc.
69713         Fix a minor spacing issue, and update copyright notice to match
69714         glibc's.
69715
69716 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69719
69720 2005-09-06  Simon Josefsson  <jas@extundo.com>
69721
69722         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69723         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69724
69725 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69728         warning.
69729
69730 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * config/srclist.txt: Add glibc bug 1302.
69733
69734 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         Change bitset word type from unsigned int to unsigned long int,
69737         as this has better performance on typical 64-bit hosts.
69738         Port bitset code to hosts with unusual word sizes.
69739         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69740         (build_collating_symbol):
69741         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69742         argument is a bitset.  This is merely a style issue, but it makes
69743         it clearer that an entire array is expected.
69744         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69745         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69746         Port to the case where bitset_word is not the same as unsigned int.
69747         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69748         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69749         Likewise.
69750         * lib/regexec.c (check_dst_limits_calc_pos_1,
69751         check_subexp_matching_top):
69752         (build_trtable, group_nodes_into_DFAstates):
69753         Likewise.
69754         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69755         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69756         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69757         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69758         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69759         * lib/regcomp.c (optimize_subexps, lower_subexp):
69760         Work even if bitset_word has holes in its bitwise representation.
69761         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69762         * lib/regexec.c (check_dst_limits_calc_pos_1,
69763         check_subexp_matching_top):
69764         Likewise.
69765         * lib/regex_internal.c (re_string_reconstruct):
69766         Don't assume UCHAR_MAX == 255.
69767         * lib/regex_internal.h (bitset_set_all): Likewise.
69768         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69769         All uses changed.
69770         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69771         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69772         All uses changed.
69773         (BITSET_WORD_MAX): New macro.
69774         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69775         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69776         (bitset_empty, bitset_copy):
69777         Prefer sizeof (bitset) to multiplying it out ourselves.
69778         (bitset_not_merge): Remove; unused.
69779         (bitset_contain): Return bool, not unsigned int with one bit on.
69780         All callers changed.
69781         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69782         alignment than re_node_set; do this by defining a new internal
69783         type struct dests_alloc and using it to allocate memory.
69784
69785 2005-09-05  Bruno Haible  <bruno@clisp.org>
69786
69787         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69788         links.
69789
69790 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69791
69792         * modules/size_max (Makefile.am): Add size_max.h
69793
69794 2005-09-04  Derek Price  <derek@ximbiot.com>
69795
69796         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69797
69798 2005-09-03  Simon Josefsson  <jas@extundo.com>
69799
69800         * gnulib-tool: Fix typo.
69801
69802 2005-09-03  Simon Josefsson  <jas@extundo.com>
69803
69804         * config/srclist.txt: Add glibc bug 1293.
69805
69806 2005-09-03  Derek Price  <derek@ximbiot.com>
69807
69808         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69809         From Larry Jones <lawrence.jones@ugs.com>.
69810
69811 2005-09-02  Simon Josefsson  <jas@extundo.com>
69812
69813         * modules/socklen: New file.
69814
69815 2005-09-02  Simon Josefsson  <jas@extundo.com>
69816
69817         * modules/havelib: New module.
69818
69819         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69820         Use havelib.
69821
69822 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         Check for arithmetic overflow when calculating sizes, to prevent
69825         some buffer-overflow issues.  These patches are conservative, in the
69826         sense that when I couldn't determine whether an overflow was possible,
69827         I inserted a run-time check.
69828         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69829         macros.
69830         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69831         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69832         (re_xnrealloc, re_x2nrealloc): New inline functions.
69833         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69834         parse_bracket_exp):
69835         (build_equiv_class, build_charclass): Check for arithmetic overflow
69836         in size expression calculations.
69837         * lib/regex_internal.c (re_string_realloc_buffers):
69838         (build_wcs_upper_buffer, re_node_set_add_intersect):
69839         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69840         (re_dfa_add_node, register_state): Likewise.
69841         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69842         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69843         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69844         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69845
69846 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69849         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69850
69851 2005-09-02  Bruno Haible  <bruno@clisp.org>
69852
69853         Support for lib vs. lib64 distinction on biarch platforms.
69854         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69855         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69857
69858 2005-09-02  Bruno Haible  <bruno@clisp.org>
69859
69860         * gnulib-tool (import): In the other first-use case, provide defaults
69861         as well.
69862
69863 2005-09-02  Bruno Haible  <bruno@clisp.org>
69864
69865         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69866         patches not yet found in the latest gettext release.
69867
69868 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69869
69870         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69871         to avoid a collision with bits/local_lim.h in glibc.
69872         All uses changed.  Problem reported by Dmitry V. Levin in
69873         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69874
69875         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69876         bugs in int versus size_t comparisons.
69877         (re_string_context_at): Fix bug where the code assumed that
69878         Idx is signed.
69879
69880         Use bool where appropriate.
69881         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69882         All callers changed.
69883         (calc_eclosure_iter): Likewise, for ROOT arg.
69884         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69885         (build_charclass_op): Likewise, for NON_MATCH arg.
69886         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69887         (re_string_construct_common): Likewise, for ICASE arg.
69888         * lib/regexec.c (re_search_2_stub, re_search_stub):
69889         Likewise, for RET_LEN arg.
69890         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69891         (set_regs): Likewise, for FL_BACKTRACK arg.
69892         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69893         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69894         (calc_eclosure_iter, parse_bracket_exp):
69895         Use bool for internal variables that are booleans.
69896         * lib/regexec.c (re_search_internal, check_matching,
69897         proceed_next_node):
69898         (set_regs, build_sifted_states, sift_states_bkref):
69899         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69900         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69901         (find_collation_sequence_value):
69902         Likewise.
69903         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69904         (re_node_set_compare):
69905         Return bool, not int. All callers changed.
69906         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69907         (build_trtable, check_node_accept): Likewise.
69908         * lib/regex_internal.h: Include stdbool.h.
69909
69910         Fix bugs uncovered when converting to bool.
69911         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69912         failure instead of charging ahead blindly.
69913         * lib/regex_internal.c (register_state): Likewise.
69914         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69915         for freeing internal storage.
69916         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69917         bitset pieces used as boolean, to avoid undefined behavior
69918         on hosts that do int overflow checking.
69919
69920 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * config/srclist.txt: Add glibc bugs 1285-1287.
69923
69924 2005-09-01  Jim Meyering  <jim@meyering.net>
69925
69926         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69927         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69928         Require gl_STAT_MACROS, too.
69929
69930 2005-09-01  Bruno Haible  <bruno@clisp.org>
69931
69932         * gnulib-tool (import): In the first-use case, provide defaults.
69933
69934 2005-09-01  Bruno Haible  <bruno@clisp.org>
69935
69936         * gnulib-tool (func_import): Remove the .tmp files.
69937
69938 2005-09-01  Bruno Haible  <bruno@clisp.org>
69939
69940         * gnulib-tool (func_import): Fix handling of symbolic links.
69941
69942 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69945         old glibc regex code mishandles strings longer than 2**31 bytes.
69946         This patch fixes this when the regex code is used in gnulib
69947         (i.e., outside glibc).
69948
69949         This patch should not affect the use of the regex code inside
69950         glibc.  No doubt this problem also needs to be handled for glibc
69951         as well, but the result will be an incompatible change to the
69952         glibc ABI, and the old ABI will have to be supported too.  That
69953         can be the the subject for another patch.
69954
69955         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69956         governing whether the rest of this patch is active.  By default,
69957         the macro is disabled and the patch has no effect.
69958         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69959         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69960         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69961         (re_match_2, re_set_registers): Use the new types.
69962         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69963         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69964         New macros.
69965         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69966         (re_string_context_at, bin_tree_t, re_dfastate_t):
69967         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69968         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69969         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69970         (re_string_char_size_at, re_string_wchar_at):
69971         (re_string_elem_size_at):
69972         Use the new types and macros to port to 64-bit hosts.
69973         Use unsigned types for internal values, so that the code
69974         mostly works even for arrays larger than SSIZE_MAX.
69975         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69976         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69977         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69978         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69979         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69980         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69981         (calc_inveclosure, parse_dup_op, build_range_exp):
69982         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69983         (fetch_number, create_token_tree, mark_opt_subexp):
69984         Likewise.
69985         * lib/regex_internal.c (re_string_construct_common,
69986         create_ci_newstate):
69987         (create_cd_newstate, re_string_allocate, re_string_construct):
69988         (re_string_realloc_buffers, build_wcs_upper_buffer):
69989         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69990         (re_string_reconstruct, re_string_peek_byte_case):
69991         (re_string_fetch_byte_case, re_string_context_at):
69992         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69993         (re_node_set_init_copy, re_node_set_add_intersect):
69994         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69995         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69996         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69997         (re_acquire_state, re_acquire_state_context, register_state):
69998         Likewise.
69999         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70000         search_cur_bkref_entry):
70001         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70002         (re_search_internal, re_search_2_stub, re_search_stub)
70003         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70004         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70005         (update_cur_sifted_state, check_dst_limits):
70006         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70007         (check_subexp_limits, sift_states_bkref, merge_state_array):
70008         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70009         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70010         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70011         (expand_bkref_cache, check_node_accept_bytes):
70012         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70013         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70014         (acquire_init_state_context, check_halt_node_context):
70015         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70016         (sift_states_backward, clean_state_log_if_needed):
70017         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70018         (find_recover_state, transit_state_sb, transit_state_mb):
70019         (transit_state_bkref, build_trtable, match_ctx_clean):
70020         Likewise.
70021         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70022         to work around an assumption that REG_MISSING is negative.
70023
70024         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70025         (seek_collating_symbol_entry) [defined _LIBC]:
70026         (lookup_collation_sequence_value) [defined _LIBC]:
70027         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70028         Use prototypes rather than old-style function definitions.
70029         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70030         (transit_state_sb) [0]:
70031         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70032
70033         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70034         rm_eo.
70035
70036         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70037         (optimize_subexps, lower_subexp):
70038         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70039         since the signed shift might overflow.  Use 1u<<31 instead.
70040         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70041         Likewise.
70042         * lib/regexec.c (check_dst_limits_calc_pos_1,
70043         check_subexp_matching_top): Likewise.
70044
70045         * lib/regcomp.c (optimize_subexps, lower_subexp):
70046         Use CHAR_BIT rather than 8, for clarity.
70047         * lib/regexec.c (check_dst_limits_calc_pos_1):
70048         (check_subexp_matching_top): Likewise.
70049         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70050         have to worry about portability issues when shifting it left.
70051         Remove no-longer-needed test for table_size > 0.
70052         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70053         in a word, as the resulting behavior is undefined.
70054         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70055         in one case, a <= should have been an <, and in another case the
70056         whole test was missing.
70057         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70058         the standard name CHAR_BIT.
70059         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70060         this is not true on one's complement and signed-magnitude hosts.
70061
70062         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70063         next_last_offset.
70064         (struct re_dfa_t): Remove unused member states_alloc.
70065         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70066
70067 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70070         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70071         and large-file glibc and in 32-bit large-file Solaris.
70072
70073 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70076         lengths fit in regoff_t; this isn't true if regoff_t is the same
70077         width as size_t.
70078         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70079         (= START + RANGE) instead of RANGE.  This avoids overflow
70080         problems when regoff_t is the same width as size_t.
70081         All callers changed.
70082         (re_search_2_stub): Check for overflow when adding the
70083         sizes of the two strings.
70084         (re_search_stub): Check for overflow when adding START
70085         to RANGE; if it occurs, substitute the extreme value.
70086
70087 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70090
70091 2005-08-31  Jim Meyering  <jim@meyering.net>
70092
70093         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70094         a pointer-to-const.
70095         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70096         (register_state): Likewise.
70097         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70099         (group_nodes_into_DFAstates): Likewise.
70100
70101 2005-08-31  Jim Meyering  <jim@meyering.net>
70102
70103         * check-module: Add a FIXME comment.
70104
70105 2005-08-31  Eric Blake  <ebb9@byu.net>
70106
70107         * modules/unistd-safer (Files): Add unistd--.h.
70108         * modules/stdio-safer (Files): Add stdio--.h.
70109
70110 2005-08-31  Derek Price  <derek@ximbiot.com>
70111
70112         * lib/getdelim.c (getdelim): Return EOF on EOF.
70113         Reported by Larry Jones <lawrence.jones@ugs.com>.
70114
70115 2005-08-31  Bruno Haible  <bruno@clisp.org>
70116
70117         Avoid unnecessary diffs in the generated lib/Makefile.am.
70118         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70119         the generated files.
70120         (func_import): Don't set cmd.
70121
70122 2005-08-31  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/strstr.c: Include <stddef.h>, for NULL.
70125         * lib/strcasestr.c: Likewise.
70126         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70127
70128 2005-08-31  Bruno Haible  <bruno@clisp.org>
70129
70130         * gnulib-tool: New option --macro-prefix.
70131         (func_import): Use macro_prefix.
70132         (import): Handle option --macro-prefix.
70133
70134 2005-08-31  Bruno Haible  <bruno@clisp.org>
70135
70136         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70137         Also use new variables cached_lgpl, cached_libtool.
70138
70139 2005-08-31  Bruno Haible  <bruno@clisp.org>
70140
70141         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70142         always instantiating them.
70143
70144 2005-08-31  Bruno Haible  <bruno@clisp.org>
70145
70146         * gnulib-tool (func_import): Read the previous cached settings
70147         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70148         earlier added by gnulib but are now dropped. Warn when a gnulib file
70149         overwrites a non-gnulib file.
70150
70151 2005-08-31  Bruno Haible  <bruno@clisp.org>
70152
70153         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70154         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70155         projects that don't keep autogenerated files in CVS. Put into
70156         actioncmd only the specified modules, not the transitive closure.
70157
70158 2005-08-31  Bruno Haible  <bruno@clisp.org>
70159
70160         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70161         Create directories that shall be filled.
70162         (import): Don't look for gl_* macros in configure.ac. Recurse across
70163         all directories containing a gnulib-cache.m4 files, if meaningful.
70164
70165 2005-08-31  Bruno Haible  <bruno@clisp.org>
70166
70167         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70168         (import): Set seen_libtool when we see gl_LIBTOOL.
70169
70170 2005-08-31  Bruno Haible  <bruno@clisp.org>
70171
70172         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70173         declaration macro definitions from generated gnulib.m4.
70174
70175 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70176
70177         * lib/iconvme.h: Add prototype for iconv_alloc.
70178
70179 2005-08-29  Simon Josefsson  <jas@extundo.com>
70180
70181         * lib/iconvme.c: Fix errno.
70182
70183 2005-08-29  Bruno Haible  <bruno@clisp.org>
70184
70185         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70186         that it works when the directory contains spaces.
70187
70188 2005-08-29  Bruno Haible  <bruno@clisp.org>
70189
70190         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70191
70192 2005-08-29  Bruno Haible  <bruno@clisp.org>
70193
70194         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70195         Emit more advice.
70196
70197 2005-08-29  Bruno Haible  <bruno@clisp.org>
70198         and Stepan Kasal  <kasal@ucw.cz>
70199
70200         * check-module: If more parameters are given, check each of them
70201         separately; add more exceptions, as noted by Jim Meyering.
70202         (check_module): New procedure.
70203         (%exempt_header): Now contains all exceptions.
70204
70205 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70206
70207         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70208
70209 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70210
70211         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70212
70213 2005-08-28  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/gnulib-tool.m4: New file.
70216
70217 2005-08-27  Jim Meyering  <jim@meyering.net>
70218
70219         * modules/unistd-safer (Files): Add pipe-safer.c.
70220         * modules/fcntl-safer (Files): Add creat-safer.c.
70221
70222 2005-08-27  Jim Meyering  <jim@meyering.net>
70223
70224         * m4/stdlib-safer.m4: New file.  From coreutils.
70225         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70226         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70227         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70228         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70229         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70230
70231 2005-08-27  Jim Meyering  <jim@meyering.net>
70232
70233         * lib/fopen-safer.c: Merge minor changes from coreutils.
70234         * lib/dup-safer.c: Likewise.
70235         * lib/fd-safer.c: Likewise.
70236
70237         Merge from coreutils.
70238         * lib/stdio--.h: New file.
70239         * lib/stdlib--.h: New file.
70240         * lib/mkstemp-safer.c: New file.
70241
70242         GNU tar needs these.
70243         * lib/pipe-safer.c: New file.
70244         * lib/creat-safer.c: New file.
70245         * lib/fcntl--.h (creat): Define to creat_safer.
70246         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70247         * lib/unistd--.h (pipe): Define to pipe_safer.
70248         * lib/unistd-safer.h: Declare pipe_safer.
70249
70250 2005-08-26  Simon Josefsson  <jas@extundo.com>
70251
70252         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70253         Haible <bruno@clisp.org>.
70254
70255 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70256
70257         * lib/regex_internal.h: Remove all references to
70258         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70259         or better.
70260         (bitset_not, bitset_merge, bitset_not_merge):
70261         (bitset_mask, re_string_allocate, re_string_construct):
70262         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70263         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70264         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70265         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70266         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70267         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70268         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70269         (re_acquire_state_context):
70270         Remove unnecessary forward decls.
70271         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70272         Put __attribute at function definition,
70273         now that the function decl has been removed.
70274         * lib/regex_internal.c (re_string_peek_byte_case):
70275         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70276         Likewise.
70277
70278 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70279
70280         * m4/regex.m4: Add AC_PREREQ(2.50).
70281         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70282
70283 2005-08-25  Simon Josefsson  <jas@extundo.com>
70284
70285         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70286         __fsetlocking.
70287
70288 2005-08-25  Simon Josefsson  <jas@extundo.com>
70289
70290         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70291         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70292         GLIBC specific code.
70293
70294 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         Make regex safe for g++.  This fixes one real bug (an "err"
70297         that should have been "*err").  g++ problem reported by
70298         Sam Steingold.
70299         * lib/regex_internal.h (re_calloc): New macro, consistent with
70300         re_malloc etc.  All callers of calloc changed to use re_calloc.
70301         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70302         not int.  All callers changed.
70303         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70304         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70305         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70306         (find_recover_state): Change "err" to "*err"; this fixes what
70307         appears to be a real bug.
70308         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70309         versus int.
70310
70311 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         * modules/regex (Depends-on): Add malloc, since the code
70314         assumes that !malloc(0) means failure.
70315
70316 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70317
70318         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70319
70320         alloca modernization/simplification for regex.
70321         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70322         needs to be at the start of the file, and can be moved into
70323         regex_internal.h and simplified.
70324         * lib/regex_internal.h: Include <alloca.h>.
70325         (__libc_use_alloca) [!defined _LIBC]: New macro.
70326         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70327         now works outside glibc.
70328
70329 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * config/srclist.txt: Add glibc bugs 1241, 1245.
70332
70333 2005-08-25  Jim Meyering  <jim@meyering.net>
70334
70335         * lib/open-safer.c: Include <config.h>.
70336         Otherwise, we'd lose LARGEFILE support in any file using
70337         e.g. "fcntl--.h"
70338
70339 2005-08-25  Bruno Haible  <bruno@clisp.org>
70340
70341         * m4/minmax.m4: Require autoconf 2.52.
70342         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70343         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70344         alternatives of translit over the alphabet.
70345         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70346
70347 2005-08-24  Simon Josefsson  <jas@extundo.com>
70348
70349         * tests/test-getpass.c: New file.
70350
70351 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70352
70353         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70354         for GNU regex features.
70355
70356 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70359         * lib/regex.h (regerror): Likewise.
70360
70361         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70362         requires this.  (The code never needed it.)
70363
70364         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70365         All uses of recently-renamed identifiers changed to use the new,
70366         POSIX-compliant names.  The code will build and run just fine
70367         without these changes, but it's better to eat our own dog food
70368         and use the standard-conforming names.
70369
70370         * lib/regex.h: Fix a multitude of POSIX name space violations.
70371         These changes have an effect only for programs that define
70372         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70373         do not change anything for programs compiled in the normal way.
70374         Also, there is no effect on the ABI.
70375
70376         (_REGEX_SOURCE): New macro.
70377         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70378         defined and _GNU_SOURCE is not; this fixes a name space violation.
70379
70380         Rename the following macros to obey POSIX requirements.
70381         The old names are still visible as macros if _REGEX_SOURCE is defined.
70382         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70383         RE_BACKSLASH_ESCAPE_IN_LISTS.
70384         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70385         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70386         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70387         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70388         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70389         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70390         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70391         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70392         (REG_INTERVALS): renamed from RE_INTERVALS.
70393         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70394         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70395         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70396         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70397         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70398         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70399         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70400         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70401         RE_UNMATCHED_RIGHT_PAREN_ORD.
70402         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70403         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70404         (REG_DEBUG): renamed from RE_DEBUG.
70405         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70406         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70407         unusual, since we can't clash with the POSIX REG_ICASE.
70408         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70409         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70410         (REG_NO_SUB): renamed from RE_NO_SUB.
70411         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70412         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70413         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70414         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70415         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70416         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70417         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70418         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70419         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70420         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70421         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70422         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70423         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70424         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70425         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70426         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70427         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70428         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70429         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70430         (REG_FIXED): Renamed from REGS_FIXED.
70431         (REG_NREGS): Renamed from RE_NREGS.
70432
70433         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70434         of other REG_* macros, since POSIX says the user is allowed to
70435         #undef these macros selectively.
70436
70437         (reg_errcode_t): Update comment stating what other tables need
70438         to be consistent.
70439
70440         Rename the following enum values to obey POSIX requirements.
70441         The old names are still visible as macros.
70442         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70443         is not defined, since GNU is supposed to be a superset of POSIX as
70444         much as possible, and since we want reg_errcode_t to be a signed
70445         type for implementation consistency.
70446         (_REG_NOERROR): Renamed from REG_NOERROR.
70447         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70448         (_REG_BADPAT): Renamed from REG_BADPAT.
70449         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70450         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70451         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70452         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70453         (_REG_EBRACK): Renamed from REG_EBRACK.
70454         (_REG_EPAREN): Renamed from REG_EPAREN.
70455         (_REG_EBRACE): Renamed from REG_EBRACE.
70456         (_REG_BADBR): Renamed from REG_BADBR.
70457         (_REG_ERANGE): Renamed from REG_ERANGE.
70458         (_REG_ESPACE): Renamed from REG_ESPACE.
70459         (_REG_BADRPT): Renamed from REG_BADRPT.
70460         (_REG_EEND): Renamed from REG_EEND.
70461         (_REG_ESIZE): Renamed from REG_ESIZE.
70462         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70463         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70464         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70465         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70466         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70467
70468         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70469         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70470         changed.  But support the old name if the new one is not defined
70471         and if _REGEX_SOURCE.
70472
70473         Change the following member names in struct re_pattern_buffer.
70474         The old names are still supported if !_REGEX_SOURCE.
70475         The new names are always supported, regardless of _REGEX_SOURCE.
70476         (re_buffer): Renamed from buffer.
70477         (re_allocated): Renamed from allocated.
70478         (re_used): Renamed from used.
70479         (re_syntax): Renamed from syntax.
70480         (re_fastmap): Renamed from fastmap.
70481         (re_translate): Renamed from translate.
70482         (re_can_be_null): Renamed from can_be_null.
70483         (re_regs_allocated): Renamed from regs_allocated.
70484         (re_fastmap_accurate): Renamed from fastmap_accurate.
70485         (re_no_sub): Renamed from no_sub.
70486         (re_not_bol): Renamed from not_bol.
70487         (re_not_eol): Renamed from not_eol.
70488         (re_newline_anchor): Renamed from newline_anchor.
70489
70490         Change the following member names in struct re_registers.
70491         The old names are still supported if !_REGEX_SOURCE.
70492         The new names are always supported, regardless of _REGEX_SOURCE.
70493         (rm_num_regs): Renamed from num_regs.
70494         (rm_start): Renamed from start.
70495         (rm_end): Renamed from end.
70496
70497         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70498         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70499         Prepend __ to parameter names.
70500
70501         Undo yesterday's changes.
70502
70503 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70506         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70507         lib/regex.c.
70508
70509 2005-08-24  Jim Meyering  <jim@meyering.net>
70510
70511         Sync from coreutils.
70512         * m4/fcntl-safer.m4: New file.
70513
70514         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70515         and object files for this module.
70516
70517 2005-08-24  Jim Meyering  <jim@meyering.net>
70518
70519         Sync from coreutils.
70520         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70521
70522 2005-08-24  Jim Meyering  <jim@meyering.net>
70523
70524         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70525         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70526
70527 2005-08-24  Jim Meyering  <jim@meyering.net>
70528
70529         * modules/fcntl-safer: New module.
70530         * modules/fts (Depends-on): Add fcntl-safer.
70531         * MODULES.html.sh (File descriptor based Input/Output):
70532         Add fcntl-safer.
70533
70534 2005-08-24  Bruno Haible  <bruno@clisp.org>
70535
70536         Support for unit test modules.
70537         * modules/README: Mention tests modules.
70538         * modules/TEMPLATE-TESTS: New file.
70539         * gnulib-tool: New options --extract-tests-module, --with-tests and
70540         --tests-base (unused for the moment).
70541         (testsbase, inctests): New variables.
70542         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70543         (func_verify_module): Exclude TEMPLATE-TESTS.
70544         (func_verify_nontests_module, func_verify_tests_module): New functions.
70545         (func_get_dependencies): Add implicit dependency for tests modules.
70546         (func_get_tests_module): New function.
70547         (func_modules_transitive_closure): When --with-tests was specified,
70548         include the unit tests as well, unless explicitly avoided.
70549         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70550         (func_emit_tests_Makefile_am): New function.
70551         (func_create_testdir): When --with-tests was specified, emit a
70552         tests/ directory.
70553         * MODULES.html.sh (Future developments): Update.
70554
70555 2005-08-24  Bruno Haible  <bruno@clisp.org>
70556
70557         * modules/tls-tests: New file.
70558         * tests/test-tls.c: New file, from GNU gettext.
70559
70560 2005-08-24  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/lock-tests: New file.
70563         * tests/test-lock.c: New file, from GNU gettext.
70564
70565 2005-08-24  Bruno Haible  <bruno@clisp.org>
70566
70567         * lib/lock.h: Add multiple inclusion guard.
70568         * lib/tls.h: Add multiple inclusion guard.
70569
70570 2005-08-24  Bruno Haible  <bruno@clisp.org>
70571
70572         * gnulib-tool: Add support for the --aux-dir option to
70573         --create-testdir, --create-megatestdir, --test, --megatest.
70574         (func_create_testdir, func_create_megatestdir): Optionally emit a
70575         AC_CONFIG_AUX_DIR directive.
70576         (create-testdir, create-megatestdir, test, megatest): Provide a
70577         default value for $auxdir.
70578
70579 2005-08-24  Bruno Haible  <bruno@clisp.org>
70580
70581         * gnulib-tool (import): Use compound statement instead of subshell
70582         where possible.
70583
70584 2005-08-24  Bruno Haible  <bruno@clisp.org>
70585
70586         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70587
70588 2005-08-24  Bruno Haible  <bruno@clisp.org>
70589
70590         * gnulib-tool (func_version): Update.
70591
70592 2005-08-24  Bruno Haible  <bruno@clisp.org>
70593
70594         * gnulib-tool (func_import, func_create_testdir,
70595         func_create_megatestdir): Quote all autoconf macro arguments.
70596
70597 2005-08-24  Bruno Haible  <bruno@clisp.org>
70598
70599         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70600         option --force, because --force causes the aclocal.m4 of each
70601         subdirectory to be newer than the corresponding config.h.in.
70602
70603 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70606         All contents moved to gl_REGEX.
70607         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70608         assume that it does.
70609
70610 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         * lib/regex.h (REG_NOSYS)
70613         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70614         Define, since POSIX requires it as of 2001.
70615         (_REG_ENOSYS)
70616         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70617         New private symbol, used to keep the enum signed in all cases.
70618         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70619         Youngman in
70620         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70621
70622         * lib/regex_internal.c (re_string_skip_chars, register_state):
70623         (calc_state_hash):
70624         Remove forward decls; no longer needed now that we use prototypes.
70625         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70626         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70627         (clean_state_log_if_needed): Likewise.
70628
70629 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         * config/srclist.txt: Add glibc bugs 1231-1233.
70632
70633 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70634
70635         Fix problems reported by Sam Steingold in
70636         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70637         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70638         assumed that reg_errcode_t is a signed type, which is not
70639         necessarily true if _XOPEN_SOURCE is not defined.
70640         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70641         since some compilers warn about it otherwise.
70642
70643 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70646         (init_word_char, create_initial_state, duplicate_node_closure):
70647         (fetch_token, peek_token_bracket, build_range_exp):
70648         (build_collating_symbol): Remove forward decls; no longer needed
70649         now that we use prototypes.
70650
70651         * lib/regcomp.c:
70652         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70653         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70654         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70655         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70656         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70657         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70658         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70659         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70660         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70661         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70662         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70663         (build_charclass, build_charclass_op, fetch_number, create_tree):
70664         (create_token_tree, mark_opt_subexp, duplicate_tree):
70665         Use prototypes rather than old-style definitions.
70666
70667         * lib/regex_internal.c:
70668         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70669         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70670         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70671         (re_string_reconstruct, re_string_peek_byte_case):
70672         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70673         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70674         (re_node_set_init_copy, re_node_set_add_intersect):
70675         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70676         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70677         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70678         (re_acquire_state, re_acquire_state_context, register_state):
70679         (create_ci_newstate, create_cd_newstate, free_state):
70680         Likewise.
70681         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70682         re_search_2):
70683         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70684         (re_search_internal, prune_impossible_nodes):
70685         (acquire_init_state_context, check_matching, static):
70686         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70687         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70688         (update_regs, sift_states_backward, build_sifted_states):
70689         (clean_state_log_if_needed, merge_state_array):
70690         (update_cur_sifted_state, add_epsilon_src_nodes):
70691         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70692         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70693         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70694         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70695         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70696         (check_arrival, check_arrival_add_next_nodes):
70697         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70698         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70699         (check_node_accept_bytes, check_node_accept, extend_buffers):
70700         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70701         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70702         (sift_ctx_init):
70703         Likewise.
70704
70705         * lib/regex_internal.h:
70706         (re_string_allocate, re_string_construct, re_string_reconstruct):
70707         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70708         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70709         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70710         (re_string_context_at, re_string_peek_byte_case):
70711         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70712         is defined, since we now use prototypes always.
70713
70714         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70715         C89 or better.  All uses removed.
70716
70717 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * config/srclist.txt: Add glibc bugs 1220-1227.
70720
70721 2005-08-20  Jim Meyering  <jim@meyering.net>
70722
70723         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70724         of unused local, dfa.
70725
70726 2005-08-20  Bruno Haible  <bruno@clisp.org>
70727
70728         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70729
70730 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70733         (re_node_set_insert_last, re_dfa_add_node):
70734         Rename local variables to avoid GCC shadowing warnings.
70735
70736 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70737
70738         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70739         [defined lint]: Suppress bogus uninitialized-variable warnings.
70740
70741         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70742         and let the caller return REG_ESPACE if out of space.  This
70743         removes an uninitialied-variable warning with GCC 4.0.1, and also
70744         avoids taking the address of a local variable.  All callers
70745         changed.
70746
70747 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70750         $LIBCSRC/posix/regexec.c.
70751         Add glibc bug 1217 for regcomp.c.
70752
70753 2005-08-19  Jim Meyering  <jim@meyering.net>
70754
70755         * lib/regexec.c (proceed_next_node): Redo local variables to
70756         avoid GCC shadowing warnings.
70757
70758 2005-08-18  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/strstr.c (strstr): Fix return value in multibyte case.
70761         * lib/strcasestr.c (strcasestr): Likewise.
70762
70763 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70766
70767 2005-08-17  Jim Meyering  <jim@meyering.net>
70768
70769         Make the %s format (seconds since the epoch) work for a negative
70770         number and when used with a zero-padded field width, e.g. %015s.
70771
70772         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70773         label so that it precedes the code to set `digits'.  Otherwise,
70774         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70775         print `00-22'.  Now, it prints `-0022', as it should.
70776
70777 2005-08-17  Bruno Haible  <bruno@clisp.org>
70778
70779         * modules/strstr (Files): Add m4/mbrtowc.m4.
70780         (Depends-on): Add mbuiter.
70781
70782 2005-08-17  Bruno Haible  <bruno@clisp.org>
70783
70784         * modules/strcasestr: New file.
70785         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70786         strcasestr.
70787
70788 2005-08-17  Bruno Haible  <bruno@clisp.org>
70789
70790         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70791
70792 2005-08-17  Bruno Haible  <bruno@clisp.org>
70793
70794         * modules/mbuiter: New file.
70795         * MODULES.html.sh (Extended multibyte and wide character utilities):
70796         Add mbuiter.
70797
70798 2005-08-17  Bruno Haible  <bruno@clisp.org>
70799
70800         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70801         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70802
70803 2005-08-17  Bruno Haible  <bruno@clisp.org>
70804
70805         * m4/strcasestr.m4: New file.
70806
70807 2005-08-17  Bruno Haible  <bruno@clisp.org>
70808
70809         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70810         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70811
70812 2005-08-17  Bruno Haible  <bruno@clisp.org>
70813
70814         * lib/strcasestr.h: New file.
70815         * lib/strcasestr.c: New file.
70816
70817 2005-08-17  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/strcasecmp.c: Use mbuiter.h.
70820
70821 2005-08-17  Bruno Haible  <bruno@clisp.org>
70822
70823         * lib/mbuiter.h: New file.
70824
70825 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70828         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70829         and gl_GETOPT are both invoked via different paths (as happens
70830         with GNU tar CVS because it uses both argp and getopt), the former
70831         wins.
70832
70833 2005-08-16  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/tls: New file.
70836         * MODULES.html.sh (Multithreading): Add tls.
70837
70838 2005-08-16  Bruno Haible  <bruno@clisp.org>
70839
70840         * modules/strnlen1: New file.
70841         * MODULES.html.sh (String handling): Add strnlen1.
70842
70843 2005-08-16  Bruno Haible  <bruno@clisp.org>
70844
70845         * modules/strcase (Files): Add m4/mbrtowc.m4.
70846         (Depends-on): Add strnlen1, mbchar.
70847
70848 2005-08-16  Bruno Haible  <bruno@clisp.org>
70849
70850         * modules/mbiter: New file.
70851         * MODULES.html.sh (Extended multibyte and wide character utilities):
70852         Add mbiter.
70853
70854 2005-08-16  Bruno Haible  <bruno@clisp.org>
70855
70856         * modules/mbfile: New file.
70857         * MODULES.html.sh (Extended multibyte and wide character utilities):
70858         Add mbfile.
70859
70860 2005-08-16  Bruno Haible  <bruno@clisp.org>
70861
70862         * modules/mbchar: New file.
70863         * MODULES.html.sh (Extended multibyte and wide character utilities):
70864         New section.
70865
70866 2005-08-16  Bruno Haible  <bruno@clisp.org>
70867
70868         * m4/tls.m4: New file, from GNU gettext.
70869
70870 2005-08-16  Bruno Haible  <bruno@clisp.org>
70871
70872         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70873         always.
70874         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70875
70876 2005-08-16  Bruno Haible  <bruno@clisp.org>
70877
70878         * m4/mbiter.m4: New file.
70879
70880 2005-08-16  Bruno Haible  <bruno@clisp.org>
70881
70882         * m4/mbfile.m4: New file.
70883
70884 2005-08-16  Bruno Haible  <bruno@clisp.org>
70885
70886         * m4/mbchar.m4: New file.
70887
70888 2005-08-16  Bruno Haible  <bruno@clisp.org>
70889
70890         * lib/tls.h: New file, from GNU gettext.
70891         * lib/tls.c: New file, from GNU gettext.
70892
70893 2005-08-16  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/strnlen1.h: New file.
70896         * lib/strnlen1.c: New file.
70897
70898 2005-08-16  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70901         (mbi_init): Update.
70902         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70903         NUL byte, not after it.
70904
70905 2005-08-16  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/strcase.h (strcasecmp): Add note in comments.
70908         * lib/strncasecmp.c: Use code from strcasecmp.c.
70909         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70910         (strcasecmp): Work correctly in multibyte locales.
70911
70912 2005-08-16  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/mbiter.h: New file.
70915
70916 2005-08-16  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/mbfile.h: New file.
70919
70920 2005-08-16  Bruno Haible  <bruno@clisp.org>
70921
70922         * lib/mbchar.h: New file.
70923         * lib/mbchar.c: New file.
70924
70925 2005-08-16  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70928         the valid ones. Makes the comparison operations transitive:
70929         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70930         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70931
70932 2005-08-15  Simon Josefsson  <jas@extundo.com>
70933
70934         * modules/ssize_t (License): Change to 'unlimited'.
70935
70936         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70937
70938 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70941         Add comments for each pending glibc patch.
70942
70943 2005-08-15  Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70946         __cplusplus is defined.
70947
70948 2005-08-14  Jim Meyering  <jim@meyering.net>
70949
70950         Sync from coreutils.
70951
70952         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70953         Use the hash-table-based cycle-detection code not just when
70954         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70955         Reported by James Youngman in
70956         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70957         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70958         FTS_TIGHT_CYCLE_CHECK.
70959         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70960         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70961         once again.
70962         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70963         * lib/fts.c (fd_safer): Remove decl.
70964         Include fcntl--.h rather than unistd-safer.h
70965         (fts_safe_changedir): Don't call fd_safer; no longer needed
70966         now that we include fcntl--.h.
70967
70968 2005-08-12  Simon Josefsson  <jas@extundo.com>
70969
70970         * modules/getndelim2: Use ssize_t module.
70971         * modules/getnline: Likewise.
70972         * modules/safe-read: Likewise.
70973         * modules/xreadlink: Likewise.
70974
70975         * modules/ssize_t: New file.
70976
70977 2005-08-12  Simon Josefsson  <jas@extundo.com>
70978
70979         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70980
70981 2005-08-12  Simon Josefsson  <jas@extundo.com>
70982
70983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70984         ssize_t.
70985
70986 2005-08-12  Simon Josefsson  <jas@extundo.com>
70987
70988         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70989         readline, getdelim and check_version.
70990         (Support for systems lacking ISO C 99: Sizes of integer types):
70991         Add size_max.
70992
70993 2005-08-12  Bruno Haible  <bruno@clisp.org>
70994
70995         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70996
70997 2005-08-11  Simon Josefsson  <jas@extundo.com>
70998
70999         * modules/readline: New file.
71000
71001         * modules/strnlen (Files): Add strnlen.h.
71002
71003 2005-08-11  Simon Josefsson  <jas@extundo.com>
71004
71005         * m4/readline.m4: New file.
71006
71007 2005-08-11  Simon Josefsson  <jas@extundo.com>
71008
71009         * lib/readline.h, readline.c: New file.
71010
71011 2005-08-11  Simon Josefsson  <jas@extundo.com>
71012
71013         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71014         gl_AVOID.
71015
71016 2005-08-11  Bruno Haible  <bruno@clisp.org>
71017
71018         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71019
71020 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71021
71022         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71023
71024 2005-08-10  Simon Josefsson  <jas@extundo.com>
71025
71026         * tests/test-iconvme.c: New file.
71027
71028 2005-08-10  Simon Josefsson  <jas@extundo.com>
71029
71030         * m4/strnlen.m4: New file.
71031
71032         * m4/strndup.m4: Don't check for strnlen declaration, done in
71033         strnlen.m4.
71034
71035 2005-08-10  Simon Josefsson  <jas@extundo.com>
71036
71037         * lib/strndup.c: Use strnlen.h.
71038
71039         * lib/strnlen.h: New file.
71040
71041 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71042
71043         * README: Typos.
71044
71045 2005-08-02  Simon Josefsson  <jas@extundo.com>
71046
71047         * modules/readline: New file.
71048
71049 2005-08-02  Simon Josefsson  <jas@extundo.com>
71050
71051         * modules/getdelim: New file.
71052
71053         * modules/getline: Rewrite, don't use getndelim2.
71054
71055 2005-08-02  Simon Josefsson  <jas@extundo.com>
71056
71057         * m4/getline.m4: Separate out getdelim stuff into separate module.
71058
71059         * m4/getdelim.m4: New file.
71060
71061 2005-08-02  Simon Josefsson  <jas@extundo.com>
71062
71063         * lib/getline.h, getline.c: Rewrite.
71064
71065         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71066
71067 2005-07-31  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/lock.h (gl_lock_initializer): New macro.
71070         (gl_lock_define_initialized): Use it.
71071         (gl_rwlock_initializer): New macro.
71072         (gl_rwlock_define_initialized): Use it.
71073         (gl_recursive_lock_initializer): New macro.
71074         (gl_recursive_lock_define_initialized): Use it.
71075
71076 2005-07-30  Karl Berry  <karl@gnu.org>
71077
71078         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71079         Report from Ben Pfaff, regarding getopt.
71080
71081 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71084         normal way.
71085         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71086         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71087         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71088         (gl_GETOPT): Use the new macros.  Most of the implementation
71089         is moved to the new macros.  This is for programs like Emacs
71090         that don't want all the functionality of gl_GETOPT.
71091
71092 2005-07-26  Bruno Haible  <bruno@clisp.org>
71093
71094         * m4/lock.m4: Update from GNU gettext.
71095
71096 2005-07-26  Bruno Haible  <bruno@clisp.org>
71097
71098         * lib/lock.h: Update from GNU gettext.
71099         * lib/lock.c: Update from GNU gettext.
71100
71101 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71104         obsolescent AC_TRY_RUN.  Include the default includes files, for
71105         'exit'.
71106
71107 2005-07-24  Bruno Haible  <bruno@clisp.org>
71108
71109         * modules/visibility: New file.
71110         * MODULES.html.sh (Misc): Add visibility.
71111
71112 2005-07-24  Bruno Haible  <bruno@clisp.org>
71113
71114         * m4/visibility.m4: New file.
71115
71116 2005-07-24  Bruno Haible  <bruno@clisp.org>
71117
71118         * doc/visibility.texi: New file.
71119
71120 2005-07-22  Bruno Haible  <bruno@clisp.org>
71121
71122         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71123         $(ALLOCA_H), redundant through BUILT_SOURCES.
71124         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71125         redundant through BUILT_SOURCES.
71126         * modules/byteswap (Makefile.am): Remove explicit dependency on
71127         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71128         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71129         $(FNMATCH_H), redundant through BUILT_SOURCES.
71130         * modules/getopt (Makefile.am): Remove explicit dependency on
71131         $(GETOPT_H), redundant through BUILT_SOURCES.
71132         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71133         redundant through BUILT_SOURCES.
71134         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71135         redundant through BUILT_SOURCES.
71136         * modules/stdbool (Makefile.am): Remove explicit dependency on
71137         $(STDBOOL_H), redundant through BUILT_SOURCES.
71138         * modules/stdint (Makefile.am): Remove explicit dependency on
71139         $(STDINT_H), redundant through BUILT_SOURCES.
71140         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71141         Remove explicit dependency on $(SYSEXITS_H).
71142         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71143
71144 2005-07-18  Simon Josefsson  <jas@extundo.com>
71145
71146         * lib/check-version.c (check_version): Accept identical versions too.
71147
71148 2005-07-18  Bruno Haible  <bruno@clisp.org>
71149
71150         * modules/lock: New file.
71151         * MODULES.html.sh (Multithreading): New section.
71152
71153 2005-07-18  Bruno Haible  <bruno@clisp.org>
71154
71155         * m4/lock.m4: New file, from GNU gettext.
71156
71157 2005-07-18  Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/lock.h: New file, from GNU gettext.
71160         * lib/lock.c: New file, from GNU gettext.
71161
71162 2005-07-18  Bruno Haible  <bruno@clisp.org>
71163
71164         * lib/lock.h (gl_once_t): New type.
71165         (gl_once_define, gl_once): New macros.
71166         * lib/lock.c (fresh_once): New variable.
71167         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71168         functions.
71169
71170 2005-07-16  Simon Josefsson  <jas@extundo.com>
71171
71172         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71173         workaround, suggested by Bruno.
71174
71175 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         * modules/xalloc (Depends-on): Add xalloc-die.
71178         * modules/xvasprintf (Depends-on): Add xalloc-die.
71179
71180 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71183         with a minor change.
71184
71185 2005-07-15  Bruno Haible  <bruno@clisp.org>
71186
71187         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71188         When using lib/poll.c, define poll as rpl_poll.
71189
71190 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * modules/argp (Depends-on): Remove unlocked-io.
71193
71194 2005-07-14  Derek Price  <derek@ximbiot.com>
71195
71196         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71197         for glob symlink bug.
71198
71199 2005-07-14  Bruno Haible  <bruno@clisp.org>
71200
71201         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71202         Instead, test for *_unlocked function declarations directly.
71203
71204 2005-07-11  Simon Josefsson  <jas@extundo.com>
71205
71206         * modules/size_max: New file.
71207
71208         * modules/xsize: Depend on size_max module for size_max.m4.
71209
71210 2005-07-11  Simon Josefsson  <jas@extundo.com>
71211
71212         * lib/size_max.h: New file.
71213
71214 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71217         copyright symbol and the year.
71218         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71219         (version_etc_va): Use parameterized copyright notice.
71220         Reword to conform to the current GNU coding standards.
71221
71222 2005-07-11  Karl Berry  <karl@gnu.org>
71223
71224         * doc/gnulib.texi (Quoting): new node.
71225         (Initial import): more info, from Patrice.
71226
71227 2005-07-11  Bruno Haible  <bruno@clisp.org>
71228
71229         * gnulib-tool (func_usage): Document option --avoid.
71230         (Command line options): Handle --avoid.
71231         (func_acceptable): New function.
71232         (func_modules_transitive_closure): Use it.
71233
71234 2005-07-11  Bruno Haible  <bruno@clisp.org>
71235
71236         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71237         Reported by Jim Meyering.
71238
71239 2005-07-10  Bruno Haible  <bruno@clisp.org>
71240
71241         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71242         Needed when size_t is smaller than 'unsigned int'.
71243         Reported by Paul Eggert.
71244
71245 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71246
71247         * modules/argp (Depends-on): Add unlocked-io
71248
71249 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71250
71251         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71252         block of defines.
71253
71254 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71255
71256         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71257         fix now.
71258
71259 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71260         and Paul Eggert  <eggert@cs.ucla.edu>
71261
71262         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71263         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71264
71265 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * modules/regex (Files): Add lib/regex_internal.c,
71268         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71269         (Depends-on): Add extensions.
71270         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71271
71272 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71275         pathconf.
71276         * m4/same.m4 (gl_SAME): Likewise.
71277         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71278
71279         * m4/regex.m4: Adjust to new libc regex implementation.
71280         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71281         all the .c and .h parts of (the new) regex.
71282         Quote the m4 stuff better.
71283         Check for RE_ICASE bug of old gnulib.
71284         Check for REG_STARTEND of recent libc.
71285         Rename local variables from jm_* to gl_*.
71286         Quote operand of "test -f".
71287         Say "recent enough" version of libc, not "version 2".
71288         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71289         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71290         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71291         Remove check for btowc, isascii.
71292         Require AM_LANGINFO_CODESET.
71293
71294 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * lib/regex.c, regex.h: Sync from libc.
71297         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71298         * lib/regexec.c:
71299         New files, synced from libc, except that regex_internal.h
71300         currently has a small porting fix.
71301
71302 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71303
71304         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71305         regex_internal.c, regexec.c.
71306         Add regex_internal.h too, but as a comment, since the libc version
71307         is currently broken in gnulib mode.
71308
71309 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         Support programs like Emacs that use gnulib but not gettext.
71312         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71313         * modules/gettext-h: New file.
71314         * modules/gettext (Files): Remove lib/gettext.h.
71315         (Depends-on): Add gettext-h.
71316         (Makefile.am): Remove lib_SOURCES.
71317         * modules/argmatch, modules/c-stack, modules/closeout:
71318         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71319         * modules/execute, modules/file-type, modules/getaddrinfo:
71320         * modules/getopt, modules/human, modules/javacomp:
71321         * modules/javaexec, modules/mkdir-p, modules/obstack:
71322         * modules/openat, modules/pagealign_alloc, modules/pipe:
71323         * modules/quotearg, modules/regex, modules/rpmatch:
71324         * modules/unicodeio, modules/userspec, modules/version-etc:
71325         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71326         * modules/xsetenv:
71327         Depend on gettext-h, not gettext.
71328
71329 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * gnulib-tool (func_import): Add support for 'public domain' license.
71332         * modules/alloca, modules/atexit, modules/memmove:
71333         Now public domain, not GPL.
71334         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71335         * modules/realloc, modules/strerror, modules/strtod:
71336         Now LGPL, not GPL.
71337
71338 2005-07-05  Bruno Haible  <bruno@clisp.org>
71339
71340         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71341         autoconf CVS. Needed for mingw.
71342
71343 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         Remove the dependency of the strftime module on the tzset module.
71346         * modules/strftime (Depends-on): Remove dependency on tzset.
71347
71348 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         Remove the dependency of the strftime module on the tzset module.
71351         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71352         gl_FUNC_TZSET_CLOBBER.
71353
71354 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71355
71356         Remove the dependency of the strftime module on the tzset module.
71357         * lib/strftime.c (my_strftime)
71358         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71359         Copy the input structure, to work around some of the bug with
71360         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71361         Solaris releases, you should also use the tzset module, but we won't
71362         require it as a dependency any more since we don't want LGPLed code
71363         to depend on GPLed code.
71364
71365 2005-07-02  Jim Meyering  <jim@meyering.net>
71366
71367         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71368         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71369         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71370         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71371
71372 2005-07-02  Jim Meyering  <jim@meyering.net>
71373
71374         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71375
71376 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71377
71378         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71379         declares only 'struct timespec;' (!).
71380
71381 2005-07-01  Jim Meyering  <jim@meyering.net>
71382
71383         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71384         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71385         * lib/save-cwd.c, tempname.c:
71386         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71387         and don't include <sys/file.h>).
71388
71389 2005-06-29  Jim Meyering  <jim@meyering.net>
71390
71391         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71392         type name.  Use the variable name instead.
71393         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71394         Likewise.
71395
71396 2005-06-28  Simon Josefsson  <jas@extundo.com>
71397
71398         * modules/check-version (Files): Add check-version.m4.
71399
71400 2005-06-28  Simon Josefsson  <jas@extundo.com>
71401
71402         * m4/check-version.m4: New file, suggested by Jim Meyering
71403         <jim@meyering.net>.
71404
71405 2005-06-28  Simon Josefsson  <jas@extundo.com>
71406
71407         * lib/check-version.h, lib/check-version.c: New files.
71408
71409 2005-06-28  Simon Josefsson  <jas@extundo.com>
71410
71411         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71412         collision with global variable.  Better indentation.  Don't
71413         increment buffer pointer beyond buffer end.  Based on comments
71414         from Paul Eggert <eggert@cs.ucla.edu>.
71415
71416         * lib/base64.h: Indent.
71417
71418 2005-06-28  Simon Josefsson  <jas@extundo.com>
71419
71420         * doc/gnulib.texi (Library version handling): New section.
71421
71422 2005-06-28  Jim Meyering  <jim@meyering.net>
71423
71424         * check-module (find_included_lib_files): Hard-code another
71425         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71426         but modules/fts-lgpl (correctly) does not list those files.
71427
71428         * modules/canonicalize (Files): Add lib/pathmax.h.
71429
71430 2005-06-25  Simon Josefsson  <jas@extundo.com>
71431
71432         * modules/check-version: New file.
71433
71434 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71437         initializer of struct addrinfo, as an indication that we don't
71438         care how many members the structure has.
71439
71440 2005-06-24  Derek Price  <derek@ximbiot.com>
71441         and Bruno Haible  <bruno@clisp.org>
71442
71443         Remove stat module & update lstat.
71444         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71445         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71446         * m4/stat.m4: Remove this file.
71447
71448 2005-06-24  Derek Price  <derek@ximbiot.com>
71449         and Bruno Haible  <bruno@clisp.org>
71450
71451         Remove stat module & update lstat.
71452         * lib/stat.c: Remove this file...
71453         (slash_aware_lstat): ...moving this content and its support...
71454         * lib/lstat.c (rpl_lstat): ...into here.
71455         * lib/lstat.h: New file.
71456
71457 2005-06-24  Derek Price  <derek@ximbiot.com>
71458         and Bruno Haible  <bruno@clisp.org>
71459
71460         Remove stat module & update lstat.
71461         * config/srclist.txt (libc sources): Remove stat.
71462
71463 2005-06-24  Derek Price  <derek@ximbiot.com>
71464         and Bruno Haible  <bruno@clisp.org>
71465
71466         Remove stat module & update lstat.
71467         * MODULES.html.sh (stat): Remove.
71468         * MODULES.html: Regenerated.
71469         * modules/lstat (Description): Correct function name.
71470         (Files): Add "lstat.h".
71471         (Depends-on): Remove stat, add xalloc, stat-macros.
71472         * modules/stat: Remove this file.
71473         (Include): Add "lstat.h", remove <sys/stat.h>.
71474
71475 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71478         (ranged_convert): Don't save conversion in a temporary struct.
71479         This causes a warning with GCC 4.0.0, and anyway in the typical
71480         case it's not worth the extra 100 bytes or so of code.
71481         (ranged_convert, __mktime_internal): When calling a function via a
71482         pointer P, use P () rather than (*P) (), as we now assume C89 or
71483         better.
71484
71485 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71488         "who -r" failed to give output.  Problem reported by Tim Waugh.
71489
71490         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71491         (xcalloc): Use it to avoid needless tests.
71492         Problem reported by Jim Meyering.
71493
71494 2005-06-20  Derek Price  <derek@ximbiot.com>
71495
71496         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71497         unnecessary for Autoconfs > 2.59c.
71498
71499 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71500
71501         * lib/argp.h (__option_is_short): Check upper limit of
71502         __key. Isprint() requires its argument to have the value
71503         of an unsigned char or EOF.
71504
71505 2005-06-16  Jim Meyering  <jim@meyering.net>
71506
71507         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71508         when either N or S is zero.
71509
71510 2005-06-16  Derek Price  <derek@ximbiot.com>
71511
71512         * m4/bison.m4: Declare YACC & YFLAGS precious.
71513
71514 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71517         multibyte string or pattern, fall back on unibyte matching.
71518         Problem reported by James Youngman.
71519
71520 2005-06-08  Bruno Haible  <bruno@clisp.org>
71521
71522         * modules/csharpcomp: New file.
71523         * MODULES.html.sh (C#): Add csharpcomp.
71524
71525 2005-06-08  Bruno Haible  <bruno@clisp.org>
71526
71527         * m4/csharpcomp.m4: New file, from GNU gettext.
71528
71529 2005-06-08  Bruno Haible  <bruno@clisp.org>
71530
71531         * lib/csharpcomp.h: New file, from GNU gettext.
71532         * lib/csharpcomp.c: New file, from GNU gettext.
71533         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71534
71535 2005-06-08  Bruno Haible  <bruno@clisp.org>
71536
71537         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71538         warning on mingw.
71539
71540 2005-06-07  Derek Price  <derek@ximbiot.com>
71541
71542         Sync from CVS.
71543         * lib/glob_.h: Indent nested #ifdef.
71544
71545 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         Sync from coreutils.
71548         Use "file name" when talking about file names, instead of "filename"
71549         or "path", as per the GNU coding standards.
71550         * lib/mkdir-p.c: Renamed from makepath.c.
71551         (make_dir_parents): Renamed from make_path.  All callers changed.
71552         * lib/mkdir-p.h: Likewise.  All includers changed.
71553         * lib/filenamecat.c: Renamed from path-concat.c.
71554         (file_name_concat): Renamed from path_concat.  All callers changed.
71555         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71556         * lib/filenamecat.h: Likewise.  All includers changed.
71557         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71558         in comments or local variable names.
71559         * lib/basename.c: Likewise.
71560         * lib/canonicalize.c, canonicalize.h: Likewise.
71561         * lib/dirname.c, dirname.h: Likewise.
71562         * lib/euidaccess.c: Likewise.
71563         * lib/exclude.c: Likewise
71564         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71565         * lib/fsusage.c, fsuage.h: Likewise.
71566         * lib/fts.c, fts_.h: Likewise.
71567         * lib/getcwd.c: Likewise.
71568         * lib/getloadavg.c: Likewise.
71569         * lib/mkstemp.c: Likewise.
71570         * lib/mountlist.c, mountlist.h: Likewise.
71571         * lib/openat.c, openat.h: Likewise.
71572         * lib/readlink-stub.c: Likewise.
71573         * lib/readutmp.c, readutmp.h: Likewise.
71574         * lib/rename.c: Likewise.
71575         * lib/rmdir.c: Likewise.
71576         * lib/same.c: Likewise.
71577         * lib/savedir.c: Likewise.
71578         * lib/stripslash.c: Likewise.
71579         * lib/tempname.c: Likewise.
71580         * lib/xreadlink.c: Likewise.
71581         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71582         All uses changed.
71583         * lib/exclude.h: Likewise.
71584
71585         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71586         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71587         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71588         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71589         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71590         files have been getting away with it for years (MORE/BSD 4.3
71591         is extinct now).
71592         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71593         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71594
71595         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71596         Define to 256, not 255, as per modern POSIX.
71597
71598 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         Sync from coreutils.
71601         Use "file name" when talking about file names, instead of "filename"
71602         or "path", as per the GNU coding standards.
71603         * MODULES.html.sh: mkdir-p renamed from makepath.
71604         filenamecat renamed from path-concat.
71605         * modules/filenamecat: Renamed from modules/path-concat.
71606         (Files): filenamecat.h and filenamecat.c renamed from
71607         path-concat.h and path-concat.c.
71608         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71609         (Include): filenamecat.h, not path-concat.h.
71610         * modules/mkdir-p: Renamed from modules/makepath.
71611         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71612         makepath.c.
71613         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71614         (Include): mkdir-p.h, not makepath.h.
71615
71616 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         Sync from coreutils.
71619         * m4/mkdir-p.m4: Renamed from makepath.m4.
71620         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71621         Rename files from makepath.c to mkdir-p.c, and from
71622         makepath.h to mkdir-p.h.
71623         * m4/filenamecat.m4: Renamed from path-concat.m4.
71624         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71625         Rename files from path-concat.c to filenamecat.c,
71626         and from path-concat.h to filenamecat.h.
71627         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71628         "file name" in local variables or comments.
71629         * m4/rename.m4: Likewise.
71630
71631 2005-06-01  Bruno Haible  <bruno@clisp.org>
71632
71633         * modules/csharpexec: New file.
71634         * MODULES.html.sh (C#): New section.
71635
71636 2005-06-01  Bruno Haible  <bruno@clisp.org>
71637
71638         * m4/csharp.m4: New file, from GNU gettext.
71639         * m4/csharpexec.m4: New file, from GNU gettext.
71640
71641 2005-06-01  Bruno Haible  <bruno@clisp.org>
71642
71643         * lib/csharpexec.h: New file, from GNU gettext.
71644         * lib/csharpexec.c: New file, from GNU gettext.
71645         * lib/csharpexec.sh.in: New file, from GNU gettext.
71646
71647 2005-05-31  Derek Price  <derek@ximbiot.com>
71648             Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         Sync from cvs.
71651         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71652
71653 2005-05-31  Derek Price  <derek@ximbiot.com>
71654             Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         Sync from cvs.
71657         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71658
71659 2005-05-29  Derek Price  <derek@ximbiot.com>
71660
71661         * config/srclist.txt (glob_.h, glob.c): Add these files.
71662
71663 2005-05-29  Derek Price  <derek@ximbiot.com>
71664
71665         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71666         * modules/glob: New file.
71667         * modules/getlogin_r: Add link to POSIX spec in description.
71668
71669 2005-05-29  Derek Price  <derek@ximbiot.com>
71670             Paul Eggert  <eggert@cs.ucla.edu>
71671
71672         * m4/glob.m4: New file.
71673
71674 2005-05-29  Derek Price  <derek@ximbiot.com>
71675             Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * lib/glob_.h, lib/glob.c: New files.
71678
71679 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71682         * modules/fts-lgpl (Depends-on): Remove gettext.
71683
71684 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71687         and don't require gt_INTTYPES_PRI.
71688
71689 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71692
71693         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71694         the configuration hassle isn't worth it.
71695         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71696         (LONGEST_MODIFIER, PRIuMAX): Remove.
71697
71698 2005-05-27  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71701
71702 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71705         _POSIX_PTHREAD_SEMANTICS for Solaris.
71706
71707 2005-05-25  Derek Price  <derek@ximbiot.com>
71708
71709         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71710
71711 2005-05-25  Derek Price  <derek@ximbiot.com>
71712             Paul Eggert  <eggert@cs.ucla.edu>
71713
71714         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71715         * lib/getlogin_r.c, getlogin_r.h: New files.
71716
71717 2005-05-25  Bruno Haible  <bruno@clisp.org>
71718             Derek Price  <derek@ximbiot.com>
71719
71720         * lib/getlogin_r.h: Simplify API documentation.
71721
71722 2005-05-23  Derek Price  <derek@ximbiot.com>
71723
71724         * modules/minmax (Files): Add m4/minmax.m4.
71725         (configure.ac): Add gl_MINMAX.
71726
71727 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71728
71729         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71730         so that unistd-safer.h (GPL'ed code) need not be included.
71731
71732 2005-05-22  Bruno Haible  <bruno@clisp.org>
71733
71734         * m4/minmax.m4: New file.
71735         Based on a patch by Derek Price <derek@ximbiot.com>.
71736
71737 2005-05-22  Bruno Haible  <bruno@clisp.org>
71738
71739         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71740         (INT64_MIN): Fix definition.
71741         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71742
71743         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71744         NEED_SIGNED_INT_TYPES.
71745
71746         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71747         HAVE_SYSTEM_INTTYPES.
71748
71749 2005-05-22  Bruno Haible  <bruno@clisp.org>
71750
71751         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71752         Also include <sys/param.h> if it defines MIN, MAX.
71753         Based on a patch by Derek Price <derek@ximbiot.com>.
71754
71755 2005-05-21  Jim Meyering  <jim@meyering.net>
71756
71757         * modules/fts (Files): Add m4/inttypes-pri.m4.
71758         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71759
71760 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         New fts module.
71763         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71764         (setup_dir, free_dir): New functions.
71765         (enter_dir, leave_dir): Define trivial
71766         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71767         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71768         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71769         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71770         Move to fts-cycle.c.
71771         (fts_open): Use setup_dir.
71772         (fts_close): Use free_dir.
71773         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71774         This adds a label and some gotos, but the alternatives were messier.
71775         Check for memory allocation failure when entering a dir.
71776         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71777         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71778         (FTS): New member fts_cycle, that is a union that contains the
71779         old active_dir_ht and cycle_state.  All uses changed to mention
71780         fts_cycle.ht and fts_cycle.state.
71781         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71782         fts.c, with the following changes:
71783         (setup_dir, free_dir): New functions.
71784         (enter_dir): Now returns bool.  Return true if successful, false
71785         if memory exhausted.  All callers changed.
71786         Do not bother partly cleaning up on
71787         memory allocation failure; that is free_dir's job.
71788         However, free ad if hash_insert fails, to avoid memory leak.
71789         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71790         fts->fts_options to see which union member to use.
71791
71792 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71795         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71796
71797 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71800
71801 2005-05-20  Jim Meyering  <jim@meyering.net>
71802
71803         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71804         Now a macro, to pacify GCC.
71805
71806 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71807
71808         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71809         of -1.
71810
71811 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71812
71813         * lib/chown.c (rpl_chown): Return -1 on failure.
71814
71815 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71818         Don't check for stddef.h.
71819         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71820         don't use its results.
71821         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71822         since we include them unconditionally.  Don't require
71823         AM_STDBOOL_H, since stdbool is a prerequisite.
71824         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71825         since we assume C89 or better.
71826         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71827         as we don't use their results.
71828         Don't check for fchdir, memmove, memset, strrchr, as we use
71829         them unconditionally.
71830         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71831         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71832
71833 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71836         Include <stddef.h> unconditionally, since we assume C89 now.
71837         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71838         * lib/fts.c: Include fts_.h first, to check interface.
71839         Do not include intprops.h; no longer needed.
71840         Include cycle-check.h and hash.h, since fts_.h no longer does.
71841         Remove unnecessary casts of closedir to void.
71842         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71843         decide whether to decrement nlinks.
71844         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71845         (FTS): Use struct hash_table * instead of Hash_table, so that
71846         we no longer need to include hash.h here.
71847
71848 2005-05-18  Jim Meyering  <jim@meyering.net>
71849
71850         * modules/dirfd (License): Change to LGPL.  Most of the code
71851         is already in the public domain.
71852
71853 2005-05-18  Jim Meyering  <jim@meyering.net>
71854
71855         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71856         Reported by Yoann Vandoorselaere.
71857
71858 2005-05-17  Jim Meyering  <jim@meyering.net>
71859
71860         * m4/fts.m4: New file, from coreutils.
71861
71862 2005-05-17  Jim Meyering  <jim@meyering.net>
71863
71864         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71865
71866 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71867
71868         Sync from coreutils.
71869         * m4/unlinkdir.m4: New file.
71870
71871 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         Sync from coreutils.
71874         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71875         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71876         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71877         White space changes only.
71878         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71879         special.
71880         * lib/yesno.c: Include getline.h, not ctype.h.
71881         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71882         Use getline to remove arbitrary restriction on response length.
71883
71884 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * config/srclist-update: Spell out "Street" in FSF postal
71887         mail address; this is the style the FSF seems to prefer.
71888
71889         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71890         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71891         this updates FSF postal mail address.
71892
71893         Sync from coreutils.
71894         * modules/unlinkdir: New file.
71895         * modules/yesno (Depends-on): Add getline.
71896         * MODULES.html.sh (File system functions): Add unlinkdir.
71897
71898 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71901         lib/strsep.h:
71902         Change the initial comment to refer to GPL, not LGPL.
71903         gnulib-tool will change it to LGPL as needed.
71904
71905         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71906         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71907         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71908         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71909         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71910         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71911         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71912         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71913         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71914         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71915         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71916         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71917         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71918         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71919         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71920         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71921         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71922         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71923         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71924         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71925         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71926         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71927         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71928         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71929         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71930         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71931         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71932         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71933         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71934         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71935         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71936         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71937         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71938         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71939         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71940         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71941         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71942         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71943         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71944         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71945         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71946         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71947         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71948         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71949         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71950         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71951         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71952         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71953         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71954         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71955         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71956         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71957         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71958         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71959         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71960         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71961         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71962         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71963         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71964         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71965         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71966         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71967         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71968         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71969         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71970         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71971         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71972         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71973         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71974         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71975         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71976         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71977         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71978         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71979         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71980         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71981         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71982         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71983         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71984         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71985         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71986         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71987         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71988         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71989         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71990         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71991         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71992         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71993         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71994         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71995         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71996         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71997         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71998         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71999         lib/yesno.c, lib/yesno.h:
72000         Update FSF postal mail address.
72001
72002 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72005         tests/test-memmem.c, tests/test-stpncpy.c:
72006         Update FSF postal mail address.
72007
72008 2005-05-13  Bruno Haible  <bruno@clisp.org>
72009
72010         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72011         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72012         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72013         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72014         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72015         Add support for 64-bit integers in the MSVC compiler.
72016
72017 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72018
72019         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72020
72021 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72022
72023         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72024
72025 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * doc/getdate.texi (General date syntax): Don't say that date
72028         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72029         Problem reported by Nic Ferrier.
72030
72031 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72032
72033         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72034         specified in ai_socktype. Fix invalid ai_protocol
72035         check. ai_protocol is usually set to 0 or depending on
72036         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72037         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72038         ai_socktype / ai_protocol in the returned addrinfo structure.
72039
72040 2005-05-10  Simon Josefsson  <jas@extundo.com>
72041
72042         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72043         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72044
72045 2005-05-10  Karl Berry  <karl@gnu.org>
72046
72047         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72048         (from http://www.gnu.org/licenses).
72049         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72050         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72051         fdl.texi suffices.
72052
72053 2005-05-10  Karl Berry  <karl@gnu.org>
72054
72055         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72056         (COPYING.DOC): remove.
72057
72058         * config/srclist-update: new FSF address.
72059
72060 2005-05-10  Derek Price  <derek@ximbiot.com>
72061
72062         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72063         possible.
72064
72065 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72066             Bruno Haible  <bruno@clisp.org>
72067
72068         * modules/inet_ntop: New file.
72069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72070         inet_ntop.
72071
72072 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72073             Bruno Haible  <bruno@clisp.org>
72074
72075         * m4/inet_ntop.m4: New file.
72076
72077 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72078             Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/inet_ntop.h: New file.
72081         * lib/inet_ntop.c: New file, from glibc with modifications.
72082
72083 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * modules/time_r (License): Change to LGPL.
72086         * modules/extensions (License): Change to LGPL.  Actually,
72087         the license is more permissive than that, but currently gnulib-tool
72088         doesn't know how to handle more-permissive licenses.
72089
72090         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72091         Problem reported by Dave Love.
72092
72093 2005-05-08  Jim Meyering  <jim@meyering.net>
72094
72095         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72096         blank.
72097
72098 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * modules/argmatch (Depends-on): Add stdbool.
72101         * modules/backupfile (Depends-on): Likewise.
72102         * modules/chdir-long (Depends-on): Likewise.
72103         * modules/closeout (Depends-on): Likewise.
72104         * modules/cycle-check (Depends-on): Likewise.
72105         * modules/dirname (Depends-on): Likewise.
72106         * modules/fnmatch (Depends-on): Likewise.
72107         * modules/fsusage (Depends-on): Likewise.
72108         * modules/fwriteerror (Depends-on): Likewise.
72109         * modules/getcwd (Depends-on): Likewise.
72110         * modules/getloadavg (Depends-on): Likewise.
72111         * modules/hard-locale (Depends-on): Likewise.
72112         * modules/makepath (Depends-on): Likewise.
72113         * modules/mountlist (Depends-on): Likewise.
72114         * modules/nanosleep (Depends-on): Likewise.
72115         * modules/posixtm (Depends-on): Likewise.
72116         * modules/quotearg (Depends-on): Likewise.
72117         * modules/readtokens (Depends-on): Likewise.
72118         * modules/readtokens0 (Depends-on): Likewise.
72119         * modules/readutmp (Depends-on): Likewise.
72120         * modules/save-cwd (Depends-on): Likewise.
72121         * modules/strftime (Depends-on): Likewise.
72122         * modules/userspec (Depends-on): Likewise.
72123         * modules/utimecmp (Depends-on): Likewise.
72124         * modules/xgetcwd (Depends-on): Likewise.
72125         * modules/xnanosleep (Depends-on): Likewise.
72126         * modules/xstrtod (Depends-on): Likewise.
72127         * modules/yesno (Depends-on): Likewise.
72128
72129 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72132         needless checks.
72133
72134 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         Merge from coreutils.  Among other things,
72137         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72138         * lib/fd-safer.c: New file.
72139         * lib/fcntl-safer.h, open-safer.c: Remove.
72140         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72141         * lib/dup-safer.c: Include unistd-safer.h first.
72142         Don't include errno.h.
72143         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72144         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72145         * lib/file-type.c: Rely on file-type.h change.
72146         * lib/getloadavg.c: Include unistd-safer.h.
72147         (getloadavg): Use safer open.
72148         * lib/getusershell.c: Include "stdio-safer.h".
72149         (getusershell): Use safer fopen.
72150         * lib/long-options.c (long_options): Use NULL rather than 0.
72151         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72152         'free'.
72153         * lib/modechange.c: Likewise.
72154         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72155         (MODE_DONE): New constant.
72156         (struct mode_change): Remove 'next' member.
72157         (make_node_op_equals): New function; like the old one of the
72158         same name, except it allocates an array.
72159         (mode_compile, mode_create_from_ref): Use it.
72160         (mode_compile): Allocate result as an array, not a linked list.
72161         Parse octal string ourself, so that we catch mistakes like "+0".
72162         (mode_adjust): Arg is an array, not a linked list.
72163         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72164         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72165         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72166         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72167         Remove.  This is now stat-macros.h's job.
72168         (talloc): Remove.  All callers replaced by xalloc, so that
72169         our invokers don't have to worry about reporting memory failures.
72170         (make_node_op_equals): Remove.
72171         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72172         New constants.
72173         (struct mode_change): Moved here from modechange.h.
72174         (mode_append_entry): Remove.
72175         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72176         apps to have incorrect behavior.  Use simpler algorithm for head
72177         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72178         Detect more invalid usages rather than having somewhat-random behavior.
72179         Don't insert an "a=" action, as that leads to incorrect behavior.
72180         (mode_compile, mode_create_from_ref): Return NULL on error instead
72181         of an enum, since now there's only one way to have an error.  All
72182         callers changed.
72183         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72184         at the correct time.  Simplify calculation of "+u" and its ilk.
72185         Don't mishandle "+X".
72186         (mode_free): Remove "register" and localize decls.
72187         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72188         (struct mode_change): Move to modechange.c; callers don't
72189         need to see this stuff.
72190         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72191         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72192         (mode_change, mode_adjust): Reflect the new signatures noted above.
72193         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72194         that might redefine system include files.
72195         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72196         (my_usleep): Use NULL rather than (void *) 0.
72197         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72198         Use siginterrupt to specify that system calls should be interrupted.
72199         (rpl_nanosleep): Move initialization of suspended closer to call of
72200         my_usleep.
72201         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72202         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72203         (desirable_utmp_entry): New function.
72204         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72205         using x2nrealloc, to simplify logic.
72206         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72207         size calculation.  Do not assume utmp file is a regular file.
72208         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72209         (READ_UTMP_CHECK_PIDS): New constant.
72210         * lib/save-cwd.c: Include unistd-safer.h.
72211         (save_cwd): Use fd_safer.
72212         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72213         [!_LIBC] Include "stat-macros.h" instead.
72214         * lib/unistd-safer.h (fd_safer): New decl.
72215
72216 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         * modules/getloadavg (Depends-on): Add unistd-safer.
72219         * modules/getusershell (Depends-on): Add stdio-safer.
72220         * modules/lstat (Depends-on): Remove xalloc.
72221         * modules/mkstemp (Depends-on): Add stat-macros.
72222         * modules/modechange (Depends-on): Remove xstrtol.
72223         Add stat-macros, xalloc.
72224         * modules/save-cwd (Depends-on): Add unistd-safer.
72225         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72226         * modules/unistd-safer (Files): Add lib/fd-safer.c
72227         (Makefile.am): Remove lib_SOURCES.
72228
72229         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72230         Remove fcntl-safer; unistd-safer supersedes it.
72231
72232 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72235         AC_HEADER_STAT.
72236         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72237         (gl_PREREQ_CHOWN): Remove.
72238         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72239         it.  Don't require AC_HEADER_STAT.
72240         (gl_PREREQ_LSTAT): Remove.
72241         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72242         Don't require AC_HEADER_STAT.
72243         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72244         (gl_PREREQ_RMDIR): Remove.
72245         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72246         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72247         the stat-macros module a prerequisite.
72248         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72249         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72250         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72251         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72252         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72253         variable names.
72254         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72255         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72256         variable prefixes.
72257         * m4/fcntl-safer.m4: Remove.
72258         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72259         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72260         Invoke gl_PREREQ_FD_SAFER.
72261         (gl_PREREQ_FD_SAFER): New macro.
72262         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72263         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72264         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72265         Remove duplicate call to AC_LIBOBJ(readutmp).
72266         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72267
72268         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72269         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72270
72271 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * MODULES.html.sh (Misc): Add byteswap.
72274
72275 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72276
72277         * modules/getcwd (Depends-on): Add extensions.
72278         * modules/openat (Depends-on): Likewise.
72279
72280 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72281
72282         * modules/byteswap: New file.
72283
72284 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72285
72286         * m4/byteswap.m4: New file.
72287
72288 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72289
72290         * lib/byteswap_.h: New file.
72291
72292 2005-04-25  Karl Berry  <karl@gnu.org>
72293
72294         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72295
72296 2005-04-25  Albert Chin  <china@thewrittenword.com>
72297
72298         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72299         Toolkit C bug.
72300
72301 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72302
72303         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72304         (func_ln_if_changed): Remove forcibly for no error message
72305         in case file does not exist.
72306
72307 2005-04-19  Simon Josefsson  <jas@extundo.com>
72308
72309         * gnulib-tool (Options): Make --symlink mean --symbolic.
72310
72311 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72312
72313         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72314
72315 2005-04-16  Simon Josefsson  <jas@extundo.com>
72316
72317         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72318
72319 2005-04-15  Simon Josefsson  <jas@extundo.com>
72320
72321         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72322
72323 2005-04-15  Simon Josefsson  <jas@extundo.com>
72324
72325         * gnulib-tool: Rename --symlink to --symbolic.
72326
72327 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72328
72329         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72330         symbolic links to files instead of copying/moving.  Add --aux-dir,
72331         specifying directory relative --dir where auxiliary build tools
72332         are placed.
72333
72334 2005-04-14  Bruno Haible  <bruno@clisp.org>
72335
72336         * modules/allocsa (License): Change to LGPL.
72337         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72338
72339 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72342         that "UTC +1 second" continues to work.  Problem reported
72343         by Dmitry V. Levin.
72344         (relunit_snumber): New rule.
72345         (relunit): Use it.
72346
72347 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * lib/getdate.y (universal_time_zone_table): New constant.
72350         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72351         universal_time_zone_table.
72352         (lookup_zone): Prefer universal_time_zone_table to
72353         local_time_zone_table, so that "GMT" time stamps are allowed in
72354         London during the summer.  Problem reported by Ian Abbott.
72355
72356 2005-04-12  Jim Meyering  <jim@meyering.net>
72357
72358         * lib/human.c (humblock): Set *options even when returning due to
72359         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72360         warning from gcc-4.
72361
72362 2005-04-09  Jim Meyering  <jim@meyering.net>
72363
72364         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72365         -Wuninitialized: initialize tm0.tm_year.
72366
72367 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72370         count, since there's no maximum.  All uses changed.
72371         Add member dsts_seen.
72372         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72373         not being INT_MAX.
72374         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72375         Use pc_rels_seen to decide whther a date is absolute.
72376
72377         * lib/getdate.y (number): Don't overwrite year.
72378         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72379         check.
72380
72381 2005-04-02  Simon Josefsson  <jas@extundo.com>
72382
72383         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72384         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72385
72386 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72387
72388         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72389         where no absolute path name can be longer than PATH_MAX.
72390
72391 2005-03-27  Jim Meyering  <jim@meyering.net>
72392
72393         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72394
72395 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72396
72397         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72398         "one's complement" -> "ones' complement" in comment, as per Knuth.
72399         "value of type" -> "type or expression" in comment.
72400         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72401
72402 2005-03-26  Jim Meyering  <jim@meyering.net>
72403
72404         Comment nits.
72405         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72406         Correct typos: s/or/of/.
72407
72408 2005-03-26  Jim Meyering  <jim@meyering.net>
72409
72410         * modules/check-include-files: Move to ../ and rename to...
72411         * check-module: ...this.
72412
72413 2005-03-25  Jim Meyering  <jim@meyering.net>
72414
72415         * modules/xvasprintf (Files): Add xalloc.h.
72416
72417 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * modules/gettext (Files): config/config.rpath ->
72420         build-aux/config.rpath
72421         * modules/iconv (Files): Likewise.
72422         Problem reported by Oskar Liljeblad.
72423
72424 2005-03-23  Jim Meyering  <jim@meyering.net>
72425
72426         * modules/check-include-files: New script to check for
72427         missing dependencies, multiple includes, etc.
72428
72429         * modules/c-strtold (Depends-on): Add xalloc.
72430         * modules/c-strtod (Depends-on): Add xalloc.
72431         * modules/hash (Depends-on): Add xalloc.
72432         (Files): Remove lib/xalloc.h.
72433
72434         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72435         * modules/userspec (Files): Add lib/inttostr.h.
72436
72437 2005-03-23  Jim Meyering  <jim@meyering.net>
72438
72439         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72440
72441 2005-03-22  Jim Meyering  <jim@meyering.net>
72442
72443         * modules/stat-macros: New module.
72444         * modules/canonicalize, modules/euidaccess, modules/file-type,
72445         * modules/filemode, modules/lchown, modules/makepath,
72446         * modules/rmdir, modules/stat: Depend on new stat-macros module
72447         rather than listing lib/stat-macros.h manually.
72448         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72449
72450 2005-03-22  Jim Meyering  <jim@meyering.net>
72451
72452         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72453
72454 2005-03-22  Bruno Haible  <bruno@clisp.org>
72455
72456         * config/srclist.txt: Replace target directory 'config' with
72457         'build-aux'.
72458         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72459         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72460         ../build-aux/.
72461
72462 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         * modules/chdir-long (Depends-on): Add mempcpy.
72465
72466         * modules/acl, modules/backupfile, modules/c-strtod,
72467         modules/c-strtold, modules/canon-host, modules/canonicalize,
72468         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72469         modules/exclude, modules/exitfail, modules/file-type,
72470         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72471         modules/getdate, modules/getline, modules/getpagesize,
72472         modules/getpass, modules/getugroups, modules/group-member,
72473         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72474         modules/inttostr, modules/long-options, modules/makepath,
72475         modules/md5, modules/memcasecmp, modules/memcoll,
72476         modules/modechange, modules/mountlist, modules/path-concat,
72477         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72478         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72479         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72480         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72481         modules/strftime, modules/strndup, modules/strverscmp,
72482         modules/timespec, modules/unlocked-io, modules/userspec,
72483         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72484         modules/yesno:
72485         Remove lib_SOURCES line from Makefile.am section, as this is now
72486         done automatically by the corresponding Autoconf macro.
72487
72488 2005-03-21  Jim Meyering  <jim@meyering.net>
72489
72490         Changes imported from coreutils.
72491
72492         * lib/cycle-check.c: Don't include xalloc.h.
72493
72494         * lib/path-concat.c: Don't include assert.h.
72495         (path_concat): Remove assertion that would have triggered
72496         for ABASE starting with more than one slash.
72497         Reported by Andreas Schwab.
72498
72499         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72500         properly when ABASE is an absolute file name.
72501         Correct the description of this function.
72502         Include <assert.h>.
72503         Add an assertion and a test driver.
72504         This fixes a bug introduced on 2004-07-02.
72505         Andreas Schwab reported the resulting failure of cp --parents:
72506         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72507
72508 2005-03-21  Jim Meyering  <jim@meyering.net>
72509
72510         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72511         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72512
72513 2005-03-21  Jim Meyering  <jim@meyering.net>
72514         and  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72517         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72518         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72519         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72520         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72521         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72522         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72523         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72524         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72525         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72526         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72527         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72528         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72529         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72530         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72531         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72532         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72533         for these modules.
72534
72535 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72538         (which shouldn't happen), generate nothing instead of returning 0
72539         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72540
72541 2005-03-16  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72544         HAVE_LONGLONG_64BIT.
72545
72546 2005-03-16  Bruno Haible  <bruno@clisp.org>
72547
72548         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72549         HAVE_LONGLONG_64BIT.
72550
72551 2005-03-16  Bruno Haible  <bruno@clisp.org>
72552
72553         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72554         HAVE_LONGLONG_64BIT.
72555
72556 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72559         reliably distinguish strftime failure from empty output on POSIX
72560         hosts.
72561
72562 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72565         (iconv_string): Don't guess a size-zero buffer, as that might cause
72566         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72567         result would be 'too large', where 'too large' is (heuristically)
72568         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72569         overflow concerns.  This will prevent some unwanted malloc failures
72570         when the inputs are very large.
72571
72572 2005-03-15  Karl Berry  <karl@gnu.org>
72573
72574         * config/srclist.txt (config.rpath): from gettext.
72575         * config/config.rpath: update.
72576
72577 2005-03-15  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72580         to 'negate'.
72581
72582         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72583         variable.
72584
72585         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72586         results.
72587
72588 2005-03-14  Simon Josefsson  <jas@extundo.com>
72589
72590         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72591         <fx@gnu.org>.
72592
72593 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72596         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72597         intprops.h.
72598         * lib/strtol.c: Likewise.
72599
72600 2005-03-14  Jim Meyering  <jim@meyering.net>
72601
72602         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72603         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72604         to be nonzero so that we (and caller) can detect the difference
72605         between a valid zero-length expansion and an error return, even
72606         when the underlying strftime fails before writing anything into
72607         that location.
72608
72609 2005-03-14  Bruno Haible  <bruno@clisp.org>
72610
72611         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72612         Update from GNU gettext 0.14.3.
72613
72614 2005-03-10  Jim Meyering  <jim@meyering.net>
72615
72616         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72617
72618 2005-03-10  Jim Meyering  <jim@meyering.net>
72619
72620         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72621         so that this module works on systems without fchdir.
72622
72623 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72624
72625         Factor int-properties macros into a single file, except for
72626         glibc-related files.
72627         * lib/intprops.h: New file.
72628         * lib/getloadavg.c: Include it instead of limits.h.
72629         (INT_STRLEN_BOUND): Remove.
72630         * lib/human.c: Include intprops.h.
72631         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72632         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72633         302/1000.
72634         * lib/inttostr.h: Include intprops.h instead of limits.h.
72635         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72636         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72637         for consistency with intprops.h.
72638         (time_t_is_integer, twos_complement_arithmetic): Use them.
72639         * lib/sig2str.h: Include <signal.h>, intprops.h.
72640         (INT_STRLEN_BOUND): Remove.
72641         * lib/strftime.c (TYPE_SIGNED): Remove.
72642         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72643         * lib/strtol.c: Adjust comments to match intprops.h.
72644         * lib/userspec.c: Include intprops.h.
72645         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72646         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72647         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72648         instead of rolling our own expressions.
72649         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72650
72651         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72652         instead of int.
72653         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72654         the right thing even if adding 1900 would overflow.  Similarly
72655         for tm_mon + 1 and tm_yday + 1.
72656         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72657         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72658         (DO_SIGNED_NUMBER): New macro.
72659         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72660
72661 2005-03-07  Bruno Haible  <bruno@clisp.org>
72662
72663         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72664
72665 2005-03-07  Bruno Haible  <bruno@clisp.org>
72666
72667         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72668
72669 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72670
72671         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72672         (func_import): Only replace files via --import when they have actually
72673         changed.
72674
72675 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72676
72677         * m4/mmap-anon.m4: New file.
72678         * m4/pagealign_alloc.m4: New file.
72679
72680 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72681             Bruno Haible  <bruno@clisp.org>
72682
72683         * modules/pagealign_alloc: New file.
72684         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72685
72686 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72687             Bruno Haible  <bruno@clisp.org>
72688
72689         * lib/pagealign_alloc.h: New file.
72690         * lib/pagealign_alloc.c: New file.
72691
72692 2005-03-03  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72695         Use an all-permissive copyright notice, recommended by RMS.
72696
72697 2005-03-02  Bruno Haible  <bruno@clisp.org>
72698
72699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72700         of AIX, the replacement has to be done only after <string.h> is
72701         included, therefore not in config.h. stpncpy.h does the replacement,
72702         and stpncpy.c uses it.
72703
72704 2005-03-02  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72707         stpncpy.c uses it.
72708
72709 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72710
72711         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72712         The workaround isn't strictly needed for POSIX conformance, and
72713         it's too much of a pain to configure and maintain.  We'll ask
72714         people to fix their kernels instead.
72715         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72716         (NANOSLEEP_BUG_WORKAROUND): Remove.
72717         (xnanosleep): Remove the workaround.
72718
72719 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72722         Reported by Derek Price.
72723         (Include): Add "timespec.h".
72724
72725         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72726
72727 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72728
72729         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72730         to detect nanosleep bug.
72731
72732 2005-03-01  Bruno Haible  <bruno@clisp.org>
72733
72734         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72735
72736 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * modules/gethrxtime: New file.
72739         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72740         (Depends-on): Add gethrxtime.
72741         (configure.ac): Add gl_XNANOSLEEP.
72742         (Makefile.am): Remove lib_SOURCES line.
72743
72744 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72747         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72748
72749 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72752         * lib/timespec.h (gettime): Return void, since it always
72753         succeeds now.  All uses changed.
72754         * lib/gettime.c (gettime): Likewise.
72755         [HAVE_NANOTIME]: Prefer nanotime.
72756         Assume gettimeofday succeeds, as POSIX requires.
72757         Assime time () succeeds, since other code already does.
72758         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72759         (timespec_subtract): Remove.
72760         (NANOSLEEP_BUG_WORKAROUND): New constant.
72761         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72762         things considerably.  Use it only on GNU/Linux hosts, since the
72763         workaround shouldn't be needed elsewhere.
72764
72765 2005-02-24  Bruno Haible  <bruno@clisp.org>
72766
72767         * modules/gettext (Files): Add m4/glibc2.m4.
72768
72769 2005-02-24  Bruno Haible  <bruno@clisp.org>
72770
72771         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72772         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72773         * m4/progtest.m4:
72774         Update from GNU gettext 0.14.2.
72775         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72776
72777 2005-02-24  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72780         * lib/config.charset: Update from GNU gettext 0.14.2.
72781
72782 2005-02-24  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/gettext.h: Update from GNU gettext 0.14.2.
72785
72786 2005-02-23  Simon Josefsson  <jas@extundo.com>
72787
72788         * m4/iconvme.m4: New file.
72789
72790 2005-02-23  Jim Meyering  <jim@meyering.net>
72791
72792         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72793         change.
72794         Thanks to Bruno Haible for catching it.
72795
72796 2005-02-22  Simon Josefsson  <jas@extundo.com>
72797
72798         * modules/iconvme: New file.
72799
72800         * MODULES.html.sh: Add iconvme.
72801
72802 2005-02-22  Simon Josefsson  <jas@extundo.com>
72803
72804         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72805
72806 2005-02-22  Simon Josefsson  <jas@extundo.com>
72807
72808         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72809
72810 2005-02-22  Jim Meyering  <jim@meyering.net>
72811
72812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72813         s/ifndef/ifdef/.
72814
72815 2005-02-20  Neil Conway  <neilc@samurai.com>
72816
72817         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72818         returned by OSX/Darwin if the specified buffer is not large
72819         enough for the hostname.
72820
72821 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72822
72823         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72824         pass it to _help, otherwise the latter coredumps trying to
72825         dereference state.root_argp.
72826
72827 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * modules/chdir-long (Depends-on): Add memrchr.
72830         * modules/memrchr (Files): Add lib/memrchr.h.
72831         (Include): "memrchr.h".
72832
72833 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72836
72837 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72838
72839         * lib/memrchr.h: New file.
72840         * lib/chdir-long.c: Include it.
72841         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72842         Don't bother including stddef.h.
72843
72844 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72847         inclusion.
72848         Include <sys/types.h>, for dev_t.
72849         (ME_DUMMY, ME_REMOTE): Move from here....
72850         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72851         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72852         Dmitry V. Levin.
72853         Include mountlist.h first, to test the interface.
72854
72855 2005-01-29  Bruno Haible  <bruno@clisp.org>
72856
72857         * lib/progname.c (program_name): Initialize.
72858         Needed when linking statically on MacOS X.
72859
72860 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         Sync from coreutils.
72863         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72864         (Depends-on): Add c-strtod.
72865         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72866
72867 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72868
72869         Sync from coreutils.
72870         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72871
72872         Remove files that are specific to coreutils.
72873         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72874
72875 2005-01-28  Bruno Haible  <bruno@clisp.org>
72876
72877         * modules/javacomp: New file.
72878         * MODULES.html.sh (Java): Add javacomp.
72879
72880 2005-01-28  Bruno Haible  <bruno@clisp.org>
72881
72882         * m4/javacomp.m4: New file, from GNU gettext.
72883
72884 2005-01-28  Bruno Haible  <bruno@clisp.org>
72885
72886         * lib/javacomp.sh.in: New file, from GNU gettext.
72887         * lib/javacomp.h: New file, from GNU gettext.
72888         * lib/javacomp.c: New file, from GNU gettext.
72889
72890 2005-01-26  Simon Josefsson  <jas@extundo.com>
72891
72892         * lib/gai_strerror.c: Use GPL in header.
72893
72894 2005-01-26  Bruno Haible  <bruno@clisp.org>
72895
72896         * modules/javaexec: New file.
72897         * MODULES.html.sh (Java): Add javaexec.
72898
72899 2005-01-26  Bruno Haible  <bruno@clisp.org>
72900
72901         * m4/javaexec.m4: New file, from GNU gettext.
72902
72903 2005-01-26  Bruno Haible  <bruno@clisp.org>
72904
72905         * lib/javaexec.sh.in: New file, from GNU gettext.
72906         * lib/javaexec.h: New file, from GNU gettext.
72907         * lib/javaexec.c: New file, from GNU gettext.
72908
72909 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72910
72911         * modules/lchown (Depends-on): Remove lchown.h
72912
72913 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72914
72915         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72916         must be defined if the header file was not found, in order
72917         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72918
72919 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72920
72921         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72922         initializers for struct pentry_state.
72923         (__argp_error): Check return value of __asprintf
72924         (__argp_failure): Translate error message
72925
72926         * lib/argp-parse.c: Removed braces around the expansion of N_()
72927
72928 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72931         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72932         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72933         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72934         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72935         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72936         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72937         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72938         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72939         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72940         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72941         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72942         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72943         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72944         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72945         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72946         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72947         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72948         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72949         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72950         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72951         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72952         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72953         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72954         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72955         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72956         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72957         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72958         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72959         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72960         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72961         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72962         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72963         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72964         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72965         Use an all-permissive copyright notice, recommended by RMS.
72966
72967 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * modules/chdir-long (Depends-on): Remove mempcpy.
72970
72971 2005-01-21  Jim Meyering  <jim@meyering.net>
72972
72973         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72974         same value as for Solaris 9.
72975
72976         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72977         component length.  This included changing the parameter to be
72978         of type `char *' rather than `char const *'.
72979         * lib/chdir-long.h (chdir_long): Update prototype.
72980
72981         * lib/openat.c (fdopendir, fstatat): New functions.
72982         * lib/openat.h: Include headers required for use of DIR and struct
72983         stat.
72984         [AT_SYMLINK_NOFOLLOW]: Define.
72985         (fdopendir, fstatat): Add prototypes.
72986
72987 2005-01-21  Bruno Haible  <bruno@clisp.org>
72988
72989         * modules/classpath: New file.
72990         * MODULES.html.sh (Java): Add classpath.
72991
72992 2005-01-21  Bruno Haible  <bruno@clisp.org>
72993
72994         * lib/classpath.h: New file, from GNU gettext.
72995         * lib/classpath.c: New file, from GNU gettext.
72996
72997 2005-01-20  Simon Josefsson  <jas@extundo.com>
72998
72999         * modules/version-etc-fsf: New file.
73000
73001 2005-01-20  Simon Josefsson  <jas@extundo.com>
73002
73003         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73004         * lib/version-etc.c: Remove version_etc_copyright.
73005         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73006         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73007
73008 2005-01-20  Simon Josefsson  <jas@extundo.com>
73009
73010         * lib/base64.h (isbase64): Add.
73011
73012         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73013         using a unsigned prototype, don't inline.
73014         (base64_decode): Use it.
73015
73016 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73019         it.
73020
73021 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * lib/save-cwd.c (save_cwd): Remove code to support the case
73024         where fchdir is missing or flaky.
73025
73026 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73029
73030 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73031
73032         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73033         AC_LIBSOURCES now does this.
73034         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73035         with new ullong_max module.
73036
73037 2005-01-19  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/sh-quote: New file.
73040         * MODULES.html.sh (Executing programs): Add sh-quote.
73041
73042 2005-01-19  Bruno Haible  <bruno@clisp.org>
73043
73044         * lib/sh-quote.h: New file, from GNU gettext.
73045         * lib/sh-quote.c: New file, from GNU gettext.
73046
73047 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         Merge from coreutils.
73050         * m4/ullong_max.m4: New file.
73051         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73052         (gl_MACROS): Assume localeconv exists.
73053
73054 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         Merge changes from coreutils, as described below in several
73057         changelogs dated today.
73058
73059         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73060         (O_DIRECTORY): Remove; not needed here, since "." must be
73061         a directory.  All uses removed.
73062         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73063         universal on Suns, and we also need to test for IRIX.
73064         Revamp code to use 'if' rather than '#if'.
73065         Avoid unnecessary comparison of cwd->desc to 0.
73066
73067         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73068         for known valid error numbers rather than observed invalid ones.
73069
73070 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73071
73072         * modules/ullong_max: New file.
73073
73074         * modules/chdir-long, modules/openat: New files.
73075         * modules/save-cwd (Depends-on): Depend on chdir-long.
73076         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73077
73078 2005-01-18  Jim Meyering  <jim@meyering.net>
73079
73080         Merge from coreutils.
73081         * m4/chdir-long.m4, m4/openat.m4: New files.
73082         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73083         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73084         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73085         is sane and DOES follow symlinks.  Besides, testing 20 different
73086         systems found no broken chown implementations.
73087         Prompted by a change in rsync's copy of this macro.
73088         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73089
73090         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73091
73092         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73093         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73094         NULL-means-set-to-current-time semantics.
73095         Remove temporary file immediately, rather than waiting
73096         for configure's at-exit trap code to do it.
73097
73098 2005-01-18  Jim Meyering  <jim@meyering.net>
73099
73100         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73101
73102         * lib/utimens.c (futimens): Account for the fact that futimes
73103         can also fail with errno == ENOSYS or errno == ENOENT.
73104         Patch from Dmitry V. Levin.
73105
73106         Change the name of the robust chdir function from chdir to chdir_long.
73107         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73108         (restore_cwd): Use chdir_long, not chdir.
73109         * lib/chdir-long.c: Renamed from chdir.c.
73110         * lib/chdir-long.h: Renamed from chdir.h.
73111         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73112         Hurd.
73113
73114 2005-01-18  Bruno Haible  <bruno@clisp.org>
73115
73116         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73117         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73118         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73119         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73120         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73121         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73122         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73123         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73124         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73125         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73126         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73127         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73128         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73129         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73130         Use an all-permissive copyright notice, recommended by RMS.
73131
73132 2005-01-18  Bob Proulx  <bob@proulx.com>
73133
73134         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73135         simplify offsetof() macro construct to avoid compile failure with
73136         native HP-UX 11.0 ANSI C compiler.
73137
73138 2005-01-17  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73141         redundant because stpncpy.m4 takes care of it.
73142
73143 2005-01-17  Bruno Haible  <bruno@clisp.org>
73144
73145         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73146
73147 2005-01-17  Bruno Haible  <bruno@clisp.org>
73148
73149         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73150         used.
73151
73152 2005-01-17  Bruno Haible  <bruno@clisp.org>
73153
73154         * lib/fwriteerror.h (fwriteerror): Change specification to include
73155         fclose.
73156         * lib/fwriteerror.c: Include <stdbool.h>.
73157         (fwriteerror): At the end, close the file stream. Record whether
73158         stdout was already closed.
73159
73160 2005-01-17  Bruno Haible  <bruno@clisp.org>
73161
73162         * lib/execute.c (environ): Declare if needed.
73163         * lib/pipe.c (environ): Likewise.
73164         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73165
73166 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73167
73168         * modules/argp: Depend on vsnprintf
73169
73170 2005-01-10  Jim Meyering  <jim@meyering.net>
73171
73172         * modules/closeout (Depends-on): Add atexit.
73173
73174 2005-01-06  Bruno Haible  <bruno@clisp.org>
73175
73176         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73177
73178 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73181         definitions to be after all include files, to avoid collisions.
73182         Problem reported by Bob Proulx.
73183
73184 2005-01-04  Jim Meyering  <jim@meyering.net>
73185
73186         Changes imported from coreutils.
73187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73188         as the mkstemp template, use a temporary directory and an
73189         8.3-friendly template to avoid trouble on systems like DJGPP.
73190         Reported by Juan M. Guerrero via Stepan Kasal.
73191         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73192         close. Remove the temporary directory right away, rather than waiting
73193         for configure's at-exit trap code to do it.
73194         Suggestion from Stepan Kasal.
73195
73196 2005-01-01  Simon Josefsson  <jas@extundo.com>
73197
73198         * gnulib-tool: Print #include directives when --import'ing.
73199
73200 2004-12-28  Simon Josefsson  <jas@extundo.com>
73201
73202         * tests/test-base64.c: Include required header files.  Remove
73203         unused variables.
73204
73205 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * modules/error (Depends-on): Remove gettext.
73208
73209 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73212         not needed.  This removes a dependency on the gettext module.
73213         [defined _LIBC]: Do not include <libintl.h>; not needed.
73214
73215 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73218         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73219
73220 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73223         HAVE_DECL_STRTOLD.
73224
73225 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * modules/getdate (Depends-on): Remove alloca-opt.
73228
73229 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73232
73233 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * lib/argp-parse.c: Include <stddef.h>.
73236         (alignof, alignto): New macros.
73237         (parser_init): Don't assume that void * is aligned sufficiently
73238         for struct option.
73239
73240         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73241         need to extend the stack.
73242         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73243         large.
73244
73245 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73246
73247         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73248
73249 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73252         (2004-10-24) change.  Apparently this was a false alarm.
73253
73254         * modules/getdate: Depend on alloca-opt, not alloca.
73255
73256 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73259         Remove now-obsolete comment about AIX.
73260         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73261         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73262         (YYMAXDEPTH): New macro.
73263
73264 2004-12-18  Simon Josefsson  <jas@extundo.com>
73265
73266         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73267
73268 2004-12-18  Bruno Haible  <bruno@clisp.org>
73269
73270         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73271
73272 2004-12-18  Bruno Haible  <bruno@clisp.org>
73273
73274         * lib/fatal-signal.c (fatal_signals): Make non-const.
73275         (init_fatal_signals): New function.
73276         (uninstall_handlers, install_handlers): Ignore signals that were set to
73277         SIG_IGN.
73278         (at_fatal_signal): Call init_fatal_signals.
73279         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73280         SIG_IGN.
73281         Reported by Paul Eggert.
73282
73283 2004-12-18  Bruno Haible  <bruno@clisp.org>
73284
73285         * doc/alloca.texi: New file.
73286         * doc/alloca-opt.texi: New file.
73287
73288 2004-12-17  Jim Meyering  <jim@meyering.net>
73289
73290         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73291         Otherwise, install-sh could exit with improper exit status when
73292         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73293
73294 2004-12-16  Simon Josefsson  <jas@extundo.com>
73295
73296         * tests/test-base64.c: Add license.
73297
73298 2004-12-15  Stepan Kasal  <address@hidden>
73299
73300         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73301
73302 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * modules/getcwd (Files): Add m4/d-ino.m4.
73305         Suggested by Mark D. Baushke.
73306
73307 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * lib/getdate.y (textint): New member "negative".
73310         (time_zone_hhmm): New function.
73311         Expect 14 shift-reduce conflicts, not 13.
73312         (o_colon_minutes): New rule.
73313         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73314         (yylex): Set the "negative" member of signed numbers.
73315
73316 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * doc/getdate.texi (Time of day items, Time zone items):
73319         Describe new formats +00:00, UTC+00:00.
73320
73321 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73324         spurious "-l"s.  Problem reported by Stepan Kasal.
73325
73326 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73329         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73330
73331 2004-12-04  Simon Josefsson  <jas@extundo.com>
73332
73333         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73334         Vandoorselaere <yoann@prelude-ids.org>.
73335
73336 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         Changes imported from coreutils.
73339         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73340         exist.
73341         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73342
73343 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         Changes imported from coreutils.
73346         * lib/hard-locale.c: Assume <locale.h> exists.
73347         Include "strdup.h".
73348         (GLIBC_VERSION): New macro.
73349         (hard_locale): Assume setlocale exists.
73350         Rewrite to avoid #ifdef.
73351         Use strdup rather than malloc + strcpy.
73352         * lib/human.c: Assume <locale.h> exists.
73353         (human_readable): Assume localeconv exists.
73354
73355 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * modules/hard-locale (Depends-on): Add strdup.
73358
73359 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73360
73361         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73362         convert T2, not T.  (Imported from libc.)
73363
73364 2004-11-30  Simon Josefsson  <jas@extundo.com>
73365
73366         * modules/restrict (License): Change to LGPL.
73367
73368 2004-11-30  Simon Josefsson  <jas@extundo.com>
73369
73370         * m4/restrict.m4: Add copyright and copying conditions.
73371
73372 2004-11-30  Simon Josefsson  <jas@extundo.com>
73373
73374         * m4/base64.m4: New file.
73375
73376 2004-11-30  Simon Josefsson  <jas@extundo.com>
73377
73378         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73379         base64.
73380
73381         * tests/test-base64.c: New file.
73382
73383         * modules/base64: New file.
73384
73385 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73388         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73389
73390         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73391
73392 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73395         (__getcwd.c): Don't restore errno; glibc doesn't.
73396         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73397         first, falling back to our code only if its results look suspicious.
73398         Ensure that the resulting buffer is only as large as necessary.
73399
73400         * lib/readutmp.c: Include readutmp.h first.
73401         Include <errno.h>, since readutmp.h no longer does that.
73402         * lib/readutmp.h: Don't include <errno.h>,
73403         <sys/param.h>, <time.h>; not needed to establish interface.
73404         (errno): Remove decl.
73405         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73406         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73407         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73408
73409 2004-11-28  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/base64.h, base64.c: New file.
73412
73413 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73414
73415         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73416
73417 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73420         (Depends-on): Remove pathmax, same.  Add mempcpy.
73421         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73422         (Makefile.am): Append getcwd.h to lib_SOURCES.
73423         (Include): Add getcwd.h.
73424         (Maintainer): Change from Jim Meyering to "all, glibc",
73425         since getdate now uses intended-for-glibc code.
73426         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73427         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73428
73429 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73432         HP's ANSI C compiler.
73433         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73434         Declaring int functions causes warnings on some modern systems and
73435         shouldn't be needed to compile on ancient ones.
73436         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73437         defined.
73438
73439         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73440         with the following changes.
73441         (__set_errno): Parenthesize properly.
73442         Include <stdbool.h>.
73443         (MIN, MAX, MATCHING_INO): New macros.
73444         (__getcwd): Define with prototype, not K&R form.
73445         Use heuristics to allocate default buffer on stack if possible.
73446         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73447         behavior, and to avoid the PATH_MAX limit when computing
73448         ../../../../...
73449         Use MATCHING_INO to compare inode number to file.
73450         Check for arithmetic overflow in size calculations.
73451         Fix bug in reallocation of dot array that caused getcwd to fail
73452         on directories nested deeper than 75.
73453         Be more careful about saving errno on error.
73454         Do not use realloc; use only free+malloc, as this is a bit
73455         more flexible and avoids a needless copy operation.
73456         Do not inspect st_dev and st_ino for symbolic links; POSIX
73457         doesn't specify the latter.
73458         Check for closedir errors.
73459         Avoid needless casts.
73460         Use "#ifdef weak_alias" around weak_alias, to be like other
73461         glibc code.
73462         The following changes to getcwd.c have effect only when used in
73463         gnulib; they have no effect inside glibc proper.
73464         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73465         as alloca isn't used.
73466         (alloca, __alloca): Likewise.
73467         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73468         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73469         unconditionally, as gnulib assumes C89 or better.
73470         Do not include <sys/param.h>.
73471         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73472         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73473         better.
73474         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73475         Include <dirent.h> in a way that is compatible with modern Autoconf.
73476         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73477         New macros, if not already defined.
73478         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73479         Use "_LIBC", not "defined _LIBC", for consistency.
73480         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73481         a mempcpy module.
73482         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73483         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73484         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73485         credit only to Jim Meyering and adjust the copyright dates.
73486         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73487         <stdlib.h>, <unistd.h>, "pathmax.h".
73488         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73489         (INITIAL_BUFFER_SIZE): Remove.
73490         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73491
73492 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73495         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73496         Use the _ONCE methods, for efficiency.
73497         Check for fcntl.h.  In test program, include <errno.h>
73498         and <fcntl.h> if available.  Remove old K&R cruft from
73499         test program.  Check for common errors in GNU/Linux,
73500         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73501         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73502         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73503         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73504         name accordingly.
73505         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73506         accommodate new getcwd.c.
73507         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73508         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73509         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73510         that's all we need now.
73511
73512 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73513
73514         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73515         argp-parse.c depends on getopt internals, that means we should
73516         always use our getopt, to be on the safe side.
73517         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73518         order not to spoil the result of an eventual previous invocation
73519         of gl_GETOPT_SUBSTITUTE.
73520
73521 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73522
73523         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73524         redefinition warnings. To avoid them, include the defines
73525         in `#if !defined __need_getopt ... #endif'. The only place
73526         where __getopt_argv_const is used is in definitions
73527         of getopt_long and getopt_long_only below, which are as well
73528         protected by `#ifndef __need_getopt'.
73529         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73530         __need_getopt after including <stdio.h> and <unistd.h> These
73531         headers might have defined it.
73532
73533 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73536
73537 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73540         (futimens): New function, which uses futimes if available.
73541         (futimens, utimens): Support timespec==NULL, with same semantics
73542         as utime and utimens.
73543         * lib/utimens.h (futimens): New decl.
73544
73545 2004-11-23  Jim Meyering  <jim@meyering.net>
73546
73547         * lib/getopt_.h: Remove trailing blanks.
73548
73549 2004-11-23  Jim Meyering  <jim@meyering.net>
73550
73551         * lib/__fpending.c: Add comment.
73552
73553 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73554
73555         * modules/canonicalize (Depends-on): Add xreadlink.
73556         Problem reported by James Youngman.
73557
73558 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73559
73560         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73561         New macros.
73562         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73563         optopt): Use them instead of invoking ## directly; otherwise, the
73564         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73565
73566 2004-11-19  Bruno Haible  <bruno@clisp.org>
73567
73568         * lib/strtok_r.c: Move comments from here...
73569         * lib/strtok_r.h: ... to here.
73570
73571 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73574         implementations that mishandle size_t overflow.
73575
73576 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73579         might fail.  Problem reported by Yoann Vandoorselaere.
73580         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73581         implementations that mishandle size_t overflow.
73582
73583 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * modules/canon-host (Depends-on): Add strdup.
73586
73587 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73590
73591 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         * lib/canon-host.c: Include "strdup.h".
73594         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73595         Use strdup instead of malloc/strcpy to duplicate strings.
73596
73597         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73598         (human_space_before_unit): New constant.
73599         * lib/human.c (human_readable): Support it.
73600
73601         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73602         (xgetcwd): Set errno correctly when failing.
73603         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73604         the failure is actually due to a PATH_MAX problem.
73605
73606         Further getopt changes to make it more likely that glibc will
73607         buy the changes back.
73608         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73609         (getopt): Use it, so to preserve glibc semantic
73610         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73611         when compiling for libc.
73612         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73613         (getopt_long, getopt_long_only): Use it.
73614
73615         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73616         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73617         (getopt): Argv is now char * const *, as per standard.
73618         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73619         not char *__getopt_argv_const *.
73620         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73621         _getopt_long_only_r): Likewise.
73622         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73623         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73624         _getopt_long_r, _getopt_long_only_r): Likewise.
73625         * lib/getopt_.h (__getopt_argv_const): Remove.
73626         (getopt): Argv is now char * const *, as per standard.
73627
73628         * lib/getdate.y (tORDINAL): New token.
73629         (day, relunit): Allow it for relative times.
73630         (relative_time_table): Use tORDINAL for ordinals.
73631
73632 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73635         Document that "second" isn't allowed as an ordinal number.
73636
73637 2004-11-16  Jim Meyering  <jim@meyering.net>
73638
73639         * modules/closeout (Depends-on): Add fpending.
73640
73641 2004-11-15  Jim Meyering  <jim@meyering.net>
73642
73643         * lib/closeout.c: Include "__fpending.h" once again.
73644         Include <stdbool.h>.
73645         (close_stdout): Don't fail just because stdout was closed initially,
73646         since some programs don't write to stdout in the normal course of
73647         operation (other than --version and --help), and we don't want this
73648         function to make e.g. `touch file >&-' fail.
73649         But do fail if it was closed and someone has tried to write to it.
73650         E.g., `printf foo >&-' must fail.
73651
73652 2004-11-13  Jim Meyering  <jim@meyering.net>
73653
73654         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73655
73656 2004-11-12  Simon Josefsson  <jas@extundo.com>
73657
73658         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73659         small doc fix is still pending.
73660
73661 2004-11-11  Simon Josefsson  <jas@extundo.com>
73662
73663         * modules/strtok_r: New file.
73664
73665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73666         strtok_r.
73667
73668 2004-11-11  Simon Josefsson  <jas@extundo.com>
73669
73670         * m4/strtok_r.m4: New file.
73671
73672         * m4/getopt.m4: Replace opterr.
73673
73674 2004-11-11  Simon Josefsson  <jas@extundo.com>
73675
73676         * lib/strtok_r.h, strtok_r.c: New file.
73677
73678 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73681         of replacing opterr, getopt, etc.  This should handle the
73682         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73683
73684 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73687         we can stop lying to compilers about the constness of argv when we
73688         are compiled outside glibc.
73689         (getopt, getopt_long, getopt_long_only): Use it.
73690         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73691         _getopt_internal, getopt): Likewise.
73692         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73693         _getopt_long_only_r): Likewise.
73694         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73695         _getopt_long_r, _getopt_long_only_r): Likewise.
73696
73697         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73698         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73699         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73700         the other external symbols.
73701         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73702         declaration, since the above renaming now works around collisions.
73703
73704 2004-11-11  Jim Meyering  <jim@meyering.net>
73705
73706         * lib/linebreak.c: Remove trailing blanks.
73707         * lib/alloca_.h: Likewise.
73708         * lib/acosl.c: Likewise.
73709         * lib/euidaccess.c: Likewise.
73710         * lib/allocsa.h: Likewise.
73711
73712 2004-11-10  Simon Josefsson  <jas@extundo.com>
73713
73714         * m4/getaddrinfo.m4: New file.
73715
73716 2004-11-10  Simon Josefsson  <jas@extundo.com>
73717
73718         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73719
73720 2004-11-10  Simon Josefsson  <jas@extundo.com>
73721
73722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73723         getaddrinfo.
73724
73725         * modules/getaddrinfo: New file.
73726
73727 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73728
73729         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73730
73731 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * lib/mktime.c (SHR): New macro, which is a portable
73734         substitute for >> that should work even on Crays.
73735         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73736         Problem reported by Mark D. Baushke in
73737         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73738         * lib/getdate.y (SHR): Likewise.
73739         (tm_diff): Use it.
73740         * lib/strftime.c (SHR): Likewise.
73741         (tm_diff): Use it.
73742         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73743         quote_these_too, so that right shifts are well defined.  All uses
73744         changed.
73745
73746 2004-11-10  Jim Meyering  <jim@meyering.net>
73747
73748         Ensure that no close failure goes unreported.
73749         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73750         return early when it seems there's nothing to flush.
73751         Don't include __fpending.h.
73752
73753 2004-11-10  Jim Meyering  <jim@meyering.net>
73754
73755         * modules/closeout (Depends-on): Remove fpending.
73756
73757 2004-11-10  Jim Meyering  <jim@meyering.net>
73758
73759         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73760
73761 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73762
73763         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73764         gl_FUNC_STRFTIME.
73765         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73766         and AC_REQUIRE when possible, to avoid duplicate checks.
73767         Check for <wchar.h>.
73768
73769 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73772
73773 2004-11-09  Bruno Haible  <bruno@clisp.org>
73774
73775         * m4/sockpfaf.m4: New file.
73776
73777 2004-11-05  Bruno Haible  <bruno@clisp.org>
73778
73779         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73780         Reported by Mark D. Baushke <mdb@cvshome.org>.
73781
73782 2004-11-04  Bruno Haible  <bruno@clisp.org>
73783
73784         2004-09-11  Bruno Haible  <bruno@clisp.org>
73785                 * allocsa.valgrind: New file.
73786         2004-02-06  Bruno Haible  <bruno@clisp.org>
73787                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73788                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73789                 Reported by Christopher Seip <chris.seip@hp.com>.
73790
73791 2004-11-04  Bruno Haible  <bruno@clisp.org>
73792
73793         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73794         (Makefile.am): Distribute it.
73795
73796 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73799         with errno == ERANGE if the buffer is too small.
73800         Problem reported by Mark D. Baushke.
73801
73802 2004-11-03  Albert Chin  <china@thewrittenword.com>
73803             Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73806         equivalent, substitute $ac_type for equivalent type rather than
73807         blindly using uint32_t *always* which won't work if uint32_t is not
73808         available.  Define _UINT32_T to work around typedef of uint32_t if
73809         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73810         2.5.1.
73811
73812 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * m4/jm-macros.m4: Sync from coreutils.
73815         (gl_MACROS): Check for mbrlen, for pathchk.
73816         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73817
73818 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73819
73820         * lib/xreadlink.c (MAXSIZE): New macro.
73821         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73822         size does not exceed MAXSIZE.  Avoid cast.
73823         As suggested by Mark D. Baushke in
73824         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73825         if readlink fails with buffer size just under MAXSIZE, try again
73826         with MAXSIZE.
73827
73828 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73831
73832 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73833         and  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73836         (get_date): Overparenthesize to avoid GCC warning.
73837
73838 2004-11-02  Bruno Haible  <bruno@clisp.org>
73839
73840         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73841         returns void.
73842
73843 2004-11-02  Bruno Haible  <bruno@clisp.org>
73844
73845         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73846         function returns void.
73847
73848 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73851         fflush_unlocked, flockfile, funlockfile, funlockfile,
73852         fputs_unlocked, putc_unlocked.
73853
73854 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73857         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73858         already declared.
73859
73860 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * modules/getdate (Files): Add doc/getdate.texi.
73863         (Depends-on): Add setenv, xalloc.
73864
73865 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         * lib/getdate.y: Add support for TZ="foo" within a date string.
73868         Fix some bugs near time_t boundaries.  Reject dates with
73869         out-of-range components, e.g., "Sept 31".
73870         Include <stdlib.h>, "setenv.h", "xalloc.h".
73871         (ISDIGIT_LOCALE): Remove; unused.
73872         Note that the TZ and time functions used here are not reentrant.
73873         (mktime_ok, get_tz): New functions.
73874         (TZBUFSIZE): New constant.
73875         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73876         This requires that we sometimes generate our own TZ="XXX..." setting.
73877
73878 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73879
73880         * doc/getdate.texi: New file, from coreutils with modifications for
73881         the new TZ parsing.
73882
73883 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73884
73885         * lib/mktime.c (not_equal_tm): Remove redundant check.
73886
73887 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/regex (lib_SOURCES): Add regex.c.
73890         Reported by James Youngman in
73891         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73892
73893 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * lib/getdate.y: Use Bison 1.875 features, and some minor
73896         code cleanups.  This change does not affect semantics.
73897         Don't include <stdlib.h>; no longer needed.
73898         Don't include unlocked-io.h; only the "#if TEST" code uses
73899         stdio, and performance isn't crucial there.
73900         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73901         Bison 1.875 features as described below.
73902         All uses of "PC." replaced by "pc->".
73903         (YYSTYPE): Add a forward declaration.
73904         (yylex, yyerror): Use full prototypes in forward decls.
73905         Use "%pure-parser" rather than obsolescent "%pure_parser".
73906         Use %parse-param and %lex-param instead of obsolescent
73907         YYPARSE_PARAM and YYLEX_PARAM.
73908         (meridian_table, month_and_day_table, time_units_table,
73909         relative_time_table, time_zone_table, military_table,
73910         lookup_zone, lookup_word, get_date):
73911         Use NULL instead of 0 where appropriate.
73912         (to_hour): Avoid abort (), to avoid a dependency on
73913         stdlib.h.
73914         (yyerror, yylex): Now accepts parser_control * arg.
73915         (main) [TEST]: Use '\0' rather than 0 for char.
73916
73917 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73920
73921 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73924         It's now the caller's responsibility to handle the case where
73925         !HAVE_GETPAGESIZE && !defined getpagesize.
73926
73927         * lib/mktime.c (leapyear): Arg is long int, not int.
73928
73929 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73932
73933 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73936         missing.  Problem reported by James Youngman.
73937
73938 2004-10-16  Simon Josefsson  <jas@extundo.com>
73939
73940         * gnulib-tool: Fix comments.  Fix parse problem.
73941         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73942
73943 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73946         implementation of getopt_long.  Problem reported by Alexander Taler in:
73947         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73948
73949 2004-10-15  Bruno Haible  <bruno@clisp.org>
73950
73951         * gnulib-tool: Untabify. Initialize supplied_libname.
73952         (func_usage): More homogenous output.
73953         (func_modules_transitive_closure, func_modules_to_filelist,
73954         func_emit_lib_Makefile_am): New functions.
73955         (func_import): New function, extracted from big case statement. Use
73956         func_get_license, func_modules_transitive_closure,
73957         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73958         opt_lgpl. Don't use test -a, as it's not portable.
73959         (func_create_testdir): Use func_modules_transitive_closure,
73960         func_modules_to_filelist, func_emit_lib_Makefile_am.
73961
73962 2004-10-15  Bruno Haible  <bruno@clisp.org>
73963
73964         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73965
73966 2004-10-15  Bruno Haible  <bruno@clisp.org>
73967
73968         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73969         the portions belonging to each module.
73970         Suggested by Derek Robert Price <derek@ximbiot.com>.
73971
73972 2004-10-12  Simon Josefsson  <jas@extundo.com>
73973
73974         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73975         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73976         to real functions.
73977
73978 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73979
73980         * modules/vsnprintf: New file.
73981
73982 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73983
73984         * m4/vsnprintf.m4: New file.
73985
73986 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73987
73988         * lib/vsnprintf.h: New file.
73989         * lib/vsnprintf.c: New file.
73990
73991 2004-10-11  Bruno Haible  <bruno@clisp.org>
73992
73993         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73994         vsnprintf.
73995
73996 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73997
73998         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73999
74000 2004-10-07  Bruno Haible  <bruno@clisp.org>
74001
74002         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74003         fits into the provided buffer.
74004
74005 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         * lib/diacrit.c, diacrit.h: Add GPL notice.
74008
74009         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74010         notice.
74011         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74012         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74013         This avoids a potential constant-folding bug.
74014
74015 2004-10-05  Bruno Haible  <bruno@clisp.org>
74016
74017         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74018         for the declaration of strsep.
74019
74020 2004-10-05  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74023
74024 2004-10-04  Simon Josefsson  <jas@extundo.com>
74025
74026         * modules/memmem: New file.
74027         * tests/test-memmem.c: New file.
74028         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74029
74030 2004-10-04  Simon Josefsson  <jas@extundo.com>
74031
74032         * m4/memmem.m4: New file.
74033
74034 2004-10-04  Simon Josefsson  <jas@extundo.com>
74035
74036         * lib/memmem.h: New file.
74037         * lib/memmem.c: New file, taken from glibc.
74038
74039 2004-10-04  Simon Josefsson  <jas@extundo.com>
74040
74041         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74042         '#ifdef USE_UNLOCKED_IO'.
74043
74044 2004-10-04  Simon Josefsson  <jas@extundo.com>
74045
74046         * config/srclist.txt: Add memmem from glibc.
74047
74048 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74051
74052         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74053         modules/exclude, modules/getdate, modules/getline,
74054         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74055         modules/getusershell, modules/linebuffer, modules/md5,
74056         modules/mountlist, modules/posixtm, modules/readtokens,
74057         modules/readutmp, modules/regex, modules/sha1,
74058         modules/version-etc, modules/yesno:
74059         Remove dependency on unlocked-io.
74060
74061 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74064
74065         * m4/unlocked-io.m4: Add copyright notice.
74066         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74067
74068 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74071         * lib/xmalloc.c (xmemdup): Likewise.
74072         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74073         XFREE): Remove these long-obsolescent macros.
74074         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74075         * lib/xstrdup.c: Remove.
74076
74077         * lib/regex.c (re_comp): Cast gettext return value to char *,
74078         Problem reported by Martin Neitzel via Mark D. Baushke.
74079
74080 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74083         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74084         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74085         regex.c, sha1.c, version-etc.c, yesno.c:
74086         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74087         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74088         the includer's responsibility.
74089
74090         Sync from coreutils.
74091
74092         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74093         points to the start of a string, as the C Standard says the
74094         resulting behavior is undefined.
74095
74096         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74097         simple -> simple_backups, numbered_existing ->
74098         numbered_existing_backups, numbered -> numbered_backups
74099         to avoid shadowing problems.  All uses changed.
74100         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74101         * lib/backupfile.c (check_extension, numbered_backup):
74102         Rename locals to avoid shadowing 'basename'.
74103         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74104         once.
74105
74106         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74107         * lib/.cvsignore: Add getopt.h.
74108
74109 2004-10-04  Bruno Haible  <bruno@clisp.org>
74110
74111         * modules/README: New file.
74112         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74113         not a module.
74114
74115 2004-10-02  Jim Meyering  <jim@meyering.net>
74116
74117         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74118
74119 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74120
74121         * modules/strsep: New file.
74122
74123 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74124
74125         * m4/strsep.m4: New file.
74126
74127 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74128
74129         * lib/strsep.h: New file.
74130         * lib/strsep.c: New file.
74131
74132 2004-10-01  Simon Josefsson  <jas@extundo.com>
74133
74134         * lib/snprintf.c (snprintf): Handle size==0.
74135
74136 2004-10-01  Simon Josefsson  <jas@extundo.com>
74137             Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74140         (snprintf): Declare 'args'.
74141
74142 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         * lib/snprintf.c: Remove comments as to why each header is needed.
74145
74146 2004-10-01  Bruno Haible  <bruno@clisp.org>
74147
74148         * MODULES.html.sh: Add strsep.
74149
74150 2004-09-30  Simon Josefsson  <jas@extundo.com>
74151
74152         * modules/snprintf: New file.
74153
74154 2004-09-30  Simon Josefsson  <jas@extundo.com>
74155
74156         * m4/snprintf.m4: New file.
74157
74158 2004-09-30  Simon Josefsson  <jas@extundo.com>
74159
74160         * lib/snprintf.h, lib/snprintf.c: New files.
74161
74162 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74163
74164         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74165         (hol_entry_help): Never translate an empty string.
74166         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74167         * lib/argp.h (OPTION_NO_TRANS): New option.
74168
74169 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * modules/argp (Maintainer): Replace Simon Josefsson
74172         by Sergey Poznyakoff.
74173
74174 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74177         changes merged back into glibc.
74178
74179 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74180
74181         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74182
74183 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74184
74185         * lib/xvasprintf.c: Include xalloc.h.
74186         (xvasprintf): Use xalloc_die, not xmalloc_die.
74187
74188 2004-09-29  Bruno Haible  <bruno@clisp.org>
74189
74190         * modules/alloca-opt: New file, derived from modules/alloca.
74191         * modules/allocsa: Depend on alloca-opt instead of alloca.
74192         * modules/setenv: Likewise.
74193         * modules/vasnprintf: Likewise.
74194         * MODULES.html.sh: Add alloca-opt.
74195
74196 2004-09-28  Simon Josefsson  <jas@extundo.com>
74197
74198         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74199         LGPL, and to replace license template from GPL to LGPL.
74200
74201 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * modules/dummy: Change license to LGPL.
74204
74205 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74208
74209 2004-09-24  Simon Josefsson  <jas@extundo.com>
74210
74211         * modules/minmax (License): Change from GPL to LGPL.
74212
74213 2004-09-23  Simon Josefsson  <jas@extundo.com>
74214
74215         * gnulib-tool (--import): Typo.
74216
74217 2004-09-23  Simon Josefsson  <jas@extundo.com>
74218
74219         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74220
74221 2004-09-22  Bruno Haible  <bruno@clisp.org>
74222
74223         * modules/*: Add 'License' field.
74224         * gnulib-tool: Accept --extract-license option.
74225         (func_get_license): New function.
74226
74227 2004-09-21  Bruno Haible  <bruno@clisp.org>
74228
74229         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74230         Reported by Simon Josefsson.
74231
74232 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74235         gl_AC_TYPE_LONG_LONG.
74236
74237 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74240
74241 2004-09-18  Simon Josefsson  <jas@extundo.com>
74242         and  Paul Eggert  <eggert@cs.ucla.edu>
74243
74244         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74245         calls with autoreconf.  Define GL_LIB.
74246
74247 2004-09-14  Karl Berry  <karl@gnu.org>
74248
74249         * config/srclist.txt: unsync setenv.c, sigh.
74250
74251 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74254         Problem reported by Bruno Haible in:
74255         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74256
74257 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * config/srclist.txt: Comment out argp-pvh.c.
74260
74261 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74264         in case some system header has #define'd it.  Problem reported by
74265         Soeren D. Schulze in
74266         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74267
74268 2004-09-09  Karl Berry  <karl@gnu.org>
74269
74270         * regex.[ch]: delete from the root.  These were supposed to be
74271                 synced with emacs cvs, but this has not happened for about
74272                 a year, and anyway nothing else uses emacs regex.[ch].
74273                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74274                 lib/regex[.ch] is untouched.
74275
74276 2004-09-09  Bruno Haible  <bruno@clisp.org>
74277
74278         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74279
74280 2004-09-09  Bruno Haible  <bruno@clisp.org>
74281
74282         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74283         modifications.
74284         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74285
74286 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74287
74288         * modules/xvasprintf: New file.
74289         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74290
74291 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74292
74293         * lib/xvasprintf.h: New file.
74294         * lib/xvasprintf.c: New file.
74295         * lib/xasprintf.c: New file.
74296
74297 2004-09-08  Bruno Haible  <bruno@clisp.org>
74298
74299         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74300
74301 2004-09-08  Bruno Haible  <bruno@clisp.org>
74302
74303         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74304         length is > INT_MAX.
74305         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74306         more.
74307
74308 2004-09-08  Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/stdint_.h: New file, taken from GNU clisp.
74311
74312 2004-09-08  Bruno Haible  <bruno@clisp.org>
74313             Oskar Liljeblad  <oskar@osk.mine.nu>
74314
74315         * modules/stdint: New file.
74316         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74317
74318 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74319
74320         Import from coreutils.
74321         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74322         strings on unbounded length.  alloca's performance benefits aren't
74323         that important here.
74324         (V_STRDUP): Remove.
74325         (parse_with_separator): New function, with most of the internals
74326         of the old parse_user_spec.  Allow user to omit both user and group,
74327         for compatibility with FreeBSD.
74328         Clone only the user name, not the entire spec.
74329         Do not set *uid, *gid unless entirely successful.
74330         Avoid memory leak in some failing cases.
74331         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74332         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74333         (parse_user_spec): Rewrite to use parse_with_separator.
74334
74335 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         * modules/userspec: Don't depend on alloca.
74338
74339 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74342
74343 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74346         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74347         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74348
74349 2004-08-16  Simon Josefsson  <jas@extundo.com>
74350
74351         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74352         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74353         Add --dry-run for --import.
74354         Let user provided command line parameters override configure.ac
74355         settings.
74356
74357 2004-08-12  Simon Josefsson  <jas@extundo.com>
74358
74359         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74360         as discussed with Paul Eggert in threads rooted at
74361         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74362         and
74363         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74364         Before, the test was empty, and relied on ELIDE_CODE in source
74365         code.)
74366         (gl_PREREQ_GETOPT): New macro.
74367         (gl_GETOPT): Use them.
74368
74369 2004-08-12  Simon Josefsson  <jas@extundo.com>
74370
74371         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74372         * lib/getopt_.h: Renamed from getopt.h.
74373
74374 2004-08-12  Simon Josefsson  <jas@extundo.com>
74375
74376         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74377         Change default library name from libfoo to libgnu.
74378         Now, if you have a configure.ac that says:
74379                 gl_SOURCE_BASE(gl)
74380                 gl_M4_BASE(gl/m4)
74381                 gl_MODULES(error getopt etcetera)
74382                 gl_INIT
74383         you can import all you need by running:
74384                 ../gnulib/gnulib-tool --import
74385
74386         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74387         (Makefile.am): Rewrite, use logic from argz.
74388         (Include): Use <getopt.h> instead of "getopt.h".
74389
74390 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * modules/argp (Files): Add m4/unlocked-io.m4.
74393         (Depends-on): Add extensions.
74394
74395 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74398         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74399         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74400         Check for program_invocation_name, program_invocation_short_name,
74401         flockfile, funlockfile, features.h, _getopt_long_only_r.
74402
74403 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74406         its complicated substitute.
74407         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74408         and program_invocation_name.
74409         (__argp_basename) [!_LIBC]: Remove; the only use was
74410         replaced by its body.
74411         (__argp_short_program_name): Change condition from
74412         !defined __argp_short_program_name to
74413         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74414         to match argp-namefrob.h.
74415         (__argp_failure): Don't assume strerror_r returns char *.
74416         * lib/argp-parse.c (N_): Define unconditionally.
74417         (argp_default_options): Fill out initializers with 0 to avoid
74418         gcc warnings.
74419
74420 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74423         getopt1.c.
74424
74425 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         Merge from coreutils.
74428
74429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74430
74431         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74432         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74433
74434 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74435
74436         Merge from coreutils.
74437
74438         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74439         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74440         for Reliant Unix 5.43.
74441
74442         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74443         (union fooround): Use uintmax_t, not long int.
74444         The rest is a merge from libc:
74445         [defined _LIBC]: Include <shlib-compat.h>.
74446         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74447
74448         * lib/settime.c (settime): Recode to avoid warning with
74449         Sun Forte C 6U2.
74450
74451         * lib/strverscmp.c: Convert to UTF-8.
74452
74453 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74456         m4/uintmax_t.m4.
74457
74458 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * modules/xalloc-die: New file.
74461         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74462
74463         * modules/md5 (Files): Add m4/uint32_t.m4.
74464         * modules/sha1: Renamed from modules/sha.
74465         (Files):
74466         Rename lib/sha.h to lib/sha1.h.
74467         Rename lib/sha.c to lib/sha1.c.
74468         Rename m4/sha.m4 to m4/sha1.m4.
74469         (lib_SOURCES): Likewise.
74470         (configure.ac): Rename gl_SHA to gl_SHA1.
74471         (Include): sha.h -> sha1.h.
74472
74473 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74476         * m4/sha1.m4: Renamed from sha.m4.
74477         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74478
74479 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * lib/obstack.h (obstack_empty_p):
74482         Don't assume that chunk->contents is suitably aligned.
74483         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74484         Likewise. Problem reported by Benno in
74485         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74486
74487         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74488         readable.  This could be improved further but it'd take some work.
74489
74490 2004-08-08  Simon Josefsson  <jas@extundo.com>
74491
74492         * modules/xgethostname (Depends-on): Remove exit and error (not
74493         used).
74494
74495         * modules/getpass-gnu: Add getpass.h.
74496         (Depends-on): Add stdbool.
74497         * modules/getpass: Add getpass.h.
74498
74499 2004-08-08  Simon Josefsson  <jas@extundo.com>
74500
74501         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74502         Check getpass declaration.
74503
74504 2004-08-08  Simon Josefsson  <jas@extundo.com>
74505
74506         * lib/xgethostname.c: Don't include error.h (not used).
74507
74508         * lib/getpass.h: Add.
74509         * lib/getpass.c: Include getpass.h first.
74510
74511 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74512
74513         * lib/xalloc-die.c: New file.
74514         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74515         All uses removed.
74516         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74517         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74518         xalloc-die.c.
74519         (_, N_, xalloc_die): Move to xalloc-die.c.
74520         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74521         so that we needn't mess with xalloc_msg_memory_exhausted.
74522
74523         * lib/sha1.h: Renamed from sha.h.
74524         (SHA1_H): Renamed from _SHA_H.
74525         (sha1_ctx): Renamed from sha_ctx.
74526         (sha1_init_ctx): Renamed from sha_init_ctx.
74527         (sha1_process_block): Renamed from sha_process_block.
74528         (sha1_process_bytes): Renamed from sha_process_bytes.
74529         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74530         (sha1_read_ctx): Renamed from sha_read_ctx.
74531         (sha1_stream): Renamed from sha_stream.
74532         (sha1_buffer): Renamed from sha_buffer.
74533         * lib/sha1.c: Likewise; renamed from sha.c.
74534         Do not include <sys/types.h>.
74535         Include <stddef.h> rather than <stdlib.h>.
74536
74537 2004-08-08  Bruno Haible  <bruno@clisp.org>
74538
74539         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74540         FILESYSTEM_PREFIX_LEN.
74541         * lib/progreloc.c: Likewise.
74542         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74543
74544 2004-08-06  Simon Josefsson  <jas@extundo.com>
74545
74546         * modules/progname (Depends-on): Don't depend on stdbool.
74547
74548 2004-08-06  Simon Josefsson  <jas@extundo.com>
74549
74550         * modules/getsubopt: New file.
74551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74552         getsubopt.
74553
74554 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         More merge from coreutils.
74557
74558         * m4/utimens.m4, m4/utimecmp.m4: New files.
74559         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74560         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74561         prereq.m4, sha.m4: Import changes from coreutils.
74562
74563 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         More merge from coreutils.
74566         * modules/raise, modules/readtokens0, modules/utimens:
74567         * modules/utimecmp, module/xnanosleep: New files.
74568         * modules/strftime: Add lib/strftime.h.
74569         Change include from <time.h> to "strftime.h".
74570         * modules/yesno: Add lib/yesno.h.
74571         * modules/backupfile: Remove lib/addext.c.
74572         * modules/euidaccess: Add stat-macros.h.
74573         * modules/canonicalize, modules/euidaccess,
74574         modules/filemode, modules/lchown, modules/makepath,
74575         modules/rmdir, modules/stat: Likewise.
74576
74577 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         Merge from tar.
74580         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74581         SIZE_MAX is a valid preprocessor constant.
74582         (__argp_basename): Change from "#ifndef _LIBC"
74583         to "#ifndef __argp_short_program_name", so that
74584         we don't compile these functions for tar.
74585
74586         More merges from coreutils.
74587         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74588         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74589         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74590         * lib/addext.c: Remove; no longer needed.
74591         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74592         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74593         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74594         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74595         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74596         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74597         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74598         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74599         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74600         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74601         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74602         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74603         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74604         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74605         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74606         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74607         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74608         Import changes from coreutils.
74609
74610 2004-08-05  Simon Josefsson  <jas@extundo.com>
74611
74612         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74613
74614 2004-08-05  Simon Josefsson  <jas@extundo.com>
74615
74616         * m4/getsubopt.m4: New file.
74617
74618 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         Merge from coreutils.
74621
74622         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74623         * m4/getcwd-path-max.m4: New files.
74624
74625         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74626         FILESYSTEM_PREFIX_LEN ->
74627         FILE_SYSTEM_PREFIX_LEN.
74628         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74629         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74630         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74631         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74632
74633         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74634         prerequisite modules now handle the DOS stuff.
74635         Don't check for unistd.h.
74636
74637 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         Merge from coreutils.
74640
74641         * lib/.gdb-history: Remove; this doesn't belong here.
74642
74643         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74644         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74645         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74646         * lib/getcwd.c: New files.
74647
74648         * lib/dirname.h: Include <stdbool.h>.
74649         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74650         for consistency with POSIX terminology.  All uses changed.
74651         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74652         (strip_trailing_slashes): Use bool for booleans.
74653         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74654
74655         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74656         sometimes returns a positive errno value even when it succeeds.
74657         (print_errno_message) [!LIBC]: Fall back on strerror if
74658         __strerror_r fails.
74659
74660         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74661         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74662         (longest_relative_suffix): New function.
74663         (path_concat): Use it.  Assume first argument is not NULL.
74664         Port to DOS.  Omit redundant separators.
74665         Report an error instead of returning NULL.
74666         Use mempcpy instead of memcpy.
74667         (xpath_concat): Remove: not declared or used.
74668
74669         * lib/same.h: Include <stdbool.h>
74670         (same_name): Return bool, not int.
74671         * lib/same.c (same_name): Likewise.
74672         (errno): Don't declare; we assume C89 or better now.
74673
74674         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74675         if not already defined.
74676
74677         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74678         * lib/dup-safer.c (errno): Likewise.
74679
74680 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         Merge from coreutils.
74683         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74684         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74685         * modules/path-concat: Don't depend on strdup.
74686
74687 2004-08-03  Simon Josefsson  <jas@extundo.com>
74688
74689         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74690         * lib/progname.h: Don't include stdbool.h.
74691
74692 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74695         * MODULES.html.sh (func_all_modules): Remove fatal.
74696
74697 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74700
74701 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74704         working.
74705
74706 2004-08-02  Simon Josefsson  <jas@extundo.com>
74707
74708         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74709         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74710         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74711
74712 2004-08-01  Simon Josefsson  <jas@extundo.com>
74713
74714         * lib/xgetdomainname.c: Include stdlib.h, for free().
74715
74716 2004-07-19  Bruno Haible  <bruno@clisp.org>
74717
74718         * MODULES.html.sh (func_all_modules): Add dummy.
74719
74720 2004-07-16  Simon Josefsson  <jas@extundo.com>
74721
74722         * modules/dummy: New file.
74723
74724 2004-07-16  Simon Josefsson  <jas@extundo.com>
74725
74726         * lib/dummy.c: New file.
74727
74728 2004-07-16  Bruno Haible  <bruno@clisp.org>
74729
74730         * lib/backupfile.h: Add extern "C" for C++.
74731         * lib/closeout.h: Likewise.
74732         * lib/copy-file.h: Likewise.
74733         * lib/findprog.h: Likewise.
74734         * lib/full-write.h: Likewise.
74735         * lib/pathname.h: Likewise.
74736         * lib/progname.h: Likewise.
74737         * lib/stpcpy.h: Likewise.
74738         * lib/stpncpy.h: Likewise.
74739         * lib/strcase.h: Likewise.
74740         * lib/strstr.h: Likewise.
74741         * lib/xalloc.h: Likewise.
74742
74743         * lib/mbswidth.h: Add extern "C" for C++.
74744         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74745
74746 2004-07-13  Robert Millan  <robertmh@gnu.org>
74747
74748         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74749
74750 2004-07-09  Simon Josefsson  <jas@extundo.com>
74751
74752         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74753         failed without this.)
74754
74755 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * modules/chown (Files): Add lib/fchown-stub.c, since
74758         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74759
74760 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         * lib/fchown-stub.c: New file.
74763
74764 2004-06-24  Jim Meyering  <jim@meyering.net>
74765
74766         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74767
74768 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * modules/argz: Omit "#include".
74771
74772         * MODULES.html.sh (func_all_modules): Add calloc, to match
74773         2004-06-01 addition of calloc module.
74774
74775 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * m4/argz.m4: New file, which is autoupdated from libtool.
74778
74779 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74782         libtool.
74783
74784 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * config/srclist-update: Don't insist on "USA." before the
74787         close-comment, as libtool omits the period and puts the */ on a
74788         separate line.
74789         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74790         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74791
74792 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74793
74794         * modules/argz: New file.
74795         * MODULES.html.sh (func_all_modules): Add argz.
74796
74797 2004-06-12  Jim Meyering  <jim@meyering.net>
74798         and  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         * modules/hash (Files): Add lib/xalloc.h.
74801         * modules/pipe (Depends-on): Add wait-process.
74802         * modules/stat (Depends-on): Add xalloc.
74803         * modules/userspec (Files): Add lib/userspec.h.
74804         * modules/xstrto
74805
74806         Upgrade from gettext-0.13.
74807         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74808         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74809         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74810
74811 2004-06-10  Jim Meyering  <jim@meyering.net>
74812
74813         * lib/calloc.c: New file.
74814
74815 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * lib/getdate.y (yylex): Allow space between sign and number.
74818         Problem reported by Dan Jacobson.
74819
74820 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74821
74822         Merge from coreutils CVS.
74823
74824         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74825         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74826         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74827         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74828         xstrtol.m4: Fix copyright date and/or serial number.
74829
74830         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74831         See if we need an fchown replacement.
74832         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74833         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74834         and use the replacement function if we detect either defect.
74835
74836         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74837         gl_UTIMECMP.
74838
74839 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74840         and  Jim Meyering  <jim@meyering.net>
74841
74842         Merge from coreutils CVS.
74843
74844         * lib/stat-macros.h: New file, with contents from file-type.h
74845         and coreutils' system.h.
74846         * lib/file-type.c: Include "stat-macros.h".
74847         * lib/file-type.h (file_type): Move all macro definitions to new file,
74848         stat-macros.h.
74849
74850         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74851         Wrap old code with this conditional.
74852         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74853         function that does not dereference symlinks.
74854         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74855
74856         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74857         dependency problems.
74858         (xreadlink): Accept new arg SIZE, for efficiency.
74859         All decls and uses changed.
74860         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74861
74862         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74863         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74864
74865         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74866         sysexits.h.
74867
74868 2004-06-01  Jim Meyering  <jim@meyering.net>
74869
74870         * m4/calloc.m4: New file.
74871
74872 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74875         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74876         Also, fix a typo in a diagnostic.
74877
74878 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74881         or AC_FUNC_REALLOC.
74882
74883 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74886         macros to be defined.
74887         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74888         the allocator returns NULL because the requested size is zero.
74889
74890 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74893         var.  Add comment explaining why libc still defines it.  This
74894         merges the following patch from glibc:
74895         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74896
74897 2004-05-20  Andreas Schwab  <schwab@suse.de>
74898
74899         * m4/free.m4: Replace free if it not known to work, not the other
74900         way round.
74901
74902 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74903
74904         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74905         present in glibc since revision 1.1 of this file.
74906         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74907         obstack_alignment_mask, obstack_alloc, obstack_base,
74908         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74909         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74910         obstack_grow0, obstack_init, obstack_int_grow,
74911         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74912         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74913         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74914         nonexistent functions.
74915
74916 2004-05-18  Karl Berry  <karl@gnu.org>
74917
74918         * config/srclist.txt: break link for vasnprintf.c.
74919
74920 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         Port obstack to the AS/400, where pointers are 16 bytes wide and
74923         you cannot cast an integer to a valid pointer.  This patch is
74924         currently waiting to be integrated into glibc; see
74925         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74926
74927         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74928         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74929         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74930         (struct obstack): temp member is now a union of a pointer and
74931         an integer, instead of an integer.  All integer uses changed.
74932         This does not affect the physical layout of struct obstack,
74933         except on hosts (like the AS/400) where the size or alignment of
74934         void * is greater than that of ptrdiff_t.
74935         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74936         __STDC__)]: Store temporary in pointer member of union, not
74937         integer member.
74938         * lib/obstack.c: Include <stddef.h>, for offsetof.
74939         (struct fooalign): Remove; it doesn't need a name.
74940         (union fooround): Change double to long double, and add void *.
74941         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74942         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74943         not a macro.  Hence the values are always int; so remove all
74944         casts-to-int in uses.
74945
74946 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74949         we can get this patch merged into glibc.
74950
74951 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74952             Paul Eggert  <eggert@cs.ucla.edu>
74953
74954         * m4/argp: Depend on alloca.
74955
74956 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74957             Paul Eggert  <eggert@cs.ucla.edu>
74958
74959         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74960         freecoding.
74961
74962 2004-05-17  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74965         precision that consists of a '.' followed by an empty digit string.
74966         Patch by Tor Lillqvist <tml@iki.fi>.
74967
74968 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74971         for backward compatibility with older code.  We need our own
74972         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74973         it under some other name, and our alloca.h will define it.
74974
74975 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74976             Derek Price  <derek@ximbiot.com>
74977
74978         * lib/alloca.c: Include <alloca.h>, to get our interface.
74979         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74980         include <alloca.h> first.  Use C89 prototype for alloca; this
74981         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74982         Use #elif for simplicity, since we can assume C89 now.
74983         Don't try to source the system alloca.h since it will not be found
74984         and to prevent recursively including its replacement.
74985         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74986         * lib/regex.c: Likewise.
74987
74988 2004-05-16  Derek Price  <derek@ximbiot.com>
74989             Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         getline cleanup.  This changes the getndelim2 API: both order of
74992         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74993         no delimiter).
74994
74995         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74996         interface does that.
74997         (getline): Always use getdelim, so that we don't have two
74998         copies of this code.
74999         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75000         if available.
75001         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75002         (GETNDELIM2_MAXIMUM): New macro.
75003         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75004         instead of the old practice of delim2==0.  All callers changed.
75005         Return -1 on overflow, instead of returning junk.
75006         Do not set *linesize unless allocation succeeds.
75007         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75008         that we include sys/types.h.
75009         * lib/getnline.h: Likewise.
75010         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75011         (getndelim2): Reorder arguments.
75012         * lib/getnline.c (getnline, getndelim):
75013         Don't discard the NMAX argument.
75014         (getnline): Invoke getndelim, to avoid code duplication.
75015         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75016         of (size_t) -1 by callers of the getnline family.
75017
75018 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75021         Check for gettimeofday.
75022         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75023         Check for settimeofday, stime.
75024
75025 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * lib/nanosleep.c (suspended): Change its type from int to
75028         sig_atomic_t volatile.
75029         (first_call): Make it private to rpl_nanosleep, and have it
75030         be zero initially as that's a bit faster.
75031         (my_usleep): Round up fractional times instead of truncating them,
75032         as this is the usual meaning for 'sleep'.
75033
75034         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75035         doesn't work.
75036         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75037         (ENOSYS): Define if not defined.
75038         (settime): Fall back on stime if it exists and settimeofday fails.
75039         But don't bother with fallbacks if a method fails with errno == EPERM.
75040
75041 2004-05-11  Jim Meyering  <jim@meyering.net>
75042
75043         Prior to this change, the save_cwd caller required read access to the
75044         current directory on most systems (ones with the fchdir function).
75045
75046         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75047         fails, try write-only, and finally, resort to using xgetcwd.
75048
75049 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75050
75051         * lib/obstack.c, obstack.h: Import changes from libc.
75052
75053 2004-04-28  Bruno Haible  <bruno@clisp.org>
75054
75055         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75056         also implicitly appends .exe to executables.
75057         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75058         accepts Windows pathnames.
75059         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75060         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75061         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75062         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75063         Reported by Derek Robert Price <derek@ximbiot.com>.
75064
75065 2004-04-21  Karl Berry  <karl@gnu.org>
75066
75067         * config/srclist.txt (localcharset.c): break sync.
75068
75069 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75070
75071         * m4/host-os.m4: Add a copyright notice.
75072
75073 2004-04-20  Jim Meyering  <jim@meyering.net>
75074
75075         Change UTILS_ to gl_ in AC_DEFINE'd names.
75076         Change utils_- and jm_-prefixed variables, too.
75077         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75078         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75080
75081         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75082         Don't emit trailing blanks.
75083         Also rename jm_-prefixed variables to have gl_ prefix.
75084
75085         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75086         Also rename jm_-prefixed variables to have gl_ prefix.
75087
75088         * m4/jm-macros.m4: Reflect the renamings.
75089         * m4/prereq.m4: Likewise.
75090
75091 2004-04-20  Jim Meyering  <jim@meyering.net>
75092
75093         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75094         memory.
75095
75096 2004-04-20  Jim Meyering  <jim@meyering.net>
75097             Bruno Haible  <bruno@clisp.org>
75098
75099         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75100         memory when realloc fails.
75101
75102 2004-04-19  Jim Meyering  <jim@meyering.net>
75103
75104         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75105         now that readutmp.c may call `free (0)'.
75106
75107 2004-04-19  Bruno Haible  <bruno@clisp.org>
75108
75109         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75110         * m4/inttypes_h.m4: Likewise.
75111         * m4/stdint_h.m4: Likewise.
75112         * m4/intmax_t.m4: Likewise.
75113         * m4/uintmax_t.m4: Likewise.
75114
75115 2004-04-18  Jim Meyering  <jim@meyering.net>
75116
75117         * m4/prereq.m4: Don't forbid jm_ prefix.
75118
75119         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75120         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75121         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75122         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75123         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75124         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75125         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75126         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75127         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75128         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75129         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75130         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75131         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75132         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75133         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75134         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75135         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75136         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75137         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75138
75139 2004-04-18  Jim Meyering  <jim@meyering.net>
75140
75141         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75142         failure, don't leak memory and do call END_UTMP_ENT.
75143
75144 2004-04-16  Jim Meyering  <jim@meyering.net>
75145
75146         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75147         coreutils' stat program.
75148         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75149
75150 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75151
75152         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75153         C89.
75154         (CHAR_BIT): Remove, since we assume C89.
75155         Include <stdint.h> if available, as per current Autoconf CVS advice.
75156
75157 2004-03-31  Jim Meyering  <jim@meyering.net>
75158
75159         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75160         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75161         * m4/xalloc.m4: Likewise.
75162
75163 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75164
75165         Merge from coreutils.
75166
75167         * m4/inttostr.m4: New file.
75168         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75169         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75170         Require gl_CLOCK_TIME.
75171         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75172
75173 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75174
75175         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75176         not bool, to be more consistent with Unix conventions.
75177         Suggested by Bruno Haible.
75178
75179         Merge from coreutils.
75180
75181         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75182         * lib/umaxtostr.c: New files.
75183
75184         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75185         the usual <time.h> dance.
75186         (get_date): Change signature to support fractional time stamps.
75187         All callers changed.
75188         * lib/getdate.y: Include "getdate.h" first, as we can now
75189         assume C89 and don't need to worry about 'const'.
75190         Similarly, include "unlocked-io.h" near start, not in middle.
75191         Include <limits.h>.
75192         (textint.value): Use long int rather than int.
75193         (textint.digits): Use size_t rather than int.
75194         (BILLION, LOG10_BILLION): New constants.
75195         (parser_control): New member rel_ns.  Members day_ordinal,
75196         time_zone, month, day, hour, minutes, rel_year, rel_month,
75197         rel_day, rel_hour, rel_minutes, rel_seconds
75198         are now long int, not int.  Member seconds is now struct timespec,
75199         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75200         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75201         not int.
75202         (%union.intval): Now long int, not int.
75203         New member timespec.
75204         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75205         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75206         (spec): Now is a timespec or an item list.
75207         (timespec, items): New nonterminals.
75208         (time, rel, relunit, number, get_date):
75209         Add support for fractional seconds.
75210         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75211         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75212         (to_hour): First arg is now long int, not int.
75213         (to_year): Returns long int, not int.
75214         Don't treat year -70 like 70.
75215         (tm_diff): Returns long int, not int.
75216         (lookup_word): Use bool instead of int when appropriate.
75217         (yylex): Use size_t for count, not int.
75218         Detect overflow when parsing large integer constants.
75219         Add support for fractions.
75220         (get_date): Make pointers 'const' if possible.
75221         Use more-portable code to detect integer overflow.
75222         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75223         Don't use ctime; it's not reliable if the year has >4 digits.
75224
75225         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75226         This is for compatibility with BSD.
75227
75228         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75229         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75230         From coreutils' system.h.
75231
75232         * lib/userspec.c: Don't include "posixver.h".
75233         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75234         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75235         compatible extension.  Simplify code by removing a boolean int
75236         that was always nonzero if a string was nonnull.
75237
75238 2004-03-30  Jim Meyering  <jim@meyering.net>
75239
75240         Merge from coreutils.
75241
75242         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75243         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75244         on some systems one must include <grp.h> before it.
75245         Reported by Christian Krackowizer.
75246
75247 2004-03-30  Jim Meyering  <jim@meyering.net>
75248
75249         Merge from coreutils.
75250
75251         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75252
75253         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75254         an empty input stream.
75255
75256         * lib/readtokens.c: Include <stdbool.h>.
75257         (readtoken): Use `size_t' rather than int/long.
75258         All callers adjusted.
75259         Use `bool' rather than `int' where appropriate.
75260         Use memset rather than an explicit loop.
75261         Use x2nrealloc rather than xrealloc.
75262         Allow the use of `\0' as a delimiter.
75263         (readtokens): Likewise.
75264         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75265
75266 2004-03-30  Jim Meyering  <jim@meyering.net>
75267
75268         * m4/realloc.m4: Remove file, since now it does no more than
75269         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75270         the `configure.ac' section of module/realloc.
75271         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75272
75273 2004-03-30  Bruno Haible  <bruno@clisp.org>
75274
75275         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75276         nonnull.
75277
75278 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75279
75280         Merge changes to getloadavg.c from coreutils and Emacs.
75281
75282         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75283         Define to an expression, not to the empty string.
75284         Include cloexec.h and xalloc.h.
75285         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75286         Use set_cloexec_flag rather than rolling our own.
75287         * lib/cloexec.c, lib/cloexec.h: New files.
75288
75289 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75290
75291         * m4/cloexec.m4: New file.
75292
75293 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75294
75295         * lib/getopt.h: Sync with libc CVS.
75296
75297 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75298             Bruno Haible  <bruno@clisp.org>
75299
75300         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75301         mbswidth.
75302
75303 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75304             Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/mbswidth.h: Include <wchar.h> only if
75307         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75308         <wchar.h>.
75309         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75310
75311 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75312
75313         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75314         Sync with libc CVS.
75315         * lib/getopt_int.h: New file, also synced from libc.
75316
75317 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75318
75319         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75320         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75321         Bring back getopt.c, getopt.h, getopt1.c.
75322
75323 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75324
75325         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75326         All uses changed.  Check for sa_sigaction member; this fixes
75327         a bug first reported by Jason Andrade in
75328         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75329
75330 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75331
75332         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75333         '#if' expressions.  Unlike the code it replaces, it does not
75334         depend on (defined _SC_PAGESIZE).  However, it does depend on
75335         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75336         first reported by Jason Andrade in
75337         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75338
75339 2004-02-25  Simon Josefsson  <jas@extundo.com>
75340
75341         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75342
75343 2004-02-25  Simon Josefsson  <jas@extundo.com>
75344
75345         * lib/strdup.h: New file.
75346         * lib/strdup.c: Include it.
75347         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75348         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75349
75350 2004-02-23  Karl Berry  <karl@gnu.org>
75351
75352         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75353         (from fencepost.gnu.org:/gd/gnuorg).
75354
75355 2004-02-23  Karl Berry  <karl@gnu.org>
75356
75357         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75358         * config/srclist.txt: add maintain/standards documents.
75359
75360 2004-02-18  Bruno Haible  <bruno@clisp.org>
75361
75362         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75363         Reported by Derek Robert Price <derek@ximbiot.com>.
75364
75365 2004-02-16  Karl Berry  <karl@gnu.org>
75366
75367         * config/mkinstalldirs, install-sh: update from automake.
75368
75369 2004-02-06  Karl Berry  <karl@gnu.org>
75370
75371         * m4/po.m4: update from gettext 0.14.1.
75372
75373 2004-02-06  Karl Berry  <karl@gnu.org>
75374
75375         * lib/config.charset: update from gettext 0.14.1.
75376
75377 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75378
75379         Add comments and code, prompted by suggestions from Bruno Haible
75380         for sh-quote.
75381         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75382         describing the enum quoting_style values.
75383         * lib/quotearg.c (quotearg_alloc): New function.
75384         (quotearg_buffer_restyled): Treat lone { and } as special.
75385         Treat = as special.  Work around bug with older shells
75386         that "see" a '\' that is really the 2nd byte of a multibyte char.
75387         Quote empty string with shell_quoting_style.
75388
75389 2004-02-03  Bruno Haible  <bruno@clisp.org>
75390
75391         * m4/pipe.m4: New file, from GNU gettext.
75392
75393 2004-02-03  Bruno Haible  <bruno@clisp.org>
75394
75395         * lib/pipe.h: New file, from GNU gettext.
75396         * lib/pipe.c: New file, from GNU gettext.
75397
75398 2004-01-27  Bruno Haible  <bruno@clisp.org>
75399
75400         * m4/execute.m4: New file, from GNU gettext.
75401
75402 2004-01-27  Bruno Haible  <bruno@clisp.org>
75403
75404         * lib/execute.h: New file, from GNU gettext.
75405         * lib/execute.c: New file, from GNU gettext.
75406         * lib/w32spawn.h: New file, from GNU gettext.
75407
75408 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75409
75410         Merge from diffutils.
75411
75412         * lib/file-type.c (file_type): Add typed memory objects.
75413         * lib/file-type.h (S_TYPEISTMO): New macro.
75414
75415         * lib/c-stack.h (c_stack_action): Remove argv argument.
75416         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75417         (die): Don't calculate message unless segv_action returns.
75418         (get_stack_location, min_address_from_argv, max_address_from_argv,
75419         volatile stack_base, volatile_stack_size): Remove.
75420         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75421         that every segmentation violation is a stack overflow.  (Ouch!)
75422         See Debian bug 136249 (still outstanding) for more info about why
75423         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75424
75425 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75426
75427         Exit-status fix from coreutils.
75428
75429         Use exit_failure consistently in place of EXIT_FAILURE,
75430         so that program exit statuses are consistent on failure.
75431
75432         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75433         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75434         * lib/argmatch.h: Comment fix to match the above.
75435         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75436         Now a macro referring to exit_failure, instead of a separate
75437         variable.  Include "exitfail.h" to get it.
75438         * lib/xstrtol.h: Include "exitfail.h".
75439         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75440
75441         * lib/long-options.c (parse_long_options): Use prototype
75442         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75443         for clarity.
75444
75445 2004-01-21  Jim Meyering  <jim@meyering.net>
75446
75447         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75448         so as not to conflict with a different-sized __mktime_internal
75449         function in GNU libc.
75450         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75451         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75452
75453 2004-01-20  Karl Berry  <karl@gnu.org>
75454
75455         * config/config.guess: update from config.
75456
75457         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75458
75459 2004-01-20  Bruno Haible  <bruno@clisp.org>
75460
75461         Safer stack allocation.
75462         * lib/setenv.c: Include allocsa.h.
75463         (alloca): Remove fallback definition.
75464         (freea): Remove macro.
75465         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75466         instead of freea.
75467
75468 2004-01-20  Bruno Haible  <bruno@clisp.org>
75469
75470         * m4/eealloc.m4: New file, from GNU gettext.
75471
75472 2004-01-20  Bruno Haible  <bruno@clisp.org>
75473
75474         * m4/allocsa.m4: New file, from GNU gettext.
75475
75476 2004-01-20  Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/xallocsa.h: New file, from GNU gettext.
75479         * lib/xallocsa.c: New file, from GNU gettext.
75480
75481 2004-01-20  Bruno Haible  <bruno@clisp.org>
75482
75483         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75484
75485 2004-01-20  Bruno Haible  <bruno@clisp.org>
75486
75487         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75488         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75489         specially.
75490
75491 2004-01-20  Bruno Haible  <bruno@clisp.org>
75492
75493         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75494         patch.
75495
75496 2004-01-20  Bruno Haible  <bruno@clisp.org>
75497
75498         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75499
75500 2004-01-20  Bruno Haible  <bruno@clisp.org>
75501
75502         * lib/eealloc.h: New file.
75503
75504 2004-01-20  Bruno Haible  <bruno@clisp.org>
75505
75506         * lib/binary-io.h: Avoid warnings on Cygwin.
75507
75508 2004-01-20  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/allocsa.h: New file, from GNU gettext.
75511         * lib/allocsa.c: New file, from GNU gettext.
75512
75513 2004-01-18  Karl Berry  <karl@gnu.org>
75514
75515         * doc/gpl.texi, doc/lgpl.texi: new files.
75516
75517 2004-01-18  Karl Berry  <karl@gnu.org>
75518
75519         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75520         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75521
75522 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75523
75524         Merge from coreutils.
75525
75526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75527         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75528         (gl_DEFAULT_POSIX2_VERSION): Move
75529         the documentation from 'configure' into 'config.hin',
75530         so that 'configure --help' isn't burdened by it and
75531         we don't have to worry about its formatting there.
75532         Reword the documentation so that it's more succinct
75533         and can be run together into a single paragraph.
75534         * m4/same.m4 (gl_SAME): Check for pathconf.
75535
75536 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75537
75538         Merge from coreutils.
75539
75540         * lib/posixver.c: Include posixver.h.
75541
75542         * lib/same.c: Include <stdbool.h>, <limits.h>.
75543         (_POSIX_NAME_MAX): Define if not defined.
75544         (MIN): New macro.
75545         (same_name): If file names are silently truncated, report
75546         that the file names are the same if they are the same after
75547         the silent truncation.
75548
75549         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75550         conversion function.
75551         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75552         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75553         longer needed.
75554
75555 2004-01-15  Jim Meyering  <jim@meyering.net>
75556
75557         Merge from coreutils.
75558
75559         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75560         if no library is required.
75561         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75562         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75563         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75564         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75565         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75566         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75567         value, $ac_cv_search_crypt, if it's "none required".
75568         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75569         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75570         not gl_FUNC_GETLOADAVG.
75571         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75572         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75573
75574 2004-01-15  Jim Meyering  <jim@meyering.net>
75575
75576         Merge from coreutils.
75577
75578         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75579         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75580         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75581
75582         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75583         optional configure-time default.
75584
75585         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75586
75587         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75588
75589 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75590
75591         Merge from coreutils.
75592
75593         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75594         value, $ac_cv_search_nanosleep, if it's "none required".
75595
75596 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75597
75598         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75599         with like-named macro in fnmatch.c.
75600         (EXT): Use an internal constant instead.
75601
75602         Merge fnmatch patches from glibc.
75603         * lib/fnmatch.c (mbsinit): Remove define.
75604         Add libc_hidden_ver (__fnmatch, fnmatch).
75605         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75606         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75607
75608 2004-01-14  Karl Berry  <karl@gnu.org>
75609
75610         * config/install-sh: update from automake.
75611
75612 2004-01-13  Karl Berry  <karl@gnu.org>
75613
75614         * config/install-sh: update from automake.
75615
75616 2004-01-09  Karl Berry  <karl@gnu.org>
75617
75618         * config/install-sh: update from automake.
75619
75620 2004-01-05  Karl Berry  <karl@gnu.org>
75621
75622         * config/config.{sub,guess}: update from config.
75623
75624 2003-12-31  Karl Berry  <karl@gnu.org>
75625
75626         * config/depcomp: update from automake.
75627
75628 2003-12-14  Karl Berry  <karl@gnu.org>
75629
75630         * lib/config.charset: update from gettext-runtime.
75631
75632 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75633
75634         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75635         Bug reported by Alfred M. Szmidt.
75636
75637 2003-12-03  Bruno Haible  <bruno@clisp.org>
75638
75639         * m4/gettext.m4: Upgrade from gettext-0.13.
75640         * m4/po.m4: Upgrade from gettext-0.13.
75641         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75642         * m4/intmax.m4: New file, from gettext-0.13.
75643         * m4/printf-posix.m4: New file, from gettext-0.13.
75644
75645 2003-11-29  Karl Berry  <karl@gnu.org>
75646
75647         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75648
75649 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75650             Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/printf-parse.h: Don't include sys/types.h.
75653         (ARG_NONE): New macro.
75654         (char_directive): Change type of *arg_index fields to size_t.
75655         * lib/printf-parse.c: Don't include sys/types.h.
75656         (SSIZE_MAX): Remove macro.
75657         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75658         Remove unnecessary overflow check.
75659         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75660         fields.
75661
75662 2003-11-25  Bruno Haible  <bruno@clisp.org>
75663
75664         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75665
75666 2003-11-25  Bruno Haible  <bruno@clisp.org>
75667
75668         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75669         gt_TYPE_SSIZE_T.
75670
75671 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75672
75673         * modules/alloca: Remove dependency on xalloc.
75674
75675 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75676
75677         * lib/alloca.c: Remove dependency on xalloc module.
75678         (xalloc_die): Remove.
75679         (memory_full) [!defined emacs]: New macro.
75680         [!defined emacs]: Don't include xalloc.h.
75681         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75682         address arithmetic overflows.  Change datatypes a bit to avoid
75683         unnecessary casts.
75684
75685 2003-11-22  Jim Meyering  <jim@meyering.net>
75686
75687         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75688         s/size/size_t/.
75689
75690 2003-11-21  Karl Berry  <karl@gnu.org>
75691
75692         * config/config.{sub,guess}: update from config.
75693
75694 2003-11-18  Karl Berry  <karl@gnu.org>
75695
75696         * config/config.{sub,guess}: update from config.
75697
75698         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75699
75700 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75701
75702         * README: Mention that S+T cannot overflow if S is the size of
75703         an existing object and T is sufficiently small.
75704
75705 2003-11-17  Jim Meyering  <jim@meyering.net>
75706
75707         On systems without utime and without a utimes function capable of
75708         dealing with a NULL struct utimbuf* argument, this utime replacement
75709         could -- in unusual circumstances -- leak a file descriptor.
75710         * lib/utime.c: Include <unistd.h> and <errno.h>.
75711         (utime_null): Be sure to close `fd' and to preserve errno.
75712         Reported by Geoff Collyer via Arnold Robbins.
75713
75714 2003-11-17  Bruno Haible  <bruno@clisp.org>
75715
75716         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75717         (Depends-on): Add xsize.
75718
75719 2003-11-17  Bruno Haible  <bruno@clisp.org>
75720
75721         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75722
75723 2003-11-17  Bruno Haible  <bruno@clisp.org>
75724
75725         * lib/vasnprintf.c (alloca): Remove fallback definition.
75726         (freea): Remove definition.
75727         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75728         Reported by Paul Eggert.
75729
75730 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75731             Bruno Haible  <bruno@clisp.org>
75732
75733         Protect against address arithmetic overflow.
75734         * lib/printf-args.h: Include stddef.h.
75735         (arguments): Change type of field 'count' to size_t.
75736         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75737         'unsigned int' where appropriate.
75738         * lib/printf-parse.h: Include sys/types.h.
75739         (char_directive): Change type of *arg_index fields to ssize_t.
75740         (char_directives): Change type of fields 'count', max_*_length to
75741         size_t.
75742         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75743         (SSIZE_MAX): Define fallback value.
75744         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75745         instead of 'int' where appropriate. Check a_allocated, d_allocated
75746         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75747         * lib/vasnprintf.c: Include xsize.h.
75748         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75749         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75750         overflow. Avoid wraparound when converting a width or precision from
75751         decimal to binary.
75752
75753 2003-11-16  Bruno Haible  <bruno@clisp.org>
75754
75755         Update from GNU gettext.
75756         * lib/printf-parse.c: Generalize to it can be compiled for wide
75757         strings.
75758         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75759         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75760         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75761         SNPRINTF): New macros.
75762         Don't include <alloca.h> if the file is used inside libintl.
75763         (local_wcslen): New function, for Solaris 2.5.1.
75764         (VASNPRINTF): Use it instead of wcslen.
75765
75766 2003-11-16  Bruno Haible  <bruno@clisp.org>
75767
75768         * lib/xsize.h (xmax): New function.
75769         (xsum, xsum3, xsum4): Declare as "pure" functions.
75770
75771 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75772
75773         * modules/xalloc (Files): Undo latest change, since xalloc.h
75774         no longer needs SIZE_MAX or PTRDIFF_MAX.
75775
75776 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75777
75778         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75779         gl_PTRDIFF_MAX.
75780
75781 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75782
75783         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75784         "return", to pacify some unknown compiler.  Problem reported
75785         by Joerg Schilling.
75786
75787 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75788
75789         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75790         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75791         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75792         heuristic is just as accurate as far as we know, and it removes a
75793         dependency on size_max.m4 and ptrdiff_max.m4.
75794
75795 2003-11-11  Bruno Haible  <bruno@clisp.org>
75796
75797         * modules/xsize (Files): Add m4/size_max.m4.
75798         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75799
75800 2003-11-11  Bruno Haible  <bruno@clisp.org>
75801
75802         * m4/size_max.m4: New file.
75803         * m4/ptrdiff_max.m4: New file.
75804         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75805         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75806         (gl_XALLOC): Invoke it.
75807
75808 2003-11-11  Bruno Haible  <bruno@clisp.org>
75809
75810         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75811         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75812         defined.
75813
75814 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75815
75816         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75817         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75818         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75819         From Bruno Haible.
75820         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75821         not (size_t) -1, since it's defined here.
75822
75823 2003-11-09  Karl Berry  <karl@gnu.org>
75824
75825         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75826
75827 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75828
75829         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75830         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75831         Reject sizes of exactly SIZE_MAX bytes.
75832         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75833         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75834
75835 2003-11-05  Bruno Haible  <bruno@clisp.org>
75836
75837         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75838         SIZE_MAX defined in <limits.h> on Solaris.
75839
75840 2003-11-04  Jim Meyering  <jim@meyering.net>
75841
75842         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75843         variable names, rather than @VAR@.
75844         * modules/poll: Likewise.
75845
75846 2003-11-04  Bruno Haible  <bruno@clisp.org>
75847
75848         * modules/xsize: New file.
75849         * modules/linebreak: Depend on xsize.
75850         * MODULES.html.sh (func_all_modules): Add xsize.
75851
75852 2003-11-04  Bruno Haible  <bruno@clisp.org>
75853
75854         * m4/xsize.m4: New file.
75855
75856 2003-11-04  Bruno Haible  <bruno@clisp.org>
75857
75858         * lib/xsize.h: New file.
75859         * lib/linebreak.c: Include xsize.h.
75860         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75861         argument for overflow.
75862         Suggested by Paul Eggert.
75863
75864 2003-11-03  Karl Berry  <karl@gnu.org>
75865
75866         * config/config.{guess,sub}: update from config.
75867
75868 2003-11-03  Jim Meyering  <jim@meyering.net>
75869
75870         * modules/userspec (lib_SOURCES): Add userspec.h.
75871         (Include): Add "userspec.h".
75872         Improve description.
75873
75874 2003-11-03  Jim Meyering  <jim@meyering.net>
75875
75876         * lib/userspec.c: Include "userspec.h".
75877         * lib/userspec.h: New file.
75878
75879 2003-11-03  Bruno Haible  <bruno@clisp.org>
75880
75881         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75882
75883 2003-11-03  Bruno Haible  <bruno@clisp.org>
75884
75885         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75886         available, to avoid (extremely rare) race condition.
75887         Suggested by Paul Eggert.
75888
75889 2003-11-02  Karl Berry  <karl@gnu.org>
75890
75891         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75892
75893 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75894
75895         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75896         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75897         (read_filesystem_list): Set and use me_type_malloced.
75898         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75899         whatever the type happens to be), for brevity and consistency.
75900         Check for size calculation overflow on Alphas running OSF/1.
75901
75902 2003-10-31  Jim Meyering  <jim@meyering.net>
75903
75904         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75905
75906         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75907
75908 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75909             Bruno Haible  <bruno@clisp.org>
75910
75911         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75912         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75913
75914 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75917         netbsd*-gnu*.  Suggested by Robert Millan.
75918
75919 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75920
75921         * modules/group-member: Depend on stdbool.
75922
75923 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75924
75925         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75926
75927 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75928
75929         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75930         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75931         after the 'gnu' in these cases.  This fixes some bugs in the
75932         previous change, and is based on suggestions by Robert Millan.
75933
75934 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75935
75936         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75937         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75938         no longer needed.
75939         * lib/quotearg.c (quotearg_n_options): Use it.
75940         * lib/group-member.c: Include <stdbool.h>.
75941         (free_group_info): Arg is now const *; don't free arg.
75942         (get_group_info): Now returns bool and accepts struct group_info *,
75943         rather than returning a malloc'ed struct group_info *.
75944         All uses changed.  Check for overflow in internal size calculation.
75945
75946         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75947         rather than xmalloc/xrealloc.
75948         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75949         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75950         conformance bug: the old code used a pointer after freeing the
75951         storage that it addressed.
75952         * lib/hash.c (hash_initialize): Simplify the code by using
75953         xalloc_oversized rather than doing it by hand.
75954         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75955         the buffer preserved.  Use free and xmalloc instead.
75956         * lib/quotearg.c (quotearg_n_options): Likewise.
75957         Use a simpler test for size overflow.  Don't use xalloc_oversized
75958         because unsigned int might be wider than size_t (!); this suggests
75959         that we should switch from unsigned int to size_t for slot numbers.
75960
75961 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75962
75963         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75964         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75965         NetBSD kernels.  Requested by Richard Stallman.
75966
75967 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75968
75969         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75970         to allocate the returned structure.  Do not allocate a subarray,
75971         as x2nrealloc will do that.
75972         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75973         instead of xnrealloc.
75974         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75975
75976 2003-10-27  Bruno Haible  <bruno@clisp.org>
75977
75978         * lib/stdbool_.h: Better support for BeOS.
75979
75980 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75981
75982         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75983         now uses inline.
75984
75985 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75986
75987         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75988         callers that want to do their own size-overflow checking.  Include
75989         <stdbool.h>, since xalloc_oversized returns bool.
75990         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75991         to use xalloc_oversized.
75992
75993         Add two functions x2realloc, x2nrealloc, for programs that grow
75994         arrays dynamically by doubling their sizes.
75995         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75996         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75997         New functions.
75998
75999         Port to C99 semantics for 'inline' of external functions.
76000         Bug reported by Bruno Haible.
76001         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76002         with the old contents of xnmalloc.
76003         (xnmalloc, xmalloc): Use it.
76004         (xnrealloc_inline): New static inline function,
76005         with the old contents of xnrealloc.
76006         (xnrealloc, xrealloc): Use it.
76007
76008         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76009         that.
76010
76011 2003-10-26  Karl Berry  <karl@gnu.org>
76012
76013         * config/srclist.txt (COPYING.DOC): no longer available from
76014         /gd/gnuorg; don't know where the ultimate source is.
76015
76016 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76017
76018         Fix several address-calculation bugs in the hash modules,
76019         plus some minor code cleanup.
76020
76021         * lib/hash.h: Include <stdbool.h>, for bool.
76022         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76023         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76024         hash_get_n_entries, hash_get_max_bucket_length,
76025         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76026         hash_rehash): Use size_t rather than unsigned.
76027         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76028         hash_get_n_buckets_used, hash_get_n_entries,
76029         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76030         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76031         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76032         Likewise.
76033         (SIZE_MAX): Define if not defined.
76034         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76035         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76036         hash_print):
76037         Use const * when possible.
76038         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76039         (check_tuning): Fix bug: if tuning parameters were very close to
76040         0 or 1, rounding errors could have caused subscript violations.
76041         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76042         (hash_initialize): Add 'fail:' label
76043         to free table and return NULL, and use it to simplify code.
76044         Use calloc rather than clearing the storage ourself.
76045         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76046         buffer size calculations.
76047         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76048         Include <stddef.h>, for size_t.
76049         * lib/hash-pjw.c (hash_pjw): Likewise.
76050         Switch to method described by Bruno Haible.
76051         Include <limits.h>, for CHAR_BIT.
76052         (SIZE_BITS): New macro.
76053
76054 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76055
76056         * m4/getline.m4 (AM_FUNC_GETLINE):
76057         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76058         hosts.  Problem reported by Derek Robert Price in
76059         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76060         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76061         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76062
76063 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76064
76065         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76066         ceiling the allocation at NMAX bytes rather than silently
76067         discarding input bytes before NMAX is reached.  This makes
76068         a difference only if NMAX exceeds SIZE_MAX / 2.
76069
76070         * lib/obstack.c: Merge from glibc.
76071         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76072         Add libc_hidden_def (_obstack_newchunk).
76073         (_obstack_free) [! defined _LIBC]: Remove.
76074         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76075         a clone of the function body.
76076         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76077         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76078
76079         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76080         glibc.
76081         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76082         arg to memcpy.
76083
76084         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76085         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76086         Don't use lvalue casts, as GCC plans to remove support for them
76087         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76088         was also present in the non-GCC version, indicating that this
76089         code had always been buggy and had never been widely used.
76090         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76091         Use the fast variant of each macro, rather than copying the
76092         definiens of the fast variant; that way, we'll be more likely to
76093         catch future bugs in the fast variants.
76094
76095 2003-10-20  Bruno Haible  <bruno@clisp.org>
76096
76097         * modules/wait-process: New file.
76098         * MODULES.html.sh (func_all_modules): Add wait-process.
76099
76100 2003-10-20  Bruno Haible  <bruno@clisp.org>
76101
76102         * m4/wait-process.m4: New file.
76103
76104 2003-10-20  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/wait-process.h: New file, from GNU gettext.
76107         * lib/wait-process.c: New file, from GNU gettext.
76108
76109 2003-10-19  Jim Meyering  <jim@meyering.net>
76110
76111         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76112         HPUX 10.20.
76113
76114 2003-10-18  Karl Berry  <karl@gnu.org>
76115
76116         * config/config.guess: update from config.
76117
76118 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76119
76120         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76121         (getgroups): First arg is int, not size_t.
76122         Don't let 'free' mangle errno.
76123
76124 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76125
76126         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76127
76128 2003-10-16  Karl Berry  <karl@gnu.org>
76129
76130         * config/config.{guess,sub}: update from config.
76131
76132 2003-10-16  Jim Meyering  <jim@meyering.net>
76133
76134         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76135         memcpy.
76136
76137 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76138
76139         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76140         (SIZE_MAX): Remove.
76141         (new_exclude, add_exclude_file): Initial size no longer needs to
76142         be a power of 2.
76143         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76144         our own address arithmetic overflow checking.
76145
76146         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76147         (fnmatch): Do not alloca more than 2000 wide characters;
76148         instead, use malloc for large buffers.
76149         Check for address arithmetic overflow, and return -1
76150         with errno set to ENOMEM in that case.
76151         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76152         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76153         instead, return -1.  Check for address arithmetic overflow.
76154
76155 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76156
76157         Handle invalid suffixes and overflow independently, so that
76158         callers can treat them independently as needed.  Fix some bugs in
76159         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76160         suffix for a human-readable blocksize.  The major caller-visible
76161         change is the addition of a new
76162         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76163         that both overflow and suffix chars were found.
76164
76165         * lib/human.c (humblock): Don't check separately for invalid suffix
76166         char; that is xstrtoumax's job (now that its bug is fixed).
76167         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76168         INTMAX_MAX]: New macros.
76169         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76170         TYPE_MAXIMUM): New macros.
76171         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76172         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76173         if overflow occurs, as it's what __strtol does and it's more useful
76174         in practice.
76175         (__xstrtol): If __strtol reports some error other than ERANGE,
76176         reflect it to the caller as LONGINT_INVALID.  If it reports
76177         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76178         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76179         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76180         value.
76181         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76182         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76183         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76184         [defined UINTMAX_MAX]: New macros.
76185
76186 2003-10-14  Bruno Haible  <bruno@clisp.org>
76187
76188         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76189
76190 2003-10-14  Bruno Haible  <bruno@clisp.org>
76191
76192         * m4/sig_atomic_t: New file, from GNU gettext.
76193         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76194
76195 2003-10-14  Bruno Haible  <bruno@clisp.org>
76196
76197         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76198         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76199         Also use volatile where needed.
76200
76201 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76202
76203         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76204         Change maintainer from Bruno Haible to 'all'.
76205
76206 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76207
76208         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76209
76210 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76211
76212         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76213         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76214         and define in terms of the other primitives.
76215         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76216         (SIZE_MAX): Define if not already defined.
76217         (array_size_overflow): New function.
76218         (xalloc_die): Abort instead of exiting if 'error' returns.
76219         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76220         (xmalloc, xrealloc): Use them.
76221         (xcalloc): Check for address arithmetic overflow.
76222         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76223         a bit faster than strcpy.
76224
76225 2003-10-10  Simon Josefsson  <jas@extundo.com>
76226
76227         * modules/argp (Depends-on): Add restrict and strcase.
76228
76229 2003-10-10  Simon Josefsson  <jas@extundo.com>
76230
76231         * m4/argp.m4: Add AC_C_INLINE.
76232
76233 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76234
76235         Merge getpass from libc, plus a few fixes.
76236
76237         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76238         Include <stdbool.h>.
76239         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76240         __fsetlocking to empty.
76241         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76242         do include <bits/libc-lock.h>.
76243         Do not include <fcntl.h>; not needed.
76244         [_LIBC]: Include <wchar.h>.
76245         (NOTCANCEL_MODE): New macro.
76246         (flockfile, funlockfile) [_LIBC]: New macros.
76247         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76248         [!_LIBC]: New macros.
76249         (call_fclose): New function.
76250         (getpass): Use it.  Save tty stream separately; this simplifies the
76251         code and makes it more reliable if stdin happens to equal stdout.
76252         Invoke __fsetlocking on tty.
76253         Handle thread cancellation if needed.
76254         Namespace cleanup (use __tcgetattr, __getline).
76255         Use bool for Booleans.
76256         [USE_IN_LIBIO]: Handle wide streams.
76257         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76258         stream might go where.
76259
76260         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76261         doesn't have to include <stdio.h> before us.
76262         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76263         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76264         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76265         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76266         if not declared, so that we can use getpass.c code from libc without
76267         rewriting it.
76268         (flockfile, ftrylockfile, funlockfile): New macros.
76269
76270 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76271
76272         * modules/getpass: Depend on stdbool.
76273
76274 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76275
76276         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76277
76278 2003-10-07  Karl Berry  <karl@gnu.org>
76279
76280         * config/config.{guess,sub}: update from config.
76281
76282 2003-10-06  Jim Meyering  <jim@meyering.net>
76283             Bruno Haible  <bruno@clisp.org>
76284
76285         This lets translators provide better translations for the
76286         "Written by ..." part of --version output.
76287         * lib/version-etc.h: Include stdarg.h.
76288         (version_etc_copyright): Declare as readonly.
76289         (version_etc): Make this function variadic with a NULL-terminated list
76290         of author name strings.
76291         (version_etc_va): New declaration.
76292         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76293         (version_etc_copyright): Declare as readonly.
76294         (version_etc_va): New function. Provide a different translatable string
76295         for each possible number of authors < 10. Abbreviate when there are 10
76296         authors or more.
76297         (version_etc): Make this function variadic. Call version_etc_va.
76298         Suggestion from Gary V. Vaughan.
76299
76300         * lib/long-options.h (parse_long_options): Change prototype: the
76301         authors string is moved to the end and becomes variadic.
76302         * lib/long-options.c: Include stdarg.h.
76303         (parse_long_options): Make this function variadic, too.
76304         Call version_etc_va, not version_etc.
76305
76306 2003-10-06  Bruno Haible  <bruno@clisp.org>
76307
76308         * modules/version-etc-2: Remove file.
76309         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76310
76311 2003-10-06  Bruno Haible  <bruno@clisp.org>
76312
76313         * modules/fatal-signal: New file.
76314         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76315
76316 2003-10-06  Bruno Haible  <bruno@clisp.org>
76317
76318         * m4/fatal-signal.m4: New file.
76319         * m4/signalblocking.m4: New file, from GNU gettext.
76320
76321 2003-10-06  Bruno Haible  <bruno@clisp.org>
76322
76323         * lib/version-etc-2.h: Remove file.
76324         * lib/version-etc-2.c: Remove file.
76325
76326 2003-10-06  Bruno Haible  <bruno@clisp.org>
76327
76328         * lib/fatal-signal.h: New file, from GNU gettext.
76329         * lib/fatal-signal.c: New file, from GNU gettext.
76330
76331 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76332
76333         * README: Rework advice for preventing empty .o files.
76334         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76335         not <sys/types.h>.
76336
76337 2003-10-04  Karl Berry  <karl@gnu.org>
76338
76339         * lib/argp*: update from libc.
76340
76341 2003-10-04  Karl Berry  <karl@gnu.org>
76342
76343         * config/config.{guess,sub}: update from config.
76344
76345 2003-10-02  Bruno Haible  <bruno@clisp.org>
76346
76347         * modules/lchown (Include): Add lchown.h.
76348         * modules/time_r (Include): Use "..." syntax.
76349         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76350
76351 2003-10-01  Simon Josefsson  <jas@extundo.com>
76352
76353         * MODULES.html.sh (func_all_modules): Move gethostname from section
76354         'based on' to section 'lacking' POSIX:2001.
76355
76356 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76357
76358         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76359         to output mode on the same stream.
76360
76361 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76362
76363         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76364         Fix arg typo in previous patch.
76365
76366 2003-09-28  Jim Meyering  <jim@meyering.net>
76367
76368         * lib/error.c: Correct cpp indentation.
76369
76370 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76371
76372         * modules/free: New file.
76373
76374 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76375
76376         * m4/free.m4: New file.
76377
76378 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76379
76380         * lib/minmax.h (MIN, MAX)
76381         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76382         Omit the special code that used __typeof__, since we worry that
76383         it could be more trouble than it's worth.  See:
76384         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76385         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76386
76387         * lib/free.c: New file.
76388
76389 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76390
76391         Trivial fixes to Makefile.am parts of module listings.
76392         * modules/strstr: Append strstr.h to lib_SOURCES.
76393         * modules/strcase: Likewise, for strcase.h.
76394
76395 2003-09-27  Karl Berry  <karl@gnu.org>
76396
76397         * config/mkinstalldirs: update from automake.
76398
76399 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76400
76401         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76402         (error_tail): Do not loop, reallocating temporary buffer, since
76403         the output cannot contain more wide characters than the input
76404         contains bytes, the size must be big enough already.  This avoids
76405         one potential size overflow calculation.  Check for size overflow
76406         when calculating temporary buffer size.  Free temporary buffer
76407         when done, if it was allocated with malloc; this plugs a memory
76408         leak.  Remove casts from void * to pointers, that are no longer
76409         needed now that we're assuming C89 or better.
76410
76411         Merge error changes from glibc.
76412
76413         * lib/error.c, error.h: Update copyright notice header to match glibc.
76414         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76415         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76416         Disable cancellation while printing error.
76417         * lib/error.h: Prepend __ to parameter names.
76418
76419 2003-09-26  Jim Meyering  <jim@meyering.net>
76420
76421         * lib/error.c (error_tail): Move some declarations
76422         into inner scope where the local variables are used.
76423
76424 2003-09-26  Bruno Haible  <bruno@clisp.org>
76425
76426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76427         stpncpy().
76428         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76429
76430 2003-09-26  Bruno Haible  <bruno@clisp.org>
76431
76432         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76433         (stpncpy): Define as alias for gnu_stpncpy.
76434         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76435
76436 2003-09-25  Simon Josefsson  <jas@extundo.com>
76437
76438         * lib/xgetdomainname.h: New file.
76439         * lib/xgetdomainname.c: New file.
76440
76441 2003-09-25  Simon Josefsson  <jas@extundo.com>
76442             Bruno Haible  <bruno@clisp.org>
76443
76444         * modules/getdomainname: New file.
76445         * modules/xgetdomainname: New file.
76446         * MODULES.html.sh (func_all_modules): Add getdomainname,
76447         xgetdomainname.
76448
76449 2003-09-25  Simon Josefsson  <jas@extundo.com>
76450             Bruno Haible  <bruno@clisp.org>
76451
76452         * m4/getdomainname.m4: New file.
76453
76454 2003-09-25  Simon Josefsson  <jas@extundo.com>
76455             Bruno Haible  <bruno@clisp.org>
76456
76457         * lib/getdomainname.h: New file.
76458         * lib/getdomainname.c: New file.
76459
76460 2003-09-25  Karl Berry  <karl@gnu.org>
76461
76462         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76463
76464 2003-09-25  Karl Berry  <karl@gnu.org>
76465
76466         * config/install-sh: update from automake.
76467
76468 2003-09-25  Bruno Haible  <bruno@clisp.org>
76469
76470         * modules/version-etc-2: New file, from modules/version-etc with
76471         modifications.
76472         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76473
76474 2003-09-25  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76477         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76478
76479 2003-09-24  Simon Josefsson  <jas@extundo.com>
76480
76481         * modules/xgethostname: Add xgethostname.h.
76482
76483 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76484
76485         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76486         the buffer associated with the argument.  Bug reported by
76487         Simon Josefsson.
76488
76489 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76490
76491         * README: Document assumptions that 'int' is at least 32 bits
76492         wide, that integer arithmetic is 2's complement without overflow,
76493         that there are no holes in integer values, that adding sizes of
76494         two nonoverlapping objects can't overflow, and that all-bits-zero
76495         yields scalar zero.  Fix spelling and capitalization typos.
76496
76497 2003-09-19  Karl Berry  <karl@gnu.org>
76498
76499         * lib/argp.h: update from libc.
76500
76501 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76502
76503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76504         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76505         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76506
76507 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76508
76509         * gnulib-tool: Use "test -h", not "test -L", for portability
76510         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76511         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76512         (sed_extract_prog): Issue s commands one-by-one, rather than
76513         using \| in one s command.
76514
76515 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76516
76517         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76518         input error, instead of returning NULL the next time we are called
76519         (and therefore losing track of errno).
76520
76521 2003-09-16  Bruno Haible  <bruno@clisp.org>
76522
76523         * gnulib-tool (func_create_testdir): Warn about duplicated
76524         dependencies.
76525
76526 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76527
76528         * modules/argmatch, modules/fatal, modules/obstack,
76529         modules/xalloc, modules/xgethostname: Sort dependencies by
76530         importance, not alphabetically.
76531
76532 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76533
76534         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76535         fails, so that the caller gets the proper errno.
76536
76537         * lib/readutmp.c (read_utmp): Likewise.
76538         Check for fstat error.  Close stream and free storage
76539         when failing.
76540
76541 2003-09-14  Karl Berry  <karl@gnu.org>
76542
76543         * config/srclist.txt (strdup.c): disable for c89 changes.
76544
76545 2003-09-14  Jim Meyering  <jim@meyering.net>
76546
76547         * lib/getloadavg.c: Correct cpp indentation.
76548         * lib/strdup.c: Likewise.
76549         * lib/vasnprintf.c: Likewise.
76550
76551 2003-09-14  Bruno Haible  <bruno@clisp.org>
76552
76553         * modules/fwriteerror: New file.
76554         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76555
76556 2003-09-14  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/fwriteerror.h: New file.
76559         * lib/fwriteerror.c: New file.
76560
76561 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76562
76563         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76564         modules/xgethostname, modules/xalloc: Depend on exit.
76565
76566 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76567
76568         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76569
76570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76571         and AC_MINIX, too, so that their extensions are available.
76572
76573         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76574         This macro has been superseded by gl_BACKUPFILE.
76575
76576         More patches to assume C89 or better.
76577
76578         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76579
76580         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76581         unconditionally.
76582         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76583         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76584         Include <string.h>, <stdlib.h> unconditionally.
76585         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76586         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76587         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76588         headers or for string.h.
76589         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76590         or strtoul.
76591
76592         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76593         headers.
76594         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76595         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76596         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76597         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76598         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76599         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76600         memcpy, memset.
76601         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76602         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76603         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76604         strtol.
76605         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76606         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76607         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76608         strtoul.
76609
76610 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76611
76612         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76613         * lib/obstack.c [!defined _LIBC]: Likewise.
76614         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76615         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76616         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76617
76618         More changes to assume C89 or better.
76619
76620         * lib/error.c (error_tail): Assume vprintf.
76621
76622         * lib/argmatch.c (getenv): Remove decl.
76623         * lib/progreloc.c (get_full_program_name): Define via prototype.
76624         * lib/setenv.c (clearenv): Likewise.
76625         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76626         needed.
76627         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76628         (malloc, memcpy): Remove decls.
76629         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76630         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76631         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76632         (memcpy): Remove macro.
76633         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76634         (__P): Remove.  All uses removed.
76635         (PTR): Remove.  All uses changed to void *.
76636         (CHAR_BIT, NULL): Remove.
76637         (spaces, zeros, memset_space, memset_zero)
76638         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76639         Remove.
76640         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76641         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76642         Define with prototype.
76643         Remove now-unnecessary prototype decl.
76644         (extra_args_spec): Assume ANSI C.  All uses changed.
76645         (extra_args_spec_iso): Remove.
76646         (my_strftime, emacs_strftimeu): Define via prototype.
76647         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76648         unconditionally.
76649         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76650         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76651         (strtoul, strtol): Remove decls.
76652         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76653         LONG_MAX): Remove.
76654         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76655         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76656         (LOCALE_PARAM_PROTO): New macro.
76657         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76658         (INTERNAL (strtol), strtol): Define with a prototype.
76659         (PARAMS): Remove.  All uses removed.
76660         * lib/tempname.c: Include <string.h> unconditionally.
76661         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76662         * lib/xgethostname.c (main): Define with a prototype.
76663         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76664         Include <stdlib.h> unconditionally.
76665         (calloc, malloc, realloc, free): Remove decls.
76666         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76667         Include <stdlib.h> unconditionally.  Sort include file names.
76668         (strtod): Remove.
76669         (xstrtod): Define with a prototype.
76670         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76671         (strtol, strtoul): Remove decls.
76672
76673 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76674
76675         More patches to assume C89 or better.
76676         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76677         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76678         string.h, memchr, STDC_HEADERS.
76679
76680 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76681
76682         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76683         Include <stdlib.h>, <string.h> unconditionally.
76684         Remove now-unnecessary cast to char *.
76685         * lib/strnlen.c: Include <string.h> unconditionally.
76686         * lib/yesno.c (yesno): Define with a prototype.
76687
76688 2003-09-11  Bruno Haible  <bruno@clisp.org>
76689
76690         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76691
76692 2003-09-10  Jim Meyering  <jim@meyering.net>
76693
76694         * lib/error.c: Correct indentation of cpp directives.
76695
76696 2003-09-10  Bruno Haible  <bruno@clisp.org>
76697
76698         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76699         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76700         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76701         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76702         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76703         <stdlib.h> and <string.h> checks.
76704         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76705         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76706
76707 2003-09-10  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/strcspn.c: Include <string.h> unconditionally.
76710         * lib/strpbrk.c: Include <string.h> unconditionally.
76711         * lib/strstr.c: Include <string.h> unconditionally.
76712         * lib/unicodeio.c: Include <string.h> unconditionally.
76713         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76714         * lib/unsetenv.c: Likewise.
76715         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76716         * lib/yesno.c: Include <stdlib.h> unconditionally.
76717         (rpmatch): Add prototype.
76718
76719 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76720
76721         More patches to assume C89 or better.
76722         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76723         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76724         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76725         or for string.h.
76726         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76727         stdlib.h.
76728         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76729         C headers.
76730         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76731         string.h.
76732         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76733         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76734         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76735         or for string.h.
76736         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76737         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76738         C headers.
76739         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76740         memcpy.
76741         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76742         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76743         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76744         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76745         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76746         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76747         string.h, free.
76748         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76749         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76750         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76751         C headers, or for string.h.
76752         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76753         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76754         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76755         headers, memory.h, stdlib.h, string.h, strings.h.
76756         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76757         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76758         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76759         strchr.
76760         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76761         headers, memory.h, string.h.
76762         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76763         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76764         free.
76765         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76766         headers.
76767         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76768         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76769         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76770         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76771         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76772
76773 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76774
76775         More K&R removal.
76776
76777         * lib/acosl.c (main): Use a prototype.
76778         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76779         tanl.c: Likewise.
76780
76781         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76782
76783         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76784         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76785         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76786         with a prototype.
76787         * lib/getopt.c (const): Remove macro.
76788         Include <string.h> unconditionally.
76789         (my_index): Remove; all uses changed to strchr.
76790         (strlen): Remove decl.
76791         (exchange): Remove forward decl; no longer needed.
76792         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76793         Define with prototype.
76794         * lib/getopt1.c (const): Remove macro.
76795         (getopt_long, getopt_long_only, main): Define with prototype.
76796
76797         * lib/getugroups.c: Include <string.h> unconditionally.
76798
76799         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76800         (getusershell, setusershell, endusershell, readname, main):
76801         Define with prototypes.
76802
76803         * lib/group-member.c: Include group-member.h first.
76804         Include <stdlib.h> unconditionally.
76805
76806         * lib/hard-locale.c: Include hard-locale.h first.
76807         Include <stdlib.h>, <string.h> unconditionally.
76808
76809         * lib/hash.c (free, malloc): Remove decls.
76810         Include <stdlib.h> unconditionally.
76811
76812         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76813         (getenv): Do not declare.
76814
76815         * lib/idcache.c: Include <string.h> unconditionally.
76816
76817         * lib/long-options.c: Include long-options.h first, to test interface.
76818         Include <stdlib.h> unconditionally.
76819
76820         * lib/makepath.c: Include makepath.h first, to test interface.
76821         Include <stdlib.h> and <string.h> unconditionally.
76822
76823         * lib/linebuffer.c: Include <stdlib.h>.
76824         (free): Remove decl.
76825
76826         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76827         stddef.h. rpl_malloc returns void *, not char *.
76828         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76829         prototype.
76830
76831         * lib/md5.h: Include <limits.h> unconditionally.
76832         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76833         (__P): Remove; all uses removed.
76834         * lib/md5.c: Include "md5.h" first.
76835         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76836         md5_buffer, md5_process_bytes, md5_process_block):
76837         Define with prototypes.
76838         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76839         * lib/sha.c: Include "sha.h" first.
76840         Include <stdlib.h>, <string.h> unconditionally.
76841
76842         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76843         * lib/memcmp.c (__ptr_t): Likewise.
76844         * lib/memrchr.c (__ptr_t): Likewise.
76845         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76846         Include <string.h> unconditionally.
76847         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76848         * lib/memchr.c: Include <stdlib.h> unconditionally.
76849         * lib/memchr.c (LONG_MAX): Remove.
76850         * lib/memrchr.c (LONG_MAX): Likewise.
76851         * lib/memchr.c (__memchr): Define via a prototype.
76852         * lib/memrchr.c (__memrchr): Likewise.
76853         * lib/memcmp.c (__P): Remove, and remove all uses.
76854         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76855         Remove forward decls; no longer needed.
76856         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76857         Use types required by C89 in prototype.
76858
76859         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76860         * lib/savedir.c: Likewise.
76861         * lib/mkdir.c (free): Remove decl.
76862         * lib/rmdir.c (rmdir): Define with a prototype.
76863         * lib/savedir.c: Include savedir.h first, to test interface.
76864
76865         * lib/mktime.c (STDC_HEADERS): Remove.
76866         Include <stdlib.h>, <string.h> unconditionally.
76867
76868         * lib/modechange.c: Include <stdlib.h> unconditionally.
76869         (malloc): Remove decl.
76870
76871         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76872         (free): Remove decl.
76873
76874         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76875         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76876         (This type really should be intptr_t, but that's a C99ism.)
76877         (_obstack_memcpy): Remove: all uses changed to memcpy.
76878         Include <string.h> unconditionally.
76879         (struct obstack): Assume __STDC__ for types of members
76880         chunkfun, freefun, extra_arg.
76881         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76882         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76883         obstack_begin, obstack_specify_allocation,
76884         obstack_specify_allocation_with_arg, obstack_chunkfun,
76885         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76886         Remove unprototyped decls and the macros that use them.
76887         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76888         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76889         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76890         (defined __STDC__ && __STDC__)]:
76891         Remove nonprototyped code.
76892         Include <stdlib.h> unconditionally.
76893         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76894         _obstack_allocated_p, _obstack_free, obstack_free,
76895         _obstack_memory_used, print_and_abort):
76896         Define using prototypes.
76897         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76898         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76899         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76900         obstack_next_free, obstack_object_size, obstack_room) [0]:
76901         Remove unused, unprototyped code.
76902
76903         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76904
76905         * lib/physmem.c (physmem_total, physmem_available, main): Define
76906         with prototypes.
76907
76908         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76909         (main): Define with a prototype.
76910
76911         * lib/posixver.c (getenv): Remove decl.
76912
76913         * lib/putenv.c (malloc): Returns void *, not char *.
76914         Include <string.h> unconditionally.
76915         (strchr, memcpy, NULL): Do not define.
76916
76917         * lib/readtokens.c: Include readtokens.h first, to test interface.
76918         Include <stdlib.h>, <string.h> unconditionally.
76919         (init_tokenbuffer): Define with a prototype.
76920
76921         * lib/regex.c (PARAMS): Remove.  All uses removed.
76922         All uses of _RE_ARGS removed, too.
76923         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76924         unconditionally.
76925         (bzero): Assume memset exists.
76926         (memcmp, memcpy, NULL): Remove.
76927         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76928         char, or assignments to local vars of type signed char.
76929         (init_syntax_once, PREFIX(extract_number_and_incr),
76930         PREFIX(print_partial_compiled_pattern),
76931         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76932         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76933         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76934         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76935         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76936         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76937         wcs_compile_range, byte_compile_range, truncate_wchar,
76938         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76939         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76940         count_mbs_length, wcs_re_match_2_internal,
76941         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76942         PREFIX(alt_match_null_string_p),
76943         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76944         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76945         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76946         now-unnecessary declaration, if any.
76947         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76948         regcomp, regexec):
76949         Remove now-unnecessary casts among pointer types.
76950         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76951
76952         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76953         (free): Remove decl.
76954
76955         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76956
76957         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76958         (free): Remove decl.
76959
76960         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76961         * lib/xgetcwd.c: Likewise.
76962
76963         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76964         (free): Remove decl.
76965
76966         * lib/strchrnul.c (strchrnul): Define with a prototype.
76967         Fix bug: c_in was not converted to char before searching.
76968
76969         The following changes are not K&R related:
76970
76971         * lib/group-member.h: Include <sys/types.h>, so that this file is
76972         self-contained.
76973         * lib/makepath.h: Likewise.
76974
76975         * lib/getusershell.c (readname, default_index, line_size, readname):
76976         Use size_t, not int, for sizes.
76977         (readname): If the size overflows, report an error instead of
76978         looping forever.
76979
76980 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76981
76982         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76983         libc.
76984
76985 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76986
76987         * README: New section: portability guidelines.
76988
76989 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76990
76991         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76992         C89 spec.
76993
76994 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76995
76996         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76997
76998 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76999
77000         Assume C89 or better; remove K&R cruft.
77001         A few of these changes were first proposed by Derek Robert Price
77002         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77003
77004         * lib/addext.c: Include <string.h> unconditionally.
77005         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77006         Don't declare getenv or malloc.
77007
77008         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77009         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77010         (NULL): Remove.
77011         (find_stack_direction, alloca): Use prototypes.
77012
77013         * lib/atexit.c (atexit): Define using a prototype.
77014
77015         * lib/basename.c, dirname.c, stripslash.c:
77016         Include <string.h> unconditionally.
77017
77018         * lib/bcopy.c: Include <stddef.h>.
77019         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77020
77021         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77022
77023         * lib/error.h (error, error_at_line, error_print_progname)
77024         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77025         * lib/error.c: Include error.h first, to check interface.
77026         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77027         (VA_START): Remove; all uses changeed to va_start.
77028         (exit, strerror): Remove decls.
77029         (error_print_progname): Prototype uncondionally.
77030         Don't include <errno.h>; no longer needed.
77031         (private_strerror): Remove.
77032         (error_tail): Always define.
77033         (error, error_at_line): Assume C89 or better; always use prototypes.
77034         * lib/fatal.c: Include "fatal.h" first, to test interface.
77035         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77036         (VA_START): Remove; all uses changed to va_start.
77037         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77038         this case.
77039         (exit): Remove decl.
77040         (fatal): Prototype unconditionally.  Assume va_start works.
77041         Abort at end, to pacify gcc.
77042
77043         * lib/euidaccess.c (main): Define with a prototype.
77044
77045         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77046
77047         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77048
77049         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77050         prototypes.
77051         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77052         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77053         (getenv): Remove decl.
77054         (fnmatch): Define using a prototype.
77055         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77056         (FCT): Define using a prototype.
77057
77058         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77059
77060         * lib/gethostname.c: Include <stddef.h>.
77061         (gethostname): Define with prototype.  Length is size_t, not int.
77062
77063 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77064
77065         Assume C89 or better; remove K&R cruft.
77066         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77067         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77068         string.h, getenv, malloc.
77069         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77070         headers.
77071         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77072         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77073         do not check for strerror.
77074         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77075         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77076         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77077         do not check for doprnt or vprintf.
77078         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77079         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77080
77081 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77082
77083         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77084         getversion.c should have been removed then, but was accidentally
77085         preserved.
77086
77087         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77088         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77089
77090 2003-09-08  Karl Berry  <karl@gnu.org>
77091
77092         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77093                 config, forget about prep.
77094
77095         * config/depcomp, missing: update from automake.
77096
77097 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77098
77099         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77101
77102 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77103
77104         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77105         copy_tm_result.  Bug reported by Simon Josefsson in
77106         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77107
77108 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77109
77110         * m4/time_r.m4: New file.
77111         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77112         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77113         is. Check for timegm declaration.
77114         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77115         Do not check for gmtime_r.
77116         Replace mktime if __mktime_internal does not exist and if mktime
77117         hasn't been replaced already.
77118
77119 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77120
77121         * lib/time_r.c, lib/time_r.h: New files.
77122
77123         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77124         __localtime_r.
77125         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77126         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77127
77128         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77129         __gmtime_r.
77130         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77131         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77132         Include <time_r.h>.
77133
77134         * lib/timegm.c: Switch to glibc implementation, with the following
77135         changes:
77136         [defined HAVE_CONFIG_H]: Include <config.h>.
77137         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77138         (__mktime_internal) [!defined _LIBC]: New decl.
77139         (__gmtime_r) [!defined _LIBC]: New macro and function.
77140         (timegm): Use a prototype, since gnulib assumes C89.
77141         Do not bother declaring tmp to be const, as it's not really usefu.
77142         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77143         (timegm): Declare only if HAVE_DECL_TIMEGM.
77144
77145 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77146
77147         * MODULES.html.sh (func_all_modules): Add time_r.
77148         * modules/time_r: New file.
77149         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77150         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77151
77152 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77153
77154         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77155         Bug reported by Lute Kamstra in
77156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77157
77158         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77159         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77160         course with correspondingly smaller numbers for tomorrow and
77161         yesterday.  From Tadayoshi Funaba.  Originally installed into
77162         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77163         coreutils merge?).
77164
77165 2003-08-31  Simon Josefsson  <jas@extundo.com>
77166
77167         * modules/timegm: New file.
77168         * MODULES.html.sh (func_all_modules): Add timegm.
77169
77170 2003-08-31  Simon Josefsson  <jas@extundo.com>
77171
77172         * m4/timegm.m4: New file.
77173
77174 2003-08-31  Simon Josefsson  <jas@extundo.com>
77175
77176         * lib/timegm.h: New file.
77177         * lib/timegm.c: New file.  Based on
77178         wget-1.8.2/src/http.c:mktime_from_utc.
77179
77180 2003-08-31  Karl Berry  <karl@gnu.org>
77181
77182         * lib/argp.h: update from libc.
77183
77184 2003-08-28  Bruno Haible  <bruno@clisp.org>
77185
77186         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77187         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77188         followed by '#define fnmatch fnmatch_posix' gives an error.
77189
77190 2003-08-28  Bruno Haible  <bruno@clisp.org>
77191
77192         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77193         warning on QNX, which defines O_BINARY to 000000.
77194
77195 2003-08-27  Jim Meyering  <jim@meyering.net>
77196
77197         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77198         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77199         would fail after 32.  Reported by Danny Levinson.  Details here:
77200         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77201
77202 2003-08-24  Bruno Haible  <bruno@clisp.org>
77203
77204         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77205         MSVC7 <stdio.h> is included later.
77206
77207 2003-08-22  Simon Josefsson  <jas@extundo.com>
77208
77209         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77210
77211 2003-08-20  Karl Berry  <karl@gnu.org>
77212
77213         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77214
77215 2003-08-20  Bruno Haible  <bruno@clisp.org>
77216
77217         * modules/progname: New file.
77218         * MODULES.html.sh (func_all_modules): Add progname.
77219
77220 2003-08-20  Bruno Haible  <bruno@clisp.org>
77221
77222         * lib/progname.h: New file, from GNU gettext.
77223         * lib/progname.c: New file, from GNU gettext.
77224         * lib/progreloc.c: New file, from GNU gettext.
77225
77226 2003-08-19  Jim Meyering  <jim@meyering.net>
77227
77228         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77229         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77230
77231 2003-08-19  Bruno Haible  <bruno@clisp.org>
77232
77233         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77234         more.
77235
77236 2003-08-19  Bruno Haible  <bruno@clisp.org>
77237
77238         * lib/xstrdup.c: Assume <string.h> exists.
77239
77240 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77241
77242         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77243         in makefile rules.
77244
77245 2003-08-18  Jim Meyering  <jim@meyering.net>
77246
77247         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77248         * m4/lib-ld.m4: Likewise.
77249
77250 2003-08-18  Jim Meyering  <jim@meyering.net>
77251
77252         * lib/setenv.h: Indent nested cpp directive.
77253         * lib/vasnprintf.c: Remove trailing blanks.
77254
77255 2003-08-17  Simon Josefsson  <jas@extundo.com>
77256
77257         * modules/xstrndup: New file.
77258         * MODULES.html.sh (func_all_modules): Add xstrndup.
77259
77260 2003-08-17  Simon Josefsson  <jas@extundo.com>
77261
77262         * modules/argp: Fix autoconf macro name. Add more dependencies.
77263
77264 2003-08-17  Simon Josefsson  <jas@extundo.com>
77265
77266         * m4/xstrndup.m4: New file.
77267
77268 2003-08-17  Simon Josefsson  <jas@extundo.com>
77269
77270         * m4/argp.m4: New file.
77271
77272 2003-08-17  Simon Josefsson  <jas@extundo.com>
77273             Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/xstrndup.h: New file.
77276         * lib/xstrndup.c: New file.
77277
77278 2003-08-17  Bruno Haible  <bruno@clisp.org>
77279
77280         * modules/strndup (Files, Include): Add lib/strndup.h.
77281
77282 2003-08-17  Bruno Haible  <bruno@clisp.org>
77283
77284         * modules/euidaccess (Files): Add lib/euidaccess.h.
77285
77286 2003-08-17  Bruno Haible  <bruno@clisp.org>
77287
77288         * lib/strndup.h: New file.
77289
77290 2003-08-17  Bruno Haible  <bruno@clisp.org>
77291
77292         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77293         like AC_GNU_SOURCE.
77294         * modules/extensions (configure.ac): Comment out the invocation of
77295         gl_USE_SYSTEM_EXTENSIONS.
77296
77297 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77298
77299         Merges from coreutils, etc.
77300         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77301         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77302         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77303         fixing a typo.
77304         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77305         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77306
77307 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77308
77309         Document merge from coreutils.
77310         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77311         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77312         * modules/utime: Add m4/utimes-null.m4.
77313
77314 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77315
77316         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77317         space, undoing this 2003-08-12 change:
77318         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77319
77320 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77321
77322         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77323         strtoul.c from libc, undoing this 2003-08-12 change:
77324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77325
77326 2003-08-16  Jim Meyering  <jim@meyering.net>
77327
77328         Merges from coreutils.
77329         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77330         prefix.  Adjust cache variables similarly.  Create 500 rather than
77331         just 300 files, to exercise bug on Darwin6.5, too.
77332         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77333         $missing_dir.
77334         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77335         AM_SYS_POSIX_TERMIOS.
77336         Reported by mkc@mathdogs.com.
77337         Also change use of $am_cv_sys_posix_termios
77338         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77339         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77340         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77341         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77342         in /proc/mounts until it finds one with matching device number.  This
77343         is unnecessary when the FILE argument *is* a mount point.  No stat call
77344         is necessary in that case.  So, disable the statvfs-testing code on
77345         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77346         as RedHat bug# 84846.
77347         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77348         to 1MB, so as not to render systems with no stack size limit (e.g.,
77349         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77350         Include <unistd.h>.  On some systems,
77351         it is required for the definition of _SC_PAGESIZE.
77352
77353 2003-08-16  Jim Meyering  <jim@meyering.net>
77354
77355         Merge from coreutils.
77356         * lib/xstrtoimax.c: #else #if -> #elif.
77357         * lib/xstrtoumax.c: Likewise.
77358
77359 2003-08-16  Jim Meyering  <jim@meyering.net>
77360
77361         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77362         * m4/utimes.m4: Removed.
77363         * m4/utimes-null.m4: Renamed from utimes.m4.
77364
77365         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77366         to 1MB, so as not to render systems with no stack size limit (e.g.,
77367         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77368         Include <unistd.h>.  On some systems,
77369         it is required for the definition of _SC_PAGESIZE.
77370
77371 2003-08-16  Jim Meyering  <jim@meyering.net>
77372         and Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         Merges from coreutils, etc.
77375
77376         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77377         using the latest version from cvs.  This avoids problems with #line
77378         directives using a vendor (Sun) compiler.
77379         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77380         Don't set GETGROUPS_LIB here; now it's
77381         done via getgroups.m4's wrapper function.
77382         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77383         rather than just in sh-util/configure.in, so that the
77384         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77385         same.
77386         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77387         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77388         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77389         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77390         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77391         Remove code that is now done by the newly-required macros.
77392         Append $(EXEEXT) to DF_PROG.
77393         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77394         Do not invoke or require the following here,
77395         since prereq.m4 or some gnulib .m4 now does this for us:
77396         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77397         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77398         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77399         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77400         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77401         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77402         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77403         AC_FUNC_OBSTACK.
77404         Do not replace the following functions, as this is now the job
77405         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77406         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77407         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77408         atexit getpass, strdup, getpagesize.
77409         Replace 'raise'.
77410         Do not check for the following functions, as this is now the job
77411         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77412         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77413         setregid.
77414         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77415         Check for sys/sysctl.h.
77416         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77417         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77418         of checking for ssize_t ourselves.
77419
77420         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77421         Require every macro that gnulib/modules/* suggests for us.
77422         (jm_PREREQ_ADDEXT): New macro.
77423         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77424         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77425
77426         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77427         (gl_PHYSMEM): Use it.
77428         Also check for `table' function.
77429         Check for new headers and functions.
77430         Add check for sys/sysmp.h.
77431         With suggestions from Kaveh Ghazi.
77432         Ignore headers that are present but cannot be compiled.  This
77433         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77434         C 5.4.
77435
77436 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77437
77438         Document merge from coreutils.
77439         * modules/userspec: Depend on posixver.
77440         * modules/strftime: Depend on tzset.
77441
77442 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77443
77444         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77445         rather than tab, after '#' in shell-script copyright notices.
77446         Suggested by Bruno Haible.
77447
77448 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77449
77450         * config/srclist-update: Use three spaces, rather than tab, after '#'
77451         in shell-script copyright notices.  Suggested by Bruno Haible.
77452         Remove unnecessary parenthesization in regular expression.
77453
77454 2003-08-15  Jim Meyering  <jim@meyering.net>
77455
77456         Merge from coreutils.
77457         * lib/xgethostname.c: Include <stdlib.h>.
77458         (xghostname): Don't exit for anything other than memory-related
77459         failure; just return NULL.
77460         * lib/userspec.c: Include "posixver.h".
77461         (parse_user_spec): Accept `.' as a separator only
77462         in pre-POSIX-200112 mode.
77463         * lib/strtoimax.c: Use #elif rather than #else #if.
77464         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77465         Remove function, now that we can rely on a working tzset function.
77466         [!_LIBC]: Ensure that the required autoconf test has been run.
77467         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77468         Use underlying_strftime for %r.
77469         * lib/sha.c: Merge in some clean-up and optimization changes from
77470         glibc.
77471         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77472         Ensure that it is a multiple of 64.
77473         Rearrange loop exit tests so as to avoid performing an
77474         additional fread after encountering an error or EOF.
77475         * lib/realloc.c: Update copyright date.
77476
77477 2003-08-15  Jim Meyering  <jim@meyering.net>
77478         and Paul Eggert  <eggert@twinsun.com>
77479
77480         Merge from coreutils.
77481         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77482         member but strut utmpx does not.  Needed for AIX 4.3.3.
77483         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77484
77485 2003-08-15  Jim Meyering  <jim@meyering.net>
77486         and Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         Merges from coreutils, etc.
77489         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77490         Require gl_FUNC_TZSET_CLOBBER.
77491         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77492         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77493         members.
77494
77495 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77496
77497         Help the merge from coreutils.
77498         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77499         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77500         * m4/tzset.m4: Use it too.
77501
77502 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77503
77504         * modules/tzset: New file.
77505
77506 2003-08-14  Jim Meyering  <jim@meyering.net>
77507
77508         Merges from coreutils.
77509         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77510         variable names, rather than @FNMATCH_H@.
77511         * modules/alloca: Likewise for $(ALLOCA_H).
77512
77513         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77514         the three copies of the literal target, `fnmatch.h'.
77515         * modules/alloca (alloca.h): Likewise.
77516
77517 2003-08-14  Jim Meyering  <jim@meyering.net>
77518
77519         Merge from coreutils.
77520         * m4/tzset.m4: New file.
77521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77522         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77523         otherwise, AIX 5.1 systems would end up using the latter.
77524         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77525         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77526         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77527         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77528
77529 2003-08-14  Jim Meyering  <jim@meyering.net>
77530
77531         Merge from coreutils.
77532         * lib/obstack.h: Whitespace changes.
77533         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77534         and xcalloc return values.
77535         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77536         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77537         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77538         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77539         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77540         error from mntctl.
77541         Use mntctl's return value to drive the entry-processing loop, since
77542         we can't rely on the value of the vmt_length member in the last
77543         entry.  On some systems doing so could result in exhausting
77544         virtual memory.  Based in part on a patch from Mike Jetzer.
77545
77546 2003-08-14  Jim Meyering  <jim@meyering.net>
77547         and Paul Eggert  <eggert@twinsun.com>
77548
77549         Merges from coreutils, plus other fixes.
77550         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77551         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77552         for credits and details.  Thanks to Kaveh Ghazi for helping
77553         to keep these files in sync.
77554         (ARRAY_SIZE): Define it.
77555         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77556         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77557         (memcasecmp): Don't assume size_t fits in unsigned int.
77558         Remove casts and duplicate code.
77559         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77560         (memcpy): Remove definition.
77561         Merge in some clean-up and optimization changes from glibc.
77562         [BLOCKSIZE]: Move definition to top of file.
77563         Ensure that it is a multiple of 64.
77564         Rearrange loop exit tests so as to avoid performing an
77565         additional fread after encountering an error or EOF.
77566         * lib/md5.h (md5_uintptr): Define.
77567         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77568         return to the initial working directory.  Preserve errno
77569         for caller.
77570         * lib/idcache.c: Include "xalloc.h".
77571         (xmalloc, xrealloc): Remove decls.
77572         (getuser): Remove casts no longer required in C89.
77573         * lib/human.c: Include stdio.h, for sprintf.
77574         * lib/group-member.c: Include "xalloc.h".
77575         (xmalloc, xrealloc): Remove decls.
77576         (get_group_info): Remove casts no longer required in C89.
77577         * lib/getusershell.c (readname): Remove casts no longer required in
77578         C89.
77579         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77580         * lib/getline.c: Whitespace fix, from coreutils.
77581
77582 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77583
77584         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77585         Check for isascii.
77586
77587         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77588         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77589         Undo previous (whitespace-only) change.
77590
77591 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77592
77593         * lib/exclude.c: Include <ctype.h>
77594         (IN_CTYPE_DOMAIN): New macro.
77595         (is_space): New fn.
77596         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77597         and empty lines.
77598
77599         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77600         Undo previous (whitespace-only) change.
77601
77602 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77603
77604         * config/srclist-update: Change update back to the old behavior,
77605         leaving whitespace alone.  Use one 'sed' command rather than a
77606         pipeline.
77607         (fixlicense): Now a variable, not a function.
77608         (remove_trailing_blanks): Remove.
77609         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77610         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77611         Undo previous (whitespace-only) change.
77612
77613 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77614
77615         Merge from coreutils.
77616         * modules/euidaccess: Add lib_SOURCES, include for new
77617         file euidaccess.h
77618
77619 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77620
77621         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77622         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77623         Normalize leading white space and remove trailing white space.
77624
77625         Merge from coreutils
77626         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77627
77628         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77629         0.12.1.  These files are now being upgraded automatically by
77630         ../config/srclist-update.
77631
77632 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77633
77634         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77635         Normalize leading white space and remove trailing white space.
77636         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77637         notice, as per ../config/srclist-update.
77638
77639         Merge from coreutils.
77640         * lib/euidaccess.h: New file.
77641         * lib/euidaccess.c: Include it.
77642         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77643         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77644         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77645
77646 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77647
77648         * config/srclist-update: Add copyright notice.
77649         (remove_id_lines, remove_trailing_blanks): New constants.
77650         (fixfile): Use them to normalize spacing a bit in copied files.
77651         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77652         Normalize leading white space and remove trailing white space.
77653
77654         * config/texinfo.tex: Sync with texinfo.
77655
77656         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77657         strtoul.c from libc, to merge coreutils whitespace changes.
77658
77659         * config/srclist.txt: Get the following m4 files from gettext:
77660         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77661         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77662         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77663         wint_t.m4.
77664
77665 2003-08-12  Karl Berry  <karl@gnu.org>
77666
77667         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77668         been made.
77669
77670 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77671
77672         * modules/gnu-source, m4/gnu-source.m4:
77673         Remove; we're assuming Autoconf 2.54 or later now.
77674         Suggested by Bruno Haible.
77675         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77676
77677 2003-08-11  Bruno Haible  <bruno@clisp.org>
77678
77679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77680
77681 2003-08-11  Bruno Haible  <bruno@clisp.org>
77682
77683         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77684         (vasnprintf): Use it instead of wcslen.
77685
77686 2003-08-11  Bruno Haible  <bruno@clisp.org>
77687
77688         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77689         value to ensure that _Bool promotes to int. Use #define for _Bool when
77690         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77691
77692 2003-08-10  Karl Berry  <karl@gnu.org>
77693
77694         * lib/regex.h: update from libc (whitespace fix).
77695
77696 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77697
77698         Merge some files from coreutils.  These changes were
77699         originally made by Jim Meyering.
77700         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77701         many older Unixes require this.
77702         * lib/alloca.c (alloca): Remove cast to argument of free;
77703         no longer needed in C89.
77704         * lib/alloca_.h, regex.h: Fix white space to match
77705         what GNU indent does.
77706
77707 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77708
77709         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77710         apparently Emacs's Unicode mode got confused before my 2003-08-05
77711         checkin.
77712
77713 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77714
77715         * m4/extensions.m4: New file.
77716         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77717         Require gl_USE_SYSTEM_EXTENSIONS.
77718         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77719         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77720
77721 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77722
77723         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77724         * modules/extensions, modules/gnu-source: New files.
77725         * modules/timespec, modules/unlocked-io: Depend on extensions.
77726
77727 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77728
77729         * modules/restrict: New file.
77730         * MODULES.html.sh (func_all_modules): Add restrict.
77731         * modules/regex: Depend on restrict.
77732
77733 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77734
77735         * m4/restrict.m4: New file.
77736         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77737
77738 2003-08-07  Bruno Haible  <bruno@clisp.org>
77739
77740         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77741         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77742
77743 2003-08-07  Bruno Haible  <bruno@clisp.org>
77744
77745         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77746         makes the module 'getndelim2' compatible with the module 'getline'.
77747
77748 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77749
77750         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77751         byte with "\201" to avoid glitches when editing that source file
77752         with multi-gnome-terminal.
77753
77754 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77755
77756         * lib/bumpalloc.h: Remove.
77757
77758 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77759
77760         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77761         * modules/bumpalloc: Remove.
77762
77763 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77764
77765         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77766         GNU coding style.
77767
77768         Merge from coreutils.
77769         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77770         1. From glibc.
77771         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77772         from Karl Berry, implemented by Jim Meyering.
77773         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77774         from Dmitry V. Levin.
77775         Remove anachronistic cast of xrealloc.
77776         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77777         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77778         type. Otherwise, it wouldn't compile with at least /bin/cc on
77779         ymp-cray-unicos9.0.2.X.
77780         Combine two mostly-identical uses of alloca into one.
77781         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77782
77783 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77784
77785         [From Emacs.]
77786
77787         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77788         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77789         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77790         obsolete NLIST_NAME_UNION.
77791         [__GNU__]: Undef BSD and FSCALE.
77792         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77793
77794 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77795
77796         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77797         an enum type, so that it's guaranteed to promote to int.  See:
77798         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77799
77800 2003-08-03  Karl Berry  <karl@gnu.org>
77801
77802         * config/depcomp: update from automake.
77803
77804 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77805
77806         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77807         (strerror): Don't assume that a printable int fits in 14 bytes.
77808
77809 2003-07-31  Bruno Haible  <bruno@clisp.org>
77810
77811         * modules/getpass-gnu: New file.
77812         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77813
77814 2003-07-31  Bruno Haible  <bruno@clisp.org>
77815
77816         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77817
77818 2003-07-24  Karl Berry  <karl@gnu.org>
77819
77820         * config/missing: update from automake.
77821
77822 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77823             Bruno Haible  <bruno@clisp.org>
77824
77825         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77826         * lib/getline.c (getline, getdelim): Likewise.
77827         Remove _GNU_SOURCE define; now it's defined in config.h through
77828         m4/getline.m4.
77829
77830 2003-07-23  Karl Berry  <karl@gnu.org>
77831
77832         * config/config.sub: update from prep.
77833
77834 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77835
77836         * modules/xalloc (Depends-on): Add exitfail.
77837         * modules/xmemcoll: Likewise.
77838
77839 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77840
77841         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77842         over-parenthesization in macros.
77843
77844         Sync with coreutils.
77845
77846         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77847         required by C99.
77848
77849         Use `exit_failure' for xalloc and xmemcoll instead of their own
77850         private exit-failure variables.
77851         * lib/xalloc.h (xalloc_exit_failure): Remove.
77852         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77853         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77854         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77855         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77856         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77857
77858 2003-07-20  Jim Meyering  <jim@meyering.net>
77859
77860         * modules/closeout (Depends-on): Add exitfail.
77861         Suggestion from Bruno Haible.
77862
77863 2003-07-19  Karl Berry  <karl@gnu.org>
77864
77865         * config/config.sub: update from prep.
77866
77867 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77868
77869         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77870         Remove.
77871         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77872         to test that it can stand by itself.  Include "exitfail.h".
77873         Clients should set exit_failure instead.
77874         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77875
77876 2003-07-18  Bruno Haible  <bruno@clisp.org>
77877
77878         * modules/getndelim2: New file.
77879         * modules/getline: Share files with module getndelim2.
77880         * modules/getnline: Depend on getndelim2 instead of sharing files with
77881         it. Add getnline.c to lib_SOURCES.
77882         * MODULES.html.sh (func_all_modules): Add getndelim2.
77883
77884 2003-07-18  Bruno Haible  <bruno@clisp.org>
77885
77886         * m4/getndelim2.m4: New file.
77887         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77888         invoke gl_PREREQ_GETNDELIM2.
77889         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77890         gl_PREREQ_GETNDELIM2.
77891         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77892         gl_GETNDELIM2.
77893
77894 2003-07-18  Bruno Haible  <bruno@clisp.org>
77895
77896         * lib/getndelim2.h: New file.
77897         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77898         getndelim2.h.
77899         (getndelim2): Make non-static. Change return type to ssize_t.
77900         * lib/getline.h: Change argument names.
77901         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77902         * lib/getnline.c: Include getndelim2.h.
77903
77904 2003-07-18  Andreas Schwab  <schwab@suse.de>
77905
77906         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77907
77908 2003-07-17  Karl Berry  <karl@gnu.org>
77909
77910         * config/config.sub: update from prep.
77911
77912 2003-07-17  Bruno Haible  <bruno@clisp.org>
77913
77914         * modules/getnline: New file.
77915         * modules/getline: Add lib/getndelim2.c to source file list.
77916         * MODULES.html.sh (func_all_modules): Add getnline.
77917
77918 2003-07-17  Bruno Haible  <bruno@clisp.org>
77919
77920         * m4/getnline.m4: New file.
77921
77922 2003-07-17  Bruno Haible  <bruno@clisp.org>
77923
77924         * m4/Makefile.am.in: Remove file.
77925         * m4/Makefile.am: Remove file.
77926         * m4/Makefile.in: Remove file.
77927
77928 2003-07-17  Bruno Haible  <bruno@clisp.org>
77929
77930         * lib/getnline.h: New file.
77931         * lib/getnline.c: New file.
77932         * lib/getndelim2.c: New file, extracted from getline.c.
77933         (getndelim2): Renamed from getdelim2, with added nmax argument.
77934         * lib/getline.c: Include getndelim2.c.
77935         (getdelim2): Moved out to getndelim2.c.
77936         (getline, getdelim): Update.
77937
77938 2003-07-17  Bruno Haible  <bruno@clisp.org>
77939
77940         * lib/Makefile.am: Remove file.
77941         * lib/Makefile.in: Remove file.
77942
77943 2003-07-17  Bruno Haible  <bruno@clisp.org>
77944
77945         * configure.in: Remove file.
77946         * Makefile.in: Remove file.
77947
77948 2003-07-17  Bruno Haible  <bruno@clisp.org>
77949
77950         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77951
77952 2003-07-16  Karl Berry  <karl@gnu.org>
77953
77954         * config/srclist-update: was running fixlicense twice, which caused
77955                 texinfo.tex to be nullified for some reason.  Simplify,
77956                 $gplsrc is no longer needed as far as I can see?
77957
77958 2003-07-16  Jim Meyering  <jim@meyering.net>
77959
77960         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77961
77962 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77963
77964         * config/srclist.txt: Get the following files from gettext-runtime/intl
77965         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77966         ref-del.sin.  From Bruno Haible.
77967         * config/srclist-update (fixfile): Change grep pattern again, since the
77968         previous fix didn't work (there was another trailing $).  Use
77969         '[$]' to escape the $s.
77970
77971 2003-07-15  Karl Berry  <karl@gnu.org>
77972
77973         * lib/vasnprintf.c: update from gettext.
77974
77975 2003-07-15  Karl Berry  <karl@gnu.org>
77976
77977         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77978         gets expanded when surrounded by '$'.
77979
77980 2003-07-15  Jim Meyering  <jim@meyering.net>
77981
77982         * modules/save-cwd: Don't depend on error.  From Derek Price.
77983
77984 2003-07-15  Jim Meyering  <jim@meyering.net>
77985
77986         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77987
77988 2003-07-14  Simon Josefsson  <jas@extundo.com>
77989
77990         * modules/mempcpy: New file.
77991         * MODULES.html.sh (func_all_modules): Add mempcpy.
77992
77993 2003-07-14  Simon Josefsson  <jas@extundo.com>
77994
77995         * m4/mempcpy.m4: New file.
77996
77997 2003-07-14  Simon Josefsson  <jas@extundo.com>
77998
77999         * lib/mempcpy.h: New file.
78000         * lib/mempcpy.c: New file.
78001
78002 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78003
78004         * modules/getdate, modules/posixtm: Depend on mktime.
78005
78006 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78007
78008         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78009         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78010         unicodeio.c, unicodeio.h, unlocked-io.h:
78011         Switch from LGPL to GPL.
78012
78013 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78014
78015         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78016         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78017         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78018         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78019         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78020         updated automatically by ../config/srclist-update.  This changes
78021         their license from LPGL to GPL.
78022
78023 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78024
78025         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78026         assumed to refer to the root of the most recent stable gettext version.
78027         * config/srclistvars.sh: Add defaults for eggert.
78028         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78029         Match "This program" as well as "The program".  This is needed
78030         for gettext.
78031
78032 2003-07-14  Jim Meyering  <jim@meyering.net>
78033
78034         Don't emit diagnostics.  Let callers do that.
78035         * lib/save-cwd.c: Don't include "error.h".
78036         (save_cwd): Don't call error.  Ensure that errno is valid
78037         when returning nonzero.
78038
78039         * lib/save-cwd.h (restore_cwd): Update prototype.
78040         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78041         Simplify.  Don't call error upon failure.  Let callers do that.
78042         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78043         when auditing is enabled.  But don't bother updating the #if.
78044
78045 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78046
78047         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78048         it breaks C++ compilation.
78049         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78050
78051 2003-07-10  Simon Josefsson  <jas@extundo.com>
78052
78053         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78054
78055 2003-07-10  Jim Meyering  <jim@meyering.net>
78056
78057         * m4/clock_time.m4: Remove trailing blank.
78058         * m4/intmax_t.m4: Likewise.
78059
78060 2003-07-10  Jim Meyering  <jim@meyering.net>
78061
78062         * lib/vasnprintf.c: Remove trailing blanks.
78063         Make cpp indentation consistent.
78064
78065 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78066
78067         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78068         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78069         Switch from LGPL to GPL.
78070
78071 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78072
78073         * config/srclist.txt: Sort sublists.  Add
78074         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78075         that differ from gnulib for one reason or another; we'd like this list
78076         to be smaller but for now let's document what we have.
78077
78078 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78079
78080         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78081         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78082         and sweeter "eval x=$x".
78083         * config/srclist.txt: Get lib/argp* from glibc.
78084
78085 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78086
78087         * lib/mktime.c: Fix some boundary cases and remove need for floating
78088         point.
78089
78090         Issue a compile-time diagnostic if time_t is floating point, or if
78091         two's complement arithmetic is not in effect, or if arithmetic
78092         right shift does not propagate the sign.  These assumptions were
78093         all in the original code but they weren't checked.
78094
78095         (TIME_T_MIDPOINT, verify): New macros.
78096         (__isleap): Remove; it has integer overflow problems.
78097         (leapyear): New function, without those problems.
78098         (ydhms_tm_diff): Remove; splitting into two parts.
78099         (ydhms_diff): New function, containing the arithmetic part of
78100         the old ydhms_tm_diff function.  Issue a compile-time
78101         diagnostic if we are not using C99 integer division.
78102         Avoid casts when possible.
78103         (guess_time_tm): New function, containing the checking part of
78104         the old ydhms_tm_diff function.  Return the new value, rather than
78105         the difference between it and the old.  Accept a new argument T
78106         so that *T specifies the old value.  Check for overflow in the result.
78107
78108         (__mktime_internal): Use a time_t offset, not a long int offset.
78109         This undoes the 2003-06-04 change, which is no longer needed now
78110         that we have better overflow checking.
78111         (localtime_offset): Likewise.
78112
78113         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78114         and long are 64-bit but int is only 32-bit.
78115         (ydhms_diff): Use long int to store year1 and yday1.
78116         Issue a compile-time diagnostic if long int is not wide enough.
78117
78118         (__mktime_internal): Use long int to store adjusted year and yday.
78119         Use plain C rather than preprocessor commands, if that doesn't
78120         affect efficiency.
78121         Check for overflow (and try to repair) after each probe
78122         rather than checking only at the very end.  This avoids some bugs
78123         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78124         does not equal GMT offset at maximum time).
78125         Use integer to check for overflow rather than floating point; this
78126         is more portable to non-IEEE hosts, and is a tad faster.
78127         When we detect that we are oscillating between two values,
78128         don't check whether tm_isdst has the requested value, since
78129         we already know the answer.  When tm_isdst has the wrong value,
78130         use a different heuristic to find the right one, based on the
78131         extreme values actually observed in practice in tz2003a,
78132         rather than the (overly optimistic) "previous 3 calendar quarters".
78133
78134         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78135         "T const" to accommodate glibc style.
78136         (check_result): Use less-confusing report format.  "long" -> "long int.
78137         (main): Likewise.
78138         Don't loop if the iteration overflows time_t.
78139         Allow a negative step in the iteration.
78140
78141 2003-07-06  Karl Berry  <karl@gnu.org>
78142
78143         * config/depcomp: update from automake.
78144         * config/config.sub: update from prep.
78145
78146 2003-07-03  Karl Berry  <karl@gnu.org>
78147
78148         * config/config.guess: update from prep.
78149
78150 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78151
78152         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78153         xreadlink.c now includes it unconditionally.
78154
78155 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78156
78157         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78158         having it depend on HAVE_SYS_TYPES_H.
78159
78160 2003-07-01  Bruno Haible  <bruno@clisp.org>
78161
78162         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78163         <sys/types.h> should be sufficient.
78164         Reported by Paul Eggert.
78165
78166 2003-06-26  Karl Berry  <karl@gnu.org>
78167
78168         * config/depcomp: update from automake.
78169
78170 2003-06-26  Bruno Haible  <bruno@clisp.org>
78171
78172         * modules/human: Depend on module stdbool.
78173
78174 2003-06-25  Bruno Haible  <bruno@clisp.org>
78175
78176         * modules/readlink: New file.
78177         * modules/xreadlink: Depend on it.
78178         * MODULES.html.sh (func_all_modules): Add readlink.
78179
78180 2003-06-25  Bruno Haible  <bruno@clisp.org>
78181
78182         * m4/readlink.m4: New file.
78183
78184 2003-06-25  Bruno Haible  <bruno@clisp.org>
78185
78186         * lib/readlink.c: New file.
78187
78188 2003-06-22  Karl Berry  <karl@gnu.org>
78189
78190         * config/srclist.txt: update mkinstalldirs from automake.
78191         * config/mkinstalldirs: update.
78192
78193 2003-06-22  Bruno Haible  <bruno@clisp.org>
78194
78195         Portability to mingw32.
78196         * m4/ssize_t.m4: New file, from GNU gettext.
78197         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78198         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78199
78200 2003-06-22  Bruno Haible  <bruno@clisp.org>
78201
78202         * modules/safe-read: Add m4/ssize_t.m4.
78203         * modules/xreadlink: Add m4/ssize_t.m4.
78204
78205 2003-06-20  Bruno Haible  <bruno@clisp.org>
78206
78207         Assume C89, so PARAMS isn't needed.
78208         * lib/unicodeio.h (PARAMS): Remove.
78209         * lib/unicodeio.c: Don't use PARAMS.
78210
78211 2003-06-18  Karl Berry  <karl@gnu.org>
78212
78213         * config/config.{guess,sub}: update from prep.
78214
78215 2003-06-18  Jim Meyering  <jim@meyering.net>
78216
78217         Merge changes from coreutils.
78218         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78219         Remove explicit declarations of xmalloc and realloc.
78220         Include xalloc.h.
78221         (read_utmp): Remove anachronistic cast of xmalloc.
78222
78223 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78224
78225         Assume C89, so PARAMS isn't needed.
78226         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78227         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78228         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78229         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78230         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78231         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78232         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78233         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78234         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78235         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78236         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78237         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78238         no longer needed. Anyway, config.h should always be included before any
78239         other file.
78240
78241 2003-06-11  Simon Josefsson  <jas@extundo.com>
78242
78243         * modules/sysexits: New file.
78244         * MODULES.html.sh (func_all_modules): Add sysexits.
78245
78246 2003-06-11  Simon Josefsson  <jas@extundo.com>
78247
78248         * lib/sysexit_.h: New file.
78249
78250 2003-06-11  Derek Price  <derek@ximbiot.com>
78251
78252         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78253         necessary.
78254
78255 2003-06-11  Bruno Haible  <bruno@clisp.org>
78256
78257         * m4/sysexits.m4: New file.
78258
78259 2003-06-10  Simon Josefsson  <jas@extundo.com>
78260
78261         * lib/argp.h: New file, from glibc.
78262         * lib/argp-ba.c: New file, from glibc.
78263         * lib/argp-eexst.c: New file, from glibc.
78264         * lib/argp-fmtstream.c: New file, from glibc.
78265         * lib/argp-fmtstream.h: New file, from glibc.
78266         * lib/argp-fs-xinl.c: New file, from glibc.
78267         * lib/argp-help.c: New file, from glibc.
78268         * lib/argp-namefrob.h: New file, from glibc.
78269         * lib/argp-parse.c: New file, from glibc.
78270         * lib/argp-pv.c: New file, from glibc.
78271         * lib/argp-pvh.c: New file, from glibc.
78272         * lib/argp-xinl.c: New file, from glibc.
78273
78274 2003-06-10  Simon Josefsson  <jas@extundo.com>
78275
78276         * modules/strchrnul: New file.
78277
78278 2003-06-10  Simon Josefsson  <jas@extundo.com>
78279
78280         * modules/argp: New file.
78281
78282 2003-06-10  Simon Josefsson  <jas@extundo.com>
78283
78284         * m4/strchrnul.m4: New file.
78285
78286 2003-06-10  Simon Josefsson  <jas@extundo.com>
78287
78288         * lib/strchrnul.h: New file.
78289         * lib/strchrnul.c: New file.
78290
78291 2003-06-10  Bruno Haible  <bruno@clisp.org>
78292
78293         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78294
78295 2003-06-07  Karl Berry  <karl@gnu.org>
78296
78297         * config/config.{guess,sub}: update from prep.
78298
78299 2003-06-07  Jim Meyering  <jim@meyering.net>
78300
78301         * modules/strtod: Use $(...) notation, not @...@ for
78302         AC_REPLACE'd variables.
78303         * modules/localcharset: Likewise.
78304
78305 2003-06-07  Jim Meyering  <jim@meyering.net>
78306
78307         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78308         in place of my name in the copyright comment.
78309         Remove definition and uses of __P.
78310
78311         From coreutils.
78312         * lib/stat.c: Don't declare xmalloc explicitly.
78313         Instead, include "xalloc.h".
78314         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78315         xrealloc, and xcalloc return values.
78316         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78317         Improve comment.
78318         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78319
78320 2003-06-07  Bruno Haible  <bruno@clisp.org>
78321
78322         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78323         avoid AC_CONFIG_LINKS.
78324         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78325         fnmatch.h, to avoid AC_CONFIG_LINKS.
78326         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78327
78328 2003-06-07  Bruno Haible  <bruno@clisp.org>
78329
78330         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78331         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78332         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78333         directory.
78334         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78335         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78336         directory.
78337
78338 2003-06-06  Jim Meyering  <jim@meyering.net>
78339
78340         Merge from coreutils.
78341         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78342         Consolidate declarations and initializations of *_base* locals.
78343
78344         Merge from coreutils.
78345         This avoids a core dump on systems without GNU putenv,
78346         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78347         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78348         (unsetenv): New static function, from GNU libc.
78349         (rpl_putenv): Use it.
78350
78351         * lib/modechange.c: Remove trailing blanks.
78352
78353         Merge from coreutils.
78354         * lib/fsusage.c: Remove declaration of statfs.
78355         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78356
78357         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78358
78359 2003-06-06  Jim Meyering  <jim@meyering.net>
78360
78361         * lib/stdbool_.h: Renamed from stdbool.h.in.
78362
78363 2003-06-06  Jim Meyering  <jim@meyering.net>
78364             Bruno Haible  <bruno@clisp.org>
78365
78366         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78367         Adjust Makefile.am snippet not to redirect directly to target.
78368         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78369
78370 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78371
78372         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78373         mismatch, look in future quarters as well as past.  This fixes a
78374         bug when processing fall-backwards gaps immediately after a long
78375         period of daylight-saving time.
78376
78377         * lib/mktime.c: Assume freestanding C89 or better.
78378         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78379         (__P): Remove; not used.
78380         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78381         (mktime, not_equal_tm, print_tm, check_result,
78382         main): Use prototypes.  Use const * where appropriate.
78383         (main): Fix typo in testing code that uncovered by above changes.
78384         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78385
78386 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78387
78388         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78389         locale.h, localeconv.  This merges changes from coreutils.
78390
78391         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78392         It can be removed after the next Autoconf is released.
78393         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78394         needed.
78395
78396 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78397
78398         * lib/mktime.c: Fix Debian bug 177940
78399         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78400         (localtime_offset): Now long int, not time_t, because we want it
78401         to be guaranteed to be signed.  All uses changed.
78402         (__mktime_internal): If overflow would occur when adding offset,
78403         don't add it.
78404
78405         Merge 'human' changes from coreutils.  Rewrite to support
78406         locale-specific notations like thousands separators.
78407         * lib/human.c: Simplify authorship notice.
78408         Include human.h immediately after config.h.
78409         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78410         <limits.h>: Do not include, since human.h does.
78411         (SIZE_MAX, UINTMAX_MAX): New macros.
78412         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78413         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78414         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78415         (power_letter): Renamed from suffixes.
78416         (generate_suffix_backwards): Remove.
78417         (adjust_value): Now takes int style (because of human.h changes)
78418         and long double value (for greater precision on some platforms).
78419         (group_number): New function.
78420         (human_readable): Use it.  Use integer options, not enum.
78421         Put the options before the sizes in the arg list.
78422         Support all the new options.
78423         The old human_readable function has been removed;
78424         use inttostr.h instead.
78425         (human_readable, default_block_size, humblock):
78426         Use uintmax_t, not int, for block sizes.
78427         (human_readable_inexact, block_size_types): Remove.
78428         (block_size_opts): New constant.
78429         (human_options): Renamed from human_block_size, with new signature
78430         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78431         * lib/human.h: Add copyright and authorship notice.
78432         Include <limits.h> and <stdbool.h> unconditionally.
78433         (PARAMS): Remove.  All uses removed.
78434         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78435         (enum human_inexact_style): Remove tag; now a nameless enum.
78436         (human_floor, human_ceiling, human_round_to_even): Now have
78437         values 2, 0, 1 rather than -1, 1, 0.
78438         (human_group_digits, human_suppress_point_zero, human_autoscale,
78439         human_base_1024, human_SI, human_B): New constants.
78440         (human_readable_inexact, human_block_size): Remove.
78441         (human_readable): Size args are now uintmax_t, not int.
78442         (human_options): New decl.
78443
78444         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78445         unnecessary now that we assume C89 or better.  This change
78446         imported from coreutils.
78447
78448         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78449         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78450         in the 2003-05-30 sync from glibc.
78451
78452         .h files should stand alone, but we shouldn't include <sys/types.h>
78453         if we can get away with just <stddef.h>.
78454
78455         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78456         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78457         rather than <sys/types.h>, as we merely need size_t.
78458         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78459         to get size_t.
78460         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78461         Include <stdio.h>, to get FILE.
78462         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78463         memcasecmp.h has included <stddef.h> and all we need is size_t.
78464         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78465         our interface, instead of including <sys/types.h>
78466
78467 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78468
78469         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78470         now, as glibc mktime is buggy on non-glibc systems.
78471
78472 2003-06-03  Karl Berry  <karl@gnu.org>
78473
78474         * config/config.sub: update from prep.
78475
78476 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78477
78478         [from coreutils]
78479         Fix some minor time-related bugs with POSIX time arguments.
78480         Some valid time stamps were being rejected (notably -1, and
78481         time stamps before 1900 on 64-bit hosts).  And some invalid
78482         time stamps were being accepted, e.g. September 31.
78483
78484         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78485         that we can return (time_t) -1 successfully.
78486         * lib/posixtm.c: Likewise.
78487         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78488         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78489         (t): Remove static var.
78490         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78491         of static var.  All uses changed.
78492         (year): Do not reject years before 1900; they can occur with
78493         64-bit time_t.
78494         (posix_time_parse): Do not check for out-of-range components;
78495         that is now the caller's responsibility, since our checks were
78496         only approximations.
78497         (posixtime): Use mktime to check for out-of-range components,
78498         since it knows them exactly.
78499         If mktime returns (time_t) -1, check whether an error actually occurred
78500         by invoking localtime on -1.
78501         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78502         posixtime failures better.
78503         Improve the test data (in comments only).
78504
78505 2003-06-02  Karl Berry  <karl@gnu.org>
78506
78507         * config/mkinstalldirs (version): new variable.
78508         (--version): new option.
78509         (usage): improve message.
78510
78511 2003-05-30  Karl Berry  <karl@gnu.org>
78512
78513         * lib/mktime.c: update from libc.
78514
78515 2003-05-30  Bruno Haible  <bruno@clisp.org>
78516
78517         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78518         * config/config.rpath: Upgrade to gettext-0.12.1.
78519
78520 2003-05-30  Bruno Haible  <bruno@clisp.org>
78521
78522         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78523         * m4/nls.m4: New file, from gettext-0.12.1.
78524         * m4/po.m4: New file, from gettext-0.12.1.
78525         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78526
78527 2003-05-30  Bruno Haible  <bruno@clisp.org>
78528
78529         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78530         * lib/localcharset.h: Likewise.
78531         * lib/localcharset.c: Likewise.
78532
78533 2003-05-29  Karl Berry  <karl@gnu.org>
78534
78535         * config/config.rpath: update from gettext.
78536
78537 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78538
78539         Assume the headers required for C89 freestanding compilers.
78540         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78541         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78542         * m4/human.m4 (gl_HUMAN): Likewise.
78543         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78544         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78545         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78546         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78547         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78548         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78549
78550 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78551
78552         Assume the headers required for C89 freestanding compilers.
78553         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78554         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78555         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78556         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78557         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78558         define, since <limits.h> is guaranteed to do that.
78559         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78560         * lib/exclude.c: Include <stdbool.h> unconditionally.
78561         * lib/tempname.c: Include <stddef.h> unconditionally.
78562         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78563         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78564         <stddef.h> does that.
78565         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78566         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78567         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78568         needed.
78569         * lib/xstrtol.c: Likewise.
78570         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78571         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78572
78573         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78574         warnings on some platforms.
78575
78576         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78577         arbitrarily.
78578
78579 2003-05-26  Jim Meyering  <jim@meyering.net>
78580
78581         Merge in a change from coreutils:
78582         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78583         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78584         that condition, rather than `-1' which is slightly misleading.
78585         Change the name of the cache variable to have the gl_ prefix.
78586         Prompted by a patch from Richard Dawe for DJGPP.
78587
78588 2003-05-24  Karl Berry  <karl@gnu.org>
78589
78590         * config/config.guess: update from prep.
78591
78592 2003-05-22  Karl Berry  <karl@gnu.org>
78593
78594         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78595
78596 2003-05-20  Karl Berry  <karl@gnu.org>
78597
78598         * config/config.guess: update from prep.
78599
78600 2003-05-18  Karl Berry  <karl@gnu.org>
78601
78602         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78603         might actually be set by the user.
78604
78605         * config/depcomp, install-sh, mdate-sh: update from automake.
78606
78607 2003-05-17  Bruno Haible  <bruno@clisp.org>
78608
78609         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78610         invalid expansion for AC_EGREP_CPP.
78611         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78612         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78613         Suggested by Akim Demaille <akim@epita.fr> in
78614         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78615
78616 2003-05-12  Jim Meyering  <jim@meyering.net>
78617
78618         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78619         the space-padded-by-default conversion specifiers, %e, %k, %l.
78620
78621 2003-05-12  Bruno Haible  <bruno@clisp.org>
78622
78623         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78624         the string is longer than 4 KB.
78625
78626 2003-05-11  Karl Berry  <karl@gnu.org>
78627
78628         * config/config.{guess,sub}: update from prep.
78629
78630 2003-05-09  Bruno Haible  <bruno@clisp.org>
78631
78632         * modules/error: Add m4/strerror_r.m4 to file list.
78633
78634 2003-05-03  Bruno Haible  <bruno@clisp.org>
78635
78636         Upgrade to Unicode-4.0.
78637         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78638         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78639         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78640         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78641         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78642         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78643         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78644         Change width of U+E0100..U+E01EF from 1 to 0.
78645
78646 2003-04-25  Jim Meyering  <jim@meyering.net>
78647
78648         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78649         of type size_t, not int.
78650
78651 2003-04-25  Bruno Haible  <bruno@clisp.org>
78652
78653         * lib/copy-file.c: Include <stddef.h>, for size_t.
78654
78655 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78656
78657         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78658         code which expansion is under static control.  Patch imported from
78659         Akim Demaille's patch to Bison; see
78660         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78661
78662 2003-04-14  Bruno Haible  <bruno@clisp.org>
78663
78664         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78665
78666 2003-04-11  Jim Meyering  <jim@meyering.net>
78667
78668         Merge changes from Coreutils.
78669
78670         2003-03-22  Jim Meyering  <jim@meyering.net>
78671
78672         * lib/strftime.c (widen): Cast alloca return value to proper type.
78673
78674         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78675
78676         From GNU libc.
78677         * lib/strftime.c (my_strftime): Handle very large width
78678         specifications for numeric values correctly.  Improve checks for
78679         overflow.
78680
78681         2003-01-19  Jim Meyering  <jim@meyering.net>
78682
78683         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78684         definitions.
78685         (nl_get_alt_digit) [! defined my_strftime]: Define.
78686         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78687         _nl_get_alt_digit and _nl_get_walt_digit.
78688
78689         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78690         libc. These changes have no effect outside of _LIBC.
78691
78692 2003-04-10  Bruno Haible  <bruno@clisp.org>
78693
78694         * modules/findprog: New file.
78695         * MODULES.html.sh (func_all_modules): Add it.
78696
78697 2003-04-10  Bruno Haible  <bruno@clisp.org>
78698
78699         * m4/findprog.m4: New file.
78700         * m4/eaccess.m4: New file.
78701
78702 2003-04-10  Bruno Haible  <bruno@clisp.org>
78703
78704         * lib/findprog.h: New file, from GNU gettext.
78705         * lib/findprog.c: New file, from GNU gettext.
78706
78707 2003-04-05  Jim Meyering  <jim@meyering.net>
78708
78709         Merge changes from Coreutils.
78710
78711         * lib/exclude.h (PARAMS): Remove definition and uses.
78712         * lib/exclude.c: Remove uses of `PARAMS'.
78713
78714         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78715         Add test-cases for DOS filenames. Declare program_name.
78716         (main): Set up program_name.  Patch by Rich Dawe.
78717
78718         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78719         error from mntctl.
78720         Use mntctl's return value to drive the entry-processing loop, since
78721         we can't rely on the value of the vmt_length member in the last
78722         entry.  On some systems doing so could result in exhausting
78723         virtual memory.  Based in part on a patch from Mike Jetzer.
78724
78725 2003-04-04  Bruno Haible  <bruno@clisp.org>
78726
78727         * modules/linebreak: New file.
78728         * MODULES.html.sh (func_all_modules): Add it.
78729
78730 2003-04-04  Bruno Haible  <bruno@clisp.org>
78731
78732         * m4/linebreak.m4: New file.
78733
78734 2003-04-04  Bruno Haible  <bruno@clisp.org>
78735
78736         * lib/linebreak.h: New file, from GNU gettext.
78737         * lib/linebreak.c: New file, from GNU gettext with slight
78738         modifications.
78739         * lib/lbrkprop.h: New file, from GNU gettext.
78740
78741 2003-04-03  Bruno Haible  <bruno@clisp.org>
78742
78743         * modules/utf8-ucs4: New file.
78744         * modules/utf16-ucs4: New file.
78745         * modules/ucs4-utf8: New file.
78746         * modules/ucs4-utf16: New file.
78747         * MODULES.html.sh (func_all_modules): Add them.
78748
78749 2003-04-03  Bruno Haible  <bruno@clisp.org>
78750
78751         * m4/utf-ucs4.m4: New file.
78752         * m4/ucs4-utf.m4: New file.
78753
78754 2003-04-03  Bruno Haible  <bruno@clisp.org>
78755
78756         * lib/utf8-ucs4.h: New file, from GNU gettext.
78757         * lib/utf16-ucs4.h: New file, from GNU gettext.
78758         * lib/ucs4-utf8.h: New file, from GNU gettext.
78759         * lib/ucs4-utf16.h: New file, from GNU gettext.
78760
78761 2003-04-02  Bruno Haible  <bruno@clisp.org>
78762
78763         * modules/binary-io: New file.
78764         * MODULES.html.sh (func_all_modules): Add it.
78765
78766 2003-04-02  Bruno Haible  <bruno@clisp.org>
78767
78768         * lib/binary-io.h: New file, from GNU gettext.
78769
78770 2003-04-01  Bruno Haible  <bruno@clisp.org>
78771
78772         * modules/pathname: New file.
78773         * MODULES.html.sh (func_all_modules): Add it.
78774
78775 2003-04-01  Bruno Haible  <bruno@clisp.org>
78776
78777         * lib/pathname.h: New file, from GNU gettext.
78778         * lib/concatpath.c: New file, from GNU gettext.
78779
78780 2003-03-30  Bruno Haible  <bruno@clisp.org>
78781
78782         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78783
78784 2003-03-30  Bruno Haible  <bruno@clisp.org>
78785
78786         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78787         function chown() doesn't exist.
78788
78789 2003-03-28  Bruno Haible  <bruno@clisp.org>
78790
78791         * modules/copy-file: New file.
78792         * MODULES.html.sh (func_all_modules): Add it.
78793
78794 2003-03-28  Bruno Haible  <bruno@clisp.org>
78795
78796         * m4/copy-file.m4: New file.
78797
78798 2003-03-28  Bruno Haible  <bruno@clisp.org>
78799
78800         * lib/copy-file.h: New file, from GNU gettext.
78801         * lib/copy-file.c: New file, from GNU gettext.
78802
78803 2003-03-18  Jim Meyering  <jim@meyering.net>
78804
78805         * lib/quote.c (quote_n): Fix typo in comment.
78806
78807 2003-03-18  Bruno Haible  <bruno@clisp.org>
78808
78809         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78810         checking.
78811         * m4/onceonly_2_57.m4: Likewise.
78812
78813 2003-03-17  Bruno Haible  <bruno@clisp.org>
78814
78815         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78816         (m4_quote): Remove macro.
78817         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78818
78819 2003-03-14  Jim Meyering  <jim@meyering.net>
78820
78821         Merge changes from Coreutils.
78822         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78823         to be const, in order to avoid warnings.
78824         (obstack_room): Likewise.
78825         (obstack_empty_p): Likewise.
78826
78827 2003-03-14  Bruno Haible  <bruno@clisp.org>
78828
78829         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78830         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78831
78832 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78833
78834         Merge changes from Bison.
78835         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78836         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78837         when compiling Bison 1.875's `bitset bset = obstack_alloc
78838         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78839         * lib/hash.c: Include <stdbool.h> unconditionally.
78840
78841 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78842
78843         * m4/onceonly.m4 (m4_quote): New macro.
78844         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78845         Quote AC_FOREACH variable-expansions properly.
78846
78847 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78848
78849         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78850
78851 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78852
78853         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78854         Reported by Bruce Becker; see:
78855         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78856
78857 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78858             Bruno Haible  <bruno@clisp.org>
78859
78860         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78861         Reported by John Hughes, see
78862         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78863
78864 2003-02-20  Bruno Haible  <bruno@clisp.org>
78865
78866         * MODULES.html.sh (func_all_modules): Add poll.
78867
78868 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78869
78870         * modules/poll: New file.
78871
78872 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78873
78874         * lib/poll_.h: New file.
78875         * lib/poll.c: New file.
78876
78877 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78878
78879         * m4/poll.m4: New file.
78880
78881 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78882
78883         * modules/mathl: New file.
78884
78885 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78886
78887         * lib/mathl.h: New file.
78888         * lib/acosl.c: New file.
78889         * lib/asinl.c: New file.
78890         * lib/atanl.c: New file.
78891         * lib/ceill.c: New file.
78892         * lib/cosl.c: New file.
78893         * lib/expl.c: New file.
78894         * lib/floorl.c: New file.
78895         * lib/frexpl.c: New file.
78896         * lib/ldexpl.c: New file.
78897         * lib/logl.c: New file.
78898         * lib/sincosl.c: New file.
78899         * lib/sinl.c: New file.
78900         * lib/sqrtl.c: New file.
78901         * lib/tanl.c: New file.
78902         * lib/trigl.c: New file.
78903         * lib/trigl.h: New file.
78904
78905 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78906
78907         * m4/mathl.m4: New file.
78908
78909 2003-02-18  Bruno Haible  <bruno@clisp.org>
78910
78911         * MODULES.html.sh (func_all_modules): Add mathl.
78912
78913 2003-02-17  Bruno Haible  <bruno@clisp.org>
78914
78915         * modules/mkdtemp: New module.
78916         * MODULES.html.sh (func_all_modules): Add it.
78917
78918 2003-02-17  Bruno Haible  <bruno@clisp.org>
78919
78920         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78921
78922 2003-02-17  Bruno Haible  <bruno@clisp.org>
78923
78924         * lib/mkdtemp.h: New file, from GNU gettext.
78925         * lib/mkdtemp.c: New file, from GNU gettext.
78926
78927 2003-02-02  Jim Meyering  <jim@meyering.net>
78928
78929         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78930         e.g. glibc-2.2.93.
78931
78932 2003-01-31  Bruno Haible  <bruno@clisp.org>
78933
78934         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78935         'rpl_rename'.
78936         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78937         'rpl_strnlen'.
78938         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78939         'rpl_strtod'.
78940         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78941         'rpl_utime'.
78942
78943 2003-01-31  Bruno Haible  <bruno@clisp.org>
78944
78945         * lib/rename.c: #undef rename before defining rpl_rename.
78946         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78947
78948 2003-01-30  Bruno Haible  <bruno@clisp.org>
78949
78950         * modules/vasnprintf, modules/vasprintf: New modules.
78951         * MODULES.html.sh (func_all_modules): Add them.
78952
78953 2003-01-30  Bruno Haible  <bruno@clisp.org>
78954
78955         * m4/signed.m4: New file, from GNU gettext.
78956         * m4/longdouble.m4: New file, from GNU gettext.
78957         * m4/wchar_t.m4: New file, from GNU gettext.
78958         * m4/wint_t.m4: New file, from GNU gettext.
78959         * m4/vasnprintf.m4: New file.
78960         * m4/vasprintf.m4: New file.
78961
78962 2003-01-30  Bruno Haible  <bruno@clisp.org>
78963
78964         * lib/printf-args.h: New file, from GNU gettext.
78965         * lib/printf-args.c: New file, from GNU gettext.
78966         * lib/printf-parse.h: New file, from GNU gettext.
78967         * lib/printf-parse.c: New file, from GNU gettext.
78968         * lib/vasnprintf.h: New file, from GNU gettext.
78969         * lib/vasnprintf.c: New file, from GNU gettext.
78970         * lib/asnprintf.c: New file, from GNU gettext.
78971         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78972         * lib/vasprintf.c: New file, from GNU gettext.
78973         * lib/asprintf.c: New file, from GNU gettext.
78974
78975 2003-01-29  Bruno Haible  <bruno@clisp.org>
78976
78977         * modules/stpncpy: New module.
78978         * MODULES.html.sh (func_all_modules): Add it.
78979
78980 2003-01-29  Bruno Haible  <bruno@clisp.org>
78981
78982         * m4/stpncpy.m4: New file.
78983
78984 2003-01-29  Bruno Haible  <bruno@clisp.org>
78985
78986         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78987         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78988
78989 2003-01-28  Bruno Haible  <bruno@clisp.org>
78990
78991         * modules/c-ctype: New module.
78992         * MODULES.html.sh (func_all_modules): Add it.
78993
78994 2003-01-28  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78997         Paul Eggert.
78998         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78999         Paul Eggert.
79000
79001 2003-01-27  Bruno Haible  <bruno@clisp.org>
79002
79003         * modules/xsetenv: New module.
79004         * MODULES.html.sh (func_all_modules): Add it.
79005
79006 2003-01-27  Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/xsetenv.h: New file, from GNU gettext.
79009         * lib/xsetenv.c: New file, from GNU gettext.
79010
79011 2003-01-23  Jim Meyering  <jim@meyering.net>
79012
79013         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79014         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79015
79016 2003-01-23  Bruno Haible  <bruno@clisp.org>
79017
79018         * modules/minmax: New module.
79019         * MODULES.html.sh (func_all_modules): Add it.
79020
79021 2003-01-23  Bruno Haible  <bruno@clisp.org>
79022
79023         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79024         Eggert.
79025
79026 2003-01-22  Bruno Haible  <bruno@clisp.org>
79027
79028         * modules/exit: New module.
79029         * MODULES.html.sh (func_all_modules): Add it.
79030
79031 2003-01-22  Bruno Haible  <bruno@clisp.org>
79032
79033         * lib/exit.h: New file, from GNU gettext.
79034
79035 2003-01-19  Bruno Haible  <bruno@clisp.org>
79036
79037         * gnulib-tool: Recognize option --extract-maintainer.
79038         (func_get_maintainer): New function.
79039         * modules/*: Add Maintainer entry.
79040
79041 2003-01-16  Jim Meyering  <jim@meyering.net>
79042
79043         * m4/regex.m4: The `regex' struct is both input and output.
79044         Initialize it before each use.  Patch by Tim Waugh.
79045
79046 2003-01-16  Bruno Haible  <bruno@clisp.org>
79047
79048         * MODULES.html.sh: Add a table of contents. Add the module name as
79049         leftmost column. Add hyperlinks.
79050
79051 2003-01-15  Bruno Haible  <bruno@clisp.org>
79052
79053         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79054
79055 2003-01-15  Bruno Haible  <bruno@clisp.org>
79056
79057         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79058         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79059         suffix.
79060
79061 2003-01-15  Bruno Haible  <bruno@clisp.org>
79062
79063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79064
79065 2003-01-15  Bruno Haible  <bruno@clisp.org>
79066
79067         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79068         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79069
79070 2003-01-14  Jim Meyering  <jim@meyering.net>
79071
79072         * lib/same.c (same_name): Tweak a comment.
79073
79074 2003-01-14  Bruno Haible  <bruno@clisp.org>
79075
79076         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79077         when a string comparison is sufficient.
79078
79079 2003-01-14  Bruno Haible  <bruno@clisp.org>
79080
79081         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79082         'unsigned int'.
79083
79084 2003-01-14  Bruno Haible  <bruno@clisp.org>
79085
79086         * lib/hash-pjw.c: Add comment about low quality of this function.
79087
79088 2003-01-13  Bruno Haible  <bruno@clisp.org>
79089
79090         * modules/stpcpy: Distribute lib/stpcpy.h.
79091         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79092
79093 2003-01-13  Bruno Haible  <bruno@clisp.org>
79094
79095         * modules/*: Add a description.
79096         * modules/strpbrk: Fix Makefile.am snippet.
79097         * modules/strtoimax: Fix dependencies.
79098         * modules/strtoumax: Likewise.
79099
79100 2003-01-13  Bruno Haible  <bruno@clisp.org>
79101
79102         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79103         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79104         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79105
79106 2003-01-13  Bruno Haible  <bruno@clisp.org>
79107
79108         * gnulib-tool (func_create_testdir): Store config/* files in the main
79109         directory.
79110         * config.rpath: Move to ...
79111         * config/config.rpath: ... here.
79112         * modules/gettext: Contains config/config.rpath, not config.rpath.
79113         * modules/iconv: Likewise.
79114
79115 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79116
79117         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79118         to avoid collisions with libcurses and libreadline.
79119
79120         * m4/getstr.m4: Remove.
79121         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79122
79123 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79124
79125         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79126         to avoid collisions with libcurses and libreadline.
79127
79128         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79129         * lib/getstr.h, getstr.c: Remove.
79130         * lib/getline.c: Include "getline.h", to check interface.
79131         Move body of old getstr.c here: this defines MIN_CHUNK and
79132         declares getdelim2, which is renamed from getstr.
79133         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79134
79135         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79136         All uses changed.
79137         * lib/linebuffer.h: Likewise.
79138         (readline): Remove backward-compatibility macro.
79139
79140 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79141
79142         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79143         to avoid collisions with libcurses and libreadline.
79144         * getstr: Remove.
79145         * MODULES.html.sh: Remove getstr.
79146         * modules/getline: Depend on unlocked-io, not getstr.
79147
79148 2003-01-12  Jim Meyering  <jim@meyering.net>
79149
79150         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79151
79152 2003-01-10  Bruno Haible  <bruno@clisp.org>
79153
79154         * modules/alloca: Change Makefile.am requirements. Simplify Include
79155         requirements. Add lib/alloca_.h to file list.
79156
79157 2003-01-10  Bruno Haible  <bruno@clisp.org>
79158
79159         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79160
79161 2003-01-10  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/alloca_.h: New file.
79164         * lib/getdate.y: Unconditionally include alloca.h.
79165         * lib/makepath.c: Likewise.
79166         * lib/setenv.c: Likewise.
79167         * lib/userspec.c: Likewise.
79168
79169 2003-01-09  Karl Berry  <karl@gnu.org>
79170
79171         * MODULES.html.sh: include `dirname $0` in PATH, to find
79172         gnulib-tool.
79173
79174 2003-01-09  Bruno Haible  <bruno@clisp.org>
79175
79176         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79177         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79178
79179 2003-01-09  Bruno Haible  <bruno@clisp.org>
79180
79181         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79182
79183 2003-01-09  Bruno Haible  <bruno@clisp.org>
79184
79185         * lib/stdbool.h.in: New file.
79186
79187 2003-01-09  Bruno Haible  <bruno@clisp.org>
79188
79189         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79190         * MODULES.html.sh: Likewise.
79191
79192 2003-01-08  Jim Meyering  <jim@meyering.net>
79193
79194         * lib/full-write.c: Undefine and define-away `const' after inclusion
79195         of errno.h, not before.  Suggestion from Bruno Haible.
79196
79197 2003-01-08  Bruno Haible  <bruno@clisp.org>
79198
79199         * modules/full-read: Depend on full-write.
79200
79201 2003-01-08  Bruno Haible  <bruno@clisp.org>
79202
79203         * lib/safe-read.c: Include specification header first, to ensure its
79204         selfcontainedness.
79205         * lib/full-write.c: Likewise.
79206
79207 2003-01-07  Jim Meyering  <jim@meyering.net>
79208
79209         * lib/full-write.c: Rework so that it may serve to define full_read,
79210         too.
79211         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79212
79213 2003-01-07  Bruno Haible  <bruno@clisp.org>
79214
79215         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79216         <inttypes.h>.
79217         * lib/xstrtol.h: Likewise.
79218         * lib/xstrtoimax.c: Likewise.
79219         * lib/xstrtoumax.c: Likewise.
79220         * lib/human.h: Likewise.
79221
79222         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79223         on systems that have <inttypes.h> but not <stdint.h>.
79224
79225 2003-01-07  Bruno Haible  <bruno@clisp.org>
79226
79227         * MODULES.html.sh: Add copyright notice.
79228         (missed_files): Omit CVS directory entries.
79229         (func_module): Make it work with sed-3.02.
79230         * MODULES.txt: Remove file.
79231
79232 2003-01-06  Jim Meyering  <jim@meyering.net>
79233
79234         * lib/version-etc.c: Update year in translatable copyright string.
79235
79236 2003-01-03  Karl Berry  <karl@gnu.org>
79237
79238         * config/config.{guess,sub}: update from prep.
79239
79240 2003-01-02  Karl Berry  <karl@gnu.org>
79241
79242         * doc/COPYING.DOC: belatedly updated to 1.2.
79243
79244 2003-01-01  Karl Berry  <karl@gnu.org>
79245
79246         * gnulib-tool (func_verify_module): report module name $module in
79247         error message, not $1.
79248         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79249         be created, only if it doesn't exist.
79250         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79251
79252 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79253
79254         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79255
79256 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79257
79258         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79259         memcmp if strcoll doesn't work.
79260
79261 2002-12-31  Bruno Haible  <bruno@clisp.org>
79262
79263         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79264         nonempty.
79265
79266 2002-12-31  Bruno Haible  <bruno@clisp.org>
79267
79268         * lib/memcoll.c (STRCOLL): New macro.
79269         (memcoll): Use it.
79270
79271 2002-12-31  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/localcharset.h: New file.
79274         * lib/localcharset.c: Include it.
79275         * lib/unicodeio.c: Likewise.
79276
79277 2002-12-31  Bruno Haible  <bruno@clisp.org>
79278
79279         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79280         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79281
79282 2002-12-31  Bruno Haible  <bruno@clisp.org>
79283
79284         * lib/getline.h: Include <stddef.h>, for size_t.
79285
79286         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79287         * lib/unicodeio.c: Don't include <stddef.h>.
79288
79289 2002-12-31  Bruno Haible  <bruno@clisp.org>
79290
79291         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79292         HAVE_TM_ZONE.
79293
79294 2002-12-24  Karl Berry  <karl@gnu.org>
79295
79296         * config/config.guess: update from prep.
79297
79298 2002-12-24  Bruno Haible  <bruno@clisp.org>
79299
79300         General infrasructure.
79301         * m4/README: Rewritten.
79302         * m4/onceonly.m4: New file.
79303         * m4/onceonly_2_57.m4: New file.
79304
79305         Module atexit.
79306         * m4/atexit.m4: New file.
79307
79308         Module strtod.
79309         * m4/strtod.m4: New file.
79310
79311         Module strtol.
79312         * m4/strtol.m4: New file.
79313
79314         Module strtoul.
79315         * m4/strtoul.m4: New file.
79316
79317         Module memchr.
79318         * m4/memchr.m4: New file.
79319
79320         Module memcmp.
79321         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79322         (jm_FUNC_MEMCMP): Invoke it.
79323
79324         Module memcpy.
79325         * m4/memcpy.m4: New file.
79326
79327         Module memmove.
79328         * m4/memmove.m4: New file.
79329
79330         Module memset.
79331         * m4/memset.m4: New file.
79332
79333         Module strcspn.
79334         * m4/strcspn.m4: New file.
79335
79336         Module strpbrk.
79337         * m4/strpbrk.m4: New file.
79338
79339         Module strstr.
79340         * m4/strstr.m4: New file.
79341
79342         Module strerror.
79343         * m4/strerror.m4: New file.
79344
79345         Module mktime.
79346         * m4/mktime.m4: Renamed from jm-mktime.m4.
79347         (gl_PREREQ_MKTIME): New macro.
79348         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79349
79350         Module malloc.
79351         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79352         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79353         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79354
79355         Module realloc.
79356         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79357         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79358         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79359
79360         Module strftime.
79361         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79362         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79363         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79364         gl_TM_GMTOFF.
79365         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79366
79367         Module xalloc.
79368         * m4/xalloc.m4: New file.
79369
79370         Module alloca.
79371         * m4/alloca.m4: New file.
79372
79373         Module putenv.
79374         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79375         (jm_FUNC_PUTENV): Invoke it.
79376
79377         Module setenv.
79378         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79379         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79380         when invoked twice.
79381         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79382         gt_FUNC_SETENV.
79383
79384         Module memrchr.
79385         * m4/memrchr.m4: New file.
79386
79387         Module stpcpy.
79388         * m4/stpcpy.m4: New file.
79389
79390         Module strcase.
79391         * m4/strcase.m4: New file.
79392
79393         Module strdup.
79394         * m4/strdup.m4: New file.
79395
79396         Module strnlen.
79397         * m4/strnlen.m4: New file.
79398
79399         Module strndup.
79400         * m4/strndup.m4: New file.
79401
79402         Module xstrtod.
79403         * m4/xstrtod.m4: New file.
79404
79405         Module xstrtol.
79406         * m4/xstrtol.m4: New file.
79407
79408         Module getdate.
79409         * m4/getdate.m4: New file.
79410
79411         Module unlocked-io.
79412         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79413         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79414         * m4/jm-glibc-io.m4n: Remove file.
79415
79416         Module long-options.
79417         * m4/long-options.m4: New file.
79418
79419         Module md5.
79420         * m4/md5.m4: New file.
79421
79422         Module sha.
79423         * m4/sha.m4: New file.
79424
79425         Module getstr.
79426         * m4/getstr.m4: New file.
79427
79428         Module getline.
79429         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79430         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79431         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79432         simply getline. Infoke gl_PREREQ_GETLINE.
79433
79434         Module obstack.
79435         * m4/obstack.m4: New file.
79436
79437         Module hash.
79438         * m4/hash.m4: New file.
79439
79440         Module readtokens.
79441         * m4/readtokens.m4: New file.
79442
79443         Module strverscmp.
79444         * m4/strverscmp.m4: New file.
79445
79446         Module stdbool.
79447         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79448         OSF/1.
79449
79450         Module strtoll.
79451         * m4/strtoll.m4: New file.
79452
79453         Module strtoull.
79454         * m4/strtoull.m4: New file.
79455
79456         Module strtoimax.
79457         * m4/strtoimax.m4: New file.
79458
79459         Module strtoumax.
79460         * m4/strtoumax.m4: New file.
79461
79462         Module xstrtoimax.
79463         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79464         jm_AC_PREREQ_XSTRTOIMAX.
79465         Moved the strtol prerequisites to strtol.m4.
79466         Moved the strtoll prerequisites to strtoll.m4.
79467         Moved the strtoimax prerequisites to strtoimax.m4.
79468
79469         Module xstrtoumax.
79470         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79471         jm_AC_PREREQ_XSTRTOUMAX.
79472         Moved the strtoul prerequisites to strtoul.m4.
79473         Moved the strtoull prerequisites to strtoull.m4.
79474         Moved the strtoumax prerequisites to strtoumax.m4.
79475
79476         Module chown.
79477         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79478         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79479
79480         Module dup2.
79481         * m4/dup2.m4: New file.
79482
79483         Module ftruncate.
79484         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79485         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79486
79487         Module getgroups.
79488         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79489         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79490
79491         Module gettimeofday.
79492         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79493         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79494         gl_PREREQ_GETTIMEOFDAY.
79495
79496         Module mkdir.
79497         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79498         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79499
79500         Module mkstemp.
79501         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79502         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79503         jm_AC_TYPE_UINTMAX_T.
79504         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79505
79506         Module stat.
79507         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79508         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79509
79510         Module lstat.
79511         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79512         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79513
79514         Module timespec.
79515         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79516         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79517         * m4/st_mtim.m4: Indentation.
79518
79519         Module nanosleep.
79520         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79521         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79522         gl_PREREQ_NANOSLEEP.
79523
79524         Module regex.
79525         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79526         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79527         (gl_REGEX): New macro.
79528
79529         Module rename.
79530         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79531         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79532
79533         Module rmdir.
79534         * m4/rmdir.m4: New file.
79535
79536         Module utime.
79537         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79538         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79539         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79540
79541         Module dirname.
79542         * m4/dirname.m4: New file.
79543
79544         Module getopt.
79545         * m4/getopt.m4: New file.
79546
79547         Module unistd-safer.
79548         * m4/unistd-safer.m4: New file.
79549
79550         Module fnmatch.
79551         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79552         declaration.
79553         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79554         (gl_FUNC_FNMATCH_POSIX): New macro.
79555         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79556         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79557         simply fnmatch.
79558
79559         Module exclude.
79560         * m4/exclude.m4: New file.
79561
79562         Module human.
79563         * m4/human.m4: New file.
79564
79565         Module acl.
79566         * m4/acl.m4: Nop.
79567
79568         Module backupfile.
79569         * m4/backupfile.m4: New file.
79570         * m4/d-ino.m4: Indentation.
79571
79572         Module fsusage.
79573         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79574         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79575         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79576
79577         Module dirfd.
79578         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79579         requirements.
79580
79581         Module euidaccess.
79582         * m4/euidaccess.m4: New file.
79583
79584         Module file-type.
79585         * m4/file-type.m4: New file.
79586
79587         Module fileblocks.
79588         * m4/fileblocks.m4: New file.
79589
79590         Module filemode.
79591         * m4/filemode.m4: New file.
79592
79593         Module isdir.
79594         * m4/isdir.m4: New file.
79595
79596         Module lchown.
79597         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79598         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79599
79600         Module makepath.
79601         * m4/makepath.m4: New file.
79602
79603         Module modechange.
79604         * m4/modechange.m4: New file.
79605
79606         Module mountlist.
79607         * m4/mountlist.m4: New file.
79608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79609         Indentation.
79610
79611         Module path-concat.
79612         * m4/path-concat.m4: New file.
79613
79614         Module pathmax.
79615         * m4/pathmax.m4: New file.
79616
79617         Module same.
79618         * m4/same.m4: New file.
79619
79620         Module save-cwd.
79621         * m4/save-cwd.m4: New file.
79622
79623         Module savedir.
79624         * m4/savedir.m4: New file.
79625
79626         Module xgetcwd.
79627         * m4/xgetcwd.m4: New file.
79628         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79629
79630         Module xreadlink.
79631         * m4/xreadlink.m4: New file.
79632
79633         Module safe-read.
79634         * m4/safe-read.m4: New file.
79635
79636         Module safe-write.
79637         * m4/safe-write.m4: New file.
79638
79639         Module closeout.
79640         * m4/closeout.m4: New file.
79641
79642         Module stdio-safer.
79643         * m4/stdio-safer.m4: New file.
79644
79645         Module getpass.
79646         * m4/getpass.m4: New file.
79647
79648         Module getugroups.
79649         * m4/getugroups.m4: New file.
79650
79651         Module group-member.
79652         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79653         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79654
79655         Module idcache.
79656         * m4/idcache.m4: New file.
79657
79658         Module userspec.
79659         * m4/userspec.m4: New file.
79660
79661         Module gettime.
79662         * m4/clock_time.m4: New file.
79663         * m4/gettime.m4: New file.
79664
79665         Module settime.
79666         * m4/settime.m4: New file.
79667
79668         Module posixtm.
79669         * m4/posixtm.m4: New file.
79670
79671         Module gethostname.
79672         * m4/gethostname.m4: New file.
79673
79674         Module canon-host.
79675         * m4/canon-host.m4: New file.
79676
79677         Module gettext.
79678         * m4/codeset.m4: New file, from gettext-0.11.5.
79679         * m4/gettext.m4: New file, from gettext-0.11.5.
79680         * m4/glibc21.m4: New file, from gettext-0.11.5.
79681         * m4/iconv.m4: New file, from gettext-0.11.5.
79682         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79683         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79684         * m4/inttypes.m4: New file, from gettext-0.11.5.
79685         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79686         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79687         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79688         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79689         * m4/lib-link.m4: New file, from gettext-0.11.5.
79690         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79691         * m4/progtest.m4: New file, from gettext-0.11.5.
79692         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79693         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79694         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79695
79696         Module localcharset.
79697         * m4/localcharset.m4: New file.
79698
79699         Module hard-locale.
79700         * m4/hard-locale.m4: New file.
79701
79702         Module mbswidth.
79703         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79704         onceonly macros.
79705         * m4/mbrtowc.m4: Add comment.
79706
79707         Module memcasecmp.
79708         * m4/memcasecmp.m4: New file.
79709
79710         Module memcoll.
79711         * m4/memcoll.m4: New file.
79712
79713         Module unicodeio.
79714         * m4/unicodeio.m4: New file.
79715
79716         Module rpmatch.
79717         * m4/rpmatch.m4: New file.
79718
79719         Module yesno.
79720         * m4/yesno.m4: New file.
79721
79722         Module exitfail.
79723         * m4/exitfail.m4: New file.
79724
79725         Module c-stack.
79726         * m4/c-stack.m4 (gl_C_STACK): New macro.
79727         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79728
79729         Module error.
79730         * m4/error.m4 (gl_ERROR): New macro.
79731         (jm_PREREQ_ERROR): Use onceonly macros.
79732
79733         Module fatal.
79734         * m4/fatal.m4: New file.
79735
79736         Module getloadavg.
79737         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79738         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79739
79740         Module getpagesize.
79741         * m4/getpagesize.m4: New file.
79742
79743         Module getusershell.
79744         * m4/getusershell.m4: New file.
79745
79746         Module physmem.
79747         * m4/physmem.m4: New file.
79748
79749         Module posixver.
79750         * m4/posixver.m4: New file.
79751
79752         Module quotearg.
79753         * m4/quotearg.m4: New file.
79754
79755         Module quote.
79756         * m4/quote.m4: New file.
79757
79758         Module readutmp.
79759         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79760
79761         Module sig2str.
79762         * m4/sig2str.m4: New file.
79763
79764         Other.
79765         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79766         ulonglong.m4.
79767         * m4/intmax_t.m4: New file.
79768         * m4/d-type.m4: Indentation.
79769         * m4/jm-macros.m4: Update.
79770         * m4/prereq.m4 (jm_PREREQ): Update.
79771         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79772         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79773         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79774         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79775         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79776         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79777         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79778         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79779         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79780         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79781         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79782         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79783         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79784         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79785         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79786         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79787         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79788         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79789         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79790
79791 2002-12-24  Bruno Haible  <bruno@clisp.org>
79792
79793         * MODULES.txt: Update according to m4/ changes.
79794
79795         Module gettext.
79796         * config.rpath: New file, from gettext-0.11.5.
79797
79798         * modules/*: New module descriptions.
79799         * gnulib-tool: New file.
79800         * MODULES.html.sh: New file.
79801
79802 2002-12-21  Karl Berry  <karl@gnu.org>
79803
79804         * doc/fdl.texi: update to version 1.2.
79805
79806 2002-12-19  Karl Berry  <karl@gnu.org>
79807
79808         * config/config.guess: update from prep.
79809
79810 2002-12-18  Bruno Haible  <bruno@clisp.org>
79811
79812         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79813         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79814
79815 2002-12-17  Bruno Haible  <bruno@clisp.org>
79816
79817         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79818         stdlib.h, string.h.
79819
79820 2002-12-17  Bruno Haible  <bruno@clisp.org>
79821
79822         * lib/canon-host.c (strdup): Remove unused declaration.
79823
79824         * lib/fsusage.c: Include full_read.h.
79825         (get_fs_usage): Use full_read instead of safe_read.
79826
79827         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79828
79829 2002-12-12  Karl Berry  <karl@gnu.org>
79830
79831         * config/config.guess: update from prep.
79832
79833 2002-12-11  Bruno Haible  <bruno@clisp.org>
79834
79835         * m4/setenv.m4: New file, from gettext-0.11.5.
79836
79837 2002-12-11  Bruno Haible  <bruno@clisp.org>
79838
79839         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79840         not unsetenv().
79841         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79842         modifications:
79843
79844         2002-12-11  Bruno Haible  <bruno@clisp.org>
79845
79846                 * setenv.c (alloca): Fall back to malloc.
79847                 (freea): New macro.
79848                 (setenv): Use freea() to free memory allocated with alloca().
79849
79850         2002-11-13  Bruno Haible  <bruno@clisp.org>
79851
79852                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79853                 function declarations.
79854                 * unsetenv.c (unsetenv): Likewise.
79855
79856         2002-03-04  Bruno Haible  <bruno@clisp.org>
79857
79858                 Portability to AIX 4.3.3.
79859                 * unsetenv.c: New file, extracted from setenv.c.
79860                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79861
79862         2001-12-20  Bruno Haible  <bruno@clisp.org>
79863
79864                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79865                 use malloc instead. For SunOS 4.
79866
79867         2001-12-11  Bruno Haible  <bruno@clisp.org>
79868
79869                 * setenv.c: Declare alloca.
79870                 (compar_fn_t): New typedef.
79871                 (KNOWN_VALUE, STORE_VALUE): Use it.
79872
79873         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79874         setenv.h.
79875
79876 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79877
79878         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79879         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79880         Choose values that are less likely to collide with system fnmatch
79881         options.
79882         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79883         defined (e.g., a pure POSIX system).
79884         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79885         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79886
79887 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79888
79889         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79890         a pain in practice to deal with generated m4 files.  This change
79891         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79892
79893         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79894         and jm-glibc-io.m4, as they are no longer a special case.
79895         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79896         kludge and the auto-generation stuff.  Check only whether the
79897         functions are declared, not whether they exist, since older hosts
79898         that don't declare the functions can't use the optimization anyway.
79899
79900 2002-12-06  Jim Meyering  <jim@meyering.net>
79901
79902         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79903
79904         Merge in changes from libc's misc/error.c, in preparation
79905         for the merge of gnulib's changes back into libc.
79906
79907         * lib/error.c (_): Define only if not already defined.
79908         Move definition to follow all #include directives.
79909         Include unlocked-io.h only if !_LIBC.
79910         [_LIBC]: Include <libio/libioP.h>.
79911         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79912         (fflush): Tweak definition to use INTUSE.
79913         (putc): Define.
79914
79915 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79916
79917         * lib/alloca.c [defined emacs]: Include "lisp.h".
79918         (xalloc_die) [defined emacs]: New macro.
79919         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79920         [! defined emacs]: Include <xalloc.h>.
79921         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79922         (pointer): Typedef to POINTER_TYPE *.
79923         (malloc): Remove decl; we now always use xmalloc.
79924         (alloca): Use old-style definition, since Emacs needs this.
79925         Check for arithmetic overflow when computing combined size.
79926
79927 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79928
79929         Do not generate unlocked-io.h automatically, since it's easier to
79930         maintain it by hand.
79931
79932         * lib/unlocked-io.h: New file, from GNU diffutils,
79933         but with proper copyright notice and attribution.
79934         * lib/gen-uio: Remove.
79935         * lib/Makefile.am: Add copyright notice.
79936         (libfetish_a_SOURCES): Add unlocked-io.h.
79937         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79938         (DISTCLEANFILES, io_functions): Remove macros.
79939         (EXTRA_DIST): Remove gen_uio.
79940         (unlocked-io.h): Remove rule.
79941
79942 2002-12-04  Jim Meyering  <jim@meyering.net>
79943
79944         Reflect the fact that stat.c and lstat.c are no longer generated.
79945         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79946         (DISTCLEANFILES): Likewise.
79947         (EXTRA_DIST): Likewise.
79948         (all_local): Don't depend on stat.c or lstat.c.
79949         (stat.c, lstat.c): Remove rules.
79950         (EXTRA_DIST): Remove xstat.in.
79951
79952         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79953         * lib/stat.c: New file.  Contents mostly from xstat.in.
79954         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79955         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79956
79957         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79958         too.
79959         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79960
79961 2002-12-03  Jim Meyering  <jim@meyering.net>
79962
79963         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79964         but not semantics, to minimize the differences between these two files.
79965         (safe_read): Change comment to mention SAFE_READ_ERROR.
79966
79967         * lib/safe-read.c (IS_EINTR): Define.
79968         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79969
79970 2002-12-02  Jim Meyering  <jim@meyering.net>
79971
79972         * lib/safe-read.c (EINTR): Define.
79973         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79974         (INT_MAX): Provide fallback.
79975         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79976
79977         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79978
79979 2002-12-02  Bruno Haible  <bruno@clisp.org>
79980
79981         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79982         Define, taken from safe-read.c.
79983         (INT_MAX): Provide fallback.
79984         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79985         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79986
79987         * lib/safe-read.c (EINTR): Remove definition.
79988         (safe_read): Don't use EINTR if it is absent.
79989
79990 2002-12-01  Jim Meyering  <jim@meyering.net>
79991
79992         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79993         zero.
79994         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79995
79996 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79997
79998         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79999         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80000         with `if (! (value < limit)) abort ();', for readability.
80001
80002 2002-11-26  Karl Berry  <karl@gnu.org>
80003
80004         * lib/strdup.c: copy from libc again, with jim's ok.
80005         * lib/.cppi-disable: re-add strdup.c
80006
80007 2002-11-25  Karl Berry  <karl@gnu.org>
80008
80009         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80010         instead of "strtol.c".
80011
80012 2002-11-25  Karl Berry  <karl@gnu.org>
80013
80014         * config/install-sh: update from automake for variable quoting, $0 in
80015         error msgs, etc.
80016
80017         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80018         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80019         entry.
80020
80021 2002-11-25  Jim Meyering  <jim@meyering.net>
80022
80023         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80024
80025 2002-11-24  Karl Berry  <karl@gnu.org>
80026
80027         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80028         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80029
80030 2002-11-24  Jim Meyering  <jim@meyering.net>
80031
80032         Update from coreutils:
80033
80034         * lib/mktime.c: Merge in changes from libc.
80035
80036         Avoid a link-time failure on some Linux systems.
80037         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80038         (otherwise).
80039         (__mon_yday): Declare with the STATIC attribute.
80040         (__mktime_internal): Likewise.
80041         Based on a report from Greg Schafer.
80042
80043 2002-11-23  Jim Meyering  <jim@meyering.net>
80044
80045         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80046         Use `unsigned', not `int', as type of index.
80047
80048         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80049
80050         * lib/fsusage.c: Remove unneeded parentheses around operands of
80051         `defined'.
80052
80053 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80054
80055         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80056         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80057         so that we can be included first.
80058         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80059         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80060         No need to include stddef.h or sys/types.h any more.
80061         Surround local include files with "", not "<>".
80062         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80063         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80064         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80065         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80066         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80067         (ISPRINT): Remove; no longer needed now that we assume C89.
80068
80069         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80070         Preserve errno.
80071
80072         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80073         quotearg_char): Use SIZE_MAX rather than
80074         (size_t) -1 when we are talking about "infinity".
80075
80076         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80077
80078 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80079
80080         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80081         hint that one should use `if (! x) abort ();' rather than `assert
80082         (x);', and anyway it's one less thing to worry about configuring.
80083         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80084         hash_rehash, hash_insert): Use abort rather than assert.
80085
80086 2002-11-22  Bruno Haible  <bruno@clisp.org>
80087
80088         * lib/safe-read.h: Assume C89. Add comments.
80089         (safe_read): Change return type to size_t.
80090         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80091         byte counts > SSIZE_MAX correctly.
80092         * lib/safe-write.h: New file.
80093         * lib/safe-write.c: New file.
80094         * lib/full-read.h: New file.
80095         * lib/full-read.c: New file.
80096         * lib/full-write.h: Assume C89. Add comments.
80097         * lib/full-write.c: Include safe-write.h.
80098         (full_write): Rewritten to use safe_write.
80099         Suggested by Jim Meyering and Paul Eggert.
80100
80101 2002-11-21  Jim Meyering  <jim@meyering.net>
80102
80103         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80104
80105         Merge in changes from the coreutils.
80106
80107         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80108         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80109         <stdint.h>.
80110         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80111         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80112         int.  Work more efficiently if X is the same width as uintmax_t.
80113         Do not compare X to -1, to avoid bogus compiler warning.
80114         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80115         Don't assume that f_frsize and f_bsize are the same type.
80116
80117         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80118         warning on FreeBSD.
80119
80120         * lib/makepath.c (make_path): Restore umask *before* creating the final
80121         component.
80122         (make_path): Minor reformatting.
80123
80124         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80125         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80126         HAVE_MALLOC/HAVE_REALLOC.
80127
80128         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80129         dummy ones.  At least on GNU/Linux systems, `auto' means something
80130         else.
80131         From Michael Stone.
80132
80133 2002-11-21  Bruno Haible  <bruno@clisp.org>
80134
80135         Remove case insensitive option matching.
80136         * lib/argmatch.h (argcasematch): Remove declaration.
80137         (ARGCASEMATCH): Remove macro.
80138         (__xargmatch_internal): Remove case_sensitive argument.
80139         (XARGMATCH): Update.
80140         (XARGCASEMATCH): Remove macro.
80141         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80142         case_sensitive argument.
80143         (argcasematch): Remove function.
80144         (__xargmatch_internal): Remove case_sensitive argument.
80145         (main): Use XARGMATCH instead of XARGCASEMATCH.
80146
80147         * lib/xmalloc.c: Change compile-time error message. Add comment about
80148         required autoconf version.
80149
80150 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80151
80152         Merge argmatch cleanups from Bison.  Assume C89.
80153
80154         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80155         Include stdlib.h, for EXIT_FAILURE.
80156         Always include <string.h>, since we assume C89.
80157         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80158         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80159         Include <stddef.h> instead, since it's all we need for size_t.
80160         (PARAMS): Remove.  All uses removed.
80161         (ARRAY_CARDINALITY): Do not bother to #undef.
80162         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80163         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80164         Remove unnecessary parentheses.
80165         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80166         Insert necessary parentheses.
80167         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80168         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80169
80170 2002-11-19  Bruno Haible  <bruno@clisp.org>
80171
80172         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80173         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80174
80175         * lib/mbswidth.h (PARAMS): Remove macro.
80176         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80177         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80178
80179         * lib/gcd.h (PARAMS): Remove macro.
80180         (gcd): Use ANSI C function declarations.
80181         * lib/gcd.c (gcd): Likewise.
80182
80183 2002-11-15  Bruno Haible  <bruno@clisp.org>
80184
80185         * lib/strcspn.c: Include <stddef.h>.
80186         (strcspn): Use ANSI C function declaration. Change return type to
80187         size_t. Use NULL.
80188         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80189         (strpbrk): Use NULL.
80190         * lib/strpbrk.h (PARAMS): Remove macro.
80191         (strpbrk): Use ANSI C function declaration.
80192         * lib/strstr.c: Don't include <sys/types.h>.
80193         * lib/strstr.h (PARAMS): Remove macro.
80194         (strstr): Use ANSI C function declarations.
80195
80196 2002-11-14  Karl Berry  <karl@gnu.org>
80197
80198         * config/mkinstalldirs: `do' on separate line, instead of
80199         `for var; do'.
80200
80201 2002-11-06  Bruno Haible  <bruno@clisp.org>
80202
80203         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80204         * lib/gcd.c (gcd): Likewise.
80205
80206 2002-11-05  Bruno Haible  <bruno@clisp.org>
80207
80208         * lib/gcd.h: New file, from gettext-0.11.5.
80209         * lib/gcd.c: New file, from gettext-0.11.5.
80210
80211 2002-11-05  Bruno Haible  <bruno@clisp.org>
80212
80213         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80214         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80215         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80216         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80217
80218         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80219         <libintl.h>.
80220         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80221         <libintl.h>.
80222
80223         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80224         * lib/human.c: Include gettext.h instead of <libintl.h>.
80225         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80226         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80227         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80228         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80229         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80230         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80231         (textdomain): Remove definition.
80232         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80233
80234         * lib/long-options.c: Remove include of <libintl.h> and definition of
80235         _.
80236         * lib/same.c: Remove include of <libintl.h> and definition of _.
80237
80238 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80239
80240         * lib/config.charset: A few additions for Solaris.
80241
80242 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80243
80244         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80245         * lib/localcharset.c (locale_charset): Declare as extern "C".
80246
80247 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80248
80249         * lib/config.charset: msdos in uk_UA uses CP1125.
80250
80251 2002-11-04  Bruno Haible  <bruno@clisp.org>
80252
80253         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80254         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80255         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80256         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80257         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80258
80259 2002-11-04  Bruno Haible  <bruno@clisp.org>
80260
80261         * lib/localcharset.c (locale_charset): Don't return an empty string.
80262
80263 2002-11-04  Bruno Haible  <bruno@clisp.org>
80264
80265         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80266         aliases.
80267
80268 2002-11-04  Bruno Haible  <bruno@clisp.org>
80269
80270         * lib/config.charset: Update for newest glibc. Add canonical names
80271         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80272
80273 2002-11-04  Bruno Haible  <bruno@clisp.org>
80274
80275         * lib/config.charset: Add support for NetBSD.
80276
80277 2002-11-04  Bruno Haible  <bruno@clisp.org>
80278
80279         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80280
80281 2002-11-01  Bruno Haible  <bruno@clisp.org>
80282
80283         * configure.in: Add AC_CONFIG_AUX_DIR call.
80284         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80285         test/Makefile.
80286         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80287
80288 2002-09-28  Karl Berry  <karl@gnu.org>
80289
80290         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80291         installed automake until the next release, since changes have been
80292         made.
80293
80294 2002-09-25  Karl Berry  <karl@gnu.org>
80295
80296         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80297         * lib/getopt*: copy from libc/posix.
80298         * lib/gettext.h: copy from gettext.
80299         * lib/.cppi-disable: add strdup.c, gettext.h.
80300
80301 2002-09-25  Karl Berry  <karl@gnu.org>
80302
80303         * config/srclist.txt: enable gettext.h check.
80304         * config/config.{guess,sub}: update from prep.
80305         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80306                 from automake 1.6.3.
80307         See srclist*.
80308
80309 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80310
80311         * regex.c (PATFETCH): Remove the translating fetch.
80312         (PATFETCH_RAW): Rename to PATFETCH.
80313         (set_image_of_range): New fun.
80314         (SET_RANGE_TABLE_WORK_AREA): Use it.
80315         (regex_compile): Don't translate the pattern chars so eagerly.
80316         Only do it when inserting an `exactn' bytecode or when handling
80317         a char-range.
80318         (mutually_exclusive_p): Avoid empty statement.
80319
80320 2002-07-06  Jim Meyering  <meyering@lucent.com>
80321
80322         * m4/README: Don't mention Makefile.am.in.
80323         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80324
80325 2002-07-01  Jim Meyering  <meyering@lucent.com>
80326
80327         * lib/c-stack.c: Include sys/time.h.
80328         From Volker Borchert.
80329
80330 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80331
80332         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80333
80334 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80335
80336         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80337         New macro.  Use it uniformly instead of
80338         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80339         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80340         reported by Vin Shelton.
80341
80342 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80343
80344         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80345         Do not assume SA_SIGINFO behavior.
80346         Bug reported by Jim Meyering on NetBSD 1.5.2.
80347
80348 2002-06-22  Jim Meyering  <meyering@lucent.com>
80349
80350         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80352
80353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80354         now that configure.ac uses AC_GNU_SOURCE.
80355         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80356         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80357
80358         Update to latest tools.  Suggestions from Paul Eggert.
80359         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80360         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80361         * m4/fnmatch.m4: Likewise.
80362         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80363         to AC_HEADER_STDBOOL
80364
80365 2002-06-22  Jim Meyering  <meyering@lucent.com>
80366
80367         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80368         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80369
80370 2002-06-22  Jim Meyering  <meyering@lucent.com>
80371
80372         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80373
80374         * lib/exitfail.c, exitfail.h: Likewise.
80375         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80376
80377         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80378         of fnmatch.h.
80379         (EXTRA_DIST): Add fnmatch_loop.c.
80380         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80381
80382         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80383         * lib/fnmatch.c: Update from diffutils-2.8.2.
80384         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80385         * lib/fnmatch.h: Remove file.
80386
80387 2002-06-21  Jim Meyering  <meyering@lucent.com>
80388
80389         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80390         * m4/mbrtowc.m4: Likewise.
80391
80392         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80393         * m4/mbswidth.m4: Reflect name change:
80394         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80395         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80396
80397         * m4/lib-link.m4: Update from gettext-0.11.2.
80398         * m4/gettext.m4: Likewise.
80399
80400         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80401         From Alfred M. Szmidt.
80402
80403 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80404
80405         * lib/file-type.h: Report an error if neither S_ISREG nor
80406         S_IFREG is defined, instead of using a test specific to glibc
80407         2.2.  This should be safe, since POSIX requires S_ISREG and
80408         Unix Version 7 had S_IFREG.  We don't need to check for
80409         <sys/types.h> since we don't use any symbols that it defines.
80410
80411 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80412
80413         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80414         $@-t, so that each temporary file name is unique and valid in the first
80415         8 characters, for operation under DOS.
80416
80417 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80418
80419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80420
80421 2002-06-15  Jim Meyering  <meyering@lucent.com>
80422
80423         Work even with DJGPP 2.03, which lacks support for symlinks.
80424         From Richard Dawe.
80425         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80426         is defined.
80427         * lib/lchown.c (S_ISLNK): Likewise.
80428
80429 2002-06-15  Jim Meyering  <meyering@lucent.com>
80430
80431         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80432         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80433         have been included before this file.
80434
80435 2002-06-14  Jim Meyering  <meyering@lucent.com>
80436
80437         * lib/file-type.h: Use the version from diffutils-2.8.2.
80438         * lib/file-type.c: Likewise.
80439
80440 2002-06-07  Jim Meyering  <meyering@lucent.com>
80441
80442         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80443         They're needed at least for NetBSD 1.5.2.
80444         ($statxfs_includes): Include those same headers.
80445         ($statxfs_includes): Include sys/vfs.h if available.
80446         ($statxfs_includes): Likewise for sys/statvfs.h.
80447         Check for the following members in both structs statfs and statvfs:
80448         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80449
80450 2002-06-01  Jim Meyering  <meyering@lucent.com>
80451
80452         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80453         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80454
80455 2002-05-28  Jim Meyering  <meyering@lucent.com>
80456
80457         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80458         Reported by Volker Borchert.
80459
80460 2002-05-27  Jim Meyering  <meyering@lucent.com>
80461
80462         Fix a problem seen only on nonconforming systems whereby ls.c's
80463         use of localtime, and then of gettimeofday would cause trouble:
80464         the localtime call used to initialize rpl_gettimeofday's save
80465         mechanism would clobber ls's current local time information so
80466         that in any long listing the first file would always be listed
80467         with date 1970-01-01.  Analysis by Volker Borchert.
80468
80469         * lib/gettimeofday.c (localtime): Undefine.
80470         (rpl_localtime): New function.
80471
80472 2002-05-27  Jim Meyering  <meyering@lucent.com>
80473
80474         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80475         localtime.
80476
80477         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80478         use the replacement function; it wouldn't resolve at link time.
80479         Reported by Volker Borchert.
80480
80481 2002-05-22  Jim Meyering  <meyering@lucent.com>
80482
80483         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80484         file-type.h.
80485         * lib/file-type.h: New file.
80486         * lib/file-type.c (file_type): New file/function.  Extracted from
80487         diffutils.
80488
80489 2002-04-30  Jim Meyering  <meyering@lucent.com>
80490
80491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80492
80493 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80494
80495         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80496
80497 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80498
80499         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80500         Do not check for alloca.h (no longer used) or stdbool.h (was never
80501         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80502
80503 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80504
80505         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80506
80507 2002-04-29  Jim Meyering  <meyering@lucent.com>
80508
80509         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80510         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80511         Use AC_FUNC_STRNLEN here instead.
80512
80513         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80514         With autoconf-2.53a, it's part of AC_PROG_CC.
80515
80516 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80517
80518         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80519         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80520
80521 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80522
80523         * lib/sig2str.h, lib/sig2str.c: New files.
80524         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80525
80526 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80527
80528         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80529         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80530         of 127, since 64 is the largest conceivable number for ancient
80531         nonstandard hosts.
80532         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80533
80534 2002-04-28  Jim Meyering  <meyering@lucent.com>
80535
80536         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80537
80538 2002-04-24  Jim Meyering  <meyering@lucent.com>
80539
80540         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80541         (jm_PREREQ): Use it.
80542
80543         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80544         mach/mach.h fcntl.h.
80545         Check for this function: setlocale.
80546
80547 2002-04-24  Jim Meyering  <meyering@lucent.com>
80548
80549         * lib/gettext.h: New file, from Gettext.
80550         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80551         (libfetish_a_SOURCES): Add gettext.h.
80552
80553 2002-04-16  Jim Meyering  <meyering@lucent.com>
80554
80555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80556         ut_pid, ut_id, ut_exit.
80557
80558 2002-04-16  Jim Meyering  <meyering@lucent.com>
80559
80560         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80561         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80562         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80563
80564 2002-04-12  Jim Meyering  <meyering@lucent.com>
80565
80566         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80567         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80568         existence of the getmntinfo function.  Needed for Darwin 5.3.
80569
80570         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80571         This is necessary at least on Darwin 5.3.
80572
80573         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80574         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80575         strnlen.o in the library, and that makes some versions of ranlib
80576         object.
80577
80578 2002-04-12  Jim Meyering  <meyering@lucent.com>
80579
80580         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80581
80582 2002-04-09  Jim Meyering  <meyering@lucent.com>
80583
80584         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80585         to be more precise.  Rather than saying we're checking whether the
80586         function `works', say what we're testing.
80587         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80588         Reported by Bruno Haible.
80589
80590 2002-03-10  Jim Meyering  <meyering@lucent.com>
80591
80592         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80593         Suggestion from Santiago Vila.
80594
80595 2002-03-08  Jim Meyering  <meyering@lucent.com>
80596
80597         * lib/rename.c: Mention that this wrapper is needed also on
80598         mips-dec-ultrix4.4 systems.
80599
80600 2002-03-02  Jim Meyering  <meyering@lucent.com>
80601
80602         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80603         not HAVE_CLOCK_SETTIME.
80604
80605 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80606
80607         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80608         Check for clock_settime.
80609
80610 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80611
80612         * lib/nanosleep.h: Rename to....
80613         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80614
80615         * lib/gettime.c: New file.
80616         * lib/settime.c: New file.
80617         * lib/stime.c: Remove.
80618
80619         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80620         timespec.h.  Remove nanosleep.h.
80621
80622 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80623
80624         * m4/acl.m4: New file.
80625         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80626         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80627
80628 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80629
80630         * lib/acl.c, lib/acl.h: New files.
80631         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80632
80633 2002-02-24  Jim Meyering  <meyering@lucent.com>
80634
80635         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80636         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80637         cause trouble.  Reported by Nelson Beebe.
80638
80639 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80640
80641         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80642         compilers that don't know that xalloc_die never returns.
80643
80644 2002-02-20  Jim Meyering  <meyering@lucent.com>
80645
80646         * lib/getdate.c: Regenerate using bison-1.33.
80647
80648 2002-02-17  Jim Meyering  <meyering@lucent.com>
80649
80650         * config/config.guess (main): Don't use `head -1'; it's no longer
80651         portable. Use `sed 1q' instead.
80652
80653 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80654
80655         * m4/codeset.m4: Upgrade to gettext-0.11.
80656         * m4/gettext.m4: Upgrade to gettext-0.11.
80657         * m4/glibc21.m4: Upgrade to gettext-0.11.
80658         * m4/iconv.m4: Upgrade to gettext-0.11.
80659         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80660         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80661         * m4/lib-ld.m4: New file, from gettext-0.11.
80662         * m4/lib-link.m4: New file, from gettext-0.11.
80663         * m4/lib-prefix.m4: New file, from gettext-0.11.
80664         * m4/progtest.m4: Upgrade to gettext-0.11.
80665
80666 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80667
80668         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80669         (jm_PREREQ): Use it.
80670
80671 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80672
80673         * lib/posixver.c, lib/posixver.h: New files.
80674         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80675
80676 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80677             Bruno Haible  <bruno@clisp.org>
80678
80679         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80680         (fwrite_success_callback): New declaration.
80681         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80682         print_unicode_char. Call failure callback instead of error.
80683         (fwrite_success_callback): New function.
80684         (exit_failure_callback): New function.
80685         (fallback_failure_callback): New function.
80686         (print_unicode_char): Call unicode_to_mb.
80687
80688 2002-01-26  Jim Meyering  <meyering@lucent.com>
80689
80690         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80691         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80692
80693 2002-01-26  Jim Meyering  <meyering@lucent.com>
80694
80695         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80696
80697 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80698
80699         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80700
80701 2002-01-22  Jim Meyering  <meyering@lucent.com>
80702
80703         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80704         Otherwise, some versions of automake would omit the rule that makes
80705         Makefile from Makefile.in.
80706
80707 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80708
80709         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80710         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80711         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80712         (memcoll): Set errno to zero if there is no error.
80713
80714         * lib/quotearg.c (quotearg_buffer_restyled):
80715         Fix bug with quoting buffers containing NUL when backslashing escapes.
80716         This bug was exposed by the other changes in this patch.
80717         (quotearg_n_options): New arg ARGSIZE.
80718         All callers changed.
80719         (quoting_options_from_style): New function.
80720         (quotearg_n_style): Use it.
80721         (quotearg_n_style_mem): New function.
80722
80723         * lib/quotearg.h (quotearg_n_style_mem): New function.
80724
80725 2002-01-19  Jim Meyering  <meyering@lucent.com>
80726
80727         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80728         Remove useless quotes: DF_PROG="df".
80729         * m4/strnlen.m4: New file.
80730
80731 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80732
80733         * lib/backupfile.c (ISDIGIT): Comment fix.
80734         * lib/getdate.y (ISDIGIT): Likewise.
80735         * lib/posixtm.c (ISDIGIT, year): Likewise.
80736         * lib/strverscmp.c (ISDIGIT): Likewise.
80737         * lib/userspec.c (ISDIGIT): Likewise.
80738
80739 2002-01-16  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/getdate.y: Add three semicolons, each just before a closing
80742         brace. Bison (as of version 1.31) no longer papers over that mistake.
80743
80744 2002-01-05  Jim Meyering  <meyering@lucent.com>
80745
80746         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80747
80748 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80749
80750         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80751         not silently exit merely because the output buffer happens to
80752         have nothing pending.
80753
80754 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80755
80756         See the big note in ../ChangeLog.
80757         * lib/human.c (suffixes): Prefer K to k for 1024.
80758         (generate_suffix_backwards): New function.
80759         (human_readable_inexact): Use it.
80760         * lib/xstrtol.c (__xstrtol): If there is no number but there
80761         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80762         Accept 'K' as well as 'k'.
80763
80764 2001-12-15  Jim Meyering  <meyering@lucent.com>
80765
80766         * lib/regex.h (__restrict_arr): Update from libc.
80767
80768         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80769         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80770         (STREQ): Define.
80771
80772 2001-12-14  Jim Meyering  <meyering@lucent.com>
80773
80774         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80775         Suggestion from Bruno Haible.
80776
80777 2001-12-10  Jim Meyering  <meyering@lucent.com>
80778
80779         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80780         xrealloc, Instead, include "xalloc.h".
80781         (initbuffer): Don't cast xmalloc return value to char*.
80782         (readline): Reword comment.
80783         Don't cast xrealloc return value to char*
80784         Return NULL, not 0.
80785
80786 2001-12-09  Jim Meyering  <meyering@lucent.com>
80787
80788         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80789         about `signed and unsigned type in conditional expression'.
80790         * lib/posixtm.c (posix_time_parse): Likewise.
80791
80792         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80793
80794         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80795         to avoid a pedantic warning.
80796
80797         * lib/getstr.c: Don't include assert.h.
80798         (getstr): Remove warning-evoking assertions.
80799         Return -1 if offset parameter is out of bounds.
80800         Change the type of a local from int to size_t.
80801
80802         * lib/strftime.c (my_strftime_localtime_r): Include this function
80803         definition in the `#if ! HAVE_TM_GMTOFF' block.
80804
80805         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80806         Include xalloc.h instead.
80807
80808 2001-12-02  Jim Meyering  <meyering@lucent.com>
80809
80810         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80811         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80812         included.
80813
80814         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80815         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80816
80817 2001-11-30  Akim Demaille  <akim@epita.fr>
80818
80819         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80820         before being defined.
80821
80822 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80823
80824         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80825         First arg is int, not unsigned.
80826         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80827         (SIZE_MAX, UINT_MAX): New macros.
80828         (quotearg_n_options): Abort if N is negative.
80829         Avoid overflow check on hosts where size_t is 64 bits and int
80830         is 32 bits, as overflow is impossible there.
80831         Fix off-by-one typo that caused unnecessary reallocation.
80832
80833 2001-11-27  Jim Meyering  <meyering@lucent.com>
80834
80835         * lib/tempname.c: Merge with version from libc.
80836         * lib/regex.c: Likewise.
80837
80838         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80839         systems for which STDC_HEADERS is 0, it was not included, resulting in
80840         a warning about an integer-to-pointer conversion problem with getenv.
80841         Reported by Volker Borchert.
80842
80843 2001-11-26  Jim Meyering  <meyering@lucent.com>
80844
80845         * lib/gtod.h: Remove file.
80846         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80847         * lib/gettimeofday.c: Don't include gtod.h.
80848         (GTOD_init): Remove function.
80849         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80850         Suggestion from Volker Borchert.
80851
80852 2001-11-23  Jim Meyering  <meyering@lucent.com>
80853
80854         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80855         it.
80856         * lib/hash.c (struct hash_table): Define it here instead.
80857
80858 2001-11-22  Jim Meyering  <meyering@lucent.com>
80859
80860         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80861
80862 2001-11-20  Jim Meyering  <meyering@lucent.com>
80863
80864         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80865         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80866
80867 2001-11-19  Jim Meyering  <meyering@lucent.com>
80868
80869         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80870         directory.  Use "conftestXXXXXX" as the template.
80871         Suggestion from Paul Eggert.
80872
80873         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80874         immediately, so the test doesn't mistakenly hit the max-open-files
80875         limit.
80876
80877 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80878
80879         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80880         (TEMPORARIES): New macro.
80881         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80882         removes an artificial limitation (e.g. HP-UX 10.20, where
80883         TMP_MAX is 17576).
80884
80885 2001-11-18  Jim Meyering  <meyering@lucent.com>
80886
80887         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80888
80889 2001-11-18  Jim Meyering  <meyering@lucent.com>
80890
80891         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80892         on SunOS 4.
80893
80894         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80895         files will be created before anything else.
80896
80897 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80898
80899         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80900         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80901
80902 2001-11-17  Jim Meyering  <meyering@lucent.com>
80903
80904         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80905         Prompted by a report from Bob Proulx.
80906
80907         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80908         Instead, require UTILS_FUNC_MKSTEMP.
80909
80910 2001-11-17  Jim Meyering  <meyering@lucent.com>
80911
80912         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80913         Now, that's done as part of AC_FUNC_STRTOD.
80914
80915 2001-11-17  Jim Meyering  <meyering@lucent.com>
80916
80917         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80918         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80919         rather than group writable.  Patch by Juan F. Codagnone.
80920
80921         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80922         xrealloc, Instead, include "xalloc.h".
80923
80924         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80925         Remove explicit declarations of xmalloc, xrealloc,
80926         and xstrdup.  Instead, include "xalloc.h".
80927
80928         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80929         unlocked-io.h.
80930         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80931         Likewise.
80932         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80933
80934         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80935         Reported by Padraig Brady.
80936
80937         * lib/mkstemp.c: #undef mkstemp.
80938         Include config.h.
80939         (rpl_mkstemp): Rename from mkstemp.
80940         Protoize.
80941
80942 2001-11-16  Jim Meyering  <meyering@lucent.com>
80943
80944         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80945         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80946         determine the amount of total physical memory, use pstat_getstatic.
80947         HPUX-11 doesn't define _SC_PHYS_PAGES.
80948         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80949         If sysconf couldn't be used to determine the amount of available
80950         physical memory, use both pstat_getstatic and pstat_getdynamic.
80951         Based on a patch from Bob Proulx.
80952
80953 2001-11-10  Jim Meyering  <meyering@lucent.com>
80954
80955         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80956         (jm_PREREQ): Use it.
80957
80958 2001-11-09  Jim Meyering  <meyering@lucent.com>
80959
80960         * m4/jm-macros.m4: Require autoconf-2.52f.
80961         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80962         Use these AC_-prefixed names, not the AM_-prefixed ones.
80963
80964         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80965
80966 2001-11-05  Jim Meyering  <meyering@lucent.com>
80967
80968         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80969
80970 2001-11-04  Jim Meyering  <meyering@lucent.com>
80971
80972         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80973         $DEFS.
80974
80975 2001-11-03  Jim Meyering  <meyering@lucent.com>
80976
80977         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80978         of AC_DEFUN.
80979
80980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80981         know the name of the variable in the macro definition.
80982
80983 2001-11-03  Jim Meyering  <meyering@lucent.com>
80984
80985         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80986         in argmatch_to_argument call.
80987
80988         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80989         argument.
80990
80991         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80992         e.g., a fault due to an attempt to free a NULL pointer.
80993
80994 2001-11-01  Jim Meyering  <meyering@lucent.com>
80995
80996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80997         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80998
80999 2001-11-01  Jim Meyering  <meyering@lucent.com>
81000
81001         * lib/dirfd.c, lib/dirfd.h: New files.
81002         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81003
81004         * lib/hash.c (hash_print) [TESTING]: Clean up.
81005
81006 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81007
81008         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81009         to avoid a warning if -Wall.
81010
81011 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81012
81013         * README: New file
81014         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81015         (per RMS's instructions, this is now the canonical source)
81016         * lgpl/, gpl/: New directories.
81017
81018 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81019
81020         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81021
81022 2001-10-21  Jim Meyering  <meyering@lucent.com>
81023
81024         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81025         this code would end up calling gettext even in packages built
81026         with --disable-nls.
81027         * lib/getopt.c (_): Likewise.
81028         * lib/regex.c (_): Likewise.
81029
81030 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81031
81032         * m4/error.m4 (jm_PREREQ_ERROR):
81033         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81034         AC_FUNC_STRERROR_R does that.
81035         Check for strerror declaration.
81036
81037         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81038         are supposed to have them these days.
81039         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81040         Merge changes from latest Autoconf CVS.
81041         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81042         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81043         POSIX decided to standardize on the int flavor of strerror_r.
81044
81045 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81046
81047         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81048         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81049         Use strerror_r that is only a macro, even if it is not a function.
81050         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81051         (private_strerror): Use prototypes, not old-style function definition.
81052         (print_errno_message): New function.
81053         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81054         char*-flavored one.
81055         (error_tail, error, error_at_line): Use it.
81056
81057 2001-10-11  Jim Meyering  <meyering@lucent.com>
81058
81059         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81060         and quote_n (1, ... to avoid clobbering a buffer.
81061
81062 2001-10-05  Jim Meyering  <meyering@lucent.com>
81063
81064         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81065         hash-pjw.h.
81066         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81067         * lib/hash-pjw.h: New file.
81068
81069 2001-09-30  Jim Meyering  <meyering@lucent.com>
81070
81071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81072         `struct fsstat' has the `f_fstypename' member.
81073         Use that to define FS_TYPE, which is now used to make
81074         the getfsstat link test tighter.
81075
81076 2001-09-30  Jim Meyering  <meyering@lucent.com>
81077
81078         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81079         Include <sys/ucred.h>, for Apple Darwin.
81080         Include sys/mount.h and sys/fs_types.h only if available.
81081         (FS_TYPE): Define.
81082         (read_filesystem_list): Use FS_TYPE.
81083
81084 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81085
81086         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81087         a boolean context.
81088
81089 2001-09-29  Jim Meyering  <meyering@lucent.com>
81090
81091         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81092         [one-argument getmntent function]): Include stdio.h before mntent.h.
81093         SunOS 4.1.x needs it for the declaration of `FILE'.
81094         Patch by Volker Borchert.
81095
81096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81097         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81098         sys/fs_types.h, and make the link-test for getfsstat guard #include
81099         directives with appropriate #if HAVE_*_H tests so that we can
81100         detect getfsstat on Apple Darwin1.3.7 systems.
81101         Reported by Nelson Beebe.
81102         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81103
81104 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81105
81106         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81107         #defines strtoimax.  Also treat the other strto* functions
81108         like strtoimax.
81109
81110         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81111         Check for strtoul and strtoumax,
81112         as those declarations are made even in the signed case.
81113         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81114         Likewise, for strtol and strtoimax.
81115
81116 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81117
81118         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81119         #defines strtoimax.  Also treat the other strto* functions
81120         like strtoimax.
81121
81122         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81123         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81124         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81125
81126 2001-09-26  Jim Meyering  <meyering@lucent.com>
81127
81128         Most macros in unlocked-io.h had the wrong number of arguments.
81129         * lib/gen-uio: New script.
81130         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81131         * lib/unlocked-io.hin: Remove file.
81132         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81133         rather than trying to embed it here.
81134         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81135         Reported by Padraig Brady.
81136
81137 2001-09-25  Volker Borchert  <bt@teknon.de>
81138
81139         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81140         `result'.
81141
81142 2001-09-24  Jim Meyering  <meyering@lucent.com>
81143
81144         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81145
81146 2001-09-23  Jim Meyering  <meyering@lucent.com>
81147
81148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81149         instead of the mere test for existence of mntent.h.  The latter
81150         would get a false-positive on AIX 3.4 systems.
81151         In the outer getmntent if-block, don't die if neither of the getmntent
81152         tests succeeds.  Instead, just fall through and continue with the
81153         remaining tests.
81154
81155 2001-09-23  Jim Meyering  <meyering@lucent.com>
81156
81157         * lib/mountlist.c: Remove useless parentheses in #if directives.
81158         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81159         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81160
81161 2001-09-22  Jim Meyering  <meyering@lucent.com>
81162
81163         * m4/gettext.m4: New file.  From gettext.
81164         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81165         * m4/progtest.m4: Likewise
81166         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81167         * m4/glibc21.m4: Likewise.
81168
81169         * m4/libintl.m4: Remove.  No longer used.
81170
81171 2001-09-22  Jim Meyering  <meyering@lucent.com>
81172
81173         * lib/localcharset.c: Update from latest gettext.
81174         * lib/config.charset: Likewise.
81175
81176 2001-09-20  Jim Meyering  <meyering@lucent.com>
81177
81178         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81179         strtoimax.
81180         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81181         strtoumax.
81182
81183 2001-09-20  Jim Meyering  <meyering@lucent.com>
81184
81185         * lib/xstrtol.c (strtoimax): Guard declaration with
81186         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81187         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81188         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81189         (strtoumax): Likewise, for completeness (it wasn't necessary).
81190
81191 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81192
81193         * lib/strtoimax.c (HAVE_LONG_LONG):
81194         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81195         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81196         to work around bug in IBM C compiler.
81197
81198 2001-09-17  Jim Meyering  <meyering@lucent.com>
81199
81200         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81201         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81202         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81203         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81204         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81205         whenever the right hand side need not be expanded by the shell.
81206
81207 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81208
81209         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81210         library.  It's not correct, as some older glibcs are buggy.
81211         fnmatch wasn't fixed until glibc 2.2.
81212
81213         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81214         special shell magic here.
81215
81216 2001-09-16  Jim Meyering  <meyering@lucent.com>
81217
81218         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81219         * m4/jm-macros.m4: Require it.
81220
81221 2001-09-16  Jim Meyering  <meyering@lucent.com>
81222
81223         * lib/mkdir.c: New file.
81224
81225 2001-09-15  Jim Meyering  <meyering@lucent.com>
81226
81227         * m4/jm-macros.m4: Check for help2man.
81228
81229 2001-09-11  Jim Meyering  <meyering@lucent.com>
81230
81231         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81232         The body, by Paul Eggert, was moved here from configure.in.
81233         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81234
81235 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81236
81237         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81238         (jm_PREREQ): Use it.
81239
81240 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81241
81242         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81243         Use ssize_t, not int, to store result of readlink.
81244         Check for ssize_t overflow as well as size_t overflow,
81245         as POSIX says the result of readlink is implementation-defined
81246         when ssize_t overflows.
81247         Remove unnecessary cast to char*.
81248         Use free+malloc instead of realloc, as the storage doesn't need
81249         to be preserved and it's clearer and can be more efficient that way.
81250         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81251         * lib/xreadlink.h (xreadlink): Update prototype.
81252
81253 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81254
81255         * lib/xgetcwd.c: Revert some of the previous change; intead,
81256         fix the HAVE_GETCWD_NULL code to behave more like the
81257         !HAVE_GETCWD_NULL code used to.
81258
81259         Include "xalloc.h".
81260         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81261         invoke xalloc_die.
81262
81263 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81264
81265         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81266         sys/param.h, as pathmax.h includes them.
81267
81268 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81269
81270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81271         (jm_PREREQ_XGETCWD): New macro.
81272
81273         * m4/getcwd.m4: New file.
81274
81275 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81276
81277         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81278         like the HAVE_GETCWD_NULL code.
81279         Include pathmax.h if not HAVE_GETCWD.
81280         Do not include xalloc.h.
81281         (INITIAL_BUFFER_SIZE): New symbol.
81282         Do not use xmalloc / xrealloc, since the caller is responsible for
81283         handling errors.  Preserve errno around `free' during failure.
81284         Do not overrun buffer when using getwd.
81285
81286 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81287
81288         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81289         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81290         getcwd (NULL, 0).
81291
81292 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81293
81294         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81295         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81296         spotted by Jim Meyering.
81297
81298 2001-09-03  Jim Meyering  <meyering@lucent.com>
81299
81300         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81301         failure.
81302
81303 2001-09-02  Jim Meyering  <meyering@lucent.com>
81304
81305         * lib/error.c: Update from GNU libc.
81306
81307 2001-09-01  Jim Meyering  <meyering@lucent.com>
81308
81309         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81310         Used by df.
81311
81312 2001-09-01  Jim Meyering  <meyering@lucent.com>
81313
81314         * lib/xreadlink.c: New file.
81315         * lib/xreadlink.h: New file.
81316         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81317         xreadlink.h.
81318
81319         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81320         doesn't conflict with sparc Solaris 7's definition in
81321         /usr/include/sys/int_types.h.
81322
81323         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81324         files.
81325         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81326         and strncasecmp as r-values.  Unixware didn't have declarations.
81327
81328 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81329
81330         * lib/xstrtol.h: Add copyright notice.
81331         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81332         LONGINT_INVALID_SUFFIX_CHAR.
81333
81334 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81335
81336         * lib/xstrtol.c (strtoimax): New decl.
81337
81338 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81339
81340         * lib/xgetcwd.c: Don't include pathmax.h.
81341         Include stdlib.h and unistd.h if available.
81342         Include xalloc.h.
81343         (xmalloc, xstrdup, free): Remove decls.
81344         (xgetcwd): Don't assume sizes fit in unsigned.
81345         Check for overflow when computing sizes.
81346         Simplify reallocation code.
81347
81348 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81349
81350         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81351         a directory's st_size can have an arbitrary value, so the old
81352         usage could waste an arbitrary amount of memory.  All uses
81353         changed.
81354         * lib/savedir.h: Update prototype.
81355
81356 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81357
81358         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81359
81360         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81361         old strtoimax.c.
81362
81363         Also, make the following further changes to make this file's
81364         configuration more similar to that of strtol.c:
81365         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81366         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81367         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81368         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81369         changed to signed values.
81370
81371         And make the following changes as well:
81372         Fix copyright notice, as 1999 was missing.
81373         (verify): New macro.
81374         (strtoimax): Check sizes at compile-time, not run-time.
81375         Prefer strtol to strtoll if both work.
81376         (main): Remove; it was not that useful and was a pain to maintain.
81377
81378         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81379
81380 2001-08-31  Jim Meyering  <meyering@lucent.com>
81381
81382         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81383         Use an initial, malloc'd, buffer of length 128 rather than
81384         a statically allocated one of length 1024.
81385
81386 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81387
81388         Simplify code, partly by assuming autoconf 2.52 semantics.
81389
81390         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81391
81392         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81393         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81394         All uses removed.
81395         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81396         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81397         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81398         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81399         jm_AC_HEADER_INTTYPES_H.
81400         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81401
81402         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81403
81404         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81405         Quote first arg of AC_DEFUN.
81406         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81407         since they are needed to parse the include file even if we need
81408         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81409         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81410         but with opposite signedness.
81411
81412 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81413
81414         Merge 'exclude' changes from tar 1.13.22.
81415         This fixes one or two unlikely storage allocation overflow bugs,
81416         but doesn't change user-visible behavior otherwise.
81417
81418 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81419
81420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81421         (jm_PREREQ_EXCLUDE): New macro.
81422
81423 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81424
81425         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81426         tm to be declared.
81427
81428 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81429
81430         * lib/hash.c: Remove '2001' from copyright notice.
81431
81432 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81433
81434         * lib/full-write.h: New file.
81435         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81436         * lib/full-write.c: Correct credits, as cccp.c no longer
81437         exists and anyway it was so heavily changed from the old cccp
81438         code as to be unrecognizable.  Include full-write.h.
81439         (full_write): Return size_t, with short writes meaning failure.
81440         All callers changed.  This fixes a bug with large buffers
81441         on 64-bit hosts.
81442         * lib/utime.c: Include full-write.h.
81443
81444 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81445
81446         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81447         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81448         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81449         Include if available.
81450         (<xalloc.h>): Include
81451         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81452         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81453         collide with FNM macros.
81454         (struct patopts): New struct.
81455         (struct exclude): Use it, as exclude patterns now come with options.
81456         (new_exclude): Support above changes.
81457         (new_exclude, add_exclude_file):
81458         Initial size must now be a power of two to simplify overflow checking.
81459         (free_exclude, fnmatch_no_wildcards): New function.
81460         (excluded_filename): No longer requires options arg, as the options
81461         are determined by add_exclude.  Now returns bool, not int.
81462         (excluded_filename, add_exclude):
81463         Add support for the fancy new exclusion options.
81464         (add_exclude, add_exclude_file): Now takes int options arg.
81465         Check for arithmetic overflow when computing sizes.
81466         (add_exclude_file): xrealloc might modify errno, so don't
81467         realloc until after errno might be used.
81468
81469         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81470         New macros.
81471         (free_exclude): New decl.
81472         (add_exclude, add_exclude_file): Now takes int options arg.
81473         (excluded_filename): No longer requires options arg, as the options
81474         are determined by add_exclude.  Now returns bool, not int.
81475
81476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81477
81478         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81479
81480 2001-08-27  Jim Meyering  <meyering@lucent.com>
81481
81482         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81483
81484         * lib/version-etc.c (N_): Remove definition.
81485         Revert most of last change.
81486         Instead, simply don't mark the `Copyright...' string for translation.
81487         Based on advice from Paul Eggert.
81488
81489         * lib/strtoxmax.c: Tweak comment.
81490
81491 2001-08-26  Jim Meyering  <meyering@lucent.com>
81492
81493         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81494
81495         * m4/xstrtoimax.m4: New file.
81496         * m4/xstrtoumax.m4: Add comments explaining why we
81497         AC_REPLACE_FUNCS(strtol).
81498
81499 2001-08-26  Jim Meyering  <meyering@lucent.com>
81500
81501         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81502         of copyright with `%s' so translators don't get an untranslated
81503         message in 2002.
81504         (COPYRIGHT_YEAR): Define.
81505         (version_etc): Use fprintf rather than fputs.
81506         Suggestion from Ulrich Drepper.
81507
81508         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81509
81510         * lib/strtoll.c: New file, from GNU libc.
81511         * lib/xstrtoimax.c: New file.
81512
81513         * lib/xstrtol.h: Add xstrtoimax.
81514         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81515         * lib/strtoimax.c: New file.  Likewise, but first define
81516         STRTOUXMAX_SIGNED.
81517
81518         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81519         ...
81520         * lib/strtoxmax.c: ... then renamed to this.
81521
81522 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81523
81524         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81525         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81526         (jm_AC_TYPE_INTMAX_T): New macro.
81527         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81528
81529         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81530
81531         * m4/longlong.m4: Renamed from ulonglong.m4.
81532         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81533         * m4/uintmax_t.m4: Removed.
81534
81535 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81536
81537         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81538         Port to Solaris 8, where 'sed' requires a space after the 'r'
81539         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81540         Redirect output to $tmp just once.
81541
81542 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81543
81544         * lib/addext.c (<errno.h>): Include.
81545         (errno): Declare if not defined.
81546         (addext): Work correctly when pathconf returns -1 and leaves
81547         errno alone because there is no limit.  Also, work even if
81548         pathconf returns a value greater than SIZE_MAX.
81549
81550 2001-08-12  Jim Meyering  <meyering@lucent.com>
81551
81552         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81553         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81554         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81555         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81556         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81557         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81558         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81559         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81560         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81561         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81562         utime.m4, utimes.m4, xstrtoumax.m4:
81563         Quote the first argument in each use of AC_DEFUN.
81564
81565 2001-08-12  Jim Meyering  <meyering@lucent.com>
81566
81567         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81568         Simply `return getcwd (NULL, 0);'.
81569         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81570         Use 1300 as initial value for length, not PATH_MAX.
81571
81572         * lib/pathmax.h: Clean up cpp syntax.
81573
81574 2001-08-12  Jim Meyering  <meyering@lucent.com>
81575
81576         * lib/gettimeofday.c: New file.
81577         * lib/gtod.h: New file.
81578         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81579
81580 2001-08-05  Jim Meyering  <meyering@lucent.com>
81581
81582         * m4/jm-macros.m4: Require autoconf-2.52.
81583
81584 2001-08-04  Jim Meyering  <meyering@lucent.com>
81585
81586         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81587         stmt, to get in sync with glibc.
81588
81589 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81590
81591         The following changes are from gettext 0.10.39 as maintained by
81592         Bruno Haible.
81593
81594         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81595         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81596         with inverted sense.  All uses changed.
81597
81598         * lib/mbswidth.c: Don't include <limits.h>.
81599         Include <stdlib.h> and <string.h> unconditionally.
81600         (iswcntrl, mbsinit, ISCNTRL): New macros.
81601         (mbsnwidth): Use K&R style function declarations.
81602         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81603         can optimize it when MB_CUR_MAX == 1.
81604         The width of control characters is zero, not 1.
81605
81606 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81607
81608         The following changes are from gettext 0.10.39 as maintained by
81609         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81610
81611         * m4/codeset.m4: Upgrade to serial AM1.
81612         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81613         all uses changed.  Quote first arg of AC_DEFUN.
81614         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81615
81616         * m4/iconv.m4: Upgrade to serial AM2.
81617         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81618         Add --with-libconv-prefix.
81619         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81620         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81621         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81622         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81623         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81624
81625         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81626         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81627         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81628         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81629         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81630         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81631         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81632         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81633         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81634
81635         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81636         string.h any more.
81637
81638         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81639         not the default value.
81640
81641         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81642         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81643         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81644         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81645         Also check for iswcntrl, used for wcwidth fallback.
81646         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81647         to Autoconf 2.13.
81648
81649 2001-08-03  Jim Meyering  <meyering@lucent.com>
81650
81651         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81652         as it was in the original.  Reported by Paul Eggert.
81653
81654 2001-07-16  Jim Meyering  <meyering@lucent.com>
81655
81656         * m4/gettimeofday.m4: New file.
81657         Prompted by a report from Bernhard Baehr.
81658
81659 2001-07-15  Jim Meyering  <meyering@lucent.com>
81660
81661         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81662         stuff. Now it's in ../Makefile.cfg.
81663
81664 2001-07-15  Jim Meyering  <meyering@lucent.com>
81665
81666         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81667         (BUILT_SOURCES): Add unlocked-io.h.
81668         (io_functions): Define.
81669         (unlocked-io.h): New rule.
81670         (DISTCLEANFILES): Add unlocked-io.h.
81671         (all-local): Depend on unlocked-io.h, to ensure it is created.
81672
81673         * lib/unlocked-io.hin: New file
81674
81675         * lib/regex.c: Update from glibc.
81676
81677 2001-07-05  Jim Meyering  <meyering@lucent.com>
81678
81679         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81680         recommendation.
81681         (libfetish_a_SOURCES): Put all .h files here instead.
81682         Remove a thus-exposed (better checks in automake) duplicate and
81683         two unnecessary .h files.
81684
81685 2001-07-04  Jim Meyering  <meyering@lucent.com>
81686
81687         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81688         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81689         distcheck failure.
81690
81691 2001-07-02  Jim Meyering  <meyering@lucent.com>
81692
81693         The following changes were prompted by suggestions from Bruno Haible.
81694
81695         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81696         is now generated.
81697         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81698         definition of EXTRA_DIST.
81699         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81700         ensure that the generated file is created/updated whenever the list
81701         of $(unlocked_functions) is changed.
81702         (jm-glibc-io.m4): New rule.
81703         (unlocked-io.h): New rule -- currently unused.
81704
81705 2001-06-24  Jim Meyering  <meyering@lucent.com>
81706
81707         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81708         unmatched right bracket, rather than kludging it with an extra,
81709         falsely-matching quote in a comment.  Patch by Akim Demaille.
81710
81711 2001-06-11  Jim Meyering  <meyering@lucent.com>
81712
81713         * lib/regex.c: Update from GNU libc.
81714
81715 2001-05-27  Jim Meyering  <meyering@lucent.com>
81716
81717         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81718         Check for ut_type in struct utmp.
81719
81720 2001-05-27  Jim Meyering  <meyering@lucent.com>
81721
81722         * lib/readutmp.h (UT_TYPE): Define.
81723
81724 2001-05-24  Jim Meyering  <meyering@lucent.com>
81725
81726         * lib/argmatch.c: Include "quote.h".
81727         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81728         quote function.  Reported by Göran Uddeborg.
81729
81730 2001-05-22  Jim Meyering  <meyering@lucent.com>
81731
81732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81733         now that we use the package-supplied version unconditionally.
81734         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81735
81736 2001-05-21  Jim Meyering  <meyering@lucent.com>
81737
81738         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81739         shell syntax errors.
81740
81741 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81742
81743         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81744
81745 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81746
81747         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81748         Don't bother to check library strftime, since
81749         we'll be using our own my_strftime function anyway.
81750         Define my_strftime instead of strftime.
81751
81752 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81753
81754         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81755         which is not yet declared.
81756
81757 2001-05-15  Jim Meyering  <meyering@lucent.com>
81758
81759         * m4/regex.m4: Use proper quoting so brackets appear in the test
81760         program.
81761         Reported by, and with help from, Bruno Haible.
81762
81763 2001-05-13  Jim Meyering  <meyering@lucent.com>
81764
81765         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81766         undefined.
81767
81768 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81769
81770         dirname code cleanup.  base_name now behaves more compatibly
81771         with POSIX basename when given file names that have trailing
81772         slashes, and similarly for dir_name.  Add new primitives
81773         base_len and dir_len.  Put the directory-name-related decls
81774         into dirname.h.
81775
81776         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81777         * lib/backupfile.c (base_name): Likewise.
81778         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81779         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81780         * lib/makepath.c (strip_trailing_slashes): Likewise.
81781         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81782         ISSLASH): Likewise.
81783         * lib/rename.c (strip_trailing_slashes): Likewise.
81784         * lib/same.c (base_name): Likewise.
81785         * lib/stripslash.c (ISSLASH): Likewise.
81786
81787         * lib/addext.c: Include <dirname.h> after size_t is defined.
81788         * lib/backupfile.c: Likewise.
81789
81790         * lib/addext.c (addext): Use base_len to trim redundant
81791         trailing slashes instead of doing it ourselves.
81792         But do not trim the last slash if it is not redundant.
81793
81794         * lib/backupfile.c (find_backup_file_name,
81795         max_backup_version): Use base_len instead of rolling it ourselves.
81796         Handle the case of "" and (on DOS) "C:" correctly.
81797
81798         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81799         needed. Include <string.h>, <dirname.h>.
81800         (base_name): Allow file names ending in slashes, other than names
81801         that are all slashes.  In this case, return the basename followed
81802         by the slashes.  This is more general, and can be used in places
81803         where the original base_name purposely had an assertion failure.
81804         (base_len): New function.
81805
81806         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81807         Do not include <assert.h>; no longer needed.
81808         Include xalloc.h.
81809         (memrchr): Remove decl.
81810         (dir_name_r): Remove.
81811         (dir_len): Renamed from dirlen.  All callers changed.
81812         Rewrite in terms of base_name, for simplicity and consistency.
81813         (dir_name): Never return NULL.  All callers changed.
81814         Do not include <stdlib.h> in test program; no longer needed.
81815         return 0; is fine for test program.
81816
81817         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81818         New macros.
81819         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81820
81821         * lib/path-concat.c (path_concat): Use base_len to compute
81822         base length, not strlen; this means we cannot rely on memcpy
81823         to null-terminate.
81824
81825         * lib/same.c (STREQ): Remove.
81826         (same_name): Handle the case where the basename ends in trailing '/'.
81827
81828         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81829         a slash was stripped.  Do not strip the last slash after a
81830         file system prefix.
81831
81832 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81833
81834         * lib/Makefile.am (libfetish_a_SOURCES):
81835         Add strftime.c, since we now compile it on all hosts.
81836
81837         * lib/strftime.c (my_strftime):
81838         Define to nstrftime if emacs, but only if my_strftime is not defined.
81839         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81840         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81841         Add one more extra argument: a nanoseconds value.
81842         All uses changed.
81843         (ns): New macro.
81844         (my_strftime function): Add %N format.
81845         (emacs_strftimeu): Renamed from emacs_strftime,
81846         with extra ut argument.
81847
81848 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81849
81850         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81851
81852 2001-04-21  Jim Meyering  <meyering@lucent.com>
81853
81854         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81855         doesn't interfere.
81856
81857 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81858
81859         * m4/ftruncate.m4: Check for chsize.
81860         Link with ftruncate.o unconditionally if ftruncate is missing.
81861         This was required when cross-compiling to i586-mingw32msvc.
81862
81863 2001-04-08  Jim Meyering  <meyering@lucent.com>
81864
81865         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81866         recomputed; that's necessary when the offset spans a DST transition.
81867         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81868
81869 2001-04-02  Jim Meyering  <meyering@lucent.com>
81870
81871         * lib/regex.h, regex.c: Update from GNU libc.
81872
81873 2001-03-24  Jim Meyering  <meyering@lucent.com>
81874
81875         * m4/jm-macros.m4: Require autoconf-2.49d.
81876
81877 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81878
81879         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81880
81881 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81882
81883         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81884
81885 2001-03-17  Jim Meyering  <meyering@lucent.com>
81886
81887         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81888         now that the version in autoconf is equivalent.
81889         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81890
81891         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81892         Suggestion from Akim Demaille.
81893
81894         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81895         (jm_PREREQ_TEMPNAME): New function.
81896
81897 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81898
81899         * lib/tempname.c (uint64_t): Define to uintmax_t if
81900         not defined, and if UINT64_MAX is not defined.
81901         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81902         Reported by John David Anglin.
81903
81904 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81905
81906         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81907         resolve alias if codeset is empty.
81908         * lib/config.charset (BeOS): Use wildcard syntax.
81909
81910 2001-03-13  Jim Meyering  <meyering@lucent.com>
81911
81912         * lib/path-concat.c (path_concat)
81913         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81914         concatenating e.g., `C:' and `foo'.
81915         From Bruno Haible.
81916
81917 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81918
81919         * lib/localcharset.c (locale_charset): Don't use
81920         setlocale(LC_CTYPE,NULL). Don't return NULL.
81921         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81922
81923 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81924
81925         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81926         support for DOS/DJGPP.
81927
81928 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81929
81930         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81931         lacks mkstemp.  Compile our own tempname.c if we compile our own
81932         mkstemp.c, as mkstemp relies on tempname.
81933
81934 2001-03-01  Jim Meyering  <meyering@lucent.com>
81935
81936         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81937         AH_VERBATIM really does output its argument verbatim.
81938
81939 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81940
81941         * lib/Makefile.am (libfetish_a_SOURCES):
81942         Add dup-safer.c, fopen-safer.c.
81943         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81944
81945         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81946         * lib/unistd-safer.h: New files.
81947
81948 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81949
81950         The mkstemp replacement is taken from glibc 2.2.2, with some
81951         portability fixes for use outside glibc, as follows:
81952
81953         * lib/tempname.c (struct_stat64): New macro.
81954         (direxists, __gen_tempname): Use it.
81955         This avoids a portability problem with Solaris 8.
81956
81957         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81958         (<stddef.h>, <stdint.h>, <string.h>):
81959         Include only if STDC_HEADERS || _LIBC.
81960         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81961         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81962         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81963         (__set_errno): Define this macro if <errno.h> doesn't.
81964         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81965         Define these macros if <stdio.h> doesn't.
81966         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81967         Define these macros if <sys/stat.h>
81968         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81969         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81970         __xstat64): Define if not _LIBC.
81971         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81972         (__gen_tempname): Invoke gettimeofday only if
81973         HAVE_GETTIMEOFDAY || _LIBC;
81974         otherwise, fall back on plain "time".
81975         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81976
81977         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81978
81979         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81980
81981 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81982
81983         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81984
81985 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81986
81987         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81988         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81989         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81990         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81991
81992 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81993
81994         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81995         Remove workaround macros for hosts that have mbrtowc but not
81996         mbstate_t, as we now insist on proper declarations for both
81997         before using mbrtowc.
81998
81999 2001-02-17  Jim Meyering  <meyering@lucent.com>
82000
82001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82002         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82003         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82004         UnixWare 7.1.1.
82005
82006         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82007         rather than AC_CACHE_VAL.
82008
82009 2001-02-17  Jim Meyering  <meyering@lucent.com>
82010
82011         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82012         around included file name.
82013
82014         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82015
82016         * lib/strftime.c: Update from GNU libc (the only changes were to
82017         comments).
82018
82019 2001-02-17  Jim Meyering  <meyering@lucent.com>
82020
82021         * lib/regex.c: Update from libc.
82022
82023 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82024
82025         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82026         clash.
82027
82028 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82029
82030         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82031         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82032         Reported by Mark Hounschell via Paul Eggert.
82033
82034 2001-02-07  Jim Meyering  <meyering@lucent.com>
82035
82036         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82037
82038 2001-02-05  Jim Meyering  <meyering@lucent.com>
82039
82040         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82041         it includes the patch required for `large file' support with at least
82042         HP-UX's 10.20 /bin/cc.
82043
82044 2001-02-03  Jim Meyering  <meyering@lucent.com>
82045
82046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82047         AS_IF, now that it works once again (mysteriously).
82048         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82049
82050 2001-01-30  Jim Meyering  <meyering@lucent.com>
82051
82052         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82053         * m4/chown.m4: Rename conftestchown to conftest.chown.
82054         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82055         s/conftestdir2/conftest.d2/.
82056         * m4/utimes.m4: s/conftestdata/conftest.data/
82057         Inspired by Pavel Roskin's change in autoconf.
82058
82059 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82060
82061         * lib/config.charset: Update for FreeBSD 4.2.
82062
82063 2001-01-27  Jim Meyering  <meyering@lucent.com>
82064
82065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82066         a use of AS_IF.
82067         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82068
82069 2001-01-26  Jim Meyering  <meyering@lucent.com>
82070
82071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82072         quotearg.c includes it.
82073
82074 2001-01-26  Jim Meyering  <meyering@lucent.com>
82075
82076         * lib/quotearg.c: Include stddef.h.
82077         * lib/quote.c: Include stddef.h.
82078         Reported by Axel Kittenberger.
82079
82080         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82081         line in double quotes so that it evokes a better diagnostic.
82082         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82083         Reported by Axel Kittenberger.
82084
82085 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82086
82087         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82088         as if it was a `charset'.
82089
82090 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82091
82092         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82093         has const.
82094
82095 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82096
82097         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82098         to avoid a warning.  Add back 'const' to inptr.
82099
82100 2001-01-20  Jim Meyering  <meyering@lucent.com>
82101
82102         Be sure that headers are checked before used in code compiled
82103         for the type checks.
82104         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82105         In place of that, invoke jm_CHECK_ALL_TYPES.
82106         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82107         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82108         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82109         The check for ssize_t was mistakenly run before the test for unistd.h.
82110
82111         The configure-time check for stdbool.h was missing.
82112         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82113         (jm_PREREQ_HASH): New function.
82114
82115 2001-01-17  Jim Meyering  <meyering@lucent.com>
82116
82117         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82118         for autoconf-2.49c.
82119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82120
82121 2001-01-16  Jim Meyering  <meyering@lucent.com>
82122
82123         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82124         From Bruno Haible.
82125
82126 2001-01-14  Jim Meyering  <meyering@lucent.com>
82127
82128         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82129         foo and bar.  Create conftestdir/ in the script, not in the C code.
82130         Remove directories in the script, not in the C code.
82131         Remove conftestdir{,2} before trying to create the directory.
82132         Make the entire configure script fail if the mkdir fails.
82133
82134 2001-01-14  Jim Meyering  <meyering@lucent.com>
82135
82136         * lib/rename.c: New file.  From Volker Borchert.
82137         Include stdlib.h, string.h or strings.h, and xalloc.h.
82138         Use strip_trailing_slashes rather than open-coding it.
82139
82140 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82141
82142         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82143
82144 2001-01-03  Jim Meyering  <meyering@lucent.com>
82145
82146         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82147         of local `inptr' to avoid warning with some system declarations of
82148         iconv.
82149
82150 2001-01-02  Volker Borchert  <bt@teknon.de>
82151
82152         * m4/rename.m4: New file.
82153         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82154
82155 2001-01-01  Jim Meyering  <meyering@lucent.com>
82156
82157         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82158         even on systems with utmpx.h.  It's necessary for the declaration of
82159         utmp's ut_user member.  Reported by Andreas Jaeger.
82160
82161         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82162         available. They are required for the declarations of getgrgid and
82163         getpwuid resp.
82164         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82165         Reported by Andreas Jaeger.
82166
82167 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82168
82169         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82170         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82171         so `make install' also works in VPATH builds.
82172
82173 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82174
82175         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82176         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82177         can be used in subdirectories.
82178
82179 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82180
82181         * lib/modechange.c: Do not assume that mode_t uses the
82182         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82183         the other-execute bit of FOO even if S_IXOTH != 1.
82184
82185         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82186         WOTH, XOTH, ALLM): New macros.
82187         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82188          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82189         Use them.
82190         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82191         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82192         (mode_compile):
82193         No need to use uintmax_t; unsigned long is long enough.
82194         Don't bother to get suffix since we don't use it.
82195
82196 2000-12-26  Jim Meyering  <meyering@lucent.com>
82197
82198         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82199         better with autoheader.
82200
82201 2000-12-24  Jim Meyering  <meyering@lucent.com>
82202
82203         * lib/hash.c (is_prime): Return explicit boolean values.
82204         (hash_get_first): Return NULL to appease Irix5.6's 89.
82205         Reported by Nelson Beebe.
82206
82207 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82208
82209         * lib/localcharset.c (locale_charset): Add support for Win32.
82210
82211 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82212
82213         * lib/physmem.h, lib/physmem.c: New files.
82214
82215         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82216         (noinst_HEADERS): Add physmem.h.
82217
82218         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82219         't' for compatibility with Solaris 8 sort.
82220
82221 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82222
82223         * lib/config.charset: Add support for BeOS.
82224
82225 2000-12-17  Jim Meyering  <meyering@lucent.com>
82226
82227         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82228         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82229
82230 2000-12-16  Jim Meyering  <meyering@lucent.com>
82231
82232         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82233         N and M) would have treated it like `chown N:N FILE'.
82234
82235         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82236
82237 2000-12-16  Jim Meyering  <meyering@lucent.com>
82238
82239         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82240         SHELLS_FILE to a file name that's useful on djgpp systems.
82241         Include stdlib.h.
82242         (ADDITIONAL_DEFAULT_SHELLS): Define.
82243         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82244         Based mostly on a patch from Prashant TR.
82245
82246 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82247
82248         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82249         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82250         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82251
82252 2000-12-08  Andreas Schwab  <schwab@suse.de>
82253
82254         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82255         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82256
82257 2000-12-07  Jim Meyering  <meyering@lucent.com>
82258
82259         * lib/stripslash.c (ISSLASH): Define.
82260         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82261         `/'.
82262         From Prashant TR.
82263
82264         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82265         (dir_name_r): Declare this function as static.
82266         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82267         manifest itself on a name containing a mix of slashes and
82268         backslashes.
82269         Make this function work with names starting with a DOS-style
82270         drive letter and colon prefix.
82271         (dir_name): Append `.' if necessary.
82272         Based mostly on patches from Prashant TR and Eli Zaretskii.
82273
82274         * lib/dirname.h (dir_name_r): Remove prototype.
82275
82276 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82277
82278         * m4/off_t-format.m4: Remove this file.
82279         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82280
82281 2000-12-06  Jim Meyering  <meyering@lucent.com>
82282
82283         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82284         replacement strtoull, we may well need the replacement strtoul, too.
82285         Check for declarations of strtoul and strtoull.
82286         Check for strtol.  Mainly as a cue to cause automake to include
82287         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82288         Check for limits.h -- strtol.c needs it.
82289
82290 2000-12-05  Jim Meyering  <meyering@lucent.com>
82291
82292         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82293
82294 2000-12-04  Jim Meyering  <meyering@lucent.com>
82295
82296         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82297         Also include memory.h, stdlib.h, unistd.h if appropriate.
82298         Reported by Andreas Jaeger (conflicting declaration of malloc).
82299
82300 2000-12-02  Jim Meyering  <meyering@lucent.com>
82301
82302         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82303         * m4/jm-macros.m4 (jm_MACROS): require it.
82304
82305 2000-12-02  Jim Meyering  <meyering@lucent.com>
82306
82307         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82308
82309 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82310
82311         * lib/memrchr.c: Include <config.h> before any system include file.
82312
82313 2000-11-30  Jim Meyering  <meyering@lucent.com>
82314
82315         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82316
82317 2000-11-30  Jim Meyering  <meyering@lucent.com>
82318
82319         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82320
82321 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82322
82323         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82324
82325 2000-11-26  Jim Meyering  <meyering@lucent.com>
82326
82327         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82328
82329 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82330
82331         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82332         size of (size_t) -1; it's not portable.
82333
82334 2000-11-17  Jim Meyering  <meyering@lucent.com>
82335
82336         * lib/strstr.c: Update from GNU libc.
82337
82338 2000-11-17  Akim Demaille  <akim@epita.fr>
82339
82340         * lib/obstack.h: Formatting changes.
82341         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82342         prevent type checking.
82343         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82344         cast the value to (void *): assigning a `foo *' to a `void *'
82345         variable is valid.
82346         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82347
82348 2000-11-16  Jim Meyering  <meyering@lucent.com>
82349
82350         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82351
82352 2000-11-11  Jim Meyering  <meyering@lucent.com>
82353
82354         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82355
82356 2000-11-10  Jim Meyering  <meyering@lucent.com>
82357
82358         * lib/obstack.h: Update from GNU libc.
82359         * lib/obstack.c: Likewise.
82360
82361 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82362
82363         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82364
82365 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82366
82367         * lib/getusershell.c (setusershell): Use rewind rather than
82368         fseek/fseeko, to avoid configuration hassles with fseeko.
82369         Don't bother opening SHELLS_FILE if shellstream is NULL;
82370         it's not necessary.
82371
82372 2000-11-05  Jim Meyering  <meyering@lucent.com>
82373
82374         * lib/makepath.h (make_dir): Declare.
82375         * lib/makepath.c (make_dir): Remove `static' attribute.
82376         Tweak a comment.
82377
82378 2000-11-04  Jim Meyering  <meyering@lucent.com>
82379
82380         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82381
82382 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82383
82384         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82385         last one in a bucket, advance to the next bucket.
82386
82387 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82388
82389         * lib/fnmatch.c: Do not comment out all the code if we are using
82390         the GNU C library, because in some cases we are replacing buggy
82391         code in the GNU C library itself.
82392
82393 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82394
82395         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82396         (regex_compile): Catch bogus \(\1\).
82397
82398 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82399
82400         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82401         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82402         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82403
82404 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82405
82406         * lib/error.h, getline.h, modechange.h:
82407         Remove "2000" from Copyright line, as the file hasn't been
82408         changed this year other than in the copyright notice.
82409
82410         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82411         was changed this year.
82412
82413 2000-10-29  Jim Meyering  <meyering@lucent.com>
82414
82415         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82416         renaming.
82417         * m4/ls-mntd-fs.m4: Likewise
82418
82419 2000-10-29  Jim Meyering  <meyering@lucent.com>
82420
82421         * lib/xstat.in: Fix grammar in comment.
82422
82423 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82424
82425         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82426         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82427         doesn't define __restrict_arr.
82428
82429 2000-10-28  Jim Meyering  <meyering@lucent.com>
82430
82431         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82432         (jm_PREREQ_MEMCHR): New function.
82433
82434 2000-10-28  Jim Meyering  <meyering@lucent.com>
82435
82436         * lib/memchr.c: Update from libc.
82437         Adjust for portability:
82438         [HAVE_STDLIB_H]: Include stdlib.h.
82439         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82440         Undef __memchr, too.
82441         [!weak_alias]: Define __memchr to memchr.
82442
82443         * lib/regex.c: Update from libc.
82444         * lib/regex.h: Likewise.
82445         * lib/getopt1.c: Likewise.
82446         * lib/memcmp.c: Likewise.
82447
82448         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82449         Avoid using fseek, when possible -- it's broken by design.
82450         Patch by Ulrich Drepper.
82451
82452 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82453
82454         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82455         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82456         Giving in to popular pressure to shut up the compiler with casts.
82457
82458 2000-10-26  Jim Meyering  <meyering@lucent.com>
82459
82460         * lib/strftime.c: Update from libc.
82461
82462 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82463
82464         * regex.c: More `unsigned char' -> `re_char' changes.
82465         Also change several `int' into `re_wchar_t'.
82466         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82467         (PUSH_FAILURE_POINTER): Don't cast any more.
82468         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82469         We want GCC to complain, since this piece of code makes
82470         re_match non-reentrant, which *should* be fixed.
82471         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82472         (EXTEND_BUFFER): Use RETALLOC.
82473         (SET_LIST_BIT): Don't cast.
82474         (re_wchar_t): New type.
82475         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82476         that those two functions will always properly return.
82477         (IMMEDIATE_QUIT_CHECK): Cast to void.
82478         (analyse_first): Use recursion rather than an explicit stack.
82479         (re_compile_fastmap): Can't fail anymore.
82480         (re_search_2): Don't check re_compile_fastmap for failure.
82481         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82482         Now also sets the new value (passed in a new argument).
82483         (re_match_2_internal): Use it.
82484         Also, use a new var `reg' of type size_t when looping through regs
82485         rather than reuse the inappropriate `mcnt'.
82486
82487 2000-10-25  Jim Meyering  <meyering@lucent.com>
82488
82489         * lib/obstack.c: Update from libc.
82490
82491 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82492
82493         * regex.c (regex_compile): Change the way of handling a range from
82494         a char less than 256 to a char not less than 256.
82495
82496 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82497
82498         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82499         NT-Emacs only.
82500         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82501         so that re_search functions only quit when callers expect them to.
82502
82503 2000-10-23  Jim Meyering  <meyering@lucent.com>
82504
82505         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82506         wrong.  That set_locale call must not have any side effects.
82507         From Paul Eggert.
82508
82509 2000-10-22  Jim Meyering  <meyering@lucent.com>
82510
82511         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82512         [CYCLIC]: Remove now-unused definition.
82513
82514         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82515         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82516         Suggestion from Ulrich Drepper.
82517
82518 2000-10-21  Jim Meyering  <meyering@lucent.com>
82519
82520         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82521         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82522         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82523
82524 2000-10-21  Jim Meyering  <meyering@lucent.com>
82525
82526         * lib/dirname.c (memrchr): Declare if necessary.
82527         (dir_name): Remove the restriction that there be no
82528         trailing slashes.  Now, this code skips past them, effectively
82529         ignoring them.
82530         [TEST_DIRNAME] (main): New unit tests.
82531
82532         * lib/memrchr.c: New file from GNU libc.
82533         Undef __memrchr, too.
82534         [!weak_alias]: Define __memrchr to memrchr.
82535         Guard weak_alias use with `#ifdef weak_alias'.
82536
82537 2000-10-21  Jim Meyering  <meyering@lucent.com>
82538
82539         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82540         (dir_name): Use dir_name_r.
82541         * lib/dirname.h (dir_name_r): Declare it.
82542
82543 2000-10-17  Jim Meyering  <meyering@lucent.com>
82544
82545         * lib/quote.h (PARAMS): Define and use.
82546         Reported by Akim Demaille.
82547
82548         * lib/getopt.c: Update from libc.
82549
82550 2000-10-16  Jim Meyering  <meyering@lucent.com>
82551
82552         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82553         setlocale.
82554         From Jan Fedak.
82555
82556 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82557
82558         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82559
82560 2000-09-25  Jim Meyering  <meyering@lucent.com>
82561
82562         * lib/md5.h (rol): Define (from GnuPG).
82563
82564         * lib/sha.c: Give credit (GnuPG) where due.
82565         (M): Use rol rather than open-coding it.
82566         Add a FIXME comment.
82567
82568 2000-09-21  Jim Meyering  <meyering@lucent.com>
82569
82570         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82571         Reported by Michael Stone.
82572
82573 2000-09-20  Jim Meyering  <meyering@lucent.com>
82574
82575         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82576         (noinst_HEADERS): Add sha.h.
82577         Based on code from Scott G. Miller and from GnuPG.
82578
82579 2000-09-18  Jim Meyering  <meyering@lucent.com>
82580
82581         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82582         LIBS. Otherwise, everyone ends up linking with -lelf for some
82583         configurations.
82584         Reported by Mike Stone.
82585
82586 2000-09-15  Jim Meyering  <meyering@lucent.com>
82587
82588         * lib/regex.c: Update from libc.
82589
82590 2000-09-10  Jim Meyering  <meyering@lucent.com>
82591
82592         * lib/getopt.c (_getopt_internal): Update from glibc.
82593
82594 2000-09-09  Jim Meyering  <meyering@lucent.com>
82595
82596         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82597         think it should be used as a general replacement for isascii.
82598         * lib/fnmatch.c: Likewise.
82599         * lib/mbswidth.c: Likewise
82600         * lib/regex.c: Likewise.
82601
82602         Don't use atoi.
82603         * lib/userspec.c: Include sys/param.h and limits.h.
82604         Include xstrtol.h.
82605         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82606         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82607         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82608         UID, GID.  Check range.
82609
82610 2000-09-06  Jim Meyering  <meyering@lucent.com>
82611
82612         * lib/getopt.c (_getopt_internal): Update from glibc.
82613
82614 2000-08-30  Jim Meyering  <meyering@lucent.com>
82615
82616         * lib/strftime.c: Merge in changes from GNU libc.
82617
82618 2000-08-26  Jim Meyering  <meyering@lucent.com>
82619
82620         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82621         * m4/fpending.m4: New file.
82622
82623 2000-08-26  Jim Meyering  <meyering@lucent.com>
82624
82625         * lib/closeout.c: Include "__fpending.h".
82626         (close_stdout_status): Return right away if there's nothing to flush.
82627
82628         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82629         * lib/__fpending.c: New file.
82630         * lib/__fpending.h: New file.
82631
82632 2000-08-20  Jim Meyering  <meyering@lucent.com>
82633
82634         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82635         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82636         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82637
82638 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82639
82640         Improve fileutils installation on systems where running
82641         programs (like install) can't be unlinked.
82642         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82643         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82644
82645 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82646
82647         Standardize on "memory exhausted" instead of "Memory exhausted"
82648         or "virtual memory exhausted".
82649         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82650         "virtual memory exhausted".
82651         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82652         our own message.
82653         * lib/userspec.c (parse_user_spec): Likewise.
82654         * lib/bumpalloc.h: comment fix
82655         * lib/same.c, userspec.c: Include xalloc.h.
82656
82657         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82658         not char *const and pointing to a constant array.
82659         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82660         (xrealloc): Comment fix.
82661
82662         * lib/userspec.c (parse_user_spec):
82663         Don't translate a message until just before returning,
82664         to avoid unnecessary translation.
82665
82666 2000-08-07  Jim Meyering  <meyering@lucent.com>
82667
82668         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82669         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82670         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82671         getgroups.c, gethostname.c, getopt.h, group-member.c,
82672         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82673         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82674         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82675         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82676         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82677         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82678         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82679         yesno.c: Back out Copyright date changes for each file with no change
82680         this year.  This eases coordination with other programs using the same
82681         source code modules.  From Paul Eggert.
82682
82683 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82684
82685         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82686         not char, for compatibility with glibc 2.1.3 strftime.c.
82687
82688 2000-08-03  Greg McGary  <greg@mcgary.org>
82689
82690         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82691         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82692         (EXTEND_BUFFER): Use them.
82693
82694 2000-08-01  Jim Meyering  <meyering@lucent.com>
82695
82696         * lib/dirname.c (ISSLASH): Define.
82697         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82698         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82699         both `\' and `/' may be use as path separators.
82700         Based on a patch from Prashant TR.
82701
82702 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82703
82704         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82705         slot vector a constant, since it might get modified.
82706
82707 2000-07-31  Jim Meyering  <meyering@lucent.com>
82708
82709         * lib/xmalloc.c: Use `virtual memory exhausted', not
82710         `Memory exhausted'.
82711         * lib/obstack.c (print_and_abort): Likewise.
82712
82713 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82714
82715         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82716         buffer, so that the caller can always quote one small
82717         component of a "memory exhausted" message in slot 0.
82718         From a suggestion by Jim Meyering.
82719
82720 2000-07-30  Jim Meyering  <meyering@lucent.com>
82721
82722         * lib/makepath.c (make_path): Quote the other instance, too.
82723
82724         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82725         (STATIC_BUF_SIZE): Define.
82726         (quotearg_n_options): Use only statically allocated storage when
82727         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82728         than STATIC_BUF_SIZE.
82729
82730 2000-07-29  Jim Meyering  <meyering@lucent.com>
82731
82732         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82733         * lib/dirname.c (dir_name): Likewise.
82734
82735         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82736         `/'.
82737
82738         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82739         (dir_name): Assert that there are no trailing slashes.
82740
82741 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82742
82743         * lib/mbswidth.h (mbswidth): Add a flags argument.
82744         (mbswidth): New declaration.
82745         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82746         * lib/mbswidth.c (mbswidth): Add a flags argument.
82747         (mbsnwidth): New function.
82748
82749 2000-07-24  Jim Meyering  <meyering@lucent.com>
82750
82751         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82752
82753 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82754
82755         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82756
82757 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82758
82759         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82760         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82761         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82762         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82763         invoke multibyte primitives.
82764
82765 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82766
82767         * lib/quotearg.c:
82768         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82769         so that mbstate_t is always defined.
82770
82771         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82772         be 1 in at least one GCC installation, and this configuration
82773         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82774         performance on hosts that have mbrtowc but have only unibyte
82775         locales, but I assume these hosts are rare.
82776
82777 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82778
82779         * lib/mbswidth.c (_XOPEN_SOURCE):
82780         Don't define; this causes problems on Solaris 7.
82781         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82782
82783 2000-07-23  Jim Meyering  <meyering@lucent.com>
82784
82785         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82786         too: getgrgid, getpwuid, getuid.
82787
82788 2000-07-23  Jim Meyering  <meyering@lucent.com>
82789
82790         * lib/basename.c (base_name): Add an assertion.
82791
82792 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82793
82794         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82795         shadow its mbsinit function.
82796
82797 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82798
82799         * lib/mbswidth.h: New file.
82800         * lib/mbswidth.c: New file.
82801         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82802         (noinst_HEADERS): Add mbswidth.h.
82803
82804 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82805
82806         * lib/config.charset: Add support for FreeBSD. Improve support for
82807         HP-UX and IRIX 6.
82808
82809 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82810
82811         * m4/mbswidth.m4: New file.
82812         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82813
82814 2000-07-15  Jim Meyering  <meyering@lucent.com>
82815
82816         * lib/makepath.c: Include quote.h.
82817         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82818         corresponding argument in a `quote (...)' call.
82819         Give better diagnostics.
82820
82821         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82822         (noinst_HEADERS): Add quote.h.
82823
82824         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82825         from tar's src/misc.c.
82826         * lib/quote.h: New file.  Prototypes for same.
82827
82828 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82829
82830         From a suggestion by Bruno Haible.
82831         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82832         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82833         to decide whether to define the BeOS workaround macro;
82834         this adjusts to the change to AC_MBSTATE_T.
82835
82836 2000-07-14  Jim Meyering  <meyering@lucent.com>
82837
82838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82839         jm_AC_TYPE_UINTMAX_T.
82840
82841 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82842
82843         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82844
82845         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82846         quotearg_buffer_restyled): Add support for
82847         clocale_quoting_style.  Undo previous change to
82848         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82849         and "{RIGHT QUOTATION MARK}" msgids.
82850
82851 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82852
82853         From a suggestion by Bruno Haible.
82854         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82855         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82856         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82857         and mbstate_t, to a single-part test that simply defines mbstate_t.
82858         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82859         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82860
82861 2000-07-10  Jim Meyering  <meyering@lucent.com>
82862
82863         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82864
82865         * m4/gnu-source.m4: Output to confdefs.h directly.
82866         Suggestion from Akim Demaille.
82867
82868 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82869
82870         The old behavior of quoting `like this' doesn't look good with
82871         newer, ISO-style fonts.  See:
82872         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82873
82874         Instead, quote "like this" by default.  Let the translator
82875         tailor the locale-specific quoting behavior by providing
82876         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82877
82878         * lib/quotearg.c (N_): New macro.
82879         (gettext_default): New function.
82880         (quotearg_buffer_restyled): Use
82881         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82882         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82883
82884 2000-07-09  Jim Meyering  <meyering@lucent.com>
82885
82886         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82887         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82888
82889         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82891
82892 2000-07-09  Jim Meyering  <meyering@lucent.com>
82893
82894         * lib/Most files: Update copyright dates to include 2000.
82895
82896 2000-07-08  Jim Meyering  <meyering@lucent.com>
82897
82898         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82899         if not defined.
82900         (xgethostname): Remove now-unnecessary #ifdef.
82901         Move declaration of `err' into loop where it's used.
82902
82903 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82904         and Bruno Haible  <haible@clisp.cons.org>
82905
82906         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82907         only if the test for an object-type mbstate_t fails.  This
82908         prevents us from mistakenly reporting that mbstate_t is a
82909         system object type after we "#define mbstate_t int" to work
82910         around its lack.
82911
82912 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82913         and Bruno Haible  <haible@clisp.cons.org>
82914
82915         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82916
82917 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82918
82919         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82920         to strerror_r.
82921         Include <ctype.h> for use of isalpha.
82922
82923 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82924
82925         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82926         by allocating a larger buffer. Test the gethostname return value for
82927         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82928         returns an error and ENAMETOOLONG isn't defined.
82929
82930 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82931
82932         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82933         dimension.
82934
82935 2000-07-04  Jim Meyering  <meyering@lucent.com>
82936
82937         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82938         of the deprecated AC_CHECKING.
82939
82940 2000-07-04  Jim Meyering  <meyering@lucent.com>
82941
82942         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82943         Reported by Bruno Haible.
82944
82945 2000-07-04  Jim Meyering  <meyering@lucent.com>
82946
82947         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82948         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82949         lacks mbrtowc.
82950
82951 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82952
82953         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82954         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82955
82956 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82957         and Bruno Haible  <haible@clisp.cons.org>
82958
82959         * lib/quotearg.c (mbrtowc):
82960         Assign to *pwc, and return 1 only if result is nonzero.
82961         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82962
82963 2000-07-03  Jim Meyering  <meyering@lucent.com>
82964
82965         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82966
82967 2000-07-03  Jim Meyering  <meyering@lucent.com>
82968
82969         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82970         This is necessary to get a definition of e.g., UTMP_FILE on
82971         HP-UX 10.20.
82972         From Bob Proulx.
82973
82974 2000-07-02  Jim Meyering  <meyering@lucent.com>
82975
82976         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82977
82978         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82979         AC_LIBOBJ(function_name).
82980         * m4/chown.m4: Likewise.
82981         * m4/fnmatch.m4: Likewise.
82982         * m4/ftruncate.m4: Likewise.
82983         * m4/getgroups.m4: Likewise.
82984         * m4/getline.m4: Likewise.
82985         * m4/group-member.m4: Likewise.
82986         * m4/jm-macros.m4: Likewise.
82987         * m4/lstat.m4: Likewise.
82988         * m4/malloc.m4: Likewise.
82989         * m4/memcmp.m4: Likewise.
82990         * m4/nanosleep.m4: Likewise.
82991         * m4/putenv.m4: Likewise.
82992         * m4/realloc.m4: Likewise.
82993         * m4/regex.m4: Likewise.
82994         * m4/stat.m4: Likewise.
82995         * m4/strftime.m4: Likewise.
82996
82997 2000-07-02  Jim Meyering  <meyering@lucent.com>
82998
82999         * lib/quotearg.c (mbstate_t): Don't define here.
83000
83001 2000-07-02  Jim Meyering  <meyering@lucent.com>
83002
83003         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83004
83005 2000-07-01  Jim Meyering  <meyering@lucent.com>
83006
83007         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83008
83009 2000-07-01  Jim Meyering  <meyering@lucent.com>
83010
83011         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83012         problem.
83013
83014 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83015
83016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83017         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83018
83019 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83020
83021         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83022         per change in ../m4/ls-mntd-fs.m4.
83023         (read_filesystem_list): Ignore symbolic links.
83024
83025 2000-06-29  Jim Meyering  <meyering@lucent.com>
83026
83027         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83028         for declaration of strcmp.
83029
83030         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83031
83032         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83033         Avoid warning by casting result to `char *' to remove `const'.
83034
83035 2000-06-28  Jim Meyering  <meyering@lucent.com>
83036
83037         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83038         included by quotearg.c, for which we perform this test.  From
83039         Bruno Haible.
83040
83041 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83042
83043         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83044         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83045         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83046
83047 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83048
83049         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83050
83051 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83052
83053         savedir now sets errno on failure and invokes xmalloc to get memory.
83054         Fix a couple of other minor bugs while we're at it.
83055
83056         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83057         (NAMLEN): Remove macro.
83058         (malloc, realloc): Remove decls.
83059         (stpcpy): Likewise.
83060         ("xalloc.h"): Include.
83061         (NAME_SIZE_DEFAULT): New macro.
83062         (savedir): Use xmalloc / xrealloc to allocate memory.
83063         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83064         Skip "" directory entries.
83065         Use strlen to calculate directory entry length, since the old method
83066         is rarely used these days and isn't worth supporting.
83067         Don't use a pointer after freeing it.
83068         Check for integer overflow when calculating allocation size.
83069         Use memcpy to copy entries, instead of stpcpy.
83070         Set errno properly when returning NULL.
83071         Check for readdir error.
83072
83073 2000-06-26  Jim Meyering  <meyering@lucent.com>
83074
83075         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83076
83077 2000-06-25  Jim Meyering  <meyering@lucent.com>
83078
83079         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83080         Linux header bug when _XOPEN_SOURCE is defined to 500.
83081
83082 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83083
83084         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83085         deficiency.
83086
83087 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83088
83089         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83090         Include xalloc.h.
83091         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83092
83093 2000-06-24  Jim Meyering  <meyering@lucent.com>
83094
83095         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83096         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83097         for which strerror does return char*, but which lacks a conveniently
83098         accessible declaration of the function.  If the compile-test says
83099         strerror_r doesn't work, then resort to a `run'-test that works on
83100         BeOS and segfaults on DEC Unix.
83101
83102 2000-06-24  Jim Meyering  <meyering@lucent.com>
83103
83104         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83105
83106 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83107
83108         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83110
83111 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83112
83113         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83114         (mbrtowc, mbstate_t): Define substitutes if
83115         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83116         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83117         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83118
83119 2000-06-23  Jim Meyering  <meyering@lucent.com>
83120
83121         * m4/afs.m4: Add missing AC_MSG_RESULT.
83122         Reported by Bruno Haible.
83123
83124         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83125         Suggestion from Bruno Haible.
83126
83127 2000-06-23  Jim Meyering  <meyering@lucent.com>
83128
83129         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83130
83131 2000-06-21  Jim Meyering  <meyering@lucent.com>
83132
83133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83134
83135 2000-06-21  Jim Meyering  <meyering@lucent.com>
83136
83137         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83138         (noinst_HEADERS): Add getstr.h.
83139
83140         * lib/getline.c (getstr): Move into a separate file.
83141         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83142         the following changes: new parameter, delim2; both delim[12]
83143         parameters have type `int', not `char'.  The latter would lose
83144         with 8-bit delimiters.
83145         * lib/getstr.h: New file.
83146
83147 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83148
83149         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83150         than 1024, return a memory chunk of least possible size, instead
83151         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83152         Use free/xmalloc instead of xrealloc to avoid copying for very long
83153         paths.
83154
83155 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83156
83157         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83158         the empty string.
83159
83160 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83161
83162         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83163         address, not strdup.  Include <stdlib.h> and don't declare free().
83164
83165 2000-06-19  Jim Meyering  <meyering@lucent.com>
83166
83167         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83168
83169 2000-06-18  Jim Meyering  <meyering@lucent.com>
83170
83171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83172
83173         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83174         `checking whether...' message to be consistent with that of the
83175         lstat test.
83176
83177 2000-06-18  Jim Meyering  <meyering@lucent.com>
83178
83179         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83180         Besides, these days every porting target provides a mkdir function.
83181
83182         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83183         needed. (this snippet comes from src/system.h).
83184
83185 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83186
83187         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83188
83189 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83190
83191         * lib/human.c (adjust_value): New function.
83192         (human_readable_inexact): Apply rounding style even when
83193         printing approximate values.
83194
83195 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83196
83197         * lib/human.c (human_readable_inexact): Allow an input block
83198         size that is not a multiple of the output block size, and vice versa.
83199         Reported by Piergiorgio Sartor.
83200
83201 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83202
83203         * lib/getdate.y (get_date): Apply relative times after time
83204         zone indicator, not before.  Reported by Todd A. Jacobs.
83205
83206 2000-06-13  Jim Meyering  <meyering@lucent.com>
83207
83208         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83209
83210         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83211
83212 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83213
83214         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83215
83216 2000-06-12  Jim Meyering  <meyering@lucent.com>
83217
83218         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83219         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83220         optional argument.
83221         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83222         the optional argument, `lib'.
83223
83224 2000-06-08  Jim Meyering  <meyering@lucent.com>
83225
83226         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83227
83228 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83229
83230         Rewrite largefile configuration so that we don't need to run
83231         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83232         AC_CANONICAL_HOST in configure.in -- jmm]
83233
83234         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83235         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83236         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83237         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83238         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83239         All uses changed.
83240         Instead of inspecting the output of getconf, try to compile the
83241         test program without and with the macro definition.
83242         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83243         for getconf.  Instead, check for the needed flags by compiling
83244         test programs.
83245
83246 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83247
83248         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83249
83250 2000-06-04  Jim Meyering  <meyering@lucent.com>
83251
83252         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83253         SunOS 4.1.4 for which gid_t is an unsigned type.
83254
83255 2000-06-03  Jim Meyering  <meyering@lucent.com>
83256
83257         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83258         now that autoconf requires that.
83259
83260         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83261         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83262         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83263
83264 2000-06-03  Jim Meyering  <meyering@lucent.com>
83265
83266         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83267
83268 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83269
83270         * m4/glibc21.m4: New file.
83271         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83272
83273 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83274
83275         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83276         newer, don't install charset.alias.
83277         * lib/config.charset: Change the Linux/glibc rules so they become empty
83278         on glibc-2.1 or newer.
83279
83280 2000-06-02  Jim Meyering  <meyering@lucent.com>
83281
83282         * lib/mountlist.c: Back out last change.  Instead, do this...
83283         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83284         me_dummy member using the same `ignore'-testing code.
83285         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83286         fs_type strings.
83287         From Mark D. Roth.
83288
83289 2000-05-29  Jim Meyering  <meyering@lucent.com>
83290
83291         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83292         mounts with the `ignore' attribute.  Based on a patch from
83293         Mark D. Roth.
83294
83295 2000-05-28  Jim Meyering  <meyering@lucent.com>
83296
83297         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83298         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83299         * m4/stat.m4: Likewise.
83300         * m4/lstat.m4: Likewise.
83301         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83302
83303         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83304         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83305
83306 2000-05-26  Jim Meyering  <meyering@lucent.com>
83307
83308         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83309
83310 2000-05-24  Jim Meyering  <meyering@lucent.com>
83311
83312         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83313         autoconf requires that.
83314         * m4/lib-check.m4: Likewise.
83315         * m4/jm-macros.m4: Likewise.
83316         * m4/strftime.m4: Likewise.
83317
83318         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83319         AC_CHECK_DECLS, now that autoconf requires that.
83320
83321 2000-05-22  Jim Meyering  <meyering@lucent.com>
83322
83323         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83324         * m4/lstat.m4: Likewise.
83325
83326 2000-05-22  Jim Meyering  <meyering@lucent.com>
83327
83328         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83329
83330 2000-05-20  Jim Meyering  <meyering@lucent.com>
83331
83332         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83333         (jm_PREREQ): Use it.
83334
83335 2000-05-18  Jim Meyering  <meyering@lucent.com>
83336
83337         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83338         back, too, since it may have been modified by allocate_entry.
83339         (hash_delete): Rewrite to use neither the assignment operator
83340         nor the comma operator in an if-expression.
83341
83342 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83343
83344         * lib/closeout.c:
83345         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83346         Remove; no longer needed.
83347         "quotearg.h": Add include.
83348         (file_name): Do not bother to explicitly initialize to NULL; it's less
83349         efficient on some hosts.
83350         (close_stdout_status): Remove test as to whether stdout was already
83351         closed; it breaks for the case "echo x | sort >&-".
83352         Quote file name colons.
83353         Do not assume that _("write error") lacks format strings.
83354
83355 2000-05-15  Jim Meyering  <meyering@lucent.com>
83356
83357         * lib/version-etc.c (version_etc_copyright): Update the copyright
83358         string used in all --version output.
83359
83360 2000-05-14  Jim Meyering  <meyering@lucent.com>
83361
83362         * lib/closeout.c (close_stdout_set_file_name): New function.
83363         (close_stdout_status): Use new file-scoped global.
83364         Return right away if fstat says the stdout file descriptor is invalid.
83365         * lib/closeout.h (close_stdout_set_file_name): Declare.
83366
83367 2000-05-10  Jim Meyering  <meyering@lucent.com>
83368
83369         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83370         (close_stdout_set_status): New function.
83371         * lib/closeout.h (close_stdout_set_status): Declare.
83372
83373 2000-05-09  Jim Meyering  <meyering@lucent.com>
83374
83375         * m4/gettext.m4: Rename this...
83376         * m4/libintl.m4: ...to this.
83377
83378 2000-05-08  Jim Meyering  <meyering@lucent.com>
83379
83380         * lib/long-options.c: Don't include closeout.h.
83381         (parse_long_options): Don't call close_stdout for --version.
83382
83383 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83384
83385         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83386         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83387         2.1.3 bug.  This avoids a clash when files like regex.c define
83388         _GNU_SOURCE.
83389
83390 2000-05-06  Jim Meyering  <meyering@lucent.com>
83391
83392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83393         (AC_REPLACE_FUNCS): Add strnlen.
83394
83395         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83396         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83397
83398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83399         AC_SEARCH_LIBS call for nanosleep.
83400         (LIB_NANOSLEEP): Set and AC_SUBST.
83401
83402 2000-05-06  Jim Meyering  <meyering@lucent.com>
83403
83404         * lib/strnlen.c: Undefine __strnlen and strnlen.
83405         [!weak_alias]: Define __strnlen to strnlen.
83406
83407         * lib/atexit.c: New file, from libiberty.
83408
83409 2000-05-06  Jim Meyering  <meyering@lucent.com>
83410
83411         * lib/closeout.c (close_stdout_status): Also check for errors on the
83412         stderr stream.
83413
83414 2000-05-05  Jim Meyering  <meyering@lucent.com>
83415
83416         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83417         AC_SEARCH_LIBS call for clock_gettime.
83418         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83419
83420         * m4/search-libs.m4: Update from autoconf.
83421
83422         su doesn't work on Solaris 2.6.
83423         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83424         <shadow.h>.  Reported by Dragos Harabor.
83425
83426 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83427
83428         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83429         memcpy instead of xmalloc, xrealloc, path_concat.
83430         (locale_charset): Treat empty environment variables as absent.
83431         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83432
83433 2000-05-04  Jim Meyering  <meyering@lucent.com>
83434
83435         * lib/getopt.c: Update from glibc.
83436         * lib/obstack.c: Likewise.
83437         * lib/obstack.h: Likewise.
83438         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83439         file
83440
83441         * lib/regex.h: Likewise.
83442         * lib/strndup.c: Likewise.
83443         * lib/strnlen.c: New file, from glibc.
83444
83445 2000-05-03  Jim Meyering  <meyering@lucent.com>
83446
83447         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83448
83449 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83450
83451         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83452         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83453         compile-time test, rather than inspecting host and OS, to
83454         decide whether to define _LARGEFILE_SOURCE.
83455
83456 2000-05-01  Jim Meyering  <meyering@lucent.com>
83457
83458         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83459
83460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83461         Based on a patch from Bruno Haible.
83462
83463 2000-05-01  Jim Meyering  <meyering@lucent.com>
83464
83465         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83466
83467 2000-04-29  Jim Meyering  <meyering@lucent.com>
83468
83469         * lib/path-concat.c: Declare strdup only if it's not defined.
83470         * lib/canon-host.c: Likewise.
83471
83472 2000-04-28  Jim Meyering  <meyering@lucent.com>
83473
83474         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83475         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83476         is included first, then limits.h is included by locale.h by libintl.h.
83477         From John David Anglin.
83478
83479 2000-04-25  Jim Meyering  <meyering@lucent.com>
83480
83481         * lib/makepath.c (S_IRWXUGO): Define.
83482         (make_path): Always perform explicit chmod if MODE specifies any
83483         of the `special' permission bits.  Prompted by a bug report against
83484         install from Mate Wierdl and Joost van Baal.
83485
83486 2000-04-18  Jim Meyering  <meyering@lucent.com>
83487
83488         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83489         (jm_PREREQ): Use it.
83490
83491 2000-04-18  Jim Meyering  <meyering@lucent.com>
83492
83493         * lib/README: New file.
83494
83495         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83496         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83497
83498 2000-04-17  Jim Meyering  <meyering@lucent.com>
83499
83500         Get it right :-)
83501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83502         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83503         Suggestion from Akim Demaille.
83504
83505 2000-04-17  Jim Meyering  <meyering@lucent.com>
83506
83507         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83508         the definition of it to rpl_strftime also defined-away the system's
83509         declaration.
83510
83511 2000-04-15  Jim Meyering  <meyering@lucent.com>
83512
83513         Use `C' to denote so-called `contiguous' files, the same way
83514         that tar does.
83515         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83516         (ftypelet): Use S_ISCTG.
83517         From Michael Deutschmann.
83518
83519 2000-04-14  Jim Meyering  <meyering@lucent.com>
83520
83521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83522         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83523         clobbered.
83524
83525 2000-04-14  Jim Meyering  <meyering@lucent.com>
83526
83527         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83528
83529 2000-04-13  Jim Meyering  <meyering@lucent.com>
83530
83531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83532         AH_VERBATIM to insert required #ifndef into config.h.in.
83533         Suggestion from Akim Demaille.
83534
83535 2000-04-12  Jim Meyering  <meyering@lucent.com>
83536
83537         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83538         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83539         Christian Krackowizer.
83540
83541         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83542         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83543         (AC_SYS_LARGEFILE): Require.
83544         (AM_C_PROTOTYPES): Require.
83545
83546 2000-04-08  Jim Meyering  <meyering@lucent.com>
83547
83548         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83549         names don't conflict.  Reported by Eli Zaretskii.
83550
83551 2000-04-07  Jim Meyering  <meyering@lucent.com>
83552
83553         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83554         sys/types.h, to work around system header problems on AIX 3.2.5.
83555         From Bruno Haible.
83556
83557 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83558
83559         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83560         bug.  Deal with the different error behavior of Irix iconv.
83561
83562 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83563
83564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83565         IRIX if the installer said otherwise.
83566
83567 2000-04-05  Jim Meyering  <meyering@lucent.com>
83568
83569         Portability tweaks required for ultrix4.3.
83570         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83571         (jm_CHECK_DECLS): Add getutent to the list of functions.
83572         (_jm_DECL_HEADERS): Add utmpx.h.
83573         From John David Anglin.
83574
83575         * m4/strftime.m4: Back out the 2000-04-02 change.
83576         Instead of that change, simply undefine putenv in the test program.
83577
83578 2000-04-05  Jim Meyering  <meyering@lucent.com>
83579
83580         Portability tweaks required for ultrix4.3.
83581         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83582         getutent.
83583         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83584         * lib/canon-host.c: Declare strdup.
83585         * lib/path-concat.c: Likewise.
83586         From John David Anglin.
83587
83588 2000-04-04  Jim Meyering  <meyering@lucent.com>
83589
83590         Be more DOS 8.3-friendly.
83591         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83592         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83593         * lib/Makefile.am: Reflect renaming.
83594         Reported by Eli Zaretskii.
83595
83596         Use a temporary file name that won't clash with `charset.alias'
83597         in the DOS 8.3 name space.
83598         * lib/Makefile.am (charset_tmp): Define.
83599         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83600         (uninstall-local): Likewise.
83601         Reported by Eli Zaretskii.
83602
83603 2000-04-03  Jim Meyering  <meyering@lucent.com>
83604
83605         * m4/gettext.m4: Fix typo in comment.
83606
83607         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83608         textutils/configure.in).  Suggestion from Paul Eggert.
83609         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83610
83611 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83612
83613         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83614         variable in the shell rather than using putenv, which isn't
83615         portable.  This avoids the configure-time inter-test dependency
83616         on the potentially-renamed putenv function.
83617
83618 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83619
83620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83621         before checking struct stat.st_blksize, so that
83622         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83623
83624 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83625
83626         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83627         since strftime.c uses HAVE_STRFTIME to decide whether to use
83628         the underlying strftime.
83629
83630 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83631
83632         * lib/time/strftime.c (my_strftime): Make sure we call the system
83633         strftime, not ourselves, when invoking the underlying strftime.
83634
83635 2000-03-24  Jim Meyering  <meyering@lucent.com>
83636
83637         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83638         (charset_alias): Define.
83639         (install-exec-local): Factor out common code.
83640         (uninstall-local): Split lines longer than 80.
83641         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83642         (SUFFIXES): Define.
83643         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83644         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83645
83646 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83647
83648         * lib/config.charset: Output a line containing "Packages using this
83649         file".
83650         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83651         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83652         ref-del.sed): New rules.
83653
83654 2000-03-17  Jim Meyering  <meyering@lucent.com>
83655
83656         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83657         Otherwise, include <strings.h>
83658
83659 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83660
83661         * lib/unicodeio.c (utf8_wctomb): New function.
83662         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83663         format instead of in UCS-4 with platform dependent endianness.
83664
83665 2000-03-10  Jim Meyering  <meyering@lucent.com>
83666
83667         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83668         From Marco Franzen.
83669
83670 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83671
83672         * lib/savedir.c (savedir): Work even if directory size is
83673         negative; this can happen with some screwy NFS configurations.
83674
83675 2000-03-06  Jim Meyering  <meyering@lucent.com>
83676
83677         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83678         if it's NULL (because we ran out of memory).  From Bruno Haible.
83679
83680 2000-03-05  Jim Meyering  <meyering@lucent.com>
83681
83682         * lib/localcharset.c ("path-concat.h"): Include.
83683         (get_charset_aliases): Use path_concat instead of ANSI string
83684         concatenation.
83685
83686         * lib/unicodeio.h (PARAMS): Define.
83687         Use it to guard prototype.
83688
83689 2000-03-04  Jim Meyering  <meyering@lucent.com>
83690
83691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83692         for lib/localcharset.c.
83693
83694 2000-03-04  Jim Meyering  <meyering@lucent.com>
83695
83696         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83697         installing into it.
83698         (uninstall-local): Uncomment this rule so `make distcheck' works
83699         once again.
83700
83701         * lib/unicodeio.c (<errno.h>): Include it.
83702         (errno): Declare if not defined.
83703
83704         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83705
83706         * lib/config.charset: New version, incorporating remarks from a linux
83707         i18n mailing list.  From Bruno Haible.
83708
83709 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83710
83711         * m4/codeset.m4: New file.
83712         * m4/iconv.m4: New file.
83713         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83714
83715 2000-03-03  Jim Meyering  <meyering@lucent.com>
83716
83717         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83718
83719 2000-03-02  Jim Meyering  <meyering@lucent.com>
83720
83721         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83722         the messages come out on separate lines.
83723
83724         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83725         rather than jm_CHECK_DECLARATIONS.
83726         * m4/decl.m4: Remove now-unused file.
83727
83728         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83729         geteuid.
83730
83731 2000-03-02  Jim Meyering  <meyering@lucent.com>
83732
83733         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83734
83735 2000-03-01  Jim Meyering  <meyering@lucent.com>
83736
83737         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83738         * lib/unicodeio.c: Likewise.
83739
83740 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83741
83742         * lib/config.charset: New file.
83743         * lib/localcharset.c: New file.
83744         * lib/unicodeio.h, lib/unicodeio.c: New files.
83745         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83746         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83747         (noinst_HEADERS): Add unicodeio.h.
83748         (all-local, install-exec-local, charset.alias): New targets.
83749
83750 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83751
83752         * lib/quotearg.c (ALERT_CHAR): New macro.
83753         (quotearg_buffer_restyled): Use it.
83754
83755 2000-02-27  Jim Meyering  <meyering@lucent.com>
83756
83757         * m4/check-decl.m4: Add getenv to the list.
83758
83759 2000-02-27  Jim Meyering  <meyering@lucent.com>
83760
83761         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83762         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83763
83764         * lib/backupfile.c: Guard inclusion of stdlib.h with
83765         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83766         Declare malloc if needed.
83767
83768         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83769         `#ifndef HAVE_DECL..'
83770         now that autoconf always defines the HAVE_DECL_ symbols.
83771         * lib/human.c: Likewise.
83772         * lib/same.c: Likewise.
83773         * lib/strtoumax.c: Likewise.
83774
83775         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83776         declaration check was not run.
83777         * lib/hash.c: Likewise.
83778         * lib/human.c: Likewise.
83779         * lib/same.c: Likewise.
83780         * lib/strtoumax.c: Likewise.
83781
83782         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83783         `.', then first look up the entire `.'-containing string as a login
83784         name.
83785
83786 2000-02-23  Jim Meyering  <meyering@lucent.com>
83787
83788         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83789         in place of my hack.
83790
83791 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83792
83793         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83794         (textint): New typedef.
83795         (parser_control): Member year changed from int to textint.
83796         All uses changed.
83797         (YYSTYPE): Removed; replaced by %union with int and textint members.
83798         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83799         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83800         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83801         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83802         (date, number, to_year): Use width of number in digits, not its value,
83803         to determine whether it's a 2-digit year, or a 2-digit time.
83804         (yylex): Store number of digits of numeric tokens.
83805         Reported by John Kendall.
83806
83807         (parser_control): Changed from struct parser_control to typedef (for
83808         consistency).  All uses changed.
83809
83810         (tID): Removed; not used.
83811         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83812
83813 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83814
83815         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83816         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83817
83818 2000-02-12  Jim Meyering  <meyering@lucent.com>
83819
83820         * lib/userspec.c (ISDIGIT): Define it.
83821         (isdigit): Remove definition.
83822         (is_number): Use ISDIGIT, not isdigit.
83823         <libintl.h>: Include.
83824         (_ and N_): Define.
83825         (parse_user_spec): Mark translatable strings.
83826
83827 2000-02-10  Jim Meyering  <meyering@lucent.com>
83828
83829         With these changes, nanosleep.[ch] are finally enough like the other
83830         lib/* replacement files to compile on a few more losing systems.
83831
83832         * lib/nanosleep.h: Don't include config.h.
83833         Remove prototype from declaration of nanosleep.
83834         (PARAMS): Remove now-unneeded definition.
83835         * lib/nanosleep.c: #undef nanosleep.
83836         (rpl_nanosleep): Rename from nanosleep.
83837
83838 2000-02-10  Jim Meyering  <meyering@lucent.com>
83839
83840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83841         gnu_nanosleep to rpl_nanosleep.
83842
83843 2000-02-09  Jim Meyering  <meyering@lucent.com>
83844
83845         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83846         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83847
83848 2000-02-08  Akim Demaille  <akim@epita.fr>
83849
83850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83851         `[' and `]' and remove uses of `changequote'.
83852         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83853         (AC_SYS_LARGEFILE): Likewise.
83854         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83855         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83856         of changequote.
83857         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83858         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83859         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83860         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83861
83862 2000-02-05  Jim Meyering  <meyering@lucent.com>
83863
83864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83865         Remove explicit use of AC_HEADER_TIME.  It is required by
83866         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83867         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83868         in autoconf whereby the expansion of the latter ended up preceding
83869         the expansion of its prerequisite, AC_HEADER_TIME.
83870         Reported by Volker Borchert.
83871
83872 2000-02-03  Jim Meyering  <meyering@lucent.com>
83873
83874         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83875
83876 2000-02-03  Jim Meyering  <meyering@lucent.com>
83877
83878         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83879         rather than with `#if HAVE_UTMPNAME'.
83880
83881 2000-02-02  Jim Meyering  <meyering@lucent.com>
83882
83883         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83884         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83885         Reported by Eli Zaretskii.
83886
83887 2000-02-01  Jim Meyering  <meyering@lucent.com>
83888
83889         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83890
83891 2000-01-31  Jim Meyering  <meyering@lucent.com>
83892
83893         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83894         functions.  Add the time.h and sys/time.h headers along with the
83895         AC_REQUIRE'ment of AC_HEADER_TIME.
83896
83897 2000-01-31  Jim Meyering  <meyering@lucent.com>
83898
83899         * lib/nanosleep.h (nanosleep): Guard declaration with
83900         `#if ! HAVE_DECL_NANOSLEEP'.
83901         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83902         the declaration in that vendor's sys/timers.h.
83903         Reported by Christian Krackowizer.
83904
83905         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83906         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83907         (ISPRINT): Likewise.
83908         Reported by Tom Tromey.
83909
83910 2000-01-30  Jim Meyering  <meyering@lucent.com>
83911
83912         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83913
83914         * m4/prereq.m4 (utmp_includes): Define.
83915         Check for ut_user and ut_name members in both struct utmpx
83916         and struct utmp.
83917
83918 2000-01-30  Jim Meyering  <meyering@lucent.com>
83919
83920         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83921         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83922         header files where only utmpx.ut_user is declared.
83923
83924         * lib/readutmp.h (UT_USER): Define.
83925
83926 2000-01-29  Jim Meyering  <meyering@lucent.com>
83927
83928         * m4/lib-check.m4: New file containing library-related checks from
83929         fileutils and sh-utils (textutils had none).
83930
83931 2000-01-28  Jim Meyering  <meyering@lucent.com>
83932
83933         * m4/perl.m4: Change format of warning message to look more like that
83934         from the missing script.  Suggestion from François Pinard.
83935
83936 2000-01-25  Jim Meyering  <meyering@lucent.com>
83937
83938         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83939         well as time.h in the compile check.
83940         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83941         Fix typo in cross-compiling case: s/yes/no/.
83942
83943 2000-01-23  Jim Meyering  <meyering@lucent.com>
83944
83945         * m4/jm-macros.m4: Move df-related tests here from
83946         fileutils/configure.in
83947
83948         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83949         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83950
83951         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83952         s/space/ac_fsusage_space/.
83953         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83954
83955         * m4/ftruncate.m4: New file (derived from part of
83956         fileutils/configure.in).
83957         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83958         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83959
83960         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83961         AC_SUBST these here, rather than just in sh-util/configure.in, so
83962         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83963         all the same.
83964         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83965         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83966         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83967         (AC_SUBST(POW_LIBM)): Likewise.
83968         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83969
83970 2000-01-23  Jim Meyering  <meyering@lucent.com>
83971
83972         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83973         obstack.c.
83974
83975 2000-01-22  Jim Meyering  <meyering@lucent.com>
83976
83977         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83978
83979         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83980
83981         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83982         configure.in
83983         (AC_CHECK_HEADERS): Likewise for sh-utils.
83984         (AC_CHECK_HEADERS): Likewise for textutils.
83985         Merge the three lists of headers.
83986
83987         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83988         from fileutils' configure.in.
83989
83990         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83991         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83992         check-decl.m4.
83993
83994         * m4/check-decl.m4: Use #if rather than #ifdef.
83995         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83996         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83997         (_jm_DECL_HEADERS): Define new function.
83998         (jm_CHECK_DECLARATIONS): Require it.
83999
84000 2000-01-22  Jim Meyering  <meyering@lucent.com>
84001
84002         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84003         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84004         Required for some AIX systems.  Reported by Christian Krackowizer.
84005         [TESTING] (main): New function.
84006
84007         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84008         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84009         letters.
84010
84011         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84012         iswprint.
84013
84014         * lib/strverscmp.c (ISDIGIT): Define.
84015         (strverscmp): Use ISDIGIT, not isdigit.
84016
84017 2000-01-19  Jim Meyering  <meyering@lucent.com>
84018
84019         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84020         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84021         defines `struct timespec' in <sys/time.h>
84022
84023         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84024         Thanks to Akim for explaining.
84025
84026 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84027
84028         * lib/nanosleep.c (nanosleep):
84029         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84030         POSIX.1 doesn't require SA_INTERRUPT and some systems
84031         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84032         it's been part of POSIX.1 since day 1 (in 1988).
84033
84034 2000-01-17  Jim Meyering  <meyering@lucent.com>
84035
84036         * lib/interlock: Remove unused file.  Reported by François Pinard.
84037
84038 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84039
84040         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84041         alert, backslash, formfeed, and vertical tab unnecessarily in
84042         shell quoting style.
84043
84044 2000-01-16  Jim Meyering  <meyering@lucent.com>
84045
84046         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84047         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84048         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84049         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84050
84051 2000-01-16  Jim Meyering  <meyering@lucent.com>
84052
84053         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84054         because the latter didn't work.
84055
84056 2000-01-15  Jim Meyering  <meyering@lucent.com>
84057
84058         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84059         (AC_REPLACE_FUNCS): Add memcpy and memset.
84060         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84061         Add strpbrk.
84062         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84063
84064 2000-01-12  Jim Meyering  <meyering@lucent.com>
84065
84066         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84067         (jm_PREREQ): Use it.
84068         (jm_PREREQ_READUTMP): New macro.
84069         (jm_PREREQ): Use it.
84070
84071 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84072
84073         Quote multibyte characters correctly.
84074         * m4/c-bs-a.m4: New file.
84075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84076         (jm_PREREQ): Use it.
84077
84078 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84079
84080         * m4/uintmax_t.m4: Port to autoconf 2.13.
84081
84082 2000-01-08  Jim Meyering  <meyering@ascend.com>
84083
84084         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84085         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84086
84087 2000-01-04  Jim Meyering  <meyering@ascend.com>
84088
84089         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84090         jm_STRUCT_DIRENT_D_TYPE.
84091         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84092         jm_STRUCT_DIRENT_D_INO.
84093         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84094         jm_STRUCT_UTIMBUF.
84095         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84096         renamings.
84097         * m4/utime.m4: Likewise.
84098
84099         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84100         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84101
84102 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84103
84104         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84105         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84106
84107 2000-01-02  Jim Meyering  <meyering@ascend.com>
84108
84109         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84110         remember if this is necessary.
84111
84112 1999-12-26  Jim Meyering  <meyering@ascend.com>
84113
84114         * m4/jm-macros.m4: Use it here.
84115         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84116
84117 1999-12-23  Jim Meyering  <meyering@ascend.com>
84118
84119         * m4/jm-macros.m4: Check for clock_gettime (moved from
84120         fileutils/configure.in)
84121         Check for gettimeofday.
84122
84123 1999-12-20  Jim Meyering  <meyering@ascend.com>
84124
84125         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84126         autoconf-2.14a-1999-12-20.
84127
84128 1999-12-19  Jim Meyering  <meyering@ascend.com>
84129
84130         * m4/lstat-slash.m4: New file.
84131         * m4/jm-macros.m4: Use the new macro:
84132         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84133
84134 1999-12-07  Jim Meyering  <meyering@ascend.com>
84135
84136         * m4/perl.m4: Require that File::Compare be available, too.
84137         Too many systems seem to lack it.
84138
84139         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84140         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84141
84142 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84143
84144         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84145         problem with the QNX 4.25 shell, which doesn't propagate exit
84146         status of failed commands inside shell assignments.
84147
84148 1999-11-17  Jim Meyering  <meyering@ascend.com>
84149
84150         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84151
84152 1999-11-07  Jim Meyering  <meyering@ascend.com>
84153
84154         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84155
84156 1999-11-06  Jim Meyering  <meyering@ascend.com>
84157
84158         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84159         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84160
84161 1999-11-05  Jim Meyering  <meyering@ascend.com>
84162
84163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84164         configure.in of textutils, fileutils, and sh-utils into this one
84165         (shared between those packages) file.
84166         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84167         AC_STRUCT_ST_BLKSIZE.
84168
84169 1999-11-03  Jim Meyering  <meyering@ascend.com>
84170
84171         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84172         of AC_CHECK_TYPE checks includes unistd.h.
84173         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84174         Suggestion from Akim Demaille.
84175
84176 1999-10-30  Jim Meyering  <meyering@ascend.com>
84177
84178         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84179         m4-quoted string.
84180         * m4/ls-mntd-fs.m4: Likewise.
84181         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84182         * m4/jm-winsz1.m4: Likewise.
84183
84184         * m4/const.m4: Remove file, since the fix made it into the experimental
84185         version of autoconf.
84186         * m4/mktime.m4: Likewise.
84187
84188         * m4/check-type.m4: Remove file, now that the latest version of
84189         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84190
84191         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84192         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84193         AC_CHECK_TYPE.
84194
84195 1999-10-04  Jim Meyering  <meyering@ascend.com>
84196
84197         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84198
84199 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84200
84201         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84202         2.95.1 bug with HP-UX 10.20.
84203
84204 1999-09-17  Jim Meyering  <meyering@ascend.com>
84205
84206         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84207         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84208         due to missing strdup (against sh-utils-2.0).
84209
84210 1999-08-29  Jim Meyering  <meyering@ascend.com>
84211
84212         * m4/jm-macros.m4: Require jm_BISON.
84213         * m4/bison.m4: New file.
84214
84215 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84216
84217         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84218         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84219
84220 1999-08-05  Jim Meyering  <meyering@ascend.com>
84221
84222         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84223         to avoid conflicts with `conftest' on 8+3 filesystems.
84224         Suggestion from Eli Zaretskii.
84225
84226 1999-08-04  Jim Meyering  <meyering@ascend.com>
84227
84228         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84229         fileutils and sh-utils (textutils's getline test was inadequate).
84230         (AM_FUNC_GETLINE): Run this test.
84231         (AC_CHECK_FUNCS): Check for getdelim.
84232         Reported by Bob Proulx.
84233
84234 1999-08-02  Jim Meyering  <meyering@ascend.com>
84235
84236         * m4/jm-macros.m4: Add a comment.
84237
84238 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84239
84240         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84241         <inttypes.h> defines strtoumax as a macro (and not as a
84242         function).
84243
84244 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84245
84246         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84247         that we can shift, multiply and divide unsigned long long
84248         values; Ultrix cc can't do it.
84249
84250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84251
84252         * m4/mktime.m4: New file, which is a preview of what should appear
84253         in the next public autoconf release.
84254
84255 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84256
84257         * m4/lfs.m4: Remove this file.
84258         * m4/largefile.m4: New file.  It contains the old contents of
84259         lfs.m4, except that all names with prefix AC_LFS have been
84260         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84261         compatible with future autoconf versions.  Also, some minor m4
84262         quoting problems have been fixed.
84263
84264 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84265
84266         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84267         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84268         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84269         and simplify the shell code.
84270
84271 1999-08-01  Jim Meyering  <meyering@ascend.com>
84272
84273         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84274         m4.
84275
84276 1999-07-20  Jim Meyering  <meyering@ascend.com>
84277
84278         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84279
84280 1999-07-15  Jim Meyering  <meyering@ascend.com>
84281
84282         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84283
84284 1999-05-22  Jim Meyering  <meyering@ascend.com>
84285
84286         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84287
84288 1999-05-20  Jim Meyering  <meyering@ascend.com>
84289
84290         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84291         Add a colon after each `then' in case $4 is empty.
84292
84293 1999-05-16  Jim Meyering  <meyering@ascend.com>
84294
84295         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84296
84297 1999-05-10  Jim Meyering  <meyering@ascend.com>
84298
84299         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84300
84301         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84302         AC_FUNC_MKTIME.
84303
84304 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84305
84306         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84307
84308 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84309
84310         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84311         not CPPFLAGS, so that linking works correctly in IRIX.
84312
84313 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84314
84315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84316
84317 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84318
84319         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84320         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84322         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84323         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84324
84325         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84326
84327 1999-04-20  Jim Meyering  <meyering@ascend.com>
84328
84329         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84330         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84331         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84332
84333 1999-04-18  Jim Meyering  <meyering@ascend.com>
84334
84335         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84336         * m4/jm-macros.m4: Use it.
84337
84338 1999-04-06  Jim Meyering  <meyering@ascend.com>
84339
84340         * m4/strftime.m4: Remove test for %f.
84341
84342 1999-03-29  Jim Meyering  <meyering@ascend.com>
84343
84344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84345         superset of the AC_TYPE_* checks in the textutils, fileutils,
84346         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84347         AC_TYPE_PID_T.
84348
84349 1999-03-28  Jim Meyering  <meyering@ascend.com>
84350
84351         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84352         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84353         replaced e.g., in the *.sh files of the sh-utils.
84354
84355 1999-03-20  Jim Meyering  <meyering@ascend.com>
84356
84357         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84358         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84359         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84360
84361 1999-03-19  Jim Meyering  <meyering@ascend.com>
84362
84363         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84364
84365 1999-03-12  Jim Meyering  <meyering@ascend.com>
84366
84367         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84368
84369 1999-03-07  Jim Meyering  <meyering@ascend.com>
84370
84371         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84372         declared.
84373
84374 1999-02-17  Jim Meyering  <meyering@ascend.com>
84375
84376         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84377         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84378
84379 1999-02-07  Jim Meyering  <meyering@ascend.com>
84380
84381         * m4/group-member.m4: New file -- extracted from sh-utils'
84382         configure.in.
84383
84384         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84385         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84386
84387 1999-02-06  Jim Meyering  <meyering@ascend.com>
84388
84389         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84390         * m4/fnmatch.m4: Likewise.
84391         * m4/getgroups.m4: Likewise.
84392         * m4/lstat.m4: Likewise.
84393         * m4/malloc.m4: Likewise.
84394         * m4/putenv.m4: Likewise.
84395         * m4/realloc.m4: Likewise.
84396         * m4/regex.m4: Likewise.
84397         * m4/stat.m4: Likewise.
84398         * m4/strftime.m4: Likewise.
84399         Suggestion from Alain Magloire.
84400
84401         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84402         * m4/fnmatch.m4: Likewise.
84403         * m4/getgroups.m4: Likewise.
84404         * m4/getline.m4: Likewise.
84405         * m4/lstat.m4: Likewise.
84406         * m4/malloc.m4: Likewise.
84407         * m4/memcmp.m4: Likewise.
84408         * m4/putenv.m4: Likewise.
84409         * m4/realloc.m4: Likewise.
84410         * m4/regex.m4: Likewise.
84411         * m4/stat.m4: Likewise.
84412         * m4/strftime.m4: Likewise.
84413         Suggestion from Alain Magloire.
84414
84415         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84416         an argument.
84417
84418         * m4/regex.m4: Add a run-time Test for proper operation of
84419         re_compile_pattern.
84420
84421 1999-01-31  Jim Meyering  <meyering@ascend.com>
84422
84423         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84424
84425 1999-01-30  Jim Meyering  <meyering@ascend.com>
84426
84427         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84428
84429         * m4/jm-mktime.m4: Make this a wrapper around the official
84430         AM_FUNC_MKTIME rather than my private copy, now that the official one
84431         is up to date.
84432         * m4/mktime.m4: Remove file.
84433
84434         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84435         * m4/uptime.m4: Likewise.
84436         * m4/uintmax_t.m4: Likewise.
84437
84438 1999-01-28  Jim Meyering  <meyering@ascend.com>
84439
84440         * m4/jm-macros.m4: Use jm_AFS.
84441         * m4/afs.m4: New file (from fileutils' configure.in).
84442
84443         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84444         * m4/chown.m4: Likewise.
84445         * m4/d-ino.m4: Likewise.
84446         * m4/d-type.m4: Likewise.
84447         * m4/fnmatch.m4: Likewise.
84448         * m4/getgroups.m4: Likewise.
84449         * m4/gettext.m4: Likewise.
84450         * m4/jm-mktime.m4: Likewise.
84451         * m4/jm-winsz2.m4: Likewise.
84452         * m4/lcmessage.m4: Likewise.
84453         * m4/ls-mntd-fs.m4: Likewise.
84454         * m4/malloc.m4: Likewise.
84455         * m4/memcmp.m4: Likewise.
84456         * m4/putenv.m4: Likewise.
84457         * m4/realloc.m4: Likewise.
84458         * m4/st_mtim.m4: Likewise.
84459         * m4/strftime.m4: Likewise.
84460
84461 1999-01-16  Jim Meyering  <meyering@ascend.com>
84462
84463         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84464         (ARGMATCH_DIE_DECL): Define.
84465
84466 1999-01-12  Jim Meyering  <meyering@ascend.com>
84467
84468         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84469         Reported by Lars Hecking.
84470
84471 1999-01-10  Jim Meyering  <meyering@ascend.com>
84472
84473         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84474         gross kludge.
84475         * m4/inttypes_h.m4: Likewise.
84476         * m4/lstat.m4: Likewise.
84477         * m4/malloc.m4: Likewise.
84478         * m4/readdir.m4: Likewise.
84479         * m4/realloc.m4: Likewise.
84480         * m4/st_dm_mode.m4: Likewise.
84481         * m4/stat.m4: Likewise.
84482         * m4/utimbuf.m4: Likewise.
84483         * m4/utimes.m4: Likewise.
84484
84485         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84486         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84487         comments in config.h.in are meaningful.
84488
84489         * m4/jm-macros.m4: Require autoconf-2.13 here.
84490
84491         * m4/regex.m4: By default, don't use the included regex.c on systems
84492         with glibc 2.  Suggestion from Uli Drepper.
84493
84494 1999-01-02  Jim Meyering  <meyering@ascend.com>
84495
84496         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84497
84498 1998-12-18  Jim Meyering  <meyering@ascend.com>
84499
84500         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84501         Based on a suggestion from Lars Hecking.
84502
84503 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84504
84505         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84506
84507 1998-11-16  Jim Meyering  <meyering@ascend.com>
84508
84509         * m4/lfs.m4: Double-quote the `uname...` expression.
84510
84511 1998-11-14  Jim Meyering  <meyering@ascend.com>
84512
84513         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84514         * m4/stat.m4: Likewise.
84515
84516 1998-11-03  Jim Meyering  <meyering@ascend.com>
84517
84518         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84519         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84520
84521 1998-10-18  Jim Meyering  <meyering@ascend.com>
84522
84523         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84524
84525 1998-10-17  Jim Meyering  <meyering@ascend.com>
84526
84527         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84528         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84529         calls for those previously hard-coded headers.  Instead, take a new
84530         parameter.
84531         (jm_CHECK_DECLARATIONS): Reflect interface change.
84532         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84533         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84534
84535         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84536
84537 1998-10-14  Jim Meyering  <meyering@ascend.com>
84538
84539         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84540         instead of "TZ=America/Vancouver".  From Paul Eggert.
84541
84542 1998-10-11  Jim Meyering  <meyering@ascend.com>
84543
84544         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84545         This adds a test for a recently added compatibility fix for mktime.c.
84546         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84547
84548 1998-09-27  Jim Meyering  <meyering@ascend.com>
84549
84550         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84551
84552         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84553         ../configure.in, including a change from Gordon Matzigkeit to allow
84554         cross-compiling for the Hurd.
84555
84556         * m4/glibc.m4: New file/macro to test for the GNU C Library
84557         versions 1 and 2.  From Gordon Matzigkeit.
84558         Indent.
84559
84560 1998-09-21  Jim Meyering  <meyering@ascend.com>
84561
84562         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84563
84564 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84565
84566         Port nanosecond-resolution times to UnixWare 2.1.2 and
84567         pedantic Solaris 2.6.
84568
84569         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84570         AC_STRUCT_ST_MTIM.
84571         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84572         Generate name of ns member, instead of just 1 or undef.
84573         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84574
84575 1998-08-15  Jim Meyering  <meyering@ascend.com>
84576
84577         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84578         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84579         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84580         instead of jm_TYPE_SSIZE_T.
84581
84582 1998-08-12  Jim Meyering  <meyering@ascend.com>
84583
84584         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84585
84586 1998-08-02  Jim Meyering  <meyering@ascend.com>
84587
84588         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84589         in acconfig.h manually.
84590
84591 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84592
84593         * m4/st_mtim.m4: New file.
84594
84595 1998-07-28  Jim Meyering  <meyering@ascend.com>
84596
84597         * m4/utimes.m4: Undef stat.
84598
84599 1998-07-25  Jim Meyering  <meyering@ascend.com>
84600
84601         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84602         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84603
84604 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84605
84606         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84607         uid and gid actually remain unchanged.
84608
84609 1998-07-07  Jim Meyering  <meyering@ascend.com>
84610
84611         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84612
84613 1998-07-04  Jim Meyering  <meyering@ascend.com>
84614
84615         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84616         to prove that this macro can be used in packages without regex.c.
84617
84618 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84619
84620         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84621         is to be used.
84622
84623 1998-07-03  Jim Meyering  <meyering@ascend.com>
84624
84625         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84626
84627         * m4/gettext.m4: New file -- from gettext-0.10.35.
84628         * m4/lcmessage.m4: Likewise.
84629         * m4/progtest.m4: Likewise.
84630
84631         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84632         * m4/jm-macros.m4: Require the new macro.
84633
84634 1998-06-29  Jim Meyering  <meyering@ascend.com>
84635
84636         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84637         for the definition of NGROUPS (used in a system header included
84638         by sys/mount.h).
84639
84640 1998-06-28  Jim Meyering  <meyering@ascend.com>
84641
84642         * m4/ls-mntd-fs.m4: New file.
84643         * m4/fstypename.m4: New file.
84644
84645         * m4/jm-macros.m4: Require the new macro.
84646         * m4/jm-glibc-io.m4: New file.
84647
84648 1998-05-19  Jim Meyering  <meyering@ascend.com>
84649
84650         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84651         * m4/lchown.m4: New file.
84652
84653         * m4/Makefile.am.in: New file.
84654         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84655
84656 1998-05-14  Jim Meyering  <meyering@ascend.com>
84657
84658         * m4/Makefile.am (EXTRA_DIST): Add them.
84659         * m4/jm-macros.m4: New file.
84660         * m4/utimbuf.m4: New file.
84661
84662 1998-05-12  Jim Meyering  <meyering@ascend.com>
84663
84664         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84665
84666 1998-05-11  Jim Meyering  <meyering@ascend.com>
84667
84668         * m4/isc-posix.m4: New file.
84669
84670 1998-05-10  Jim Meyering  <meyering@ascend.com>
84671
84672         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84673
84674 1998-05-09  Jim Meyering  <meyering@ascend.com>
84675
84676         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84677         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84678         with automake.
84679
84680         * m4/ssize_t.m4: New file.
84681         * m4/mktime.m4: Remove file -- the new automake has this now.
84682
84683 1998-04-26  Jim Meyering  <meyering@ascend.com>
84684
84685         * m4/assert.m4: New file.
84686         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84687
84688 1998-04-05  Jim Meyering  <meyering@ascend.com>
84689
84690         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84691         (jm_PREREQ): Use it here.
84692
84693 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84694
84695         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84696         in acconfig.h.
84697
84698 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84699
84700         * m4/prereq.m4: New file.
84701         * m4/error.m4: New file.
84702         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84703
84704 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84705
84706         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84707         cache-check for the same variable -- that defeated the purpose of
84708         the test; the test program was never run.  This was a problem only
84709         on systems with losing getline functions -- HP-UX 10.20 is one.
84710         Reported by Bjorn Helgaas.
84711
84712 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84713
84714         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84715
84716 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84717
84718         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84719
84720         * m4/const.m4: New file.  Use an initializer in this declaration
84721         typedef int charset[2]; const charset x;
84722         Reported by Bob Glickstein.
84723
84724 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84725
84726         * m4/chown.m4: Fix reversed types on -1 args to chown.
84727         From Kaveh Ghazi.
84728
84729 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84730
84731         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84732         Add lseek and memchr.
84733
84734         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84735         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84736         have a 20-character limit on names.
84737
84738 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84739
84740         * m4/inttypes_h.m4: New file.
84741         * m4/uintmax_t.m4: New file.
84742         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84743
84744
84745         -----
84746
84747         Local Variables:
84748         coding: utf-8
84749         End:
84750
84751         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84752
84753         Copying and distribution of this file, with or without
84754         modification, are permitted provided the copyright notice
84755         and this notice are preserved.