Update or remove references to gettext release.
[gnulib.git] / ChangeLog
1 2009-01-14  Bruno Haible  <bruno@clisp.org>
2
3         * m4/csharp.m4: Don't mention gettext on the serial number line.
4         * m4/csharpexec.m4: Likewise.
5         * m4/eaccess.m4: Likewise.
6         * m4/javaexec.m4: Likewise.
7         * m4/sig_atomic_t.m4: Likewise.
8         * m4/tmpdir.m4: Likewise.
9         * m4/intldir.m4: Bump gettext version.
10         * m4/lib-ld.m4: Likewise.
11
12 2009-01-14  Bruno Haible  <bruno@clisp.org>
13
14         * lib/progname.c (set_program_name): Add more comments.
15         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16
17 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18
19         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20         were sys/stat.h does not define it.
21
22 2009-01-14  Jim Meyering  <meyering@redhat.com>
23
24         many *.m4 files: improve m4 quoting
25         99% of this change was performed by running the following commands:
26         git ls-files | grep '\.m4$' | xargs perl -pi \
27           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
28           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32         The remainder were to add Copyright dates, increment serial numbers,
33         undo some changes in comments, exclude m4/intl.m4, and add quotes
34         around the "1" in ",1" where the unusual spacing prohibited the
35         above regexps from doing the job.  For more details, see
36         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37         * m4/acl.m4: Modified.
38         * m4/afs.m4: Likewise.
39         * m4/alloca.m4: Likewise.
40         * m4/argp.m4: Likewise.
41         * m4/argz.m4: Likewise.
42         * m4/atexit.m4: Likewise.
43         * m4/bison-i18n.m4: Likewise.
44         * m4/bison.m4: Likewise.
45         * m4/byteswap.m4: Likewise.
46         * m4/c-stack.m4: Likewise.
47         * m4/c-strtod.m4: Likewise.
48         * m4/calloc.m4: Likewise.
49         * m4/canonicalize-lgpl.m4: Likewise.
50         * m4/chown.m4: Likewise.
51         * m4/clock_time.m4: Likewise.
52         * m4/codeset.m4: Likewise.
53         * m4/copy-file.m4: Likewise.
54         * m4/csharp.m4: Likewise.
55         * m4/csharpcomp.m4: Likewise.
56         * m4/csharpexec.m4: Likewise.
57         * m4/d-ino.m4: Likewise.
58         * m4/d-type.m4: Likewise.
59         * m4/dirfd.m4: Likewise.
60         * m4/double-slash-root.m4: Likewise.
61         * m4/eaccess.m4: Likewise.
62         * m4/eealloc.m4: Likewise.
63         * m4/environ.m4: Likewise.
64         * m4/errno_h.m4: Likewise.
65         * m4/euidaccess.m4: Likewise.
66         * m4/execute.m4: Likewise.
67         * m4/fatal-signal.m4: Likewise.
68         * m4/fchdir.m4: Likewise.
69         * m4/fcntl_h.m4: Likewise.
70         * m4/fileblocks.m4: Likewise.
71         * m4/filenamecat.m4: Likewise.
72         * m4/findprog.m4: Likewise.
73         * m4/flexmember.m4: Likewise.
74         * m4/fnmatch.m4: Likewise.
75         * m4/fopen.m4: Likewise.
76         * m4/fpending.m4: Likewise.
77         * m4/fprintf-posix.m4: Likewise.
78         * m4/free.m4: Likewise.
79         * m4/frexp.m4: Likewise.
80         * m4/frexpl.m4: Likewise.
81         * m4/fsusage.m4: Likewise.
82         * m4/ftruncate.m4: Likewise.
83         * m4/gc-camellia.m4: Likewise.
84         * m4/gc-random.m4: Likewise.
85         * m4/gc.m4: Likewise.
86         * m4/getaddrinfo.m4: Likewise.
87         * m4/getcwd-abort-bug.m4: Likewise.
88         * m4/getcwd-path-max.m4: Likewise.
89         * m4/getdate.m4: Likewise.
90         * m4/getdomainname.m4: Likewise.
91         * m4/getgroups.m4: Likewise.
92         * m4/gethostname.m4: Likewise.
93         * m4/gethrxtime.m4: Likewise.
94         * m4/getline.m4: Likewise.
95         * m4/getloadavg.m4: Likewise.
96         * m4/getndelim2.m4: Likewise.
97         * m4/getpass.m4: Likewise.
98         * m4/gettext.m4: Likewise.
99         * m4/gettime.m4: Likewise.
100         * m4/gettimeofday.m4: Likewise.
101         * m4/gnulib-common.m4: Likewise.
102         * m4/group-member.m4: Likewise.
103         * m4/host-os.m4: Likewise.
104         * m4/iconv.m4: Likewise.
105         * m4/iconv_open.m4: Likewise.
106         * m4/inet_ntop.m4: Likewise.
107         * m4/inet_pton.m4: Likewise.
108         * m4/inline.m4: Likewise.
109         * m4/intldir.m4: Likewise.
110         * m4/intlmacosx.m4: Likewise.
111         * m4/intmax.m4: Likewise.
112         * m4/intmax_t.m4: Likewise.
113         * m4/inttypes.m4: Likewise.
114         * m4/inttypes_h.m4: Likewise.
115         * m4/inttypes-pri.m4: Likewise.
116         * m4/isapipe.m4: Likewise.
117         * m4/isnand.m4: Likewise.
118         * m4/isnanf.m4: Likewise.
119         * m4/isnanl.m4: Likewise.
120         * m4/javacomp.m4: Likewise.
121         * m4/javaexec.m4: Likewise.
122         * m4/jm-winsz1.m4: Likewise.
123         * m4/jm-winsz2.m4: Likewise.
124         * m4/lchown.m4: Likewise.
125         * m4/lcmessage.m4: Likewise.
126         * m4/ldexpl.m4: Likewise.
127         * m4/lib-ld.m4: Likewise.
128         * m4/lib-link.m4: Likewise.
129         * m4/libsigsegv.m4: Likewise.
130         * m4/link-follow.m4: Likewise.
131         * m4/localcharset.m4: Likewise.
132         * m4/locale-fr.m4: Likewise.
133         * m4/locale-ja.m4: Likewise.
134         * m4/locale-tr.m4: Likewise.
135         * m4/locale-zh.m4: Likewise.
136         * m4/lock.m4: Likewise.
137         * m4/longlong.m4: Likewise.
138         * m4/ls-mntd-fs.m4: Likewise.
139         * m4/lstat.m4: Likewise.
140         * m4/malloc.m4: Likewise.
141         * m4/mathl.m4: Likewise.
142         * m4/mbrtowc.m4: Likewise.
143         * m4/mbstate_t.m4: Likewise.
144         * m4/mbswidth.m4: Likewise.
145         * m4/memchr.m4: Likewise.
146         * m4/memcmp.m4: Likewise.
147         * m4/memcpy.m4: Likewise.
148         * m4/memmem.m4: Likewise.
149         * m4/memmove.m4: Likewise.
150         * m4/mempcpy.m4: Likewise.
151         * m4/memrchr.m4: Likewise.
152         * m4/memset.m4: Likewise.
153         * m4/minmax.m4: Likewise.
154         * m4/mkdir-slash.m4: Likewise.
155         * m4/mkdtemp.m4: Likewise.
156         * m4/mktime.m4: Likewise.
157         * m4/mmap-anon.m4: Likewise.
158         * m4/mountlist.m4: Likewise.
159         * m4/nanosleep.m4: Likewise.
160         * m4/nls.m4: Likewise.
161         * m4/nocrash.m4: Likewise.
162         * m4/open.m4: Likewise.
163         * m4/openat.m4: Likewise.
164         * m4/openmp.m4: Likewise.
165         * m4/pathmax.m4: Likewise.
166         * m4/perl.m4: Likewise.
167         * m4/physmem.m4: Likewise.
168         * m4/pipe.m4: Likewise.
169         * m4/po.m4: Likewise.
170         * m4/poll.m4: Likewise.
171         * m4/posixtm.m4: Likewise.
172         * m4/posixver.m4: Likewise.
173         * m4/printf-frexp.m4: Likewise.
174         * m4/printf-frexpl.m4: Likewise.
175         * m4/printf-posix.m4: Likewise.
176         * m4/printf-posix-rpl.m4: Likewise.
177         * m4/printf.m4: Likewise.
178         * m4/progtest.m4: Likewise.
179         * m4/putenv.m4: Likewise.
180         * m4/readline.m4: Likewise.
181         * m4/readlink.m4: Likewise.
182         * m4/readutmp.m4: Likewise.
183         * m4/realloc.m4: Likewise.
184         * m4/regex.m4: Likewise.
185         * m4/relocatable.m4: Likewise.
186         * m4/relocatable-lib.m4: Likewise.
187         * m4/rename-dest-slash.m4: Likewise.
188         * m4/rename.m4: Likewise.
189         * m4/rmdir-errno.m4: Likewise.
190         * m4/rmdir.m4: Likewise.
191         * m4/roundf.m4: Likewise.
192         * m4/roundl.m4: Likewise.
193         * m4/rpmatch.m4: Likewise.
194         * m4/save-cwd.m4: Likewise.
195         * m4/selinux-selinux-h.m4: Likewise.
196         * m4/setenv.m4: Likewise.
197         * m4/settime.m4: Likewise.
198         * m4/sig2str.m4: Likewise.
199         * m4/sig_atomic_t.m4: Likewise.
200         * m4/signalblocking.m4: Likewise.
201         * m4/signbit.m4: Likewise.
202         * m4/sigpipe.m4: Likewise.
203         * m4/sockets.m4: Likewise.
204         * m4/sockpfaf.m4: Likewise.
205         * m4/st_dm_mode.m4: Likewise.
206         * m4/stat-time.m4: Likewise.
207         * m4/stdbool.m4: Likewise.
208         * m4/stdint.m4: Likewise.
209         * m4/stdint_h.m4: Likewise.
210         * m4/stpcpy.m4: Likewise.
211         * m4/stpncpy.m4: Likewise.
212         * m4/strcase.m4: Likewise.
213         * m4/strchrnul.m4: Likewise.
214         * m4/strcspn.m4: Likewise.
215         * m4/strdup.m4: Likewise.
216         * m4/strftime.m4: Likewise.
217         * m4/strndup.m4: Likewise.
218         * m4/strnlen.m4: Likewise.
219         * m4/strpbrk.m4: Likewise.
220         * m4/strptime.m4: Likewise.
221         * m4/strsep.m4: Likewise.
222         * m4/strtod.m4: Likewise.
223         * m4/strtoimax.m4: Likewise.
224         * m4/strtok_r.m4: Likewise.
225         * m4/strtol.m4: Likewise.
226         * m4/strtoll.m4: Likewise.
227         * m4/strtoul.m4: Likewise.
228         * m4/strtoull.m4: Likewise.
229         * m4/strtoumax.m4: Likewise.
230         * m4/strverscmp.m4: Likewise.
231         * m4/threadlib.m4: Likewise.
232         * m4/timegm.m4: Likewise.
233         * m4/tm_gmtoff.m4: Likewise.
234         * m4/tmpdir.m4: Likewise.
235         * m4/tmpfile.m4: Likewise.
236         * m4/tzset.m4: Likewise.
237         * m4/uintmax_t.m4: Likewise.
238         * m4/unlinkdir.m4: Likewise.
239         * m4/unlocked-io.m4: Likewise.
240         * m4/uptime.m4: Likewise.
241         * m4/userspec.m4: Likewise.
242         * m4/utimbuf.m4: Likewise.
243         * m4/utime.m4: Likewise.
244         * m4/utimes-null.m4: Likewise.
245         * m4/utimes.m4: Likewise.
246         * m4/vararrays.m4: Likewise.
247         * m4/vasnprintf.m4: Likewise.
248         * m4/vfprintf-posix.m4: Likewise.
249         * m4/vprintf-posix.m4: Likewise.
250         * m4/wait-process.m4: Likewise.
251         * m4/wchar_t.m4: Likewise.
252         * m4/wint_t.m4: Likewise.
253         * m4/write-any-file.m4: Likewise.
254         * m4/yield.m4: Likewise.
255
256 2009-01-13  Bruno Haible  <bruno@clisp.org>
257
258         Avoid test-copy-file.sh failures when ACL support insufficient.
259         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
260         TESTS_ENVIRONMENT.
261         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
262         Reported by Jim Meyering.
263
264 2009-01-13  Bruno Haible  <bruno@clisp.org>
265
266         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
267         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
268         * modules/unistdio/u8-printf-parse (Files): Likewise.
269         * modules/unistdio/u32-printf-parse (Files): Likewise.
270         * modules/unistdio/ulc-printf-parse (Files): Likewise.
271
272 2009-01-13  Simon Josefsson  <simon@josefsson.org>
273
274         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
275         and m4/inttypes_h.m4 too.
276
277 2009-01-12  Eric Blake  <ebb9@byu.net>
278
279         tests: IRIX 6.2 cc can't compile -0.0 into .data
280         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
281         rather than at compile-time.
282         * tests/test-floorl.c (minus_zero): Likewise.
283         * tests/test-frexpl.c (minus_zero): Likewise.
284         * tests/test-isnan.c (minus_zerol): Likewise.
285         * tests/test-isnanl.h (minus_zero): Likewise.
286         * tests/test-ldexpl.c (minus_zero): Likewise.
287         * tests/test-roundl.c (minus_zero): Likewise.
288         * tests/test-signbit.c (minus_zerol): Likewise.
289         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
290         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
291         * tests/test-truncl.c (minus_zero): Likewise.
292         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
293         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
294         Reported by Tom G. Christensen and Nelson H. F. Beebe.
295
296 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
297
298         regex: fix glibc bug 9697
299         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
300         handling.
301
302 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
303
304         regex: fix glibc bug 697
305         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
306         being NULL also if there are no backreferences.
307
308 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
309
310         regex: merge glibc changes
311         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
312         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
313         re_string_skip_chars, re_string_reconstruct): Likewise.
314         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
315
316 2009-01-07  Jim Meyering  <meyering@redhat.com>
317
318         poll: filter through cppi
319         * lib/poll.c: Indent cpp directives to reflect nesting.
320
321 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
322
323         poll: don't return uninitialized
324         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
325
326 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
327
328         avoid compile failure on AIX 6.1
329         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
330         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
331
332 2009-01-04  Jim Meyering  <meyering@redhat.com>
333
334         remove duplicate inclusion of <stdio.h>
335         * tests/test-fprintf-posix.c: Likewise.
336         * tests/test-printf-posix.c: Likewise.
337         * tests/test-snprintf-posix.c: Likewise.
338         * tests/test-sprintf-posix.c: Likewise.
339         * tests/test-vasprintf-posix.c: Likewise.
340         * tests/test-vfprintf-posix.c: Likewise.
341         * tests/test-vprintf-posix.c: Likewise.
342         * tests/test-vsnprintf-posix.c: Likewise.
343         * tests/test-vsprintf-posix.c: Likewise.
344
345 2009-01-03  Jim Meyering  <meyering@redhat.com>
346
347         gnulib-tool: fix sed-based filtering
348         * gnulib-tool (func_filter_filelist): Remove extra backslash
349         in sed_fff_filter definition.
350
351 2009-01-02  Jim Meyering  <meyering@redhat.com>
352
353         strftime: avoid compilation failure on Solaris 2.6
354         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
355         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
356         Don't #define mbrlen or mbsinit, since now they're guaranteed to
357         be available.  Reported by Tom G. Christensen.  Details in
358         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
359
360 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
361             Bruno Haible  <bruno@clisp.org>
362
363         Speed up gnulib-tool by doing more string processing through shell
364         built-ins.
365         * gnulib-tool (fast_func_append): New variable.
366         (func_remove_prefix, func_remove_suffix): New functions.
367         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
368         (func_filter_filelist): New function.
369         (func_get_dependencies): Use func_remove_suffix instead of sed.
370         (func_get_automake_snippet): Use func_filter_filelist instead of a
371         subshell and sed invocation.
372
373 2009-01-01  Bruno Haible  <bruno@clisp.org>
374
375         Fix a security bug.
376         * gnulib-tool (func_import, import, update): Don't allow the characters
377         '"', '$', '`', '\' in macro arguments that become part of commands that
378         are evaluated.
379
380 2009-01-01  Bruno Haible  <bruno@clisp.org>
381
382         * gnulib-tool (func_reset_sigpipe): Add more comments.
383
384 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
385
386         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
387         func_emit_tests_Makefile_am, func_import): Abort loops early if we
388         already know the answer.
389
390 2009-01-01  Jim Meyering  <meyering@redhat.com>
391
392         * lib/version-etc.c (version_etc_va): Update copyright year.
393
394 2008-12-30  Bruno Haible  <bruno@clisp.org>
395
396         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
397         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
398         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
399
400 2008-12-29  Eric Blake  <ebb9@byu.net>
401
402         multiarch: avoid autoconf AC_REQUIRE bug
403         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
404         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
405         2.63 and older.
406         Reported by Bruno Haible, and analyzed in
407         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
408
409 2008-12-29  Bruno Haible  <bruno@clisp.org>
410
411         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
412         files in subdirectories correctly.
413         Reported by Ralf Wildenhues.
414
415 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
416
417         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
418         rather than 'join FILE -', for Solaris join.
419
420 2008-12-29  Bruno Haible  <bruno@clisp.org>
421
422         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
423         quoting.
424         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
425         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
426         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
427         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
428         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
429         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
430         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
431         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
432         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
433         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
434         * m4/nls.m4 (AM_NLS): Likewise.
435         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
436         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
437         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
438         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
439         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
440         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
441         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
442         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
443         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
444         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
445         * m4/xsize.m4 (gl_XSIZE): Likewise.
446         Suggested by Jim Meyering.
447
448 2008-11-17  Bruce Korb  <bkorb@gnu.org>
449
450         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
451         * lib/parse-duration.c: use a switch instead of cascading if's.
452
453 2008-12-29  Eric Blake  <ebb9@byu.net>
454
455         wchar.h: supply WEOF on Irix 5.3
456         * lib/wchar.in.h (wint_t): Also supply WEOF.
457         * lib/wctype.in.h (wint_t): Likewise.
458         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
459         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
460         Reported by Tom G. Christensen.
461
462 2008-12-26  Bruno Haible  <bruno@clisp.org>
463
464         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
465         i486, i586, i686.
466
467 2008-12-26  Bruno Haible  <bruno@clisp.org>
468
469         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
470
471 2008-12-26  Bruno Haible  <bruno@clisp.org>
472
473         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
474         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
475         not __STDC_CONSTANT_MACROS.
476         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
477
478 2008-12-25  Bruno Haible  <bruno@clisp.org>
479
480         Add support for universal builds to vasnprintf.
481         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
482         universal builds, guess no.
483         * modules/vasnprintf-posix (Depends-on): Add multiarch.
484         * modules/vasprintf-posix (Depends-on): Likewise.
485         * modules/fprintf-posix (Depends-on): Likewise.
486         * modules/vfprintf-posix (Depends-on): Likewise.
487         * modules/snprintf-posix (Depends-on): Likewise.
488         * modules/vsnprintf-posix (Depends-on): Likewise.
489         * modules/sprintf-posix (Depends-on): Likewise.
490         * modules/vsprintf-posix (Depends-on): Likewise.
491         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
493         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
494         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
495         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
496         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
497         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
498
499         Add support for universal builds to <inttypes.h>.
500         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
501         _SCNu64_PREFIX): In Apple
502         universal builds, define directly, using _LP64.
503         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
504         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
505         * modules/inttypes (Depends-on): Add multiarch.
506         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
507
508         Add support for universal builds to <stdint.h>.
509         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
510         universal builds, define directly, using _LP64.
511         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
512         Apple universal builds, don't test for the size and suffix of ptrdiff_t
513         and size_t.
514         * modules/stdint (Depends-on): Add multiarch.
515         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
516
517         New module 'multiarch'.
518         * modules/multiarch: New file.
519         * m4/multiarch.m4: New file.
520
521 2008-12-25  Bruno Haible  <bruno@clisp.org>
522
523         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
524
525 2008-12-25  Bruno Haible  <bruno@clisp.org>
526
527         * modules/btowc (License): Relicense under LGPLv2+.
528         * modules/mbsinit (License): Likewise.
529         * modules/mbrtowc (License): Likewise.
530         * modules/wcrtomb (License): Likewise.
531         * modules/streq (License): Likewise.
532         Reported by David Lutterkort <lutter@redhat.com>.
533
534 2008-12-23  Bruno Haible  <bruno@clisp.org>
535
536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
537
538 2008-12-23  Bruno Haible  <bruno@clisp.org>
539
540         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
542         GETADDRINFO_LIB, not in LIBS.
543         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
544         * modules/canon-host (Link): Likewise.
545         * NEWS: Mention the change.
546         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
547         GETADDRINFO_LIB.
548
549 2008-12-22  Bruno Haible  <bruno@clisp.org>
550
551         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
552         * doc/posix-functions/iswalpha_l.texi: Likewise.
553         * doc/posix-functions/iswblank_l.texi: Likewise.
554         * doc/posix-functions/iswcntrl_l.texi: Likewise.
555         * doc/posix-functions/iswctype_l.texi: Likewise.
556         * doc/posix-functions/iswdigit_l.texi: Likewise.
557         * doc/posix-functions/iswgraph_l.texi: Likewise.
558         * doc/posix-functions/iswlower_l.texi: Likewise.
559         * doc/posix-functions/iswprint_l.texi: Likewise.
560         * doc/posix-functions/iswpunct_l.texi: Likewise.
561         * doc/posix-functions/iswspace_l.texi: Likewise.
562         * doc/posix-functions/iswupper_l.texi: Likewise.
563         * doc/posix-functions/iswxdigit_l.texi: Likewise.
564         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
565         * doc/posix-functions/open_wmemstream.texi: Likewise.
566         * doc/posix-functions/swscanf.texi: Likewise.
567         * doc/posix-functions/towctrans_l.texi: Likewise.
568         * doc/posix-functions/towlower.texi: Likewise.
569         * doc/posix-functions/towlower_l.texi: Likewise.
570         * doc/posix-functions/towupper.texi: Likewise.
571         * doc/posix-functions/towupper_l.texi: Likewise.
572         * doc/posix-functions/vfwprintf.texi: Likewise.
573         * doc/posix-functions/vfwscanf.texi: Likewise.
574         * doc/posix-functions/vswscanf.texi: Likewise.
575         * doc/posix-functions/vwprintf.texi: Likewise.
576         * doc/posix-functions/vwscanf.texi: Likewise.
577         * doc/posix-functions/wcpcpy.texi: Likewise.
578         * doc/posix-functions/wcpncpy.texi: Likewise.
579         * doc/posix-functions/wcscasecmp.texi: Likewise.
580         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
581         * doc/posix-functions/wcscoll_l.texi: Likewise.
582         * doc/posix-functions/wcsdup.texi: Likewise.
583         * doc/posix-functions/wcsncasecmp.texi: Likewise.
584         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
585         * doc/posix-functions/wcsnlen.texi: Likewise.
586         * doc/posix-functions/wcsnrtombs.texi: Likewise.
587         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
588         * doc/posix-functions/wctrans_l.texi: Likewise.
589         * doc/posix-functions/wctype_l.texi: Likewise.
590         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
591         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
592         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
593         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
594         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
595         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
596         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
597         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
598         * doc/glibc-functions/wcschrnul.texi: Likewise.
599         * doc/glibc-functions/wcsftime_l.texi: Likewise.
600         * doc/glibc-functions/wcstod_l.texi: Likewise.
601         * doc/glibc-functions/wcstof_l.texi: Likewise.
602         * doc/glibc-functions/wcstol_l.texi: Likewise.
603         * doc/glibc-functions/wcstold_l.texi: Likewise.
604         * doc/glibc-functions/wcstoll_l.texi: Likewise.
605         * doc/glibc-functions/wcstoq.texi: Likewise.
606         * doc/glibc-functions/wcstoul_l.texi: Likewise.
607         * doc/glibc-functions/wcstoull_l.texi: Likewise.
608         * doc/glibc-functions/wcstouq.texi: Likewise.
609         * doc/glibc-functions/wmempcpy.texi: Likewise.
610
611 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
612             Eric Blake  <ebb9@byu.net>
613             Paolo Bonzini  <bonzini@gnu.org>
614             Bruno Haible  <bruno@clisp.org>
615
616         Make c-stack work on Haiku.
617         * lib/c-stack.c (SA_ONSTACK): Define fallback.
618         (c_stack_action): Use SA_ONSTACK flag.
619
620 2008-12-22  Bruno Haible  <bruno@clisp.org>
621
622         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
623
624 2008-12-22  Bruno Haible  <bruno@clisp.org>
625
626         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
627         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
628         being overridden.
629         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
630         New macros.
631         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
633         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
634         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
635
636 2008-12-22  Bruno Haible  <bruno@clisp.org>
637
638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
639         from test code.
640
641 2008-12-22  Eric Blake  <ebb9@byu.net>
642
643         Avoid gcc warnings on cygwin.
644         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
645         Avoid unused variable.
646         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
647         Likewise.
648
649 2008-12-22  Bruno Haible  <bruno@clisp.org>
650
651         Remove HAVE_MBRTOWC conditionals.
652         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
653         (mbscasecmp): Assume mbrtowc function.
654         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
655         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
656         * lib/mbschr.c: Include mbuiter.h unconditionally.
657         (mbschr): Assume mbrtowc function.
658         * lib/mbscspn.c: Include mbuiter.h unconditionally.
659         (mbscspn): Assume mbrtowc function.
660         * lib/mbslen.c: Include mbuiter.h unconditionally.
661         (mbslen): Assume mbrtowc function.
662         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
663         (mbsncasecmp): Assume mbrtowc function.
664         * lib/mbsnlen.c: Include mbiter.h unconditionally.
665         (mbsnlen): Assume mbrtowc function.
666         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
667         (mbspbrk): Assume mbrtowc function.
668         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
669         (mbspcasecmp): Assume mbrtowc function.
670         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
671         (mbsrchr): Assume mbrtowc function.
672         * lib/mbssep.c: Include mbuiter.h unconditionally.
673         (mbssep): Assume mbrtowc function.
674         * lib/mbsspn.c: Include mbuiter.h unconditionally.
675         (mbsspn): Assume mbrtowc function.
676         * lib/mbsstr.c: Include mbuiter.h unconditionally.
677         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
678         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
679         (mbstok_r): Assume mbrtowc function.
680         * lib/propername.c: Include mbuiter.h unconditionally.
681         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
682         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
683         (trim2): Assume mbrtowc function.
684         * lib/mbswidth.c (mbsinit): Remove fallback definition.
685         (mbsnwidth): Assume mbrtowc function.
686         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
687         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
688         fallback definitions.
689         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
690
691 2008-12-22  Bruno Haible  <bruno@clisp.org>
692
693         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
694
695 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
696
697         * modules/regex: Request emulations for the mb*/wc* functions we need.
698         * m4/regex.m4: Don't look for those functions here.
699         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
700
701 2008-12-22  Bruno Haible  <bruno@clisp.org>
702
703         * modules/fnmatch (Depends-on): Remove duplicated dependency.
704
705 2008-12-21  Bruno Haible  <bruno@clisp.org>
706
707         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
708         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
709         (Include): Remove conditionalization.
710         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
711         (Include): Remove conditionalization.
712         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
713         (Include): Remove conditionalization.
714         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
715         * m4/mbfile.m4 (gl_MBFILE): Likewise.
716         * NEWS: Mention the change.
717         Reported by Alan Hourihane <alanh@fairlite.co.uk>
718         via Sergey Poznyakoff <gray@gnu.org.ua>.
719
720 2008-12-21  Bruno Haible  <bruno@clisp.org>
721
722         * MODULES.html.sh (Extended multibyte and wide character utilities
723         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
724         wcrtomb, wcsrtombs.
725         (Support for systems lacking POSIX:2008): Add accept, bind, close,
726         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
727         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
728         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
729
730 2008-12-21  Bruno Haible  <bruno@clisp.org>
731
732         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
733
734 2008-12-21  Bruno Haible  <bruno@clisp.org>
735
736         * modules/wcsnrtombs-tests: New file.
737         * tests/test-wcsnrtombs1.sh: New file.
738         * tests/test-wcsnrtombs2.sh: New file.
739         * tests/test-wcsnrtombs3.sh: New file.
740         * tests/test-wcsnrtombs4.sh: New file.
741         * tests/test-wcsnrtombs.c: New file.
742
743         New module 'wcsnrtombs'.
744         * lib/wchar.in.h (wcsnrtombs): New declaration.
745         * lib/wcsnrtombs.c: New file.
746         * lib/wcsrtombs-state.c: New file.
747         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
748         (internal_state): Remove variable.
749         * m4/wcsnrtombs.m4: New file.
750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
751         compilation units.
752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
753         HAVE_WCSNRTOMBS.
754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
755         HAVE_WCSNRTOMBS.
756         * modules/wcsnrtombs: New file.
757         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
758         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
759
760 2008-12-21  Bruno Haible  <bruno@clisp.org>
761
762         * modules/wcsrtombs-tests: New file.
763         * tests/test-wcsrtombs1.sh: New file.
764         * tests/test-wcsrtombs2.sh: New file.
765         * tests/test-wcsrtombs3.sh: New file.
766         * tests/test-wcsrtombs4.sh: New file.
767         * tests/test-wcsrtombs.c: New file.
768
769         New module 'wcsrtombs'.
770         * lib/wchar.in.h (wcsrtombs): New declaration.
771         * lib/wcsrtombs.c: New file.
772         * m4/wcsrtombs.m4: New file.
773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
774         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
776         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
777         * modules/wcsrtombs: New file.
778         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
779         bugs.
780
781 2008-12-21  Bruno Haible  <bruno@clisp.org>
782
783         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
784         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
785         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
786         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
787         if not correct.
788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
789         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
790         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
791         m4/locale-zh.m4, m4/codeset.m4.
792         * doc/posix-functions/wcrtomb.texi: Document the bug.
793
794 2008-12-21  Bruno Haible  <bruno@clisp.org>
795
796         Work around a btowc() bug on IRIX 6.5.
797         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
798         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
799         REPLACE_WTOBC if not.
800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
801         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
802         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
803
804 2008-12-21  Bruno Haible  <bruno@clisp.org>
805
806         * modules/wcrtomb-tests: New file.
807         * tests/test-wcrtomb.sh: New file.
808         * tests/test-wcrtomb.c: New file.
809
810         New module 'wcrtomb'.
811         * lib/wchar.in.h (wcrtomb): New declaration.
812         * lib/wcrtomb.c: New file.
813         * m4/wcrtomb.m4: New file.
814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
815         HAVE_WCRTOMB.
816         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
817         HAVE_WCRTOMB.
818         * modules/wcrtomb: New file.
819         * doc/posix-functions/wcrtomb.texi: Mention the new module.
820
821 2008-12-21  Bruno Haible  <bruno@clisp.org>
822
823         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
824         * modules/mbsrtowcs (Files): Likewise.
825         * modules/wctob (Files): Likewise.
826         * modules/c-strcase-tests (Files): Likewise.
827         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
828         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
829         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
830         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
831         * modules/vasnprintf-posix-tests (Files): Likewise.
832
833 2008-12-21  William Pursell  <bill.pursell@gmail.com>
834
835         gitlog-to-changelog: pass all command-line arguments to git-log
836         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
837         it is sometimes convenient to filter the commits in various ways.
838         gitlog-to-changelog only allows --since to specify a start date,
839         but git-log itself supports many other filtering mechanisms.
840         At the moment, I want to filter by branch name.  Rather than
841         adding a --branch option to gitlog-to-changelog, it seems more
842         flexible to simply pass all options directly to git-log and let
843         git do the work.  Notice that this effectively makes --since a
844         redundant option for gitlog-to-changelog, but removing it would
845         require current usage to change since calls would then require
846         an additional '--'.
847
848 2008-12-21  Bruno Haible  <bruno@clisp.org>
849
850         * modules/mbsnrtowcs-tests: New file.
851         * tests/test-mbsnrtowcs1.sh: New file.
852         * tests/test-mbsnrtowcs2.sh: New file.
853         * tests/test-mbsnrtowcs3.sh: New file.
854         * tests/test-mbsnrtowcs4.sh: New file.
855         * tests/test-mbsnrtowcs.c: New file.
856
857         New module 'mbsnrtowcs'.
858         * lib/wchar.in.h (mbsnrtowcs): New declaration.
859         * lib/mbsnrtowcs.c: New file.
860         * lib/mbsrtowcs-state.c: New file.
861         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
862         (internal_state): Remove variable.
863         * m4/mbsnrtowcs.m4: New file.
864         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
865         compilation units.
866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
867         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
868         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
869         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
870         * modules/mbsnrtowcs: New file.
871         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
872         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
873         portability problem.
874
875 2008-12-21  Bruno Haible  <bruno@clisp.org>
876
877         Work around mbsrtowcs bug.
878         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
879         (gl_FUNC_MBSRTOWCS): Invoke it.
880         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
881         m4/locale-zh.m4.
882         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
883
884 2008-12-21  Bruno Haible  <bruno@clisp.org>
885
886         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
887
888 2008-12-21  Bruno Haible  <bruno@clisp.org>
889
890         Update doc for AIX.
891         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
892         16-bit wchar_t type.
893         * doc/posix-functions/btowc.texi: Likewise.
894         * doc/posix-functions/fgetwc.texi: Likewise.
895         * doc/posix-functions/fgetws.texi: Likewise.
896         * doc/posix-functions/fputwc.texi: Likewise.
897         * doc/posix-functions/fputws.texi: Likewise.
898         * doc/posix-functions/fwide.texi: Likewise.
899         * doc/posix-functions/fwprintf.texi: Likewise.
900         * doc/posix-functions/fwscanf.texi: Likewise.
901         * doc/posix-functions/getwchar.texi: Likewise.
902         * doc/posix-functions/getwc.texi: Likewise.
903         * doc/posix-functions/iswalnum.texi: Likewise.
904         * doc/posix-functions/iswalpha.texi: Likewise.
905         * doc/posix-functions/iswblank.texi: Likewise.
906         * doc/posix-functions/iswcntrl.texi: Likewise.
907         * doc/posix-functions/iswctype.texi: Likewise.
908         * doc/posix-functions/iswdigit.texi: Likewise.
909         * doc/posix-functions/iswgraph.texi: Likewise.
910         * doc/posix-functions/iswlower.texi: Likewise.
911         * doc/posix-functions/iswprint.texi: Likewise.
912         * doc/posix-functions/iswpunct.texi: Likewise.
913         * doc/posix-functions/iswspace.texi: Likewise.
914         * doc/posix-functions/iswupper.texi: Likewise.
915         * doc/posix-functions/iswxdigit.texi: Likewise.
916         * doc/posix-functions/mbrtowc.texi: Likewise.
917         * doc/posix-functions/mbsrtowcs.texi: Likewise.
918         * doc/posix-functions/mbstowcs.texi: Likewise.
919         * doc/posix-functions/mbtowc.texi: Likewise.
920         * doc/posix-functions/putwchar.texi: Likewise.
921         * doc/posix-functions/putwc.texi: Likewise.
922         * doc/posix-functions/swprintf.texi: Likewise.
923         * doc/posix-functions/tolower.texi: Likewise.
924         * doc/posix-functions/toupper.texi: Likewise.
925         * doc/posix-functions/towctrans.texi: Likewise.
926         * doc/posix-functions/ungetwc.texi: Likewise.
927         * doc/posix-functions/vswprintf.texi: Likewise.
928         * doc/posix-functions/wcrtomb.texi: Likewise.
929         * doc/posix-functions/wcscat.texi: Likewise.
930         * doc/posix-functions/wcschr.texi: Likewise.
931         * doc/posix-functions/wcscmp.texi: Likewise.
932         * doc/posix-functions/wcscoll.texi: Likewise.
933         * doc/posix-functions/wcscpy.texi: Likewise.
934         * doc/posix-functions/wcscspn.texi: Likewise.
935         * doc/posix-functions/wcsftime.texi: Likewise.
936         * doc/posix-functions/wcslen.texi: Likewise.
937         * doc/posix-functions/wcsncat.texi: Likewise.
938         * doc/posix-functions/wcsncmp.texi: Likewise.
939         * doc/posix-functions/wcsncpy.texi: Likewise.
940         * doc/posix-functions/wcspbrk.texi: Likewise.
941         * doc/posix-functions/wcsrchr.texi: Likewise.
942         * doc/posix-functions/wcsrtombs.texi: Likewise.
943         * doc/posix-functions/wcsspn.texi: Likewise.
944         * doc/posix-functions/wcsstr.texi: Likewise.
945         * doc/posix-functions/wcstod.texi: Likewise.
946         * doc/posix-functions/wcstof.texi: Likewise.
947         * doc/posix-functions/wcstoimax.texi: Likewise.
948         * doc/posix-functions/wcstok.texi: Likewise.
949         * doc/posix-functions/wcstold.texi: Likewise.
950         * doc/posix-functions/wcstoll.texi: Likewise.
951         * doc/posix-functions/wcstol.texi: Likewise.
952         * doc/posix-functions/wcstombs.texi: Likewise.
953         * doc/posix-functions/wcstoull.texi: Likewise.
954         * doc/posix-functions/wcstoul.texi: Likewise.
955         * doc/posix-functions/wcstoumax.texi: Likewise.
956         * doc/posix-functions/wcswidth.texi: Likewise.
957         * doc/posix-functions/wcsxfrm.texi: Likewise.
958         * doc/posix-functions/wctob.texi: Likewise.
959         * doc/posix-functions/wctomb.texi: Likewise.
960         * doc/posix-functions/wctrans.texi: Likewise.
961         * doc/posix-functions/wctype.texi: Likewise.
962         * doc/posix-functions/wcwidth.texi: Likewise.
963         * doc/posix-functions/wmemchr.texi: Likewise.
964         * doc/posix-functions/wmemcmp.texi: Likewise.
965         * doc/posix-functions/wmemcpy.texi: Likewise.
966         * doc/posix-functions/wmemmove.texi: Likewise.
967         * doc/posix-functions/wmemset.texi: Likewise.
968         * doc/posix-functions/wprintf.texi: Likewise.
969         * doc/posix-functions/wscanf.texi: Likewise.
970
971 2008-12-21  Bruno Haible  <bruno@clisp.org>
972
973         Update doc for HP-UX 11.11.
974         * doc/posix-functions/btowc.texi: Clarify that the function is missing
975         in HP-UX version 11.00, not in all versions of HP-UX 11.
976         * doc/posix-functions/fwide.texi: Likewise.
977         * doc/posix-functions/fwprintf.texi: Likewise.
978         * doc/posix-functions/fwscanf.texi: Likewise.
979         * doc/posix-functions/inet_ntop.texi: Likewise.
980         * doc/posix-functions/inet_pton.texi: Likewise.
981         * doc/posix-functions/mbrlen.texi: Likewise.
982         * doc/posix-functions/mbrtowc.texi: Likewise.
983         * doc/posix-functions/mbsinit.texi: Likewise.
984         * doc/posix-functions/mbsrtowcs.texi: Likewise.
985         * doc/posix-functions/swprintf.texi: Likewise.
986         * doc/posix-functions/swscanf.texi: Likewise.
987         * doc/posix-functions/towctrans.texi: Likewise.
988         * doc/posix-functions/vfwprintf.texi: Likewise.
989         * doc/posix-functions/vswprintf.texi: Likewise.
990         * doc/posix-functions/vwprintf.texi: Likewise.
991         * doc/posix-functions/wcrtomb.texi: Likewise.
992         * doc/posix-functions/wcsrtombs.texi: Likewise.
993         * doc/posix-functions/wcsstr.texi: Likewise.
994         * doc/posix-functions/wctob.texi: Likewise.
995         * doc/posix-functions/wctrans.texi: Likewise.
996         * doc/posix-functions/wmemchr.texi: Likewise.
997         * doc/posix-functions/wmemcmp.texi: Likewise.
998         * doc/posix-functions/wmemcpy.texi: Likewise.
999         * doc/posix-functions/wmemmove.texi: Likewise.
1000         * doc/posix-functions/wmemset.texi: Likewise.
1001         * doc/posix-functions/wprintf.texi: Likewise.
1002         * doc/posix-functions/wscanf.texi: Likewise.
1003
1004 2008-12-21  Bruno Haible  <bruno@clisp.org>
1005
1006         Work around a portability problem.
1007         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
1008         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
1009
1010 2008-12-20  Bruno Haible  <bruno@clisp.org>
1011
1012         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
1013         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
1014         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
1015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
1016         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
1017
1018         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
1019         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
1020         set.
1021         (GNULIB_defined_mbstate_t): New macro.
1022         (mbsinit): Redefine if REPLACE_MBSINIT is set.
1023         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
1024         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
1025         reuses the system's mbrtowc function but works around the bugs.
1026         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
1027         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
1028         macros.
1029         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
1030         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
1031         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
1032         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
1033         REPLACE_MBSINIT if mbsinit needs to be overridden.
1034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
1035         REPLACE_MBSINIT, REPLACE_MBRTOWC.
1036         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
1037         REPLACE_MBSINIT, REPLACE_MBRTOWC.
1038         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
1039         m4/locale-zh.m4.
1040         (Depends): Add mbsinit.
1041         * modules/mbsinit (Depends): Add mbrtowc.
1042         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
1043
1044 2008-12-20  Bruno Haible  <bruno@clisp.org>
1045
1046         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
1047         so that there are no conversion errors on AIX.
1048         * tests/test-mbsrtowcs.c (main): LIkewise.
1049
1050 2008-12-20  Bruno Haible  <bruno@clisp.org>
1051
1052         Work around wctob bug on Solaris <= 9.
1053         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
1054         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
1055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
1056         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
1057         * modules/wctob (Files): Add m4/locale-fr.m4.
1058         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
1059
1060 2008-12-20  Bruno Haible  <bruno@clisp.org>
1061
1062         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
1063         /dev/null.
1064         * tests/test-select-in.sh: Likewise.
1065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1066
1067 2008-12-20  Bruno Haible  <bruno@clisp.org>
1068
1069         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
1070         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
1071         Cygwin 1.5.x.
1072
1073 2008-12-20  Bruno Haible  <bruno@clisp.org>
1074
1075         Ensure mbstate_t is defined on HP-UX 11.11.
1076         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
1077         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
1078         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
1079         AC_USE_SYSTEM_EXTENSIONS.
1080         * modules/fnmatch (Depends-on): Add extensions.
1081         * modules/mbrlen (Depends-on): Likewise.
1082         * modules/mbrtowc (Depends-on): Likewise.
1083         * modules/mbsinit (Depends-on): Likewise.
1084         * modules/mbsrtowcs (Depends-on): Likewise.
1085         * modules/mbswidth (Depends-on): Likewise.
1086         * modules/quotearg (Depends-on): Likewise.
1087         * modules/strftime (Depends-on): Likewise.
1088
1089 2008-12-20  Bruno Haible  <bruno@clisp.org>
1090
1091         Ensure wctob is declared on IRIX 6.5.
1092         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
1093         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
1094         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
1095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
1096         of HAVE_WCTOB.
1097         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
1098         HAVE_WCTOB.
1099         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
1100
1101 2008-12-19  Bruno Haible  <bruno@clisp.org>
1102
1103         * modules/mbsrtowcs-tests: New file.
1104         * tests/test-mbsrtowcs1.sh: New file.
1105         * tests/test-mbsrtowcs2.sh: New file.
1106         * tests/test-mbsrtowcs3.sh: New file.
1107         * tests/test-mbsrtowcs4.sh: New file.
1108         * tests/test-mbsrtowcs.c: New file.
1109
1110         New module 'mbsrtowcs'.
1111         * lib/wchar.in.h (mbsrtowcs): New declaration.
1112         * lib/mbsrtowcs.c: New file.
1113         * m4/mbsrtowcs.m4: New file.
1114         * modules/mbsrtowcs: New file.
1115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
1116         HAVE_MBSRTOWCS.
1117         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
1118         HAVE_MBSRTOWCS.
1119         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
1120
1121 2008-12-19  Bruno Haible  <bruno@clisp.org>
1122
1123         New module 'mbrlen'.
1124         * lib/wchar.in.h (mbrlen): New declaration.
1125         * lib/mbrlen.c: New file.
1126         * m4/mbrlen.m4: New file.
1127         * modules/mbrlen: New file.
1128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
1129         HAVE_MBRLEN.
1130         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
1131         HAVE_MBRLEN.
1132         * doc/posix-functions/mbrlen.texi: Document the new module.
1133
1134 2008-12-19  Bruno Haible  <bruno@clisp.org>
1135
1136         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
1137         * modules/mbrtowc (Depends-on): Add verify.
1138         Suggested by Paul Eggert.
1139
1140 2008-12-18  Bruno Haible  <bruno@clisp.org>
1141
1142         * modules/mbsinit-tests: New file.
1143         * tests/test-mbsinit.sh: New file.
1144         * tests/test-mbsinit.c: New file.
1145
1146 2008-12-18  Bruno Haible  <bruno@clisp.org>
1147
1148         * modules/mbrtowc-tests: New file.
1149         * tests/test-mbrtowc1.sh: New file.
1150         * tests/test-mbrtowc2.sh: New file.
1151         * tests/test-mbrtowc3.sh: New file.
1152         * tests/test-mbrtowc4.sh: New file.
1153         * tests/test-mbrtowc.c: New file.
1154
1155         New module 'mbrtowc'.
1156         * lib/wchar.in.h (mbstate_t): Override when the system does not have
1157         mbsinit and mbrtowc.
1158         (mbrtowc): New declaration.
1159         * lib/mbrtowc.c: New file.
1160         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
1161         * modules/mbrtowc: New file.
1162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
1163         HAVE_MBRTOWC.
1164         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
1165         HAVE_MBRTOWC.
1166         * doc/posix-functions/mbrtowc.texi: Document the new module.
1167
1168 2008-12-18  Bruno Haible  <bruno@clisp.org>
1169
1170         New module 'wctob'.
1171         * lib/wchar.in.h (wctob): New declaration.
1172         * lib/wctob.c: New file.
1173         * m4/wctob.m4: New file.
1174         * modules/wctob: New file.
1175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
1176         HAVE_WCTOB.
1177         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
1178         * doc/posix-functions/wctob.texi: Document the new module.
1179
1180 2008-12-18  Bruno Haible  <bruno@clisp.org>
1181
1182         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
1183         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
1184
1185 2008-12-18  Simon Josefsson  <simon@josefsson.org>
1186
1187         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
1188         G. Christensen" <tgc@jupiterrise.com>.
1189
1190         * lib/flock.c: Need to include errno.h.  Reported by "Tom
1191         G. Christensen" <tgc@jupiterrise.com>.
1192
1193         * lib/flock.c: Need to include string.h.  Reported by "Tom
1194         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
1195         <ebb9@byu.net>.
1196
1197 2008-12-18  Bruno Haible  <bruno@clisp.org>
1198
1199         * m4/locale-ja.m4: New file, from GNU gettext.
1200
1201 2008-12-17  Bruno Haible  <bruno@clisp.org>
1202
1203         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
1204         Suggested by Eric Blake.
1205
1206 2008-12-17  Bruno Haible  <bruno@clisp.org>
1207
1208         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
1209
1210 2008-12-17  Bruno Haible  <bruno@clisp.org>
1211
1212         * lib/mbsinit.c: Include verify.h. Verify an assumption.
1213         * modules/mbsinit (Depends-on): Add verify.
1214         Suggested by Paul Eggert.
1215
1216 2008-12-17  Bruno Haible  <bruno@clisp.org>
1217
1218         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
1219         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
1220         gl_FUNC_MBRTOWC.
1221         * m4/mbiter.m4 (gl_MBITER): LIkewise.
1222         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
1223         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
1224         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
1225         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
1226         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
1227         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
1228         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
1229         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
1230         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
1231         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
1232         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
1233         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
1234         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
1235         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
1236         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1237         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
1238         * modules/trim (configure.ac): Likewise.
1239
1240 2008-12-17  Bruno Haible  <bruno@clisp.org>
1241
1242         * modules/btowc-tests: New file.
1243         * tests/test-btowc1.sh: New file.
1244         * tests/test-btowc2.sh: New file.
1245         * tests/test-btowc.c: New file.
1246
1247         New module 'btowc'.
1248         * lib/wchar.in.h (btowc): New declaration.
1249         * lib/btowc.c: New file.
1250         * m4/btowc.m4: New file.
1251         * modules/btowc: New file.
1252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
1253         HAVE_BTOWC.
1254         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
1255         * doc/posix-functions/btowc.texi: Document the new module.
1256
1257 2008-12-17  Bruno Haible  <bruno@clisp.org>
1258
1259         New module 'mbsinit'.
1260         * lib/wchar.in.h (mbsinit): New declaration.
1261         * lib/mbsinit.c: New file.
1262         * m4/mbsinit.m4: New file.
1263         * modules/mbsinit: New file.
1264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
1265         HAVE_MBSINIT.
1266         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
1267         HAVE_MBSINIT.
1268         * doc/posix-functions/mbsinit.texi: Document the new module.
1269
1270 2008-12-16  Bruno Haible  <bruno@clisp.org>
1271
1272         * lib/unistd.in.h: Add comment.
1273         * tests/test-environ.c: Don't include <stdlib.h>.
1274
1275 2008-12-16  Bruno Haible  <bruno@clisp.org>
1276
1277         * lib/parse-duration.h (parse_duration): Document return value
1278         convention.
1279         * lib/parse-duration.c: Include specification header first. Add
1280         comments.
1281         (_): Remove macro.
1282         (parse_year_month_day, parse_hour_minute_second): Move side effects
1283         outside of strchr call.
1284         (parse_non_iso8601): Move side effects outside of isspace call.
1285         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
1286         call.
1287
1288 2008-12-16  Bruno Haible  <bruno@clisp.org>
1289
1290         * tests/test-parse-duration.sh: Produce no output when the test
1291         succeeds.
1292
1293 2008-12-16  Bruno Haible  <bruno@clisp.org>
1294
1295         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
1296         expressions.
1297
1298 2008-12-15  Bruno Haible  <bruno@clisp.org>
1299
1300         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
1301         * doc/glibc-functions/flistxattr.texi: Likewise.
1302         * doc/glibc-functions/fopencookie.texi: Likewise.
1303         * doc/glibc-functions/fremovexattr.texi: Likewise.
1304         * doc/glibc-functions/fsetxattr.texi: Likewise.
1305         * doc/glibc-functions/getxattr.texi: Likewise.
1306         * doc/glibc-functions/lgetxattr.texi: Likewise.
1307         * doc/glibc-functions/listxattr.texi: Likewise.
1308         * doc/glibc-functions/llistxattr.texi: Likewise.
1309         * doc/glibc-functions/lremovexattr.texi: Likewise.
1310         * doc/glibc-functions/lsetxattr.texi: Likewise.
1311         * doc/glibc-functions/removexattr.texi: Likewise.
1312         * doc/glibc-functions/setxattr.texi: Likewise.
1313         * doc/posix-functions/open_memstream.texi: Likewise.
1314
1315 2008-12-15  Eric Blake  <ebb9@byu.net>
1316
1317         Update doc for cygwin 1.7.
1318         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
1319         functions.
1320         * doc/posix-functions/fchmodat.texi: Likewise.
1321         * doc/posix-functions/fchownat.texi: Likewise.
1322         * doc/posix-functions/fdopendir.texi: Likewise.
1323         * doc/posix-functions/fmemopen.texi: Likewise.
1324         * doc/posix-functions/freeaddrinfo.texi: Likewise.
1325         * doc/posix-functions/fstatat.texi: Likewise.
1326         * doc/posix-functions/futimens.texi: Likewise.
1327         * doc/posix-functions/gai_strerror.texi: Likewise.
1328         * doc/posix-functions/getaddrinfo.texi: Likewise.
1329         * doc/posix-functions/getnameinfo.texi: Likewise.
1330         * doc/posix-functions/if_freenameindex.texi: Likewise.
1331         * doc/posix-functions/if_indextoname.texi: Likewise.
1332         * doc/posix-functions/if_nameindex.texi: Likewise.
1333         * doc/posix-functions/if_nametoindex.texi: Likewise.
1334         * doc/posix-functions/insque.texi: Likewise.
1335         * doc/posix-functions/linkat.texi: Likewise.
1336         * doc/posix-functions/llrint.texi: Likewise.
1337         * doc/posix-functions/llrintf.texi: Likewise.
1338         * doc/posix-functions/llrintl.texi: Likewise.
1339         * doc/posix-functions/lockf.texi: Likewise.
1340         * doc/posix-functions/lrintl.texi: Likewise.
1341         * doc/posix-functions/mkdirat.texi: Likewise.
1342         * doc/posix-functions/mkfifoat.texi: Likewise.
1343         * doc/posix-functions/mknodat.texi: Likewise.
1344         * doc/posix-functions/mq_close.texi: Likewise.
1345         * doc/posix-functions/mq_getattr.texi: Likewise.
1346         * doc/posix-functions/mq_notify.texi: Likewise.
1347         * doc/posix-functions/mq_open.texi: Likewise.
1348         * doc/posix-functions/mq_receive.texi: Likewise.
1349         * doc/posix-functions/mq_send.texi: Likewise.
1350         * doc/posix-functions/mq_setattr.texi: Likewise.
1351         * doc/posix-functions/mq_timedreceive.texi: Likewise.
1352         * doc/posix-functions/mq_timedsend.texi: Likewise.
1353         * doc/posix-functions/mq_unlink.texi: Likewise.
1354         * doc/posix-functions/open_memstream.texi: Likewise.
1355         * doc/posix-functions/openat.texi: Likewise.
1356         * doc/posix-functions/posix_fadvise.texi: Likewise.
1357         * doc/posix-functions/posix_fallocate.texi: Likewise.
1358         * doc/posix-functions/posix_madvise.texi: Likewise.
1359         * doc/posix-functions/posix_memalign.texi: Likewise.
1360         * doc/posix-functions/posix_openpt.texi: Likewise.
1361         * doc/posix-functions/readlinkat.texi: Likewise.
1362         * doc/posix-functions/remque.texi: Likewise.
1363         * doc/posix-functions/renameat.texi: Likewise.
1364         * doc/posix-functions/rintl.texi: Likewise.
1365         * doc/posix-functions/sem_unlink.texi: Likewise.
1366         * doc/posix-functions/shm_open.texi: Likewise.
1367         * doc/posix-functions/shm_unlink.texi: Likewise.
1368         * doc/posix-functions/signgam.texi: Likewise.
1369         * doc/posix-functions/sigset.texi: Likewise.
1370         * doc/posix-functions/stpcpy.texi: Likewise.
1371         * doc/posix-functions/stpncpy.texi: Likewise.
1372         * doc/posix-functions/strerror.texi: Likewise.
1373         * doc/posix-functions/strtod.texi: Likewise.
1374         * doc/posix-functions/symlinkat.texi: Likewise.
1375         * doc/posix-functions/unlinkat.texi: Likewise.
1376         * doc/posix-functions/utimensat.texi: Likewise.
1377         * doc/glibc-functions/bindresvport.texi: Likewise.
1378         * doc/glibc-functions/dn_expand.texi: Likewise.
1379         * doc/glibc-functions/exp10.texi: Likewise.
1380         * doc/glibc-functions/exp10f.texi: Likewise.
1381         * doc/glibc-functions/fgetxattr.texi: Likewise.
1382         * doc/glibc-functions/flistxattr.texi: Likewise.
1383         * doc/glibc-functions/fopencookie.texi: Likewise.
1384         * doc/glibc-functions/freeifaddrs.texi: Likewise.
1385         * doc/glibc-functions/fremovexattr.texi: Likewise.
1386         * doc/glibc-functions/fsetxattr.texi: Likewise.
1387         * doc/glibc-functions/getifaddrs.texi: Likewise.
1388         * doc/glibc-functions/getxattr.texi: Likewise.
1389         * doc/glibc-functions/lgetxattr.texi: Likewise.
1390         * doc/glibc-functions/listxattr.texi: Likewise.
1391         * doc/glibc-functions/llistxattr.texi: Likewise.
1392         * doc/glibc-functions/lremovexattr.texi: Likewise.
1393         * doc/glibc-functions/lsetxattr.texi: Likewise.
1394         * doc/glibc-functions/pow10.texi: Likewise.
1395         * doc/glibc-functions/pow10f.texi: Likewise.
1396         * doc/glibc-functions/rcmd_af.texi: Likewise.
1397         * doc/glibc-functions/removexattr.texi: Likewise.
1398         * doc/glibc-functions/res_init.texi: Likewise.
1399         * doc/glibc-functions/res_mkquery.texi: Likewise.
1400         * doc/glibc-functions/res_query.texi: Likewise.
1401         * doc/glibc-functions/res_querydomain.texi: Likewise.
1402         * doc/glibc-functions/res_send.texi: Likewise.
1403         * doc/glibc-functions/rresvport_af.texi: Likewise.
1404         * doc/glibc-functions/setxattr.texi: Likewise.
1405         * doc/glibc-functions/strcasestr.texi: Likewise.
1406
1407 2008-12-15  Bruno Haible  <bruno@clisp.org>
1408
1409         Fix compilation error on OSF/1 4.0.
1410         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
1411         <sys/time.h>, simply delegate to the system header.
1412         Reported by Daniel Richard G. <oss@teragram.com>.
1413
1414 2008-12-15  Bruno Haible  <bruno@clisp.org>
1415
1416         * doc/posix-functions/openat.texi: Mention the 'openat' module.
1417         * doc/posix-functions/fchmodat.texi: Likewise.
1418         * doc/posix-functions/fchownat.texi: Likewise.
1419         * doc/posix-functions/fdopendir.texi: Likewise.
1420         * doc/posix-functions/fstatat.texi: Likewise.
1421         * doc/posix-functions/mkdirat.texi: Likewise.
1422         * doc/posix-functions/unlinkat.texi: Likewise.
1423
1424 2008-12-14  Bruno Haible  <bruno@clisp.org>
1425
1426         Update doc for POSIX:2008.
1427         * doc/posix-functions/faccessat.texi: New file.
1428         * doc/posix-functions/fchmodat.texi: New file.
1429         * doc/posix-functions/fchownat.texi: New file.
1430         * doc/posix-functions/fdopendir.texi: New file.
1431         * doc/posix-functions/fstatat.texi: New file.
1432         * doc/posix-functions/futimens.texi: New file.
1433         * doc/posix-functions/linkat.texi: New file.
1434         * doc/posix-functions/mkdirat.texi: New file.
1435         * doc/posix-functions/mkfifoat.texi: New file.
1436         * doc/posix-functions/mknodat.texi: New file.
1437         * doc/posix-functions/open_wmemstream.texi: New file.
1438         * doc/posix-functions/openat.texi: New file.
1439         * doc/posix-functions/psiginfo.texi: New file.
1440         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
1441         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
1442         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
1443         * doc/posix-functions/readlinkat.texi: New file.
1444         * doc/posix-functions/renameat.texi: New file.
1445         * doc/posix-functions/strerror_l.texi: New file.
1446         * doc/posix-functions/symlinkat.texi: New file.
1447         * doc/posix-functions/unlinkat.texi: New file.
1448         * doc/posix-functions/utimensat.texi: New file.
1449         * doc/gnulib.texi (Function Substitutes): Add these subsections.
1450
1451 2008-12-14  Bruno Haible  <bruno@clisp.org>
1452
1453         Update doc for POSIX:2008.
1454         * doc/posix-functions/alphasort.texi: Renamed from
1455         doc/glibc-functions/alphasort.texi.
1456         * doc/posix-functions/dirfd.texi: Renamed from
1457         doc/glibc-functions/dirfd.texi.
1458         * doc/posix-functions/dprintf.texi: Renamed from
1459         doc/glibc-functions/dprintf.texi.
1460         * doc/posix-functions/duplocale.texi: Renamed from
1461         doc/glibc-functions/duplocale.texi.
1462         * doc/posix-functions/fexecve.texi: Renamed from
1463         doc/glibc-functions/fexecve.texi.
1464         * doc/posix-functions/fmemopen.texi: Renamed from
1465         doc/glibc-functions/fmemopen.texi.
1466         * doc/posix-functions/freelocale.texi: Renamed from
1467         doc/glibc-functions/freelocale.texi.
1468         * doc/posix-functions/getdate_err.texi: Renamed from
1469         doc/glibc-functions/getdate_err.texi.
1470         * doc/posix-functions/isalnum_l.texi: Renamed from
1471         doc/glibc-functions/isalnum_l.texi.
1472         * doc/posix-functions/isalpha_l.texi: Renamed from
1473         doc/glibc-functions/isalpha_l.texi.
1474         * doc/posix-functions/isblank_l.texi: Renamed from
1475         doc/glibc-functions/isblank_l.texi.
1476         * doc/posix-functions/iscntrl_l.texi: Renamed from
1477         doc/glibc-functions/iscntrl_l.texi.
1478         * doc/posix-functions/isdigit_l.texi: Renamed from
1479         doc/glibc-functions/isdigit_l.texi.
1480         * doc/posix-functions/isgraph_l.texi: Renamed from
1481         doc/glibc-functions/isgraph_l.texi.
1482         * doc/posix-functions/islower_l.texi: Renamed from
1483         doc/glibc-functions/islower_l.texi.
1484         * doc/posix-functions/isprint_l.texi: Renamed from
1485         doc/glibc-functions/isprint_l.texi.
1486         * doc/posix-functions/ispunct_l.texi: Renamed from
1487         doc/glibc-functions/ispunct_l.texi.
1488         * doc/posix-functions/isspace_l.texi: Renamed from
1489         doc/glibc-functions/isspace_l.texi.
1490         * doc/posix-functions/isupper_l.texi: Renamed from
1491         doc/glibc-functions/isupper_l.texi.
1492         * doc/posix-functions/iswalnum_l.texi: Renamed from
1493         doc/glibc-functions/iswalnum_l.texi.
1494         * doc/posix-functions/iswalpha_l.texi: Renamed from
1495         doc/glibc-functions/iswalpha_l.texi.
1496         * doc/posix-functions/iswblank_l.texi: Renamed from
1497         doc/glibc-functions/iswblank_l.texi.
1498         * doc/posix-functions/iswcntrl_l.texi: Renamed from
1499         doc/glibc-functions/iswcntrl_l.texi.
1500         * doc/posix-functions/iswctype_l.texi: Renamed from
1501         doc/glibc-functions/iswctype_l.texi.
1502         * doc/posix-functions/iswdigit_l.texi: Renamed from
1503         doc/glibc-functions/iswdigit_l.texi.
1504         * doc/posix-functions/iswgraph_l.texi: Renamed from
1505         doc/glibc-functions/iswgraph_l.texi.
1506         * doc/posix-functions/iswlower_l.texi: Renamed from
1507         doc/glibc-functions/iswlower_l.texi.
1508         * doc/posix-functions/iswprint_l.texi: Renamed from
1509         doc/glibc-functions/iswprint_l.texi.
1510         * doc/posix-functions/iswpunct_l.texi: Renamed from
1511         doc/glibc-functions/iswpunct_l.texi.
1512         * doc/posix-functions/iswspace_l.texi: Renamed from
1513         doc/glibc-functions/iswspace_l.texi.
1514         * doc/posix-functions/iswupper_l.texi: Renamed from
1515         doc/glibc-functions/iswupper_l.texi.
1516         * doc/posix-functions/iswxdigit_l.texi: Renamed from
1517         doc/glibc-functions/iswxdigit_l.texi.
1518         * doc/posix-functions/isxdigit_l.texi: Renamed from
1519         doc/glibc-functions/isxdigit_l.texi.
1520         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
1521         doc/glibc-functions/mbsnrtowcs.texi.
1522         * doc/posix-functions/mkdtemp.texi: Renamed from
1523         doc/glibc-functions/mkdtemp.texi.
1524         * doc/posix-functions/newlocale.texi: Renamed from
1525         doc/glibc-functions/newlocale.texi.
1526         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
1527         doc/glibc-functions/nl_langinfo_l.texi.
1528         * doc/posix-functions/open_memstream.texi: Renamed from
1529         doc/glibc-functions/open_memstream.texi.
1530         * doc/posix-functions/opterr.texi: Renamed from
1531         doc/glibc-functions/opterr.texi.
1532         * doc/posix-functions/optind.texi: Renamed from
1533         doc/glibc-functions/optind.texi.
1534         * doc/posix-functions/optopt.texi: Renamed from
1535         doc/glibc-functions/optopt.texi.
1536         * doc/posix-functions/psignal.texi: Renamed from
1537         doc/glibc-functions/psignal.texi.
1538         * doc/posix-functions/scandir.texi: Renamed from
1539         doc/glibc-functions/scandir.texi.
1540         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
1541         doc/glibc-functions/sched_get_priority_min.texi.
1542         * doc/posix-functions/signgam.texi: Renamed from
1543         doc/glibc-functions/signgam.texi.
1544         * doc/posix-functions/stpcpy.texi: Renamed from
1545         doc/glibc-functions/stpcpy.texi.
1546         * doc/posix-functions/stpncpy.texi: Renamed from
1547         doc/glibc-functions/stpncpy.texi.
1548         * doc/posix-functions/strcasecmp_l.texi: Renamed from
1549         doc/glibc-functions/strcasecmp_l.texi.
1550         * doc/posix-functions/strcoll_l.texi: Renamed from
1551         doc/glibc-functions/strcoll_l.texi.
1552         * doc/posix-functions/strfmon_l.texi: Renamed from
1553         doc/glibc-functions/strfmon_l.texi.
1554         * doc/posix-functions/strftime_l.texi: Renamed from
1555         doc/glibc-functions/strftime_l.texi.
1556         * doc/posix-functions/strncasecmp_l.texi: Renamed from
1557         doc/glibc-functions/strncasecmp_l.texi.
1558         * doc/posix-functions/strndup.texi: Renamed from
1559         doc/glibc-functions/strndup.texi.
1560         * doc/posix-functions/strnlen.texi: Renamed from
1561         doc/glibc-functions/strnlen.texi.
1562         * doc/posix-functions/strsignal.texi: Renamed from
1563         doc/glibc-functions/strsignal.texi.
1564         * doc/posix-functions/strxfrm_l.texi: Renamed from
1565         doc/glibc-functions/strxfrm_l.texi.
1566         * doc/posix-functions/timer_gettime.texi: Renamed from
1567         doc/glibc-functions/timer_gettime.texi.
1568         * doc/posix-functions/tolower_l.texi: Renamed from
1569         doc/glibc-functions/tolower_l.texi.
1570         * doc/posix-functions/toupper_l.texi: Renamed from
1571         doc/glibc-functions/toupper_l.texi.
1572         * doc/posix-functions/towctrans_l.texi: Renamed from
1573         doc/glibc-functions/towctrans_l.texi.
1574         * doc/posix-functions/towlower_l.texi: Renamed from
1575         doc/glibc-functions/towlower_l.texi.
1576         * doc/posix-functions/towupper_l.texi: Renamed from
1577         doc/glibc-functions/towupper_l.texi.
1578         * doc/posix-functions/uselocale.texi: Renamed from
1579         doc/glibc-functions/uselocale.texi.
1580         * doc/posix-functions/vdprintf.texi: Renamed from
1581         doc/glibc-functions/vdprintf.texi.
1582         * doc/posix-functions/wcpcpy.texi:
1583         Renamed from doc/glibc-functions/wcpcpy.texi.
1584         * doc/posix-functions/wcpncpy.texi: Renamed from
1585         doc/glibc-functions/wcpncpy.texi.
1586         * doc/posix-functions/wcscasecmp.texi: Renamed from
1587         doc/glibc-functions/wcscasecmp.texi.
1588         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
1589         doc/glibc-functions/wcscasecmp_l.texi.
1590         * doc/posix-functions/wcscoll_l.texi: Renamed from
1591         doc/glibc-functions/wcscoll_l.texi.
1592         * doc/posix-functions/wcsdup.texi: Renamed from
1593         doc/glibc-functions/wcsdup.texi.
1594         * doc/posix-functions/wcsncasecmp.texi: Renamed from
1595         doc/glibc-functions/wcsncasecmp.texi.
1596         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
1597         doc/glibc-functions/wcsncasecmp_l.texi.
1598         * doc/posix-functions/wcsnlen.texi: Renamed from
1599         doc/glibc-functions/wcsnlen.texi.
1600         * doc/posix-functions/wcsnrtombs.texi: Renamed from
1601         doc/glibc-functions/wcsnrtombs.texi.
1602         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
1603         doc/glibc-functions/wcsxfrm_l.texi.
1604         * doc/posix-functions/wctrans_l.texi: Renamed from
1605         doc/glibc-functions/wctrans_l.texi.
1606         * doc/posix-functions/wctype_l.texi: Renamed from
1607         doc/glibc-functions/wctype_l.texi.
1608         * doc/gnulib.texi (Function Substitutes): Add these subsections.
1609         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
1610         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
1611         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
1612         these subsections.
1613         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
1614         Remove sections.
1615
1616 2008-12-14  Bruno Haible  <bruno@clisp.org>
1617
1618         Update doc for POSIX:2008.
1619         * doc/posix-functions/*.texi: Update URL of POSIX specification.
1620
1621 2008-12-14  Bruno Haible  <bruno@clisp.org>
1622
1623         Update doc for POSIX:2008.
1624         * doc/pastposix-functions/bcmp.texi: Renamed from
1625         doc/posix-functions/bcmp.texi.
1626         * doc/pastposix-functions/bcopy.texi: Renamed from
1627         doc/posix-functions/bcopy.texi.
1628         * doc/pastposix-functions/bsd_signal.texi: Renamed from
1629         doc/posix-functions/bsd_signal.texi.
1630         * doc/pastposix-functions/bzero.texi: Renamed from
1631         doc/posix-functions/bzero.texi.
1632         * doc/pastposix-functions/ecvt.texi: Renamed from
1633         doc/posix-functions/ecvt.texi.
1634         * doc/pastposix-functions/fcvt.texi: Renamed from
1635         doc/posix-functions/fcvt.texi.
1636         * doc/pastposix-functions/ftime.texi: Renamed from
1637         doc/posix-functions/ftime.texi.
1638         * doc/pastposix-functions/gcvt.texi: Renamed from
1639         doc/posix-functions/gcvt.texi.
1640         * doc/pastposix-functions/getcontext.texi: Renamed from
1641         doc/posix-functions/getcontext.texi.
1642         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
1643         doc/posix-functions/gethostbyaddr.texi.
1644         * doc/pastposix-functions/gethostbyname.texi: Renamed from
1645         doc/posix-functions/gethostbyname.texi.
1646         * doc/pastposix-functions/getwd.texi: Renamed from
1647         doc/posix-functions/getwd.texi.
1648         * doc/pastposix-functions/h_errno.texi: Renamed from
1649         doc/posix-functions/h_errno.texi.
1650         * doc/pastposix-functions/index.texi: Renamed from
1651         doc/posix-functions/index.texi.
1652         * doc/pastposix-functions/makecontext.texi: Renamed from
1653         doc/posix-functions/makecontext.texi.
1654         * doc/pastposix-functions/mktemp.texi: Renamed from
1655         doc/posix-functions/mktemp.texi.
1656         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
1657         doc/posix-functions/pthread_attr_getstackaddr.texi.
1658         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
1659         doc/posix-functions/pthread_attr_setstackaddr.texi.
1660         * doc/pastposix-functions/rindex.texi: Renamed from
1661         doc/posix-functions/rindex.texi.
1662         * doc/pastposix-functions/scalb.texi: Renamed from
1663         doc/posix-functions/scalb.texi.
1664         * doc/pastposix-functions/setcontext.texi: Renamed from
1665         doc/posix-functions/setcontext.texi.
1666         * doc/pastposix-functions/swapcontext.texi: Renamed from
1667         doc/posix-functions/swapcontext.texi.
1668         * doc/pastposix-functions/ualarm.texi: Renamed from
1669         doc/posix-functions/ualarm.texi.
1670         * doc/pastposix-functions/usleep.texi: Renamed from
1671         doc/posix-functions/usleep.texi.
1672         * doc/pastposix-functions/vfork.texi: Renamed from
1673         doc/posix-functions/vfork.texi.
1674         * doc/pastposix-functions/wcswcs.texi: Renamed from
1675         doc/posix-functions/wcswcs.texi.
1676         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
1677         (Function Substitutes): Update.
1678
1679 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1680
1681         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
1682         m4/strerror.m4.
1683
1684 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1685             Bruno Haible  <bruno@clisp.org>
1686
1687         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
1688
1689 2008-12-13  Bruno Haible  <bruno@clisp.org>
1690
1691         * modules/strtoull (Depends-on): Remove unistd.
1692
1693 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1694
1695         * modules/strtoull (Depends-on): Add stdlib.
1696
1697 2008-12-11  Simon Josefsson  <simon@josefsson.org>
1698
1699         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
1700
1701 2008-12-10  Jim Meyering  <meyering@redhat.com>
1702
1703         gl_ASSERT: don't say assertions are disabled when they're not
1704         * m4/assert.m4 (gl_ASSERT): Do not make configure report
1705         "checking whether to enable assertions... no", when they are in
1706         fact enabled.  This is solely a bug in the output of configure.
1707         In spite of saying "no", NDEBUG was not defined in that case.
1708         Also, as noted by Eric Blake, leave assertions enabled upon
1709         --enable-assert=INVALID.
1710
1711 2008-12-10  Bruno Haible  <bruno@clisp.org>
1712
1713         Change MODULES.html to refer to POSIX:2008 where possible.
1714         * MODULES.html.sh (POSIX2008_URL): New variable.
1715         (posix_headers): Remove sys/timeb, ucontext.
1716         (posix2001_headers): New variable.
1717         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
1718         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
1719         index, makecontext, mktemp, pthread_attr_getstackaddr,
1720         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
1721         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
1722         (posix2001_functions): New variable.
1723         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
1724         otherwise.
1725
1726 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1727
1728         add missing include to parse-duration.c
1729         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
1730         * modules/parse-duration (Depends-on): Add xalloc.
1731
1732         fix sed script reading maint.mk
1733         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
1734         (syntax-check-rules): Use it.
1735
1736 2008-12-09  Bruno Haible  <bruno@clisp.org>
1737
1738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
1739         MacOS X 10.4/PowerPC.
1740         Reported by Simon Josefsson.
1741
1742 2008-12-08  Jim Meyering  <meyering@redhat.com>
1743
1744         work around mingw's lack of some S_IF definitions
1745         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
1746         Reported by Simon Josefsson.
1747
1748 2008-12-08  Bruno Haible  <bruno@clisp.org>
1749
1750         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
1751         applied to variables. Needed on MacOS X 10.4/PowerPC.
1752         Reported by Simon Josefsson.
1753
1754 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
1755         and Eric Blake  <ebb9@byu.net>
1756
1757         assert: honor --enable-assert
1758         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
1759         order to honor --enable-assert, rather than treating it as a
1760         synonym for --disable-assert.
1761
1762 2008-12-08  Jim Meyering  <meyering@redhat.com>
1763
1764         * lib/posixtm.c: Remove now-useless declaration of mktime.
1765
1766         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
1767
1768 2008-12-07  Bruno Haible  <bruno@clisp.org>
1769
1770         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
1771         test_once): Mark functions as static.
1772         * tests/test-tls.c (test_tls): Likewise.
1773
1774 2008-12-07  Bruno Haible  <bruno@clisp.org>
1775
1776         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
1777         iconv_register_autodetect.
1778
1779 2008-12-07  Jim Meyering  <meyering@redhat.com>
1780
1781         posixtm.c: avoid a warning
1782         * lib/posixtm.c (posixtime): Don't initialize tm0.
1783         It's no longer needed to placate gcc4's -Wuninitialized,
1784         and the attempt to placate would elicit a new warning.
1785
1786         unicodeio.c: mark unused parameters
1787         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
1788         (fallback_failure_callback): Likewise.
1789
1790 2008-12-07  Bruno Haible  <bruno@clisp.org>
1791
1792         * gnulib-tool (func_create_testdir): When building the tests
1793         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
1794         Reported by Simon Josefsson.
1795
1796 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1797
1798         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
1799
1800 2008-12-06  Bruno Haible  <bruno@clisp.org>
1801
1802         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
1803         Suggested by Eric Blake.
1804
1805 2008-12-06  Bruno Haible  <bruno@clisp.org>
1806
1807         Fix a c-stack test failure on MacOS X.
1808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
1809         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
1810         handler for SIGBUS as well.
1811         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
1812         install a signal handler for SIGBUS as well.
1813         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
1814
1815 2008-12-06  Bruno Haible  <bruno@clisp.org>
1816
1817         Advocacy documentation.
1818         * doc/gnulib-intro.texi (Benefits): New section.
1819         * doc/gnulib.texi: Update.
1820
1821 2008-12-06  Bruno Haible  <bruno@clisp.org>
1822
1823         Document the 'manywarnings' module.
1824         * doc/manywarnings.texi: New file.
1825         * doc/gnulib.texi: Include it.
1826
1827 2008-12-05  Eric Blake  <ebb9@byu.net>
1828
1829         tests: silence some gcc warnings
1830         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
1831         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
1832         type mismatches.
1833
1834 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1835             Bruno Haible  <bruno@clisp.org>
1836
1837         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
1838
1839 2008-11-29  Jim Meyering  <meyering@redhat.com>
1840
1841         unicodeio.c: mark unused parameters
1842         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
1843         (fallback_failure_callback): Likewise.
1844
1845         fts: fix a thinko
1846         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
1847         (set_stat_type): Return S_IF*-valued "type" directly.
1848         Prompted by James Youngman's spotting a related bug.
1849         Confirmed by further testing through find.
1850
1851         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
1852         * lib/fts.c (D_TYPE): Define.
1853         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
1854         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
1855         (s_ifmt_shift_bits): New function.
1856         (set_stat_type): New function.
1857         (fts_build): When not calling fts_stat, call set_stat_type
1858         to propagate dirent.d_type info to fts_read caller.
1859         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
1860         fts_statp->st_mode type information may be valid.
1861
1862 2008-11-28  Simon Josefsson  <simon@josefsson.org>
1863
1864         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
1865         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
1866         <sds@gnu.org>.
1867
1868 2008-11-20  Bruno Haible  <bruno@clisp.org>
1869
1870         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
1871         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
1872         INCLUDE_NEXT.
1873         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
1874         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
1875         * modules/math (Makefile.am): Substitute
1876         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
1877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1878
1879 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1880             Bruno Haible  <bruno@clisp.org>
1881
1882         * lib/stdint.in.h: Define all type macros so that their expansion is
1883         a single typedef'ed token. Fixes a compilation failure in Boost which
1884         does "using ::int8_t;".
1885
1886 2008-11-18  Simon Josefsson  <simon@josefsson.org>
1887
1888         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
1889         gl_MANYWARN_ALL_GCC.
1890         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
1891         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
1892         * modules/manywarnings: New file.
1893         * MODULES.html.sh: Mention manywarnings module.
1894
1895 2008-11-18  Bruno Haible  <bruno@clisp.org>
1896
1897         * doc/gnulib-tool.texi (Unit tests): New section.
1898
1899 2008-11-18  Simon Josefsson  <simon@josefsson.org>
1900
1901         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
1902         paths like 'lib/po/foo.po'.
1903
1904 2008-11-17  Simon Josefsson  <simon@josefsson.org>
1905
1906         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
1907         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
1908
1909 2008-11-17  Simon Josefsson  <simon@josefsson.org>
1910
1911         * m4/warnings.m4: Use CPPFLAGS to really check whether the
1912         parameter works.
1913
1914 2008-11-17  Simon Josefsson  <simon@josefsson.org>
1915
1916         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
1917
1918 2008-11-17  Bruce Korb  <bkorb@gnu.org>
1919
1920         * modules/parse-duration-tests: New file.
1921         * tests/test-parse-duration.sh: New file.
1922         * tests/test-parse-duration.c: New file.
1923
1924         New module 'parse-duration'.
1925         * lib/parse-duration.h: New file.
1926         * lib/parse-duration.c: New file.
1927         * modules/parse-duration: New file.
1928
1929 2008-11-17  Bruno Haible  <bruno@clisp.org>
1930
1931         * tests/test-select-out.sh: Comment out the first pipe test.
1932         Reported by Simon Josefsson.
1933
1934 2008-11-17  Bruno Haible  <bruno@clisp.org>
1935
1936         * modules/getaddrinfo (Depends-on): Add servent, hostent.
1937         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
1938         gl_HOSTENT.
1939
1940 2008-11-17  Bruno Haible  <bruno@clisp.org>
1941
1942         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
1943         -lnetwork and -lnet. Needed for Haiku and BeOS.
1944
1945 2008-11-16  Bruno Haible  <bruno@clisp.org>
1946
1947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
1948
1949 2008-11-16  Bruno Haible  <bruno@clisp.org>
1950
1951         Avoid test failure on Haiku.
1952         * tests/test-fsync.c: Include <errno.h>.
1953         (main): Don't require that fsync (0) fails.
1954
1955 2008-11-15  Bruno Haible  <bruno@clisp.org>
1956
1957         New module 'hostent'.
1958         * modules/hostent: New file.
1959         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
1960
1961 2008-11-15  Bruno Haible  <bruno@clisp.org>
1962
1963         New module 'servent'.
1964         * modules/servent: New file.
1965         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
1966
1967 2008-11-15  Bruno Haible  <bruno@clisp.org>
1968
1969         Avoid generating same test program with two different rules.
1970         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
1971         test-frexp to test-frexp-nolibm.
1972         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
1973         test-frexpl to test-frexpl-nolibm.
1974
1975 2008-11-15  Bruno Haible  <bruno@clisp.org>
1976
1977         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
1978         $(FREXPL_LIBM).
1979
1980 2008-11-15  Bruno Haible  <bruno@clisp.org>
1981
1982         * lib/netdb.in.h: Activate the definitions also when the system's
1983         <netdb.h> has 'struct addrinfo'.
1984         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
1985         EAI_OVERFLOW or AI_NUMERICSERV.
1986         * doc/posix-headers/netdb.texi: Document the problem.
1987
1988 2008-11-15  Bruno Haible  <bruno@clisp.org>
1989
1990         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
1991
1992         Make the 'sched' module work on platforms where <sched.h> exists but
1993         is incomplete (such as Haiku).
1994         * lib/sched.in.h; Include the system's <sched.h> if it exists.
1995         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
1996         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
1997         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
1998         HAVE_STRUCT_SCHED_PARAM.
1999         * modules/sched (Depends-on): Add include_next.
2000         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
2001         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
2002         * doc/posix-headers/sched.texi: Document the issue.
2003
2004 2008-11-13  Jim Meyering  <meyering@redhat.com>
2005
2006         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
2007         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
2008         test would fail due to the difference in the Report bugs to ...
2009         line.  The expected address is empty, "<>", while the actual
2010         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
2011
2012 2008-11-12  Bruno Haible  <bruno@clisp.org>
2013
2014         lstat: don't compile lstat.c on systems lacking lstat
2015         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
2016         which don't have lstat; this is handled by lib/sys_stat.in.h already.
2017         Reported by Daniel P. Berrange via Jim Meyering.
2018
2019 2008-11-12  Jim Meyering  <meyering@redhat.com>
2020
2021         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
2022
2023 2008-11-12  Simon Josefsson  <simon@josefsson.org>
2024
2025         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
2026         instead.
2027
2028 2008-11-12  Bruno Haible  <bruno@clisp.org>
2029
2030         * lib/unicodeio.c: Include unistr.h.
2031         (utf8_wctomb): Remove function.
2032         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
2033
2034 2008-11-12  Simon Josefsson  <simon@josefsson.org>
2035
2036         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
2037         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
2038         <bruno@clisp.org>.
2039         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
2040
2041 2008-11-12  Simon Josefsson  <simon@josefsson.org>
2042
2043         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
2044         * doc/gnulib.texi: Add section for warnings.
2045
2046 2008-11-11  Bruno Haible  <bruno@clisp.org>
2047
2048         * lib/sockets.h: Add a comment.
2049
2050 2008-11-11  Karl Berry  <karl@gnu.org>
2051
2052         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
2053
2054 2008-11-11  Eric Blake  <ebb9@byu.net>
2055
2056         fdl.texi: avoid git symlinks
2057         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
2058
2059 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
2060
2061         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
2062
2063 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
2064
2065         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
2066         (gl_WARN_ADD): Substitute $2 if literal.
2067
2068 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
2069
2070         * m4/warning.m4: Remove.
2071
2072 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
2073
2074         * m4/warnings.m4: Almost complete rewrite. :-)
2075
2076 2008-11-10  Simon Josefsson  <simon@josefsson.org>
2077
2078         * modules/warnings: New module.
2079         * m4/warnings.m4: New file.
2080         * MODULES.html.sh: Mention warnings module.
2081         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
2082         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2083
2084 2008-11-10  Eric Blake  <ebb9@byu.net>
2085
2086         fdl.texi: make a symlink to the latest version
2087         * doc/standards.texi: Revert today's earlier change.
2088         * doc/fdl-1.2.texi: Rename from old fdl.texi...
2089         * doc/fdl.texi: ...and replace this with a symlink to the newer
2090         fdl-1.3.texi.
2091
2092 2008-11-10  Bruno Haible  <bruno@clisp.org>
2093
2094         * tests/test-select-fd.c (main): Accept the result file name as fourth
2095         argument.
2096         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
2097         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
2098
2099 2008-11-10  Bruno Haible  <bruno@clisp.org>
2100
2101         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
2102         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
2103         as autoconf-substituted macros.
2104         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
2105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
2106         gl_NETDB_H_DEFAULTS. Set these variables.
2107         * modules/netdb (Makefile.am): Substitute these variables.
2108
2109 2008-11-10  Eric Blake  <ebb9@byu.net>
2110
2111         standards.texi: include correct file for FDL 1.3
2112         * doc/standards.texi (GNU Free Documentation License): Change
2113         include file to pull in FDL 1.3, not 1.2.
2114
2115         fdl.texi: revert accidental change to license
2116         * doc/fdl.texi: This is FDL 1.2, not 1.3.
2117
2118 2008-11-10  Bruno Haible  <bruno@clisp.org>
2119
2120         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
2121         cross-compiling guesses also when the native compile gives no result.
2122
2123 2008-11-10  Bruno Haible  <bruno@clisp.org>
2124
2125         * lib/spawni.c (__spawni): Force variable into the stack.
2126
2127 2008-11-10  Bruno Haible  <bruno@clisp.org>
2128
2129         Add support for Haiku.
2130         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
2131         glibc and BeOS, but also on Haiku.
2132         * lib/fpurge.c (fpurge): Likewise.
2133         * lib/freadable.c (freadable): Likewise.
2134         * lib/freadahead.c (freadahead): Likewise.
2135         * lib/freading.c (freading): Likewise.
2136         * lib/freadptr.c (freadptr): Likewise.
2137         * lib/freadseek.c (freadptrinc): Likewise.
2138         * lib/fseeko.c (rpl_fseeko): Likewise.
2139         * lib/fseterr.c (fseterr): Likewise.
2140         * lib/fwritable.c (fwritable): Likewise.
2141         * lib/fwriting.c (fwriting): Likewise.
2142         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
2143
2144 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
2145
2146         * lib/config.charset: Treat Haiku like BeOS.
2147
2148 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
2149
2150         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
2151         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
2152
2153 2008-11-08  Bruno Haible  <bruno@clisp.org>
2154
2155         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
2156         AC_CACHE_CHECK.
2157
2158 2008-11-08  Bruno Haible  <bruno@clisp.org>
2159
2160         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
2161
2162 2008-11-08  Bruno Haible  <bruno@clisp.org>
2163
2164         * tests/test-select-fd.c: New file.
2165         * tests/test-select-in.sh: New file.
2166         * tests/test-select-out.sh: New file.
2167         * tests/test-select-stdin.c: New file.
2168         * modules/select-tests (Files): Add the new files.
2169         (Depends-on): Add gettimeofday.
2170         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
2171         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
2172         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
2173
2174 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
2175             Bruno Haible  <bruno@clisp.org>
2176
2177         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
2178
2179 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
2180
2181         * build-aux/pmccabe2html: Added support for C++ source files.
2182
2183 2008-11-05  Ben Pfaff  <blp@gnu.org>
2184
2185         Fix lib/close.c build on Windows.
2186         * modules/close (Files): Add lib/w32sock.h.
2187
2188 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
2189
2190         Accept Bison's NEWS format.
2191         * build-aux/announce-gen (print_news_deltas): Tweak
2192         $re_prefix.
2193
2194 2008-11-04  Bruno Haible  <bruno@clisp.org>
2195
2196         * modules/random_r (Maintainer): Add glibc.
2197
2198 2008-11-04  Simon Josefsson  <simon@josefsson.org>
2199
2200         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
2201         by karl@freefriends.org (Karl Berry).
2202         * doc/alloca.texi: Likewise.
2203         * doc/c-ctype.texi: Likewise.
2204         * doc/c-strcase.texi: Likewise.
2205         * doc/c-strcaseeq.texi: Likewise.
2206         * doc/c-strcasestr.texi: Likewise.
2207         * doc/c-strstr.texi: Likewise.
2208         * doc/c-strtod.texi: Likewise.
2209         * doc/c-strtold.texi: Likewise.
2210         * doc/ctime.texi: Likewise.
2211         * doc/error.texi: Likewise.
2212         * doc/fdl.texi: Likewise.
2213         * doc/gcd.texi: Likewise.
2214         * doc/getdate.texi: Likewise.
2215         * doc/gnulib-intro.texi: Likewise.
2216         * doc/gnulib-tool.texi: Likewise.
2217         * doc/gnulib.texi: Likewise.
2218         * doc/inet_ntoa.texi: Likewise.
2219         * doc/maintain.texi: Likewise.
2220         * doc/make-stds.texi: Likewise.
2221         * doc/quote.texi: Likewise.
2222         * doc/regexprops-generic.texi: Likewise.
2223         * doc/standards.texi: Likewise.
2224         * doc/verify.texi: Likewise.
2225         * doc/visibility.texi: Likewise.
2226         * doc/gnulib.texi (GNU Free Documentation License): Include
2227         fdl-1.3.texi instead of fdl.texi.
2228
2229 2008-11-04  Simon Josefsson  <simon@josefsson.org>
2230
2231         * doc/fdl-1.3.texi: New file, from
2232         <http://www.gnu.org/licenses/fdl-1.3.texi>.
2233         * modules/fdl-1.3: Add.
2234         * MODULES.html.sh: Add fdl-1.3.
2235
2236 2008-11-03  Bruno Haible  <bruno@clisp.org>
2237
2238         Make determination of absolute name of header file work with AIX xlc.
2239         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
2240         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
2241         preprocessing.
2242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2243         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
2244
2245 2008-11-03  Simon Josefsson  <simon@josefsson.org>
2246
2247         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
2248         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
2249         <ludo@gnu.org>.
2250
2251 2008-11-02  Bruno Haible  <bruno@clisp.org>
2252
2253         Mark 'strpbrk' obsolete.
2254         * modules/strpbrk (Status, Notice): New sections.
2255         * modules/strtok_r (Depends-on): Add strpbrk.
2256
2257 2008-11-02  Bruno Haible  <bruno@clisp.org>
2258
2259         Mark 'strdup' obsolete.
2260         * modules/strdup (Status, Notice): New sections.
2261         * modules/findprog (Depends-on): Add strdup.
2262         * modules/getaddrinfo (Depends-on): Likewise.
2263         * modules/localename (Depends-on): Likewise.
2264         * modules/relocatable-lib (Depends-on): Likewise.
2265         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
2266         * modules/relocatable-prog (Depends-on): Likewise.
2267         * modules/trim (Depends-on): Likewise.
2268         * modules/unictype/gen-ctype (Depends-on): Likewise.
2269         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
2270
2271 2008-11-02  Bruno Haible  <bruno@clisp.org>
2272
2273         Mark 'strcspn' obsolete.
2274         * modules/strcspn (Status, Notice): New sections.
2275
2276 2008-11-02  Bruno Haible  <bruno@clisp.org>
2277
2278         Mark 'rmdir' obsolete.
2279         * modules/rmdir (Status, Notice): New sections.
2280         * modules/clean-temp (Depends-on): Add rmdir.
2281         * modules/openat (Depends-on): Likewise.
2282
2283 2008-11-02  Bruno Haible  <bruno@clisp.org>
2284
2285         Mark 'raise' obsolete.
2286         * modules/raise (Status, Notice): New sections.
2287         (Include): Specify <signal.h>.
2288         * modules/stdio (Depends-on): Add raise.
2289         * modules/write (Depends-on): Likewise.
2290
2291 2008-11-02  Bruno Haible  <bruno@clisp.org>
2292
2293         Mark 'memset' obsolete.
2294         * modules/memset (Status, Notice): New sections.
2295
2296 2008-11-02  Bruno Haible  <bruno@clisp.org>
2297
2298         Mark 'memmove' obsolete.
2299         * modules/memmove (Status, Notice): New sections.
2300         * modules/argp (Depends-on): Add memmove.
2301         * modules/argz (Depends-on): Likewise.
2302         * modules/canonicalize (Depends-on): Likewise.
2303         * modules/canonicalize-lgpl (Depends-on): Likewise.
2304         * modules/fts (Depends-on): Likewise.
2305         * modules/getcwd (Depends-on): Likewise.
2306         * modules/human (Depends-on): Likewise.
2307         * modules/regex (Depends-on): Likewise.
2308         * modules/striconveh (Depends-on): Likewise.
2309         * modules/trim (Depends-on): Likewise.
2310         * modules/unistr/u8-move (Depends-on): Likewise.
2311         * modules/unistr/u16-move (Depends-on): Likewise.
2312         * modules/unistr/u32-move (Depends-on): Likewise.
2313
2314 2008-11-02  Bruno Haible  <bruno@clisp.org>
2315
2316         Mark 'memcpy' obsolete.
2317         * modules/memcpy (Status, Notice): New sections.
2318
2319 2008-11-02  Bruno Haible  <bruno@clisp.org>
2320
2321         Mark 'memcmp' obsolete.
2322         * modules/memcmp (Status, Notice): New sections.
2323         * modules/argmatch (Depends-on): Add memchr.
2324         * modules/backupfile (Depends-on): Likewise.
2325         * modules/c-strcasestr (Depends-on): Likewise.
2326         * modules/crypto/des (Depends-on): Likewise.
2327         * modules/csharpcomp (Depends-on): Likewise.
2328         * modules/fnmatch (Depends-on): Likewise.
2329         * modules/git-merge-changelog (Depends-on): Likewise.
2330         * modules/isnand (Depends-on): Likewise.
2331         * modules/isnand-nolibm (Depends-on): Likewise.
2332         * modules/isnanf (Depends-on): Likewise.
2333         * modules/isnanf-nolibm (Depends-on): Likewise.
2334         * modules/isnanl (Depends-on): Likewise.
2335         * modules/isnanl-nolibm (Depends-on): Likewise.
2336         * modules/mbchar (Depends-on): Likewise.
2337         * modules/memcoll (Depends-on): Likewise.
2338         * modules/quotearg (Depends-on): Likewise.
2339         * modules/regex (Depends-on): Likewise.
2340         * modules/relocatable-prog (Depends-on): Likewise.
2341         * modules/same (Depends-on): Likewise.
2342         * modules/signbit (Depends-on): Likewise.
2343         * modules/strcasestr-simple (Depends-on): Likewise.
2344         * modules/unictype/gen-ctype (Depends-on): Likewise.
2345         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
2346         * modules/uniname/uniname (Depends-on): Likewise.
2347         * modules/unistr/u8-cmp (Depends-on): Likewise.
2348
2349 2008-11-02  Bruno Haible  <bruno@clisp.org>
2350
2351         Mark 'memchr' obsolete.
2352         * modules/memchr (Status, Notice): New sections.
2353         * modules/argp (Depends-on): Add memchr.
2354         * modules/base64 (Depends-on): Likewise.
2355         * modules/c-strcasestr (Depends-on): Likewise.
2356         * modules/chdir-long (Depends-on): Likewise.
2357         * modules/fnmatch (Depends-on): Likewise.
2358         * modules/getsubopt (Depends-on): Likewise.
2359         * modules/git-merge-changelog (Depends-on): Likewise.
2360         * modules/glob (Depends-on): Likewise.
2361         * modules/strcasestr-simple (Depends-on): Likewise.
2362         * modules/strnlen (Depends-on): Likewise.
2363
2364 2008-11-02  Bruno Haible  <bruno@clisp.org>
2365
2366         Mark 'atexit' obsolete.
2367         * modules/atexit (Status, Notice): New sections.
2368         * modules/chdir-long (Depends-on): Add atexit.
2369         * modules/wait-process (Depends-on): Likewise.
2370
2371 2008-11-02  Bruno Haible  <bruno@clisp.org>
2372
2373         * gnulib-tool: New option --with-obsolete.
2374         (func_usage): Document it.
2375         (func_modules_transitive_closure): Drop obsolete dependencies if
2376         incobsolete is not true.
2377         (func_import): Read and save the incobsolete variable to the cache.
2378
2379 2008-11-02  Bruno Haible  <bruno@clisp.org>
2380
2381         * modules/TEMPLATE-EXTENDED: New field 'Status'.
2382         * gnulib-tool: New option --extract-status.
2383         (func_usage): Document it.
2384         (sed_extract_prog): Recognize it.
2385         (func_get_status): New function.
2386
2387 2008-10-30  Simon Josefsson  <simon@josefsson.org>
2388
2389         * modules/sockets (License): Change from LGPL to LGPLv2+.
2390
2391 2008-10-28  Simon Josefsson  <simon@josefsson.org>
2392
2393         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
2394
2395 2008-10-28  Simon Josefsson  <simon@josefsson.org>
2396
2397         * MODULES.html.sh (Support for systems lacking POSIX:2001):
2398         Mention times and sys_times.
2399         * modules/sys_times, modules/sys_times-tests: New modules.
2400         * modules/times, modules/times-tests: Likewise
2401         * m4/sys_times_h.m4: New file.
2402         * lib/sys_times.in.h: Likewise
2403         * lib/times.c: Likewise.
2404         * tests/test-sys_times.c: Likewise.
2405         * tests/test-times.c: Likewise.
2406         * doc/posix-headers/sys_times.texi: Update.
2407         * doc/posix-functions/times.texi: Update.
2408
2409 2008-10-28  Jim Meyering  <meyering@redhat.com>
2410
2411         * modules/tempname (Depends-on): Add lstat.
2412
2413         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
2414
2415 2008-10-28  Simon Josefsson  <simon@josefsson.org>
2416
2417         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
2418         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
2419         using idiom used elsewhere in gnulib.
2420
2421 2008-10-27  Jim Meyering  <meyering@redhat.com>
2422
2423         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
2424
2425 2008-10-27  Simon Josefsson  <simon@josefsson.org>
2426
2427         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
2428         TESTS_ENVIRONMENT, for shell scripts that needs to call built
2429         programs.
2430         * tests/test-argp-2.sh: Use $EXEEXT when needed.
2431
2432 2008-10-27  Simon Josefsson  <simon@josefsson.org>
2433
2434         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
2435
2436 2008-10-27  Bruno Haible  <bruno@clisp.org>
2437
2438         * tests/test-lstat.c: Include <stdio.h>.
2439
2440 2008-10-27  Simon Josefsson  <simon@josefsson.org>
2441
2442         * modules/lstat-tests: New module.
2443         * tests/test-lstat.c: New file.
2444
2445 2008-10-26  Jim Meyering  <meyering@redhat.com>
2446
2447         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
2448
2449 2008-10-26  Simon Josefsson  <simon@josefsson.org>
2450             Bruno Haible  <bruno@clisp.org>
2451
2452         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
2453         * modules/configmake (Include): Add a note that the include must come
2454         after all system headers.
2455         * lib/javaversion.c: Include configmake.h after all other includes.
2456
2457 2008-10-26  Bruno Haible  <bruno@clisp.org>
2458
2459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
2460         HAVE_STRUCT_RANDOM_DATA to 1.
2461         (gl_STDLIB_H): Simplify.
2462
2463 2008-10-26  Simon Josefsson  <simon@josefsson.org>
2464
2465         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
2466         substitute HAVE_STRUCT_RANDOM_DATA.
2467         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
2468         random_data.
2469         * modules/stdlib (Makefile.am): Substitute
2470         HAVE_STRUCT_RANDOM_DATA.
2471
2472 2008-10-26  Simon Josefsson  <simon@josefsson.org>
2473
2474         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
2475         * doc/gnulib-intro.texi (Copyright): Likewise.
2476
2477 2008-10-26  Simon Josefsson  <simon@josefsson.org>
2478
2479         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
2480         findings.
2481
2482 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
2483             Bruno Haible  <bruno@clisp.org>
2484
2485         * lib/unistd.in.h: Include <winsock2.h>.
2486         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
2487         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
2488         Provide dummy declarations.
2489         (gethostname): Override.
2490         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
2491         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
2492         gl_PREREQ_SYS_H_WINSOCK2.
2493         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
2494         * doc/posix-functions/gethostname.texi: More details.
2495
2496 2008-10-25  Bruno Haible  <bruno@clisp.org>
2497
2498         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
2499         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
2500         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
2501
2502         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
2503         here ...
2504         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
2505         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
2506         gl_UNISTD_H_DEFAULTS.
2507
2508 2008-10-25  Eric Blake  <ebb9@byu.net>
2509
2510         signbit: avoid spurious compiler failure
2511         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
2512         declarations inside function.
2513
2514 2008-10-24  Simon Josefsson  <simon@josefsson.org>
2515             Bruno Haible  <bruno@clisp.org>
2516
2517         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
2518         * modules/random_r (Depends-on): Add stdint.
2519
2520 2008-10-24  Bruno Haible  <bruno@clisp.org>
2521
2522         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
2523         Eggert.
2524         * modules/strerror (License): Likewise.
2525
2526 2008-10-24  Jim Meyering  <meyering@redhat.com>
2527
2528         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
2529         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
2530
2531 2008-10-24  Eric Blake  <ebb9@byu.net>
2532
2533         getgroups: fix compilation when getgroups is available
2534         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
2535         but with <config.h> override of getgroups disabled.
2536
2537 2008-10-24  Simon Josefsson  <simon@josefsson.org>
2538
2539         * doc/gnulib.texi (Header files): Add note about C++ problems.
2540         Explained by Bruno Haible <bruno@clisp.org>.
2541
2542 2008-10-23  Bruno Haible  <bruno@clisp.org>
2543
2544         Define a dummy SA_NODEFER macro on Interix.
2545         * lib/signal.in.h (SA_NODEFER): Define fallback.
2546         Reported by Aleksey Cheusov <cheusov@tut.by> via
2547         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
2548
2549 2008-10-23  Bruno Haible  <bruno@clisp.org>
2550
2551         * modules/freadahead (License): Change to LGPLv2+.
2552         Suggested by Simon Josefsson.
2553
2554 2008-10-23  Jim Meyering  <meyering@redhat.com>
2555
2556         random_r: new module
2557         * modules/random_r: New file.
2558         * m4/random_r.m4: New file.
2559         * lib/random_r.c: New file, from glibc.
2560         * modules/random_r-tests: New file.
2561         * tests/test-random_r.c: New file.
2562         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
2563          Declare.
2564         (RAND_MAX): Define.
2565         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
2566         * modules/stdlib: Substitute them, too.
2567         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
2568         * doc/glibc-functions/initstate_r.texi: Mention the new module.
2569         * doc/glibc-functions/random_r.texi: Likewise.
2570         * doc/glibc-functions/setstate_r.texi: Likewise.
2571         * doc/glibc-functions/srandom_r.texi: Likewise.
2572         * config/srclist.txt: Mention it.
2573
2574 2008-10-23  David Lutterkort  <lutter@redhat.com>
2575
2576         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
2577         link requirement
2578
2579 2008-10-23  Jim Meyering  <meyering@redhat.com>
2580
2581         selinux-h: mark parameters of stub functions as intentionally unused
2582         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
2583         * lib/se-context.in.h: Likewise.
2584
2585 2008-10-22  Simon Josefsson  <simon@josefsson.org>
2586
2587         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
2588
2589 2008-10-22  Simon Josefsson  <simon@josefsson.org>
2590
2591         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
2592
2593 2008-10-22  Eric Blake  <ebb9@byu.net>
2594
2595         glthread/thread: avoid compiler warning
2596         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
2597         Add unreachable abort to silence compiler.
2598
2599 2008-10-22  Eric Blake  <ebb9@byu.net>
2600
2601         netdb: also supply struct addrinfo for cygwin 1.5.x
2602         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
2603         older cygwin.
2604         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
2605         cygwin.
2606         * doc/posix-headers/netdb.texi (netdb.h): Document this.
2607
2608 2008-10-22  Bruno Haible  <bruno@clisp.org>
2609
2610         * users.txt: Update entry about pspp.
2611
2612 2008-10-21  Bruno Haible  <bruno@clisp.org>
2613
2614         Simplification.
2615         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
2616         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
2617
2618         Simplification.
2619         * lib/ioctl.c (ioctl): Don't undefine.
2620         * lib/socket.c (socket): Don't undefine.
2621
2622         Remove unused module indicator macros.
2623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
2624         GNULIB_$1 as a C macro.
2625
2626         * doc/posix-functions/close.texi: Undo last change.
2627         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
2628         Windows platforms.
2629
2630 2008-10-21  Bruno Haible  <bruno@clisp.org>
2631
2632         Add gethostname() declaration to <unistd.h>.
2633         * lib/unistd.in.h (gethostname): New declaration.
2634         * lib/gethostname.c: Include <unistd.h>.
2635         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
2636         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
2637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
2638         and HAVE_GETHOSTNAME.
2639         * modules/gethostname (Depends-on): Add unistd.
2640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2641         (Include): Specify <unistd.h>.
2642         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
2643         HAVE_GETHOSTNAME.
2644         * tests/test-gethostname.c: Include <unistd.h> first.
2645
2646 2008-10-21  Bruno Haible  <bruno@clisp.org>
2647
2648         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
2649         * modules/select-tests (Depends-on): Likewise.
2650         Reported by Simon Josefsson.
2651
2652 2008-10-21  Simon Josefsson  <simon@josefsson.org>
2653
2654         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
2655         * lib/accept.c: New file, based on winsock.c.
2656         * lib/bind.c: New file, based on winsock.c.
2657         * lib/connect.c: New file, based on winsock.c.
2658         * lib/getpeername.c: New file, based on winsock.c.
2659         * lib/getsockname.c: New file, based on winsock.c.
2660         * lib/getsockopt.c: New file, based on winsock.c.
2661         * lib/ioctl.c: New file, based on winsock.c.
2662         * lib/listen.c: New file, based on winsock.c.
2663         * lib/recv.c: New file, based on winsock.c.
2664         * lib/recvfrom.c: New file, based on winsock.c.
2665         * lib/send.c: New file, based on winsock.c.
2666         * lib/sendto.c: New file, based on winsock.c.
2667         * lib/setsockopt.c: New file, based on winsock.c.
2668         * lib/shutdown.c: New file, based on winsock.c.
2669         * lib/socket.c: New file, based on winsock.c.
2670         * lib/w32sock.h: New file, based on winsock.c.
2671         * lib/winsock.c: Remove file.
2672         * modules/accept: Likewise.
2673         * modules/bind: Likewise.
2674         * modules/connect: Likewise.
2675         * modules/getpeername: Likewise.
2676         * modules/getsockname: Likewise.
2677         * modules/getsockopt: Likewise.
2678         * modules/ioctl: Likewise.
2679         * modules/listen: Likewise.
2680         * modules/recv: Likewise.
2681         * modules/recvfrom: Likewise.
2682         * modules/send: Likewise.
2683         * modules/sendto: Likewise.
2684         * modules/setsockopt: Likewise.
2685         * modules/shutdown: Likewise.
2686         * modules/socket: Use socket.c instead of winsock.c.
2687         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
2688         * doc/posix-functions/accept.texi: Doc fix.
2689         * doc/posix-functions/bind.texi: Doc fix.
2690         * doc/posix-functions/close.texi: Doc fix.
2691         * doc/posix-functions/connect.texi: Doc fix.
2692         * doc/posix-functions/getpeername.texi: Doc fix.
2693         * doc/posix-functions/getsockname.texi: Doc fix.
2694         * doc/posix-functions/getsockopt.texi: Doc fix.
2695         * doc/posix-functions/ioctl.texi: Doc fix.
2696         * doc/posix-functions/listen.texi: Doc fix.
2697         * doc/posix-functions/recv.texi: Doc fix.
2698         * doc/posix-functions/recvfrom.texi: Doc fix.
2699         * doc/posix-functions/send.texi: Doc fix.
2700         * doc/posix-functions/sendto.texi: Doc fix.
2701         * doc/posix-functions/setsockopt.texi: Doc fix.
2702         * doc/posix-functions/shutdown.texi: Doc fix.
2703         * doc/posix-functions/socket.texi: Doc fix.
2704
2705 2008-10-20  Bruno Haible  <bruno@clisp.org>
2706
2707         Take into account the role of SIGABRT_COMPAT on Windows 2008.
2708         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
2709         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
2710         as an alias for SIGABRT.
2711         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
2712         (sigaction): Map it to SIGABRT.
2713         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
2714
2715 2008-10-20  Bruno Haible  <bruno@clisp.org>
2716
2717         * lib/fts.c: Don't include lstat.h.
2718         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
2719
2720         Move the lstat() declaration to <sys/stat.h>.
2721         * lib/lstat.h: Remove file.
2722         * lib/sys_stat.in.h: Add special invocation convention.
2723         (lstat): New declaration.
2724         * lib/lstat.c (orig_lstat): New function.
2725         (rpl_lstat): Use orig_lstat instead of lstat.
2726         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
2727         AC_C_INLINE. Set REPLACE_LSTAT.
2728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
2729         and REPLACE_LSTAT.
2730         * modules/lstat (Files): Remove lib/lstat.h.
2731         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
2732         (Include): Specify <sys/stat.h> instead of lstat.h.
2733         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
2734         REPLACE_LSTAT.
2735         * NEWS: Mention the change.
2736
2737 2008-10-20  Bruno Haible  <bruno@clisp.org>
2738
2739         * modules/posix_spawn-tests: New file.
2740         * tests/test-posix_spawn3.c: New file.
2741
2742 2008-10-20  Bruno Haible  <bruno@clisp.org>
2743
2744         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
2745         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
2746         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
2747         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
2748         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
2749
2750 2008-10-20  Bruno Haible  <bruno@clisp.org>
2751
2752         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
2753         of posix_spawn on AIX 5.3.
2754
2755 2008-10-20  Bruno Haible  <bruno@clisp.org>
2756
2757         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
2758
2759 2008-10-20  Bruno Haible  <bruno@clisp.org>
2760
2761         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
2762         of AC_LANG_PROGRAM.
2763
2764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
2765
2766         * lib/netdb.in.h: Don't define GNU specific constants until they
2767         are supported or needed.  Reported by Bruno Haible
2768         <bruno@clisp.org>.
2769
2770 2008-10-20  Simon Josefsson  <simon@josefsson.org>
2771
2772         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
2773
2774 2008-10-20  Simon Josefsson  <simon@josefsson.org>
2775
2776         * lib/getaddrinfo.h: Remove file.
2777         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
2778         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
2779         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
2780         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
2781         * modules/netdb: Substitute GNULIB_GETADDRINFO.
2782         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
2783         * tests/test-getaddrinfo.c: Likewise.
2784         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
2785         * NEWS: Mention change.
2786
2787 2008-10-19  Bruno Haible  <bruno@clisp.org>
2788
2789         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
2790
2791 2008-10-19  Bruno Haible  <bruno@clisp.org>
2792
2793         * lib/wait-process.c: Include simply <sys/wait.h>.
2794         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
2795         WIFSTOPPED): Remove fallback definitions.
2796         * modules/wait-process (Depends-on): Add sys_wait.
2797
2798         New module 'sys_wait'.
2799         * modules/sys_wait: New file.
2800         * lib/sys_wait.in.h: New file, partially copied from
2801         lib/wait-process.c.
2802         * m4/sys_wait_h.m4: New file.
2803         * doc/posix-headers/sys_wait.texi: Mention the new module.
2804
2805 2008-10-19  Bruno Haible  <bruno@clisp.org>
2806
2807         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
2808
2809 2008-10-19  Bruno Haible  <bruno@clisp.org>
2810
2811         Assume that waitpid() fills an 'int' status, not a 'union wait'.
2812         * lib/wait-process.c (WAIT_T): Remove type.
2813         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
2814         (wait_subprocess): Update.
2815
2816 2008-10-19  Bruno Haible  <bruno@clisp.org>
2817
2818         New module 'atoll'.
2819         * modules/atoll: New file.
2820         * lib/stdlib.in.h (atoll): New declaration.
2821         * lib/atoll.c: New file, from glibc with modifications.
2822         * m4/atoll.m4: New file.
2823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
2824         HAVE_ATOLL.
2825         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
2826         * doc/posix-functions/atoll.texi: Mention the new module.
2827
2828 2008-10-19  Bruno Haible  <bruno@clisp.org>
2829
2830         Add strtoull() declaration to <stdlib.h>.
2831         * lib/stdlib.in.h (strtoull): New declaration.
2832         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
2833         Set HAVE_STRTOULL.
2834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
2835         HAVE_STRTOULL.
2836         * modules/strtoull (Depends-on): Add stdlib.
2837         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2838         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
2839         HAVE_STRTOULL.
2840
2841 2008-10-19  Bruno Haible  <bruno@clisp.org>
2842
2843         Add strtoll() declaration to <stdlib.h>.
2844         * lib/stdlib.in.h (strtoll): New declaration.
2845         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
2846         Set HAVE_STRTOLL.
2847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
2848         HAVE_STRTOLL.
2849         * modules/strtoll (Depends-on): Add stdlib.
2850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2851         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
2852
2853 2008-10-19  Bruno Haible  <bruno@clisp.org>
2854
2855         * modules/bcopy (Depends-on): Add strings.
2856         (Include): Specify <strings.h>.
2857
2858 2008-10-19  Bruno Haible  <bruno@clisp.org>
2859
2860         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
2861
2862 2008-10-19  Bruno Haible  <bruno@clisp.org>
2863
2864         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
2865         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
2866         mingw.
2867
2868 2008-10-19  Bruno Haible  <bruno@clisp.org>
2869
2870         * lib/atanl.c: Don't include isnanl.h.
2871         * lib/cosl.c: Likewise.
2872         * lib/ldexpl.c: Likewise.
2873         * lib/logl.c: Likewise.
2874         * lib/sinl.c: Likewise.
2875         * lib/sqrtl.c: Likewise.
2876         * lib/tanl.c: Likewise.
2877
2878         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
2879         * lib/isnanf.h: Remove file.
2880         * lib/isnand.h: Remove file.
2881         * lib/isnanl.h: Remove file.
2882         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
2883         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
2884         macros.
2885         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
2886         HAVE_ISNANF, don't define it as a C macro.
2887         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
2888         HAVE_ISNAND, don't define it as a C macro.
2889         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
2890         HAVE_ISNANL, don't define it as a C macro.
2891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
2892         HAVE_ISNAN[FDL].
2893         * modules/isnanf (Files): Remove lib/isnanf.h.
2894         (Depends-on): Add math.
2895         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2896         (Include): Specify <math.h> instead of isnanf.h.
2897         * modules/isnand (Files): Remove lib/isnand.h.
2898         (Depends-on): Add math.
2899         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2900         (Include): Specify <math.h> instead of isnand.h.
2901         * modules/isnanl (Files): Remove lib/isnanl.h.
2902         (Depends-on): Add math.
2903         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2904         (Include): Specify <math.h> instead of isnanl.h.
2905         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
2906         HAVE_ISNAN[FDL].
2907         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
2908         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
2909         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
2910         * NEWS: Mention the change.
2911
2912 2008-10-18  Bruno Haible  <bruno@clisp.org>
2913
2914         Add getusershell(), setusershell(), endusershell() declarations to
2915         <unistd.h>.
2916         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
2917         declarations.
2918         * lib/getusershell.c: Include unistd.h.
2919         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
2920         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
2921         HAVE_GETUSERSHELL.
2922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
2923         and HAVE_GETUSERSHELL.
2924         * modules/getusershell (Depends-on): Add unistd, extensions.
2925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2926         (Include): Specify <unistd.h>.
2927         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
2928         HAVE_GETUSERSHELL.
2929
2930 2008-10-18  Bruno Haible  <bruno@clisp.org>
2931
2932         Add a getloadavg() declaration to <stdlib.h>.
2933         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
2934         getloadavg declaration.
2935         (getloadavg): New declaration.
2936         * lib/getloadavg.c: Include <stdlib.h> first.
2937         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
2938         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
2939         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
2940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
2941         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
2942         * modules/getloadavg (Depends-on): Add stdlib, extensions.
2943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2944         (Include): Specify <stdlib.h>.
2945         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
2946         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
2947
2948 2008-10-18  Bruno Haible  <bruno@clisp.org>
2949
2950         * lib/dirchownmod.c: Don't include lchmod.h.
2951
2952         Move the lchmod() declaration to <sys/stat.h>.
2953         * lib/lchmod.h: Remove file.
2954         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
2955         (lchmod): New declaration, moved here from lib/lchown.h.
2956         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
2957         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
2958         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
2959         and HAVE_LCHMOD.
2960         * modules/lchmod (Files): Remove lib/lchmod.h.
2961         (Depends-on): Add sys_stat, extensions.
2962         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
2963         (Include): Specify <sys/stat.h> instead of lchmod.h.
2964         * modules/sys_stat (Depends-on): Add link-warning.
2965         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
2966         definition of GL_LINK_WARNING.
2967         * NEWS: Mention the change.
2968
2969 2008-10-18  Bruno Haible  <bruno@clisp.org>
2970
2971         * lib/fchdir.c: Don't include dirfd.h.
2972         * lib/fts.c: Likewise.
2973         * lib/getcwd.c: Likewise.
2974         * lib/glob.c: Likewise.
2975
2976         Move the dirfd() declaration to <dirent.h>.
2977         * lib/dirfd.h: Remove file.
2978         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
2979         (dirfd): New declaration.
2980         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
2981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
2982         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
2983         HAVE_DECL_DIRFD.
2984         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
2985         HAVE_DECL_DIRFD.
2986         * modules/dirfd (Files): Remove lib/dirfd.h.
2987         (Depends-on): Add dirent, extensions.
2988         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
2989         (Include): Specify <dirent.h> instead of dirfd.h.
2990         * modules/dirent (Depends-on): Add link-warning.
2991         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
2992         definition of GL_LINK_WARNING.
2993         * NEWS: Mention the change.
2994
2995 2008-10-18  Bruno Haible  <bruno@clisp.org>
2996
2997         Move the euidaccess() declaration to <unistd.h>.
2998         * lib/euidaccess.h: Remove file.
2999         * lib/unistd.in.h (euidaccess): New declaration.
3000         * lib/euidaccess.c: Don't include euidaccess.h.
3001         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
3002         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
3003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
3004         and HAVE_EUIDACCESS.
3005         * modules/euidaccess (Files): Remove lib/euidaccess.h.
3006         (Depends-on): Add unistd.
3007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3008         (Include): Specify <unistd.h> instead of euidaccess.h.
3009         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
3010         HAVE_EUIDACCESS.
3011         * NEWS: Mention the change.
3012
3013 2008-10-18  Bruno Haible  <bruno@clisp.org>
3014
3015         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
3016
3017         Move the getdomainname() declaration to <unistd.h>.
3018         * lib/getdomainname.h: Remove file.
3019         * lib/unistd.in.h (getdomainname): New declaration.
3020         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
3021         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3022         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
3023         HAVE_GETDOMAINNAME.
3024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3025         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
3026         * modules/getdomainname (Files): Remove lib/getdomainname.h.
3027         (Depends-on): Add unistd, extensions.
3028         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3029         (Includes): Specify <unistd.h> instead of getdomainname.h.
3030         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
3031         HAVE_GETDOMAINNAME.
3032         * NEWS: Mention the change.
3033
3034 2008-10-18  Bruno Haible  <bruno@clisp.org>
3035
3036         * modules/dirent: New file.
3037         * m4/dirent_h.m4: New file.
3038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
3039         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
3040         * modules/fchdir (Files): Remove lib/dirent.in.h.
3041         (Depends-on): Add dirent.
3042         (Makefile.am): Move rules to modules/dirent.
3043         * doc/posix-headers/dirent.texi: Mention the new module.
3044
3045 2008-10-18  Bruno Haible  <bruno@clisp.org>
3046
3047         Avoid -Wunused-parameter warnings in public gnulib header files.
3048         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
3049         macro.
3050         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
3051
3052 2008-10-18  Bruno Haible  <bruno@clisp.org>
3053
3054         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
3055         * doc/glibc-functions/error.texi: Mention the module 'error'.
3056         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
3057         * doc/glibc-functions/getdomainname.texi: Mention the module
3058         'getdomainname'.
3059         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
3060         * doc/glibc-functions/getpagesize.texi: Mention the module
3061         'getpagesize'.
3062         * doc/glibc-functions/getusershell.texi: Mention the module
3063         'getusershell'.
3064         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
3065         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
3066         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
3067         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
3068         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
3069         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
3070         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
3071         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
3072         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
3073         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
3074         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
3075         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
3076         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
3077         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
3078
3079 2008-10-17  Bruno Haible  <bruno@clisp.org>
3080
3081         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
3082         HP-UX and IRIX, use -0.0L.
3083         * tests/test-ceill.c (minus_zero): Likewise.
3084         * tests/test-floorl.c (minus_zero): Likewise.
3085         * tests/test-frexpl.c (minus_zero): Likewise.
3086         * tests/test-isnan.c (minus_zerol): Likewise.
3087         * tests/test-isnanl.h (minus_zero): Likewise.
3088         * tests/test-ldexpl.c (minus_zero): Likewise.
3089         * tests/test-roundl.c (minus_zero): Likewise.
3090         * tests/test-signbit.c (minus_zerol): Likewise.
3091         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3092         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3093         * tests/test-truncl.c (minus_zero): Likewise.
3094         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3095         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3096         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
3097         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3098
3099 2008-10-17  Bruno Haible  <bruno@clisp.org>
3100
3101         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
3102         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
3103         that it gets activated only for gcc >= 3.0.
3104         * lib/dirent.in.h: Likewise.
3105         * lib/errno.in.h: Likewise.
3106         * lib/fcntl.in.h: Likewise.
3107         * lib/float.in.h: Likewise.
3108         * lib/iconv.in.h: Likewise.
3109         * lib/inttypes.in.h: Likewise.
3110         * lib/locale.in.h: Likewise.
3111         * lib/math.in.h: Likewise.
3112         * lib/netdb.in.h: Likewise.
3113         * lib/netinet_in.in.h: Likewise.
3114         * lib/search.in.h: Likewise.
3115         * lib/signal.in.h: Likewise.
3116         * lib/spawn.in.h: Likewise.
3117         * lib/stdarg.in.h: Likewise.
3118         * lib/stdint.in.h: Likewise.
3119         * lib/stdio.in.h: Likewise.
3120         * lib/stdlib.in.h: Likewise.
3121         * lib/string.in.h: Likewise.
3122         * lib/strings.in.h: Likewise.
3123         * lib/sys_file.in.h: Likewise.
3124         * lib/sys_ioctl.in.h: Likewise.
3125         * lib/sys_select.in.h: Likewise.
3126         * lib/sys_socket.in.h: Likewise.
3127         * lib/sys_stat.in.h: Likewise.
3128         * lib/sys_time.in.h: Likewise.
3129         * lib/sysexits.in.h: Likewise.
3130         * lib/time.in.h: Likewise.
3131         * lib/unistd.in.h: Likewise.
3132         * lib/wchar.in.h: Likewise.
3133         * lib/wctype.in.h: Likewise.
3134         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3135
3136 2008-10-17  Jim Meyering  <meyering@redhat.com>
3137
3138         ignore-value: don't depend on inline module
3139         * modules/ignore-value (Depends-on): Remove 'inline'.
3140         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
3141         Suggestion from Bruno Haible.
3142
3143 2008-10-17  Bruno Haible  <bruno@clisp.org>
3144
3145         New implementation of condition variables for Win32.
3146         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
3147         (gl_linked_waitqueue_t): New type.
3148         (gl_cond_t): Use it.
3149         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
3150         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
3151         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
3152         (glthread_cond_init_func, glthread_cond_wait_func,
3153         glthread_cond_timedwait_func, glthread_cond_signal_func,
3154         glthread_cond_broadcast_func, glthread_cond_destroy_func):
3155         Reimplemented on the basis of gl_linked_waitqueue_t.
3156         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
3157         gl_waitqueue_t.
3158         (gl_rwlock_t): Update.
3159         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
3160
3161 2008-10-17  Simon Josefsson  <simon@josefsson.org>
3162
3163         * modules/recvfrom (Depends-on): Add dependency on getpeername.
3164         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3165
3166 2008-10-17  Jim Meyering  <meyering@redhat.com>
3167
3168         ignore-value: new module
3169         * modules/ignore-value: New file.
3170         * lib/ignore-value.h: New file.
3171         * MODULES.html.sh (Compiler warning management): New section,
3172         just for this module.  More to come.
3173
3174 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3175
3176         open-safer.c: avoid 'signed and unsigned in conditional...' warning
3177         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
3178         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
3179
3180 2008-10-16  Jim Meyering  <meyering@redhat.com>
3181
3182         openat-die.c: avoid 'no previous prototype' warning
3183         * lib/openat-die.c: Include "openat.h".
3184         Reported by Reuben Thomas <rrt@sc3d.org>.
3185
3186 2008-10-16  Simon Josefsson  <simon@josefsson.org>
3187
3188         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
3189         * lib/netdb.in.h: Fix typo.
3190         Reported by Bruno Haible  <bruno@clisp.org>
3191
3192         * lib/netdb.in.h: Include sys/socket.h for platforms without
3193         netdb.h, to get structures like hostent on MinGW.
3194         * modules/netdb (Depends-on): Add sys_socket.
3195
3196 2008-10-15  Simon Josefsson  <simon@josefsson.org>
3197
3198         * modules/netdb, modules/netdb-tests: New file.
3199         * m4/netdb_h.m4: New file.
3200         * lib/netdb.in.h: Add, currently just an empty file pending
3201         definitions.
3202         * tests/test-netdb.c: New file.
3203         * doc/posix-headers/netdb.texi: Mention that we replace it if
3204         needed.
3205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3206         netdb.
3207
3208 2008-10-15  Simon Josefsson  <simon@josefsson.org>
3209
3210         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
3211         with code.
3212
3213 2008-10-13  Bruno Haible  <bruno@clisp.org>
3214
3215         * lib/glthread/cond.c (glthread_cond_wait_func,
3216         glthread_cond_timedwait_func): Add a comment.
3217
3218 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
3219
3220         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
3221         * tests/test-select.c: Likewise,
3222
3223 2008-10-13  Bruno Haible  <bruno@clisp.org>
3224
3225         * lib/glthread/cond.c (glthread_cond_wait_func,
3226         glthread_cond_timedwait_func): Fix variable name.
3227         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3228
3229 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
3230
3231         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
3232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
3233         struct sockaddr.sa_len.
3234         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
3235
3236 2008-10-13  Simon Josefsson  <simon@josefsson.org>
3237
3238         * build-aux/pmccabe2html: Add css and css_url parameters.
3239
3240 2008-10-12  Bruno Haible  <bruno@clisp.org>
3241
3242         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
3243         calling aclx_get.
3244         Reported by Rainer Tammer <tammer@tammer.net>.
3245
3246 2008-10-12  Bruno Haible  <bruno@clisp.org>
3247
3248         Use msvcrt aware primitives for creation/termination of Win32 threads.
3249         * lib/glthread/thread.c: Include <process.h>.
3250         (glthread_create_func): Use _beginthreadex instead of CreateThread.
3251         (wrapper_func): Update signature.
3252         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
3253
3254 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
3255             Bruno Haible  <bruno@clisp.org>
3256
3257         Provide a Win32 implementation of the 'cond' module.
3258         * lib/glthread/cond.h [USE_WIN32]: New implementation.
3259         * lib/glthread/cond.c (glthread_cond_init_func,
3260         glthread_cond_wait_func, glthread_cond_timedwait_func,
3261         glthread_cond_signal_func, glthread_cond_broadcast_func,
3262         glthread_cond_destroy_func) [USE_WIN32]: New functions.
3263         * modules/cond (Dependencies): Add gettimeofday.
3264
3265 2008-10-11  Bruno Haible  <bruno@clisp.org>
3266
3267         Make sleep work on older versions of mingw.
3268         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
3269         only whether it exists.
3270         * doc/posix-functions/sleep.texi: Mention the problem with older
3271         versions of mingw.
3272
3273 2008-10-11  Bruno Haible  <bruno@clisp.org>
3274
3275         New module 'shutdown'.
3276         * modules/shutdown: New file.
3277         * lib/sys_socket.in.h (shutdown): New declaration.
3278         * lib/winsock.c (shutdown): New function.
3279         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3280         GNULIB_SHUTDOWN.
3281         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
3282         * doc/posix-functions/shutdown.texi: Document the new module.
3283
3284 2008-10-11  Jim Meyering  <meyering@redhat.com>
3285
3286         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
3287
3288 2008-10-11  Bruno Haible  <bruno@clisp.org>
3289
3290         New module 'fclose'.
3291         * modules/fclose: New file.
3292         * lib/stdio.in.h (fclose): New declaration.
3293         * lib/fclose.c: New file.
3294         * m4/fclose.m4: New file.
3295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
3296         REPLACE_FCLOSE.
3297         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
3298         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
3299         REPLACE_FCLOSE.
3300         * modules/close (Depends-on): fclose.
3301         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
3302
3303 2008-10-11  Bruno Haible  <bruno@clisp.org>
3304
3305         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
3306         set errno and don't call _close.
3307
3308 2008-10-10  Bruno Haible  <bruno@clisp.org>
3309
3310         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
3311         ACL, not afterwards. Fixes test failure on Cygwin.
3312
3313 2008-10-09  Ben Pfaff  <blp@gnu.org>
3314
3315         * build-aux/announce-gen: Fix gnulib version related part of usage
3316         message.  Die with a useful error message if no tarballs are
3317         found.
3318
3319 2008-10-10  Jim Meyering  <meyering@redhat.com>
3320
3321         bootstrap: use git's --depth=N option only if it's supported
3322         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
3323         recognize the --depth option.  Reported by Pádraig Brady.
3324
3325 2008-10-09  Bruno Haible  <bruno@clisp.org>
3326
3327         New module 'ioctl'.
3328         * modules/ioctl: New file.
3329         * lib/sys_socket.in.h (ioctl): Remove declaration.
3330         * lib/winsock.c: Include <sys/ioctl.h>.
3331         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
3332         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
3333         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
3334         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
3335         * doc/posix-functions/ioctl.texi: Mention the new module.
3336
3337 2008-10-09  Bruno Haible  <bruno@clisp.org>
3338
3339         New module 'sys_ioctl'.
3340         * lib/sys_ioctl.in.h: New file.
3341         * m4/sys_ioctl_h.m4: New file.
3342         * modules/sys_ioctl: New file.
3343         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
3344
3345 2008-10-09  Bruno Haible  <bruno@clisp.org>
3346
3347         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
3348         * lib/winsock.c: Include <stdarg.h>.
3349         (rpl_ioctl): Change to second argument 'int' and then varargs.
3350
3351 2008-10-09  Bruno Haible  <bruno@clisp.org>
3352
3353         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
3354         when the sys_socket module is present and the system has <winsock2.h>.
3355
3356 2008-10-09  Bruno Haible  <bruno@clisp.org>
3357
3358         * doc/posix-functions/close.texi: Mention module 'close' instead of
3359         module 'sys_socket'.
3360
3361 2008-10-09  Bruno Haible  <bruno@clisp.org>
3362
3363         * doc/glibc-headers/sys_ioctl.texi: New file.
3364         * doc/gnulib.texi: Include it.
3365
3366 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
3367             Bruno Haible  <bruno@clisp.org>
3368
3369         Combine the two replacements of 'close'.
3370         * lib/sys_socket.in.h (close): Define to a reminder to include
3371         <unistd.h>.
3372         (_gl_close_fd_maybe_socket): New declaration.
3373         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
3374         * lib/winsock.c (close): Remove undefinition.
3375         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
3376         needed for the gnulib module 'close'.
3377         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
3378         define to an error symbol or to a warning, if suitable.
3379         * lib/close.c: Include <sys/socket.h>.
3380         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
3381         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
3382         UNISTD_H_HAVE_WINSOCK2_H.
3383         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
3384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3385         UNISTD_H_HAVE_WINSOCK2_H.
3386         * modules/sys_socket (Files): Add m4/unistd_h.m4.
3387         (configure.ac): Set a module indicator.
3388         (Makefile.am): Substitute GNULIB_CLOSE.
3389         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
3390         * modules/poll-tests (Depends-on): Add close.
3391         * modules/select-tests (Depends-on): Likewise.
3392
3393 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
3394             Bruno Haible  <bruno@clisp.org>
3395
3396         New module 'close'.
3397         * modules/close: New file.
3398         * lib/unistd.in.h (close): Move declaration out of the
3399         FCHDIR_REPLACEMENT scope.
3400         (_gl_unregister_fd): New declaration.
3401         * lib/close.c: New file.
3402         * lib/fchdir.c (rpl_close): Remove function.
3403         * m4/close.m4: New file.
3404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
3405         close.
3406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
3407         REPLACE_CLOSE.
3408         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
3409         REPLACE_CLOSE.
3410         * modules/fchdir (Depends-on): Add close.
3411
3412 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
3413             Bruno Haible  <bruno@clisp.org>
3414
3415         * lib/fcntl.in.h (open): Simplify conditionals.
3416         (_gl_register_fd): New declaration.
3417         * lib/fchdir.c (rpl_open): Remove function.
3418         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
3419         also.
3420         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
3421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
3422         open.
3423
3424 2008-10-09  Jim Meyering  <meyering@redhat.com>
3425
3426         GNUmakefile: use the more name-space-friendly "_version"
3427         * top/GNUmakefile (_dummy): Update.
3428         (_version): Rename from "version".
3429
3430 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
3431             Bruno Haible  <bruno@clisp.org>
3432
3433         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
3434         rpl_close.
3435         (_gl_register_fd): New function, extracted from rpl_open.
3436         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
3437         (rpl_open, rpl_opendir): Use _gl_register_fd.
3438
3439 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
3440
3441         Fix organization of 'open' replacement.
3442         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
3443         (gl_FUNC_OPEN): Use it.
3444         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
3445
3446 2008-10-08  Bruno Haible  <bruno@clisp.org>
3447
3448         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
3449
3450 2008-10-08  Simon Josefsson  <simon@josefsson.org>
3451
3452         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
3453         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
3454         listen).
3455
3456 2008-10-08  Eric Blake  <ebb9@byu.net>
3457
3458         GNUmakefile: add 'make version' target
3459         * top/GNUmakefile (_curr-ver): Split version update rules...
3460         (version): ...into a target.
3461
3462 2008-10-07  Bruno Haible  <bruno@clisp.org>
3463
3464         Use a more portable replacement expression for -0.0L.
3465         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
3466         instead of -0.0L. Fix m4 quotation.
3467
3468         * tests/test-signbit.c: Include <float.h>.
3469         (minus_zero): New variable.
3470         (test_signbitl): Use minus_zero instead of -zero.
3471         * modules/signbit-tests (Depends-on): Add float.
3472
3473         * tests/test-ceill.c: Include <float.h>.
3474         (zero): Remove variable.
3475         (minus_zero): New variable.
3476         (main): Use minus_zero instead of -zero.
3477         * modules/ceill-tests (Depends-on): Add float.
3478
3479         * tests/test-floorl.c: Include <float.h>.
3480         (zero): Remove variable.
3481         (minus_zero): New variable.
3482         (main): Use minus_zero instead of -zero.
3483         * modules/floorl-tests (Depends-on): Add float.
3484
3485         * tests/test-roundl.c: Include <float.h>.
3486         (zero): Remove variable.
3487         (minus_zero): New variable.
3488         (main): Use minus_zero instead of -zero.
3489         * modules/roundl-tests (Depends-on): Add float.
3490
3491         * tests/test-truncl.c: Include <float.h>.
3492         (zero): Remove variable.
3493         (minus_zero): New variable.
3494         (main): Use minus_zero instead of -zero.
3495         * modules/truncl-tests (Depends-on): Add float.
3496
3497         * tests/test-frexpl.c (zero): Remove variable.
3498         (minus_zero): New variable.
3499         (main): Use minus_zero instead of -zero.
3500         * modules/frexpl-tests (Depends-on): Add float.
3501
3502         * tests/test-isnan.c (zerol): Remove variable.
3503         (minus_zerol): New variable.
3504         (test_long_double): Use minus_zerol instead of -zerol.
3505         * modules/isnan-tests (Depends-on): Add float.
3506
3507         * tests/test-isnanl.h (zero): Remove variable.
3508         (minus_zero): New variable.
3509         (main): Use minus_zero instead of -zero.
3510         * modules/isnanl-nolibm-tests (Depends-on): Add float.
3511         * modules/isnanl-tests (Depends-on): Add float.
3512
3513         * tests/test-ldexpl.c (zero): Remove variable.
3514         (minus_zero): New variable.
3515         (main): Use minus_zero instead of -zero.
3516         * modules/ldexpl-tests (Depends-on): Add float.
3517
3518         * tests/test-snprintf-posix.h (zerol): Remove variable.
3519         (minus_zerol): New variable.
3520         (test_function): Use minus_zerol instead of -zerol.
3521         * modules/snprintf-posix-tests (Depends-on): Add float.
3522         * modules/vsnprintf-posix-tests (Depends-on): Add float.
3523
3524         * tests/test-sprintf-posix.h (zerol): Remove variable.
3525         (minus_zerol): New variable.
3526         (test_function): Use minus_zerol instead of -zerol.
3527         * modules/sprintf-posix-tests (Depends-on): Add float.
3528         * modules/vsprintf-posix-tests (Depends-on): Add float.
3529
3530         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
3531         (minus_zerol): New variable.
3532         (test_function): Use minus_zerol instead of -zerol.
3533         * modules/vasnprintf-posix-tests (Depends-on): Add float.
3534
3535         * tests/test-vasprintf-posix.c (zerol): Remove variable.
3536         (minus_zerol): New variable.
3537         (test_function): Use minus_zerol instead of -zerol.
3538         * modules/vasprintf-posix-tests (Depends-on): Add float.
3539
3540 2008-10-07  Simon Josefsson  <simon@josefsson.org>
3541
3542         * MODULES.html.sh (Support for building documentation): Mention
3543         pmccabe2html.  Sort entries.
3544
3545         Add pmccabe2html module, from gnupdf.
3546         * build-aux/pmccabe.css: New file.
3547         * build-aux/pmccabe2html: New file.
3548         * m4/pmccabe2html.m4: New file.
3549         * modules/pmccabe2html: New file.
3550
3551 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
3552
3553         flock: new module
3554         * MODULES.html.sh: Add to list of modules.
3555         * lib/flock.c: flock implementation for Windows and Unix systems
3556         which have fcntl.
3557         * doc/glibc-functions/flock.texi: Update documentation.
3558         * lib/sys_file.in.h: <sys/file.h> header file.
3559         * m4/flock.m4: M4 macros.
3560         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
3561         * modules/flock: flock module.
3562         * modules/flock-tests: flock tests module.
3563         * modules/sys_file: sys/file.h module.
3564         * tests/test-flock.c: test suite for flock.
3565
3566 2008-10-06  Jim Meyering  <meyering@redhat.com>
3567
3568         bootstrap: check for LT_INIT more portably still ;-)
3569         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
3570         Spotted by Bruno Haible.
3571
3572 2008-10-06  Eric Blake  <ebb9@byu.net>
3573
3574         test-signbit: avoid tripping Irix cc bug on -0.0L
3575         * tests/test-signbit.c (minus_zerol): Delete, and replace with
3576         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
3577         entire testsuite consistent and avoids an Irix 6.2 bug.
3578
3579 2008-10-05  Bruno Haible  <bruno@clisp.org>
3580             Jim Meyering  <jim@meyering.net>
3581
3582         Add an option for ignoring EPIPE during close_stdout.
3583         * lib/closeout.h: Include <stdbool.h>.
3584         (close_stdout_set_ignore_EPIPE): New declaration.
3585         * lib/closeout.c: Include <stdbool.h>.
3586         (ignore_EPIPE): New variable.
3587         (close_stdout_set_ignore_EPIPE): New function.
3588         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
3589         * lib/close-stream.c (close_stream): Mention the possible EPIPE
3590         failure.
3591         * modules/closeout (Depends-on): Add stdbool.
3592
3593 2008-10-05  Bruno Haible  <bruno@clisp.org>
3594
3595         * modules/accept: New file.
3596         * modules/bind: New file.
3597         * modules/connect: New file.
3598         * modules/getpeername: New file.
3599         * modules/getsockname: New file.
3600         * modules/getsockopt: New file.
3601         * modules/listen: New file.
3602         * modules/recv: New file.
3603         * modules/recvfrom: New file.
3604         * modules/send: New file.
3605         * modules/sendto: New file.
3606         * modules/setsockopt: New file.
3607         * modules/socket: New file.
3608         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
3609         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3610         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
3611         the particular module is requested. Add a link warning when the
3612         particular module is not requested.
3613         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
3614         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
3615         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
3616         the particular module is requested.
3617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
3618         gl_SYS_SOCKET_H_DEFAULTS): New macros.
3619         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
3620         * modules/sys_socket (Depends-on): Add link-warning.
3621         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
3622         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
3623         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
3624         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
3625         GL_LINK_WARNING.
3626         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
3627         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
3628         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
3629         * doc/posix-functions/getpeername.texi: Mention the new module
3630         'getpeername'.
3631         * doc/posix-functions/getsockname.texi: Mention the new module
3632         'getsockname'.
3633         * doc/posix-functions/getsockopt.texi: Mention the new module
3634         'getsockopt'.
3635         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
3636         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
3637         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
3638         * doc/posix-functions/send.texi: Mention the new module 'send'.
3639         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
3640         * doc/posix-functions/setsockopt.texi: Mention the new module
3641         'setsockopt'.
3642         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
3643         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
3644         listen, connect, accept.
3645         * modules/select-tests (Depends-on): Likewise.
3646
3647 2008-10-05  Bruno Haible  <bruno@clisp.org>
3648
3649         * lib/winsock.c (strerror): Remove unused #undef.
3650         (rpl_close): Remove unused local variable.
3651
3652         * modules/sys_socket (Depends-on); Add errno.
3653
3654 2008-10-05  Bruno Haible  <bruno@clisp.org>
3655
3656         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
3657         (select): Add a link warning when the 'select' module is not used.
3658         * modules/sys_select (Depends-on): Add link-warning.
3659         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
3660         Suggested by Paolo Bonzini.
3661
3662 2008-10-05  Jim Meyering  <meyering@redhat.com>
3663
3664         bootstrap: check for LT_INIT more portably
3665         * build-aux/bootstrap: Avoid using grep -E, since it's not
3666         portable enough.  Suggestion from Bruno Haible.
3667
3668 2008-10-05  Bruno Haible  <bruno@clisp.org>
3669
3670         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
3671         as being fixed by gnulib.
3672
3673 2008-10-05  Bruno Haible  <bruno@clisp.org>
3674
3675         * modules/select-tests: New file, mostly copied from
3676         modules/sys_select-tests.
3677         * tests/test-select.c: New file, mostly copied from
3678         tests/test-sys_select.c.
3679         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
3680         * modules/sys_select-tests (Depends-on): Remove all dependencies.
3681         (Makefile.am): Remove test_sys_select_LDADD.
3682
3683         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
3684         to an undefined symbol, for an error message.
3685         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
3686         (gl_SYS_SELECT_H_DEFAULTS): New macro.
3687         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
3688         winsock-select.c here.
3689         * modules/sys_select (Files): Remove lib/winsock-select.c.
3690         (Depends-on): Remove alloca.
3691         (Makefile.am): Substitute GNULIB_SELECT.
3692         * modules/select: New file.
3693         * doc/posix-functions/select.texi: Update.
3694
3695 2008-10-05  Bruno Haible  <bruno@clisp.org>
3696
3697         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
3698         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
3699         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
3700         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
3701         getdtablesize.
3702         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3703         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3704
3705 2008-10-05  Bruno Haible  <bruno@clisp.org>
3706
3707         * modules/getdtablesize-tests: New file.
3708         * tests/test-getdtablesize.c: New file.
3709
3710         New module 'getdtablesize'.
3711         * lib/unistd.in.h (getdtablesize): New declaration.
3712         * lib/getdtablesize.c: New file.
3713         * m4/getdtablesize.m4: New file.
3714         * modules/getdtablesize: New file.
3715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3716         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
3717         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
3718         HAVE_GETDTABLESIZE.
3719         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
3720
3721 2008-10-05  Bruno Haible  <bruno@clisp.org>
3722
3723         * modules/sched (Makefile.am): Fix typo.
3724         Reported by Simon Josefsson.
3725
3726 2008-10-05  Jim Meyering  <meyering@redhat.com>
3727
3728         bootstrap: check for LT_INIT, too
3729         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
3730         are deprecated.  Suggestion from Ralf Wildenhues.
3731
3732 2008-10-05  Bruno Haible  <bruno@clisp.org>
3733
3734         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
3735         overriding them by ours.
3736         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
3737
3738 2008-10-05  Jim Meyering  <meyering@redhat.com>
3739
3740         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
3741         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
3742         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
3743
3744 2008-10-04  Bruno Haible  <bruno@clisp.org>
3745
3746         * modules/dup2 (License): Change to LGPLv2+.
3747         * modules/sleep (License): Likewise.
3748         * modules/perror (License): Likewise.
3749         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
3750         Blake.
3751         * modules/signal (License): Likewise.
3752         * modules/sigprocmask (License): Likewise.
3753         * modules/raise (License): Change to LGPLv2+, with approval by Jim
3754         Meyering.
3755
3756 2008-10-04  Bruno Haible  <bruno@clisp.org>
3757
3758         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
3759         Reported by Rainer Tammer <tammer@tammer.net>.
3760
3761 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
3762             Bruno Haible  <bruno@clisp.org>
3763
3764         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
3765         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
3766         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
3767
3768 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
3769
3770         filevercmp: new module
3771         * lib/filevercmp.h: New function filevercmp comparing version strings.
3772         * lib/filevercmp.c: Implementation of filevercmp function.
3773         * modules/filevercmp: Module metadata.
3774         * tests/test-filevercmp.c: Unit test for new module.
3775         * modules/filevercmp-tests: Unit test metadata.
3776         * MODULES.html.sh: Add filevercmp module.
3777
3778 2008-10-03  Bruno Haible  <bruno@clisp.org>
3779
3780         * lib/c-ctype.h: Add comment.
3781         Reported by Jim Meyering.
3782
3783 2008-10-02  Bruno Haible  <bruno@clisp.org>
3784
3785         * modules/posix_spawn-internal (Depends-on): Add 'open'.
3786
3787 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
3788
3789         * build-aux/bootstrap: Allow renaming bootstrap, and change the
3790         name of bootstrap.conf accordingly.
3791
3792 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
3793
3794         * build-aux/bootstrap: Install git-merge-changelog configuration
3795         items into .gitconfig if needed.
3796
3797 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
3798
3799         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
3800         git repository, and initialize/update it accordingly.
3801
3802 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
3803
3804         * modules/fsync-tests: New file.
3805         * tests/test-fsync.c: New file.
3806
3807         New module 'fsync'.
3808         * lib/fsync.c: New file.
3809         * m4/fsync.m4: New file.
3810         * modules/fsync: New file.
3811         * lib/unistd.in.h (fsync): New declaration.
3812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
3813         GNULIB_FSYNC and HAVE_FSYNC.
3814         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
3815         * MODULES.html.sh (posix_functions): Add fsync.
3816         * doc/posix-functions/fsync.texi: Mention the new module.
3817
3818 2008-10-02  Jim Meyering  <meyering@redhat.com>
3819
3820         fts.c: sync with similar code from coreutils' remove.c
3821         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
3822         Guard also with "#if defined __linux__", since for now at least,
3823         this code is Linux-kernel-specific.
3824
3825 2008-10-02  Jim Meyering  <meyering@redhat.com>
3826
3827         fts: bug fixes
3828         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
3829         Include <sys/vfs.h>, not <sys/statfs.h>.
3830
3831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
3832         Include <sys/vfs.h>, not <sys/statfs.h>.
3833
3834 2008-10-01  Bruno Haible  <bruno@clisp.org>
3835
3836         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
3837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
3838         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
3839         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
3840         * doc/posix-functions/posix_spawnp.texi: Likewise.
3841         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
3842         whether posix_spawn actually works.
3843         * m4/pipe.m4 (gl_PIPE): Likewise.
3844         * modules/execute (Files): Add m4/posix_spawn.m4.
3845         * modules/pipe (Files): Add m4/posix_spawn.m4.
3846         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
3847
3848 2008-10-01  Jim Meyering  <meyering@redhat.com>
3849
3850         remove trailing spaces
3851         * NEWS: Likewise.
3852         * lib/poll.c (poll): Likewise.
3853         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
3854         * lib/winsock.c (rpl_close): Likewise.
3855         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
3856         * modules/yield: Likewise.
3857         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
3858         * tests/test-sys_select.c (connect_to_socket): Likewise.
3859
3860         fts.c: adjust a new interface to be more generally useful
3861         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
3862         (fts_build): Adjust caller.
3863
3864 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3865
3866         * modules/cond-tests: New file.
3867         * tests/test-cond.c: New file.
3868
3869 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3870             Bruno Haible  <bruno@clisp.org>
3871
3872         * modules/cond (Dependencies): Add errno, time.
3873         * lib/glthread/cond.h: Include <time.h>.
3874         (gl_cond_define, gl_cond_define_initialized): Use the same definition
3875         across platforms.
3876
3877 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3878             Bruno Haible  <bruno@clisp.org>
3879
3880         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
3881
3882 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3883             Bruno Haible  <bruno@clisp.org>
3884
3885         * modules/tls-tests (Depends-on): Add thread, yield.
3886         (configure.ac): Remove all checks.
3887         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
3888         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
3889         gl_thread_self): Remove definitions. Include glthread/thread.h and
3890         glthread/yield.h instead.
3891         (test_tls): Pass an additional NULL argument to gl_thread_join.
3892
3893 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3894             Bruno Haible  <bruno@clisp.org>
3895
3896         * modules/lock-tests (Depends-on): Add thread, yield.
3897         (configure.ac): Remove all checks.
3898         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
3899         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
3900         gl_thread_self): Remove definitions. Include glthread/thread.h and
3901         glthread/yield.h instead.
3902         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
3903         additional NULL argument to gl_thread_join.
3904
3905 2008-09-30  Bruno Haible  <bruno@clisp.org>
3906
3907         Fix the Win32 implementation of the 'thread' module.
3908         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
3909         pointer type.
3910         (gl_thread_self): Invoke gl_thread_self_func.
3911         (gl_thread_self_func): New declaration.
3912         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
3913         (do_init_self_key, init_self_key): New functions.
3914         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
3915         Remove some fields.
3916         (running_threads, running_lock): Remove variables.
3917         (get_current_thread_handle): New function.
3918         (gl_thread_self_func, wrapper_func, glthread_create_func,
3919         glthread_join_func, gl_thread_exit_func): Largely rewritten and
3920         simplified.
3921
3922 2008-09-30  Bruno Haible  <bruno@clisp.org>
3923
3924         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
3925         files.
3926
3927 2008-09-30  Jim Meyering  <meyering@redhat.com>
3928
3929         fts.m4: correct the test for statfs.f_type
3930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
3931         when checking for statfs.f_type.
3932
3933 2008-09-15  Simon Josefsson  <simon@josefsson.org>
3934
3935         tests: avoid some compiler warnings
3936         * tests/test-memchr.c (main): Pass NULL indirectly.
3937         * tests/test-getdate.c (main): Remove unused variable 'ret'.
3938
3939 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
3940
3941         getdate.y: disallow countable dayshifts like "4 yesterday ago"
3942         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
3943         exactly specified dayshifts.
3944         (dayshift): New rule.
3945         (rel): Add dayshift.
3946         (relative_time_table) [tomorrow, yesterday, today, now]:
3947         Use tDAY_SHIFT in place of tDAY_UNIT.
3948         * tests/test-getdate.c: Add tests for now-disallowed countable
3949         dayshifts, e.g., "4 yesterday ago".
3950
3951 2008-09-29  Bruno Haible  <bruno@clisp.org>
3952
3953         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
3954         * tests/test-posix_spawn1.in.sh: Renamed from
3955         tests/test-posix_spawn.in.sh.
3956         * tests/test-posix_spawn2.c: New file.
3957         * tests/test-posix_spawn2.in.sh: New file.
3958         * modules/posix_spawnp-tests (Files): Update.
3959         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
3960
3961 2008-09-29  Bruno Haible  <bruno@clisp.org>
3962
3963         Propagate effects of putenv/setenv/unsetenv to child processes.
3964         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
3965         * lib/pipe.c (create_pipe): Likewise.
3966
3967 2008-09-29  Bruno Haible  <bruno@clisp.org>
3968
3969         Enable use of shell scripts as executables in mingw.
3970         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
3971         run the program as a shell script.
3972         * lib/pipe.c (create_pipe): Likewise.
3973         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
3974         resulting array.
3975
3976 2008-09-29  Eric Blake  <ebb9@byu.net>
3977
3978         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
3979
3980 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
3981
3982         * doc/posix-functions/accept.texi: Update mingw problems.
3983         * doc/posix-functions/bind.texi: Update mingw problems.
3984         * doc/posix-functions/close.texi: Update mingw problems.
3985         * doc/posix-functions/connect.texi: Update mingw problems.
3986         * doc/posix-functions/getpeername.texi: Update mingw problems.
3987         * doc/posix-functions/getsockname.texi: Update mingw problems.
3988         * doc/posix-functions/getsockopt.texi: Update mingw problems.
3989         * doc/posix-functions/ioctl.texi: Update mingw problems.
3990         * doc/posix-functions/listen.texi: Update mingw problems.
3991         * doc/posix-functions/recv.texi: Update mingw problems.
3992         * doc/posix-functions/recvfrom.texi: Update mingw problems.
3993         * doc/posix-functions/select.texi: Update mingw problems.
3994         * doc/posix-functions/send.texi: Update mingw problems.
3995         * doc/posix-functions/sendto.texi: Update mingw problems.
3996         * doc/posix-functions/setsockopt.texi: Update mingw problems.
3997         * doc/posix-functions/socket.texi: Update mingw problems.
3998
3999 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
4000             Bruno Haible  <bruno@clisp.org>
4001
4002         * lib/sys_select.in.h: Include sys/time.h.
4003         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
4004         * modules/sys_select: Depend on sys_time.
4005         * tests/test-sys_select.c: Test that sys/select.h defines struct
4006         timeval fully.
4007
4008 2008-09-29  Bruno Haible  <bruno@clisp.org>
4009
4010         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
4011         * lib/sys_select.in.h: Likewise.
4012
4013 2008-09-29  Bruno Haible  <bruno@clisp.org>
4014
4015         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
4016
4017 2008-09-29  Bruno Haible  <bruno@clisp.org>
4018
4019         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
4020         Set LIBSOCKET instead of augmenting LIBS.
4021         * modules/sockets (Link): New section.
4022         * modules/sockets-tests (test_sockets_LDADD): New variable.
4023         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
4024         * modules/poll-tests (test_poll_LDADD): New variable.
4025         * NEWS: Document the change.
4026
4027 2008-09-29  Bruno Haible  <bruno@clisp.org>
4028
4029         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
4030         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
4031         ARPA_INET_H directly.
4032         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4033
4034 2008-09-28  Bruno Haible  <bruno@clisp.org>
4035
4036         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
4037         from gl_HEADER_SYS_SOCKET.
4038         (gl_HEADER_SYS_SOCKET): Invoke it.
4039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4040
4041 2008-09-28  Bruno Haible  <bruno@clisp.org>
4042
4043         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
4044         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
4045         Needed on OSF/1 4.0.
4046
4047 2008-09-28  Bruno Haible  <bruno@clisp.org>
4048
4049         Override open more carefully.
4050         * lib/open.c (orig_open): New function.
4051         (rpl_open): Use orig_open instead of open.
4052         * lib/fcntl.in.h: Add special invocation convention.
4053         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
4054         (gl_FUNC_OPEN): Invoke it.
4055
4056         Override freopen more carefully.
4057         * lib/freopen.c (orig_freopen): New function.
4058         (rpl_freopen): Use orig_freopen instead of freopen.
4059         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
4060         (gl_FUNC_FREOPEN): Invoke it.
4061
4062         Override fopen more carefully.
4063         * lib/fopen.c (orig_fopen): New function.
4064         (rpl_fopen): Use orig_fopen instead of fopen.
4065         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
4066         (gl_FUNC_FOPEN): Invoke it.
4067         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
4068
4069 2008-09-28  Bruno Haible  <bruno@clisp.org>
4070
4071         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
4072         SIGPIPE.
4073
4074 2008-09-28  Bruno Haible  <bruno@clisp.org>
4075
4076         * tests/test-sigaction.c (handler, main): Disable the check whether
4077         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
4078         glibc systems with LinuxThreads.
4079
4080 2008-09-28  Bruno Haible  <bruno@clisp.org>
4081
4082         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
4083
4084         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
4085         with AIX xlc.
4086         * lib/fcntl.in.h (open): Likewise.
4087         Reported by Rainer Tammer <tammer@tammer.net>.
4088
4089 2008-09-28  Bruno Haible  <bruno@clisp.org>
4090
4091         * modules/posix_spawnp-tests: New file.
4092         * tests/test-posix_spawn.c: New file.
4093         * tests/test-posix_spawn.in.sh: New file.
4094
4095         New module 'posix_spawnp'.
4096         * modules/posix_spawnp: New file.
4097         * lib/spawnp.c: New file, from GNU libc with modifications.
4098         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
4099
4100         New module 'posix_spawn'.
4101         * modules/posix_spawn: New file.
4102         * lib/spawn.c: New file, from GNU libc with modifications.
4103         * doc/posix-functions/posix_spawn.texi: Mention the new module.
4104
4105         New module 'posix_spawnattr_destroy'.
4106         * modules/posix_spawnattr_destroy: New file.
4107         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
4108         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
4109         module.
4110
4111         New module 'posix_spawnattr_setsigmask'.
4112         * modules/posix_spawnattr_setsigmask: New file.
4113         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
4114         modifications.
4115         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
4116         new module.
4117
4118         New module 'posix_spawnattr_getsigmask'.
4119         * modules/posix_spawnattr_getsigmask: New file.
4120         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
4121         modifications.
4122         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
4123         new module.
4124
4125         New module 'posix_spawnattr_setsigdefault'.
4126         * modules/posix_spawnattr_setsigdefault: New file.
4127         * lib/spawnattr_setdefault.c: New file, from GNU libc with
4128         modifications.
4129         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
4130         new module.
4131
4132         New module 'posix_spawnattr_getsigdefault'.
4133         * modules/posix_spawnattr_getsigdefault: New file.
4134         * lib/spawnattr_getdefault.c: New file, from GNU libc with
4135         modifications.
4136         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
4137         new module.
4138
4139         New module 'posix_spawnattr_setschedpolicy'.
4140         * modules/posix_spawnattr_setschedpolicy: New file.
4141         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
4142         modifications.
4143         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
4144         new module.
4145
4146         New module 'posix_spawnattr_getschedpolicy'.
4147         * modules/posix_spawnattr_getschedpolicy: New file.
4148         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
4149         modifications.
4150         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
4151         new module.
4152
4153         New module 'posix_spawnattr_setschedparam'.
4154         * modules/posix_spawnattr_setschedparam: New file.
4155         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
4156         modifications.
4157         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
4158         new module.
4159
4160         New module 'posix_spawnattr_getschedparam'.
4161         * modules/posix_spawnattr_getschedparam: New file.
4162         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
4163         modifications.
4164         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
4165         new module.
4166
4167         New module 'posix_spawnattr_setpgroup'.
4168         * modules/posix_spawnattr_setpgroup: New file.
4169         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
4170         modifications.
4171         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
4172         module.
4173
4174         New module 'posix_spawnattr_getpgroup'.
4175         * modules/posix_spawnattr_getpgroup: New file.
4176         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
4177         modifications.
4178         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
4179         module.
4180
4181         New module 'posix_spawnattr_setflags'.
4182         * modules/posix_spawnattr_setflags: New file.
4183         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
4184         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
4185         module.
4186
4187         New module 'posix_spawnattr_getflags'.
4188         * modules/posix_spawnattr_getflags: New file.
4189         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
4190         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
4191         module.
4192
4193         New module 'posix_spawnattr_init'.
4194         * modules/posix_spawnattr_init: New file.
4195         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
4196         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
4197         module.
4198
4199         New module 'posix_spawn_file_actions_destroy'.
4200         * modules/posix_spawn_file_actions_destroy: New file.
4201         * lib/spawn_faction_destroy.c: New file, from GNU libc with
4202         modifications.
4203         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
4204         the new module.
4205
4206         New module 'posix_spawn_file_actions_addopen'.
4207         * modules/posix_spawn_file_actions_addopen: New file.
4208         * lib/spawn_faction_addopen.c: New file, from GNU libc with
4209         modifications.
4210         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4211         the new module.
4212
4213         New module 'posix_spawn_file_actions_adddup2'.
4214         * modules/posix_spawn_file_actions_adddup2: New file.
4215         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
4216         modifications.
4217         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4218         the new module.
4219
4220         New module 'posix_spawn_file_actions_addclose'.
4221         * modules/posix_spawn_file_actions_addclose: New file.
4222         * lib/spawn_faction_addclose.c: New file, from GNU libc with
4223         modifications.
4224         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4225         the new module.
4226
4227         New module 'posix_spawn_file_actions_init'.
4228         * modules/posix_spawn_file_actions_init: New file.
4229         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
4230         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
4231         new module.
4232
4233         New module 'posix_spawn-internal'.
4234         * modules/posix_spawn-internal: New file.
4235         * lib/spawn_int.h: New file, from GNU libc with modifications.
4236         * lib/spawni.c: New file, from GNU libc with modifications.
4237         * m4/posix_spawn.m4: New file.
4238
4239         New module 'spawn'.
4240         * modules/spawn: New file.
4241         * lib/spawn.in.h: New file, from GNU libc with modifications.
4242         * m4/spawn_h.m4: New file.
4243         * doc/posix-headers/spawn.texi: Mention the new module.
4244
4245 2008-09-28  Bruno Haible  <bruno@clisp.org>
4246
4247         * modules/sched-tests: New file.
4248         * tests/test-sched.c: New file.
4249
4250         New module 'sched'.
4251         * modules/sched: New file.
4252         * lib/sched.in.h: New file.
4253         * m4/sched_h.m4: New file.
4254         * doc/posix-headers/sched.texi: Mention the new module.
4255
4256 2008-09-27  Eric Blake  <ebb9@byu.net>
4257
4258         Fix previous patch, and tweak references to $0.
4259         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
4260         (func_version, func_gnulib_dir): Don't call this program
4261         gnulib-tool.
4262         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
4263         with using $0 in function.
4264         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
4265         (func_fatal_error): Reuse the name the user invoked us with.
4266
4267 2008-09-27  Bruno Haible  <bruno@clisp.org>
4268
4269         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
4270         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
4271         (gl_ICONV_H): Not here.
4272         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
4273         instead of assigning ICONV_H directly.
4274
4275         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
4276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
4277         WCHAR_H directly.
4278
4279 2008-09-27  Bruno Haible  <bruno@clisp.org>
4280
4281         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
4282         * modules/arpa_inet (Depends-on): Add link-warning.
4283         (Makefile.am): Insert the definition of GL_LINK-WARNING.
4284         * modules/unistd (Makefile.am): Likewise.
4285
4286 2008-09-26  Bruno Haible  <bruno@clisp.org>
4287
4288         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
4289         variables.
4290         (func_version): Essentially copied from gnulib-tool.
4291         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
4292         func_readlink): Copied from gnulib-tool.
4293
4294 2008-09-26  Bruno Haible  <bruno@clisp.org>
4295
4296         * gnulib-tool (func_version): Change directory to $gnulib_dir before
4297         invoking git-version-gen.
4298
4299 2008-09-26  Bruno Haible  <bruno@clisp.org>
4300
4301         * posix-modules: Update to directory names changed on 2008-01-19.
4302         Remove commas in output before splitting into words. No more need to
4303         avoid 'ftruncate' since 2007-02-19.
4304
4305 2008-09-26  Bruno Haible  <bruno@clisp.org>
4306
4307         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
4308
4309 2008-09-26  Bruno Haible  <bruno@clisp.org>
4310
4311         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
4312         * modules/fwriteerror (Depends-on): Add errno.
4313
4314 2008-09-26  Bruno Haible  <bruno@clisp.org>
4315
4316         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
4317         * tests/test-vc-list-files-cvs.sh: Likewise.
4318
4319 2008-09-26  Bruno Haible  <bruno@clisp.org>
4320
4321         * doc/posix-headers/sys_resource.texi: Reorder items.
4322
4323 2008-09-26  Jim Meyering  <meyering@redhat.com>
4324
4325         fts: tweak inode comparison function
4326         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
4327         inode numbers, as documented.
4328
4329         fts: sort dirent entries on inode number before traversing
4330         This avoids a quadratic, seek-related performance penalty when
4331         operating on a directory containing many entries (measurable at 10k;
4332         3.5 hours at 2 million entries with a cold cache) on certain types
4333         of file systems, including ext3 and ext4, but not tmpfs.
4334         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
4335         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
4336         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
4337         (fs_handles_readdir_ordered_dirents_efficiently): New function.
4338         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
4339         (fts_build): Set the stat.st_ino member from D_INO.
4340         If it is likely to be useful, sort dirent entries on inode number.
4341
4342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
4343         and the struct statfs.f_type member.
4344         * modules/fts (Depends-on): Add d-ino.
4345
4346 2008-09-26  Bruno Haible  <bruno@clisp.org>
4347
4348         * modules/sigpipe-die (Depends-on): Add sigpipe.
4349
4350         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
4351         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
4352         and GNULIB_STDIO_H_SIGPIPE are set.
4353         * lib/stdio-write.c: New file.
4354         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
4355         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
4356         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
4357         REPLACE_STDIO_WRITE_FUNCS.
4358         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
4359         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
4360         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
4361         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
4362         * modules/stdio (Files): Add lib/stdio-write.c.
4363         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
4364         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
4365         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
4366         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
4367         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
4368         REPLACE_FPRINTF_POSIX.
4369         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
4370         REPLACE_PRINTF_POSIX.
4371         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
4372         REPLACE_VFPRINTF_POSIX.
4373         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
4374         REPLACE_VPRINTF_POSIX.
4375         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
4376         SIGPIPE issue.
4377         * doc/posix-functions/fputc.texi: Likewise.
4378         * doc/posix-functions/fputs.texi: Likewise.
4379         * doc/posix-functions/fwrite.texi: Likewise.
4380         * doc/posix-functions/printf.texi: Likewise.
4381         * doc/posix-functions/putc.texi: Likewise.
4382         * doc/posix-functions/putchar.texi: Likewise.
4383         * doc/posix-functions/puts.texi: Likewise.
4384         * doc/posix-functions/vfprintf.texi: Likewise.
4385         * doc/posix-functions/vprintf.texi: Likewise.
4386
4387         * modules/safe-write (Depends-on): Add write.
4388
4389         * modules/sigpipe-tests: New file.
4390         * tests/test-sigpipe.c: New file.
4391         * tests/test-sigpipe.sh: New file.
4392
4393         * modules/write: New file.
4394         * lib/unistd.in.h: Include <sys/types.h>.
4395         (write): New declaration.
4396         * lib/write.c: New file.
4397         * m4/write.m4: New file.
4398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4399         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
4400         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
4401         GNULIB_WRITE, REPLACE_WRITE.
4402         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
4403         and the SIGPIPE issue.
4404
4405         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
4406         (raise): New declaration.
4407         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
4408         (ext_signal): New function.
4409         (rpl_raise): New function.
4410         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4411         GNULIB_SIGNAL_H_SIGPIPE.
4412         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
4413         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
4414
4415         * modules/sigpipe: New file.
4416         * m4/sigpipe.m4: New file.
4417
4418 2008-09-25  Derek Price  <derek@ximbiot.com>
4419             Bruno Haible  <bruno@clisp.org>
4420
4421         * gnulib-tool (func_import): Report all license incompatibilities, not
4422         just the first one.
4423
4424 2008-09-25  Bruno Haible  <bruno@clisp.org>
4425
4426         * gnulib-tool (func_import): When computing the edits, consider not
4427         only the Makefile.ams that exist but also those that will be generated.
4428
4429 2008-09-25  Simon Josefsson  <simon@josefsson.org>
4430
4431         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
4432         fixes gnulib-tool --test warning about duplicate dependency.
4433
4434 2008-09-25  Bruno Haible  <bruno@clisp.org>
4435
4436         * gnulib-tool: Don't ask the user to perform edits in the generated
4437         Makefile.ams.
4438         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
4439         apply to the Makefile.am being generated.
4440         (func_emit_tests_Makefile_am): Execute edits that apply to the
4441         Makefile.am being generated.
4442         (func_import): Setup list of Makefile.am edits before emitting the
4443         Makefile.ams, not at the end.
4444         (func_create_testdir): Update.
4445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4446
4447 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4448
4449         * gnulib-tool (func_import): Store the --tests-base option in the
4450         comment in gnulib-cache.m4.
4451
4452 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
4453
4454         * NEWS: Document increased portability that sys_select now provides.
4455
4456         * lib/sys_select.in.h: Install select wrapper.
4457         * lib/sys_socket.in.h: Use more descriptive name when there is no
4458         select wrapper.
4459         * lib/winsock-select.c: New.
4460         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
4461         Require gl_HEADER_SYS_SOCKET.
4462         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
4463         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
4464         * tests/test-sys_select.c: Add functional tests.
4465
4466 2008-09-24  Eric Blake  <ebb9@byu.net>
4467
4468         open, fopen: close fd leak in last patch
4469         * lib/open.c (rpl_open): Close fd before returning error.
4470         * lib/fopen.c (rpl_fopen): Close fd before returning error.
4471         * doc/posix-functions/open.texi (open): Document that Irix also
4472         has the bug.
4473         * doc/posix-functions/fopen.texi (fopen): Likewise.
4474         Reported by Paolo Bonzini.
4475
4476 2008-09-24  Bruno Haible  <bruno@clisp.org>
4477
4478         Ensure that a filename ending in a slash cannot be used to access a
4479         non-directory.
4480         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
4481         to check whether it's really a directory.
4482         * lib/fopen.c: Include fcntl.h, unistd.h.
4483         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
4484         and fdopen().
4485         * modules/fopen (Depends-on): Add unistd.
4486         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
4487         * tests/test-fopen.c (main): Likewise.
4488         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
4489         * doc/posix-functions/fopen.texi: Likewise.
4490         Reported by Eric Blake.
4491
4492 2008-09-23  Eric Blake  <ebb9@byu.net>
4493
4494         c-stack: avoid compiler optimizations when provoking overflow
4495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
4496         recursion harder to optimize, to ensure a stack overflow occurs.
4497         * tests/test-c-stack.c (recurse): Likewise.
4498         Borrowed from libsigsegv.
4499
4500         c-stack: work around Irix sigaltstack bug
4501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
4502         whether sigaltstack uses wrong end of stack_t (copied in part from
4503         libsigsegv).
4504         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
4505         Irix bug, without requiring an over-allocation.
4506         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
4507         bug.
4508
4509         fopen: document mingw bug on directories
4510         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
4511         not allowing a stream visiting a directory, even though reading
4512         from such a stream is not portable.
4513
4514 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
4515
4516         * lib/poll.c: Rewrite.
4517         * modules/poll: Depend on alloca.
4518
4519 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
4520
4521         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
4522         instead define prototypes for a full set of wrappers.  Ensure
4523         that Cygwin does not use the compatibility code, which is only
4524         for MinGW.
4525         * lib/winsock.c: New.
4526         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
4527         * modules/sys_socket: Add lib/winsock.c.
4528
4529         * modules/poll-tests: Add errno and perror.
4530         * tests/test-poll.c: Use ioctl, not ioctlsocket.
4531
4532 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
4533
4534         * tests/test-poll.c: Downgrade minimum needed Winsock version.
4535
4536 2008-09-23  Bruno Haible  <bruno@clisp.org>
4537
4538         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
4539         * doc/glibc-functions/*: Likewise.
4540
4541 2008-09-23  Simon Josefsson  <simon@josefsson.org>
4542
4543         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
4544         success.
4545
4546 2008-09-22  Eric Blake  <ebb9@byu.net>
4547             Bruno Haible  <bruno@clisp.org>
4548
4549         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
4550         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
4551         supply %A but mishandle pseudo-NaN.
4552         Reported by Simon Josefsson.
4553
4554 2008-09-21  Bruno Haible  <bruno@clisp.org>
4555
4556         * tests/test-lock.c (main): Tweak skip message.
4557         * tests/test-tls.c (main): Likewise.
4558
4559 2008-09-21  Bruno Haible  <bruno@clisp.org>
4560
4561         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
4562         whether 'struct sigaction' has sa_sigaction here...
4563         (gl_PREREQ_SIG_HANDLER_H): ... not here.
4564         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
4565
4566 2008-09-21  Bruno Haible  <bruno@clisp.org>
4567
4568         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
4569         section.
4570         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
4571         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
4572         the new section.
4573         (Support for obsolete systems lacking POSIX:2001): New section.
4574         (String handling <string.h>): Move strdup to the new section.
4575         Suggested by Simon Josefsson and Paolo Bonzini.
4576
4577 2008-09-21  Bruno Haible  <bruno@clisp.org>
4578
4579         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
4580         exponents in %e and %g results on 'long double'. Needed for mingw's
4581         improved *printf functions.
4582         * tests/test-vasprintf-posix.c (test_function): Likewise.
4583         * tests/test-snprintf-posix.h (test_function): Likewise.
4584         * tests/test-sprintf-posix.h (test_function): Likewise.
4585         Reported by Eric Blake.
4586
4587 2008-09-21  Bruno Haible  <bruno@clisp.org>
4588
4589         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
4590         * tests/test-sprintf-posix.h (test_function): Likewise.
4591
4592 2008-09-21  Bruno Haible  <bruno@clisp.org>
4593
4594         * modules/getpass (Depends-on): Add strdup-posix.
4595
4596         New module 'strdup-posix'.
4597         * modules/strdup-posix: New file.
4598         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
4599         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
4600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4601         REPLACE_STRDUP.
4602         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
4603         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
4604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4605         strdup-posix.
4606
4607         * modules/strdup (Depends-on): Remove malloc-posix.
4608
4609 2008-09-20  Bruno Haible  <bruno@clisp.org>
4610
4611         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
4612         Wildenhues.
4613
4614 2008-09-20  Bruno Haible  <bruno@clisp.org>
4615
4616         Ensure that wint_t gets defined on IRIX 5.3.
4617         * lib/wchar.in.h (wint_t): Define if not defined by the system.
4618         * lib/wctype.in.h (wint_t): Likewise.
4619         (__wctype_wint_t): Remove type.
4620         (isw*): Use wint_t instead of __wctype_wint_t.
4621         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
4622         * modules/wchar (Files): Add m4/wint_t.m4.
4623         (Makefile.am): Substitute HAVE_WINT_T.
4624         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
4625         * tests/test-wctype.c: Check that wint_t is defined.
4626         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
4627         * doc/posix-headers/wctype.texi: Likewise.
4628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4629
4630 2008-09-18  Bruno Haible  <bruno@clisp.org>
4631
4632         * gnulib-tool (func_exit): Update comment.
4633
4634 2008-09-18  Simon Josefsson  <simon@josefsson.org>
4635
4636         * modules/getaddrinfo (Depends-on): Remove strdup, this module
4637         assumes strdup exists and does not depend on strdup to return
4638         ENOMEM on out of memory conditions.
4639
4640 2008-09-18  Bruno Haible  <bruno@clisp.org>
4641
4642         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
4643         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
4644         digits for the exponent.
4645
4646 2008-09-18  Jim Meyering  <meyering@redhat.com>
4647             Bruno Haible  <bruno@clisp.org>
4648
4649         * lib/vasnprintf.c (decimal_point_char): Define also if
4650         NEED_PRINTF_INFINITE_LONG_DOUBLE.
4651
4652 2008-09-16  Bruno Haible  <bruno@clisp.org>
4653         and Eric Blake  <ebb9@byu.net>
4654
4655         vasnprintf: support Irix 5.3
4656         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
4657         that mishandle long double infinity.
4658         Reported by Tom G. Christensen.
4659
4660 2008-09-16  Bruno Haible  <bruno@clisp.org>
4661
4662         * doc/glibc-functions/scandir.texi: Mention the function is missing on
4663         Solaris 9.
4664         * doc/glibc-functions/alphasort.texi: Likewise.
4665         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
4666
4667 2008-09-16  Jim Meyering  <meyering@redhat.com>
4668
4669         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
4670         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
4671         a umask modification leak out of a subshell.  Otherwise, the
4672         opensolaris /bin/sh would be accepted and thus cause unwarranted
4673         failures in the coreutils test suite.
4674
4675 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
4676
4677         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
4678         to succeed.
4679
4680 2008-09-16  Jim Meyering  <meyering@redhat.com>
4681
4682         avoid spurious test failure when library is built without ACL support
4683         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
4684         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
4685         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
4686         * tests/test-copy-acl.sh: Likewise.
4687
4688 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4689
4690         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
4691         based on character occurrence counts.
4692
4693 2008-09-15  Eric Blake  <ebb9@byu.net>
4694
4695         tests: avoid some compiler warnings
4696         * tests/test-memchr.c (main): Pass NULL indirectly.
4697         * tests/test-closein.c (main): Avoid unused variable.
4698
4699 2008-09-15  Bruno Haible  <bruno@clisp.org>
4700
4701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
4702         are missing on OpenBSD 4.0 individually.
4703         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4704
4705 2008-09-15  Bruno Haible  <bruno@clisp.org>
4706
4707         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
4708         * doc/posix-functions/strerror.texi: Mention also Cygwin.
4709         * doc/posix-functions/perror.texi: Likewise.
4710         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
4711         is missing.
4712         Reported by Eric Blake.
4713
4714         * lib/errno.in.h: Use replacement values >= 2000.
4715         Reported by Eric Blake.
4716
4717 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4718
4719         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
4720         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
4721         limit.
4722         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
4723         compareseq was aborted.
4724
4725 2008-09-14  Bruno Haible  <bruno@clisp.org>
4726
4727         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
4728         yvec_edit_count.
4729         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
4730         (fstrcmp_bounded): Simplify result computation accordingly.
4731
4732 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4733
4734         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
4735         (fstrcmp): Define in terms of fstrcmp_bounded.
4736         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
4737         lower_bound argument.
4738         Return quickly if the result is certainly < lower_bound.
4739         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
4740
4741 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4742
4743         * lib/diffseq.h (EARLY_ABORT): New macro.
4744         (compareseq): Change return type to bool. Return true when EARLY_ABORT
4745         evaluates to true.
4746
4747 2008-09-14  Bruno Haible  <bruno@clisp.org>
4748
4749         * modules/perror-tests: New file.
4750         * tests/test-perror.sh: New file.
4751         * tests/test-perror.c: New file.
4752
4753         New module 'perror'.
4754         * lib/stdio.in.h (perror): New declaration.
4755         * lib/perror.c: New file.
4756         * m4/perror.m4: New file.
4757         * modules/perror: New file.
4758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
4759         * doc/posix-functions/perror.texi: Mention the perror module.
4760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
4761         REPLACE_PERROR.
4762         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
4763         REPLACE_PERROR.
4764
4765 2008-09-14  Bruno Haible  <bruno@clisp.org>
4766
4767         * modules/stdio (Makefile.am): Reorder to match the order in
4768         lib/stdio.in.h.
4769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4770
4771 2008-09-13  Bruno Haible  <bruno@clisp.org>
4772
4773         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
4774
4775 2008-09-13  Bruno Haible  <bruno@clisp.org>
4776
4777         Extend strerror to cover the added errno values.
4778         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
4779         (rpl_strerror): Provide error messages for the added errno values and
4780         for the WSA* values.
4781         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
4782         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
4783         strerror.
4784         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
4785         * modules/strerror (Depends-on): Add errno.
4786         * doc/posix-functions/strerror.texi: Document the change.
4787         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
4788         and EOVERFLOW.
4789
4790 2008-09-13  Bruno Haible  <bruno@clisp.org>
4791
4792         * modules/EOVERFLOW: Remove file.
4793         * m4/eoverflow.m4: Remove file.
4794         * modules/EOVERFLOW-tests: Remove file.
4795         * tests/test-EOVERFLOW.c: Remove file.
4796         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
4797         * modules/ftell (Depends-on): Likewise.
4798         * modules/getdelim (Depends-on): Likewise.
4799         * modules/getugroups (Depends-on): Likewise.
4800         * modules/poll (Depends-on): Likewise.
4801         * modules/snprintf (Depends-on): Likewise.
4802         * modules/sprintf-posix (Depends-on): Likewise.
4803         * modules/vasnprintf (Depends-on): Likewise.
4804         * modules/vasprintf (Depends-on): Likewise.
4805         * modules/vfprintf-posix (Depends-on): Likewise.
4806         * modules/vsnprintf (Depends-on): Likewise.
4807         * modules/vsprintf-posix (Depends-on): Likewise.
4808         * modules/xvasprintf (Depends-on): Likewise.
4809         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4810         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
4811         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
4812         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
4813         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4814         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
4815         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
4816         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
4817         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4818         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
4819         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
4820         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
4821         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4822         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
4823         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
4824         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
4825         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4826         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
4827         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
4828         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
4829         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4830         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
4831         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
4832         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
4833         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
4834         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4835         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
4836         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
4837         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
4838         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
4839         * MODULES.html.sh: Remove EOVERFLOW.
4840         * NEWS: Mention the change.
4841
4842 2008-09-13  Bruno Haible  <bruno@clisp.org>
4843
4844         * modules/errno-tests: New file.
4845         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
4846
4847         * lib/errno.in.h: New file.
4848         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
4849         * modules/errno: New file.
4850         * doc/posix-headers/errno.texi: Update documentation.
4851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
4852
4853 2008-09-13  Bruno Haible  <bruno@clisp.org>
4854
4855         * tests/test-poll.c: Use #if for native Windows, rather than testing
4856         __MSVCRT__.
4857
4858 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4859             Bruno Haible  <bruno@clisp.org>
4860
4861         * lib/glob.c: Don't include <pwd.h> on native Windows.
4862         (WINDOWS32): New macro.
4863         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
4864
4865 2008-09-13  Bruno Haible  <bruno@clisp.org>
4866
4867         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
4868         (ETIMEDOUT): Remove macro.
4869         (glthread_cond_timedwait_multithreaded): New declaration.
4870         (glthread_cond_timedwait): Use it.
4871         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
4872         (glthread_cond_timedwait_multithreaded): New function.
4873
4874 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
4875
4876         * modules/poll-tests: Do not check for io.h.
4877         * tests/test-poll.c: Check for __MSVCRT__ instead.
4878
4879 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
4880
4881         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
4882         * modules/poll-tests: Add inet_pton, stdbool, sockets.
4883         * tests/test-poll.c: Use them.  Use _pipe on Windows.
4884
4885 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
4886
4887         * modules/poll-tests: New.
4888         * tests/test-poll.c: New.
4889
4890 2008-09-12  Eric Blake  <ebb9@byu.net>
4891
4892         frexp: test for NetBSD failure on -0.0
4893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
4894         not all, bugs from NetBSD 3.0 have been fixed.
4895         * doc/posix-functions/frexp.texi (frexp): Document bug.
4896         Reported by Thomas Klausner.
4897
4898         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
4899         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
4900         literal -0.0.
4901         Reported by Jonathan C. Patschke <jp@centtech.com>.
4902
4903 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4904
4905         * lib/glthread/cond.h: Use dummy implementation also if
4906         USE_WIN32_THREADS.
4907
4908 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4909
4910         * modules/fnmatch-posix (License): Change to LGPLv2+.
4911         * modules/fnmatch-gnu (License): Likewise.
4912
4913 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4914
4915         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
4916
4917 2008-09-11  Jim Meyering  <meyering@redhat.com>
4918
4919         * users.txt: Add gtk-vnc.
4920
4921 2008-09-08  Simon Josefsson  <simon@josefsson.org>
4922
4923         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
4924         rotate amounts.
4925
4926         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
4927         required for 16-bit and 8-bit rotates.
4928         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
4929         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
4930         UINT8_MAX instead of hard-coded constants.
4931         Suggested by Paul Eggert.
4932
4933 2008-09-07  Bruno Haible  <bruno@clisp.org>
4934
4935         * tests/test-striconveh.c (main): Check behaviour when converting from
4936         UTF-7.
4937
4938         Make striconveh work better with stateful encodings.
4939         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
4940         that iconv does not increment the inptr when returning -1/EINVAL.
4941
4942 2008-09-07  Bruno Haible  <bruno@clisp.org>
4943
4944         * build-aux/config.rpath: Update according to libtool-2.2.6.
4945         * build-aux/config.libpath: Likewise.
4946
4947 2008-09-06  Bruno Haible  <bruno@clisp.org>
4948
4949         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
4950         * lib/freadptr.c (freadptr): Likewise.
4951         * lib/freadseek.c (freadptrinc): Likewise.
4952         Reported by Simon Josefsson.
4953
4954 2008-09-06  Bruno Haible  <bruno@clisp.org>
4955
4956         * modules/freadptr (License): Change to LGPLv2+.
4957         * modules/freadseek (License): Likewise.
4958         Suggested by Eric Blake.
4959
4960         * modules/memchr2 (License): Change to LGPLv2+.
4961         Approved by Eric Blake.
4962
4963 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4964             Bruno Haible  <bruno@clisp.org>
4965
4966         Make gnulib-tool work with native 'sed' on AIX.
4967         * gnulib-tool (sed_noop): New variable.
4968         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
4969         func_add_or_update, func_create_testdir): Use it to initialize sed
4970         script variables.
4971         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4972
4973 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
4974             Bruno Haible  <bruno@clisp.org>
4975
4976         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
4977         also works after #include directives.
4978
4979 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
4980
4981         getdate.y: reject an out-of-range timezone value
4982         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
4983         the range [-24...+24].  When specified with only one or two digits,
4984         * tests/test-getdate.c: Tests for the fix.
4985         * doc/getdate.texi: Document this change.
4986
4987 2008-09-03  Bruno Haible  <bruno@clisp.org>
4988
4989         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
4990
4991 2008-09-02  Simon Josefsson  <simon@josefsson.org>
4992
4993         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
4994         <bruce.korb@gmail.com> with ideas from Ben Pfaff
4995         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
4996         Blake <ebb9@byu.net>.
4997
4998         * tests/test-bitrotate.c: Add more test vectors.
4999
5000 2008-09-02  Eric Blake  <ebb9@byu.net>
5001
5002         vasnprintf-posix: handle large precision via %.*d
5003         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
5004         when handling it ourselves.
5005         * tests/test-vasnprintf-posix.c (test_function): Add test.
5006         * tests/test-snprintf-posix.h (test_function): Likewise.
5007         * tests/test-sprintf-posix.h (test_function): Likewise.
5008         * tests/test-vasprintf-posix.c (test_function): Likewise.
5009         Reported by Alain Guibert.
5010
5011 2008-09-01  Eric Blake  <ebb9@byu.net>
5012
5013         c-stack: make configure-time check more robust
5014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
5015         successful sigaction call.
5016         Reported by Tom G. Christensen.
5017
5018 2008-09-01  Bruno Haible  <bruno@clisp.org>
5019
5020         New module 'findprog-lgpl'.
5021         * modules/findprog-lgpl: New file.
5022         * lib/findprog-lgpl.c: New file.
5023         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
5024         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
5025         to decide whether to use strdup or xstrdup, concatenated_filename or
5026         xconcatenated_filename.
5027
5028 2008-09-01  Bruno Haible  <bruno@clisp.org>
5029
5030         Split module 'concat-filename' into 'concat-filename' (LGPL) and
5031         'xconcat-filename' (GPL).
5032         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
5033         (License): Change to LGPLv2+.
5034         * modules/xconcat-filename: New file.
5035         * lib/concat-filename.h (concatenated_filename): Change specification.
5036         (xconcatenated_filename): New declaration.
5037         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
5038         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
5039         memory situations.
5040         * lib/xconcat-filename.c: New file.
5041         * NEWS: Mention the change.
5042         * lib/findprog.c: Include concat-filename.h, not filename.h.
5043         (find_in_path): Use xconcatenated_filename instead of
5044         concatenated_filename.
5045         * lib/javacomp.c: Include concat-filename.h, not filename.h.
5046         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5047         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5048         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5049         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
5050         instead of concatenated_filename.
5051         * lib/javaexec.c: Include concat-filename.h, not filename.h.
5052         (execute_java_class): Use xconcatenated_filename instead of
5053         concatenated_filename.
5054         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
5055         * modules/javacomp (Depends-on): Likewise.
5056         * modules/javaexec (Depends-on): Likewise.
5057
5058 2008-09-01  Bruno Haible  <bruno@clisp.org>
5059
5060         Split module 'filename' into 'filename' and 'concat-filename'.
5061         * modules/filename: Keep only lib/filename.h.
5062         (License): Change to LGPLv2+.
5063         * modules/concat-filename: New file, extracted from modules/filename.
5064         * lib/filename.h (concatenated_filename): Remove declaration.
5065         * lib/concat-filename.h: New file, extracted from lib/filename.h.
5066         * lib/concat-filename.c: Include concat-filename.h.
5067         * NEWS: Mention the change.
5068
5069 2008-09-01  Simon Josefsson  <simon@josefsson.org>
5070
5071         * lib/bitrotate.h (rotl8, rotr8): Add.
5072
5073         * modules/bitrotate (configure.ac): Need
5074         AC_REQUIRE([AC_C_INLINE]).
5075         (Description): Mention stdint.h.  Reported by Bruno Haible
5076         <bruno@clisp.org>.
5077
5078         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
5079         Paolo Bonzini <bonzini@gnu.org>.
5080
5081 2008-08-31  Bruno Haible  <bruno@clisp.org>
5082
5083         Assume Solaris specific bi-arch conventions on Solaris systems.
5084         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
5085         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
5086         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
5087         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
5088         like acl_libdirstem.
5089         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
5090         acl_libdirstem.
5091         * NEWS: Mention the change.
5092         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
5093
5094 2008-08-31  Jim Meyering  <meyering@redhat.com>
5095
5096         * lib/strftime.h: Add comments describing the two added arguments.
5097
5098         remove duplicate #include directives
5099         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
5100         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
5101
5102 2008-08-31  Bruno Haible  <bruno@clisp.org>
5103
5104         New module 'sigpipe-die'.
5105         * modules/sigpipe-die: New file.
5106         * lib/sigpipe-die.h: New file.
5107         * lib/sigpipe-die.c: New file.
5108         * MODULES.html.sh (Signal handling): Add sigpipe-die.
5109
5110 2008-08-31  Bruno Haible  <bruno@clisp.org>
5111
5112         Don't override previously installed signal handlers.
5113         * lib/fatal-signal.c (saved_sigactions): New variable.
5114         (uninstall_handlers): Reset the signal to the saved handler, not
5115         to SIG_DFL (except when ignored).
5116         (install_handlers): Save the previous handlers.
5117
5118 2008-08-30  Bruno Haible  <bruno@clisp.org>
5119
5120         * gnulib-tool (func_reset_sigpipe): New function.
5121         (func_get_automake_snippet, func_modules_transitive_closure,
5122         func_import): Invoke it before a join command that reads from stdin,
5123         to avoid "echo: write error: Broken pipe" error messages on stderr.
5124         Reported by Sam Steingold <sds@gnu.org>.
5125
5126 2008-08-30  Bruno Haible  <bruno@clisp.org>
5127
5128         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
5129         Code copied from m4/open.m4.
5130         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
5131         access and the filename ends in a slash. Code copied from lib/open.c.
5132         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
5133         * tests/test-fopen.c (main): Check against bug with trailing slash.
5134
5135 2008-08-29  Bruno Haible  <bruno@clisp.org>
5136
5137         Avoid some "gcc -pedantic" warnings.
5138         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
5139         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
5140         * lib/dirent.in.h: Likewise.
5141         * lib/fcntl.in.h: Likewise.
5142         * lib/float.in.h: Likewise.
5143         * lib/iconv.in.h: Likewise.
5144         * lib/inttypes.in.h: Likewise.
5145         * lib/locale.in.h: Likewise.
5146         * lib/math.in.h: Likewise.
5147         * lib/netinet_in.in.h: Likewise.
5148         * lib/search.in.h: Likewise.
5149         * lib/signal.in.h: Likewise.
5150         * lib/stdarg.in.h: Likewise.
5151         * lib/stdint.in.h: Likewise.
5152         * lib/stdio.in.h: Likewise.
5153         * lib/stdlib.in.h: Likewise.
5154         * lib/string.in.h: Likewise.
5155         * lib/strings.in.h: Likewise.
5156         * lib/sys_select.in.h: Likewise.
5157         * lib/sys_socket.in.h: Likewise.
5158         * lib/sys_stat.in.h: Likewise.
5159         * lib/sys_time.in.h: Likewise.
5160         * lib/sysexits.in.h: Likewise.
5161         * lib/time.in.h: Likewise.
5162         * lib/unistd.in.h: Likewise.
5163         * lib/wchar.in.h: Likewise.
5164         * lib/wctype.in.h: Likewise.
5165         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
5166         * modules/fchdir (Makefile.am): Likewise.
5167         * modules/fcntl (Makefile.am): Likewise.
5168         * modules/float (Makefile.am): Likewise.
5169         * modules/iconv_open (Makefile.am): Likewise.
5170         * modules/inttypes (Makefile.am): Likewise.
5171         * modules/locale (Makefile.am): Likewise.
5172         * modules/math (Makefile.am): Likewise.
5173         * modules/netinet_in (Makefile.am): Likewise.
5174         * modules/search (Makefile.am): Likewise.
5175         * modules/signal (Makefile.am): Likewise.
5176         * modules/stdarg (Makefile.am): Likewise.
5177         * modules/stdint (Makefile.am): Likewise.
5178         * modules/stdio (Makefile.am): Likewise.
5179         * modules/stdlib (Makefile.am): Likewise.
5180         * modules/string (Makefile.am): Likewise.
5181         * modules/strings (Makefile.am): Likewise.
5182         * modules/sys_select (Makefile.am): Likewise.
5183         * modules/sys_socket (Makefile.am): Likewise.
5184         * modules/sys_stat (Makefile.am): Likewise.
5185         * modules/sys_time (Makefile.am): Likewise.
5186         * modules/sysexits (Makefile.am): Likewise.
5187         * modules/time (Makefile.am): Likewise.
5188         * modules/unistd (Makefile.am): Likewise.
5189         * modules/wchar (Makefile.am): Likewise.
5190         * modules/wctype (Makefile.am): Likewise.
5191         Reported by Reuben Thomas <rrt@sc3d.org>.
5192
5193 2008-08-29  Bruno Haible  <bruno@clisp.org>
5194
5195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
5196         any more.
5197
5198 2008-08-29  Simon Josefsson  <simon@josefsson.org>
5199
5200         * MODULES.html.sh (Misc): Add bitrotate.
5201
5202         * modules/bitrotate: New file.
5203
5204         * lib/bitrotate.h: New file.
5205
5206         * modules/bitrotate-tests: New file.
5207
5208         * tests/test-bitrotate.c: New file.
5209
5210         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
5211         on the bitrotate module.
5212
5213         * lib/arctwo.c: Use new bitrotate module.
5214
5215 2008-08-29  Jim Meyering  <meyering@redhat.com>
5216
5217         bootstrap: merge changes from coreutils
5218         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
5219         of copied files.  Remove a kludge, now that this is fixed.
5220         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
5221         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
5222         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
5223
5224 2008-08-29  Bruno Haible  <bruno@clisp.org>
5225
5226         * MODULES.html.sh: Remove --cvs-urls option.
5227
5228 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
5229
5230         maint.mk: adjust to file name change
5231         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
5232
5233 2008-08-28  Jim Meyering  <meyering@redhat.com>
5234
5235         * modules/getndelim2 (License): Relicense to LGPLv2+.
5236         Approved by Richard Stallman for the version of 1995, and by
5237         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
5238
5239 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
5240
5241         * lib/getdelim.c (flockfile, funlockfile): Make all of them
5242         dummy if one is not available.  Do not touch them if
5243         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
5244         (getc_maybe_unlocked): New.
5245         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
5246
5247 2008-08-26  Eric Blake  <ebb9@byu.net>
5248
5249         doc/INSTALL: resync from autoconf
5250         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
5251         (INSTALL_PRELUDE): Delete; this is done more efficiently by
5252         moving...
5253         * install.texi [!autoconf]: ...here.  Resync from autoconf.
5254         * INSTALL: Regenerate.
5255         * INSTALL.ISO: New file.
5256         * INSTALL.UTF-8: Likewise.
5257
5258 2008-08-26  Jim Meyering  <meyering@redhat.com>
5259
5260         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
5261         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
5262         these definitions conditional, so that they may be overridden, too.
5263
5264 2008-08-26  Bruno Haible  <bruno@clisp.org>
5265
5266         Generate INSTALL file variants with prettier quotes.
5267         * doc/Makefile (INSTALL_PRELUDE): New macro.
5268         (INSTALL): Use it.
5269         (INSTALL.ISO, INSTALL.UTF-8): New rules.
5270
5271 2008-08-26  Bruno Haible  <bruno@clisp.org>
5272
5273         Run makeinfo in an English locale.
5274         * doc/Makefile (MAKEINFO): New variable.
5275
5276 2008-08-26  Bruno Haible  <bruno@clisp.org>
5277
5278         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
5279         Suggested by Eric Blake.
5280
5281 2008-08-25  Bruno Haible  <bruno@clisp.org>
5282
5283         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
5284
5285 2008-08-25  Eric Blake  <ebb9@byu.net>
5286
5287         c-stack: test that stack overflow can be caught
5288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
5289         that platform allows handling stack overflow; at least OS/2 EMX
5290         has sigaltstack, but crashes before transferring control to
5291         handler on stack overflow.
5292         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
5293         check for HAVE_STACK_OVERFLOW_HANDLING.
5294         Reported by Elbert Pol.
5295
5296 2008-08-25  Bruno Haible  <bruno@clisp.org>
5297
5298         * doc/posix-functions/strftime.texi: Fix description of strftime
5299         module.
5300
5301 2008-08-24  Bruno Haible  <bruno@clisp.org>
5302
5303         * tests/uniwidth/test-uc_width2.c: New file.
5304         * tests/uniwidth/test-uc_width2.sh: New file.
5305         * modules/uniwidth/width-tests (Files): Add the new files.
5306         (TESTS): Add uniwidth/test-uc_width2.sh.
5307         (TESTS_ENVIRONMENT): New variable.
5308         (check_PROGRAMS): Add test-uc_width2.
5309         (test_uc_width2_SOURCES): New variable.
5310
5311         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
5312         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
5313         not 0x00AB.
5314         Reported by Alexander V. Lukyanov <lav@netis.ru>.
5315
5316 2008-08-22  Eric Blake  <ebb9@byu.net>
5317
5318         test-lock, test-tls: mention why a test is skipped
5319         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
5320         skipped.
5321         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
5322
5323         count-one-bits: relax license
5324         * modules/count-one-bits (License): Relicense to LGPLv2+.
5325         Suggested by Ludovic Courtès, approved by Ben Pfaff.
5326
5327 2008-08-22  Andreas Schwab  <schwab@suse.de>
5328
5329         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5330         Remove spurious space in assignment.
5331
5332 2008-08-21  Simon Josefsson  <simon@josefsson.org>
5333
5334         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
5335         Paul Eggert <eggert@CS.UCLA.EDU>.
5336
5337 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
5338
5339         * modules/gettext: Add m4/threadlib.m4.
5340
5341 2008-08-19  Eric Blake  <ebb9@byu.net>
5342
5343         test-c-stack: fix compilation failure on FreeBSD 5.0
5344         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
5345         headers before <sys/resource.h>.
5346         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
5347         the bug.
5348         Reported by Nelson H. F. Beebe.
5349
5350         strverscmp: migrate from "strverscmp.h" to <string.h>
5351         * modules/string (Makefile.am): Add new hooks.
5352         * modules/strverscmp (Files): Remove strverscmp.h.
5353         (Depends-on): Add string.
5354         (configure.ac): Add indicator.
5355         (Include): Mention new header.
5356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
5357         defaults.
5358         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
5359         results.
5360         * lib/strverscmp.h: Delete.
5361         * lib/string.in.h (strverscmp): Provide declaration, when needed.
5362         * tests/test-strverscmp.c (includes): Adjust client.
5363         * lib/check-version.c (includes): Likewise.
5364         * NEWS: Document the change.
5365
5366         strverscmp: add unit test
5367         * modules/strverscmp-tests: New file.
5368         * tests/test-strverscmp.c: Likewise.
5369
5370 2008-08-19  Simon Josefsson  <simon@josefsson.org>
5371
5372         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
5373         regarding Windows crypto stuff, from Mono.
5374
5375 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
5376
5377         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
5378         if present, for intel RND.  Return error on failures.
5379
5380 2008-08-18  Ben Pfaff  <blp@gnu.org>
5381
5382         gitlog-to-changelog: give better diagnostic for failed pipe-open
5383         * build-aux/gitlog-to-changelog: Improve error message: suggest
5384         that the version of Git may be too old.
5385
5386 2008-08-18  Simon Josefsson  <simon@josefsson.org>
5387
5388         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
5389         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
5390
5391 2008-08-18  Bruno Haible  <bruno@clisp.org>
5392
5393         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
5394         pthread_in_use().
5395
5396 2008-08-18  Bruno Haible  <bruno@clisp.org>
5397
5398         * lib/glthread/threadlib.c: Include <pthread.h>.
5399
5400 2008-08-18  Bruno Haible  <bruno@clisp.org>
5401
5402         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
5403         glthread_recursive_lock_* macros.
5404         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
5405         Fix syntax error.
5406
5407 2008-08-18  Bruno Haible  <bruno@clisp.org>
5408
5409         * lib/glthread/thread.c: Avoid forcing a context switch right after
5410         thread creation.
5411
5412 2008-08-17  Bruno Haible  <bruno@clisp.org>
5413
5414         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
5415         * lib/glthread/thread.h: Provide Win32 specific implementation.
5416         * modules/thread (Files): Add lib/glthread/thread.c.
5417         (Depends-on): Add lock.
5418         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
5419
5420 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5421
5422         New module 'yield'.
5423         * modules/yield: New file.
5424         * lib/glthread/yield.h: New file.
5425         * m4/yield.m4: New file.
5426         * MODULES.html.sh (Multithreading): Add yield.
5427
5428 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5429
5430         New module 'thread'.
5431         * modules/thread: New file.
5432         * lib/glthread/thread.h: New file.
5433         * m4/thread.m4: New file.
5434         * MODULES.html.sh (Multithreading): Add thread.
5435
5436 2008-08-17  Bruno Haible  <bruno@clisp.org>
5437
5438         * lib/glthread/lock.h: Include <stdlib.h> always.
5439         * lib/glthread/tls.h: Likewise.
5440         * lib/glthread/cond.h: Likewise.
5441
5442 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5443
5444         New module 'cond'.
5445         * modules/cond: New file.
5446         * lib/glthread/cond.h: New file.
5447         * lib/glthread/cond.c: New file.
5448         * m4/cond.m4: New file.
5449         * MODULES.html.sh (Multithreading): Add cond.
5450
5451 2008-08-16  Eric Blake  <ebb9@byu.net>
5452
5453         c-stack: fix regression on Irix 5.3 from 2008-06-21
5454         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
5455         sa_sigaction...
5456         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
5457         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
5458         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
5459         * modules/signal (Makefile.am): Use the value.
5460         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
5461         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
5462         * doc/posix-headers/signal.texi (signal.h): Document this
5463         portability issue.
5464         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
5465         Reported by Tom G. Christensen.
5466
5467 2008-08-17  Bruno Haible  <bruno@clisp.org>
5468
5469         New module 'threadlib'.
5470         * modules/threadlib: New file.
5471         * lib/glthread/threadlib.c: New file, extracted from
5472         lib/glthread/lock.c.
5473         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
5474         functions.
5475         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
5476         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
5477         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
5478         macros.
5479         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
5480         (gl_DISABLE_THREADS): Remove macro.
5481         * modules/lock (Files): Remove build-aux/config.rpath.
5482         (Depends-on): Remove havelib. Add threadlib.
5483         (configure.ac-early): Remove section.
5484         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
5485         * modules/tls (Depends-on): Remove lock. Add threadlib.
5486         (Link): New section, copied from threadlib.
5487         * MODULES.html.sh (Multithreading): Add threadlib.
5488
5489 2008-08-14  Bruno Haible  <bruno@clisp.org>
5490
5491         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
5492         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
5493         glthread_rwlock_unlock, glthread_rwlock_destroy,
5494         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
5495         glthread_recursive_lock_destroy): Define as macros always.
5496         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
5497         glthread_lock_lock.
5498         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
5499         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
5500         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
5501         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
5502         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
5503         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
5504         (glthread_recursive_lock_lock_func): Renamed from
5505         glthread_recursive_lock_lock.
5506         (glthread_recursive_lock_unlock_func): Renamed from
5507         glthread_recursive_lock_unlock.
5508         (glthread_recursive_lock_destroy_func): Renamed from
5509         glthread_recursive_lock_destroy.
5510
5511 2008-08-14  Bruno Haible  <bruno@clisp.org>
5512
5513         * lib/glthread/lock.h: Renamed from lib/lock.h.
5514         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
5515         * lib/glthread/tls.h: Renamed from lib/tls.h.
5516         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
5517         * lib/fstrcmp.c: Update includes.
5518         * lib/strsignal.c: Update includes.
5519         * modules/lock (Files, Makefile.am): Update.
5520         (Include): Change to "glthread/lock.h".
5521         * modules/tls (Files, Makefile.am): Update.
5522         (Include): Change to "glthread/tls.h".
5523         * tests/test-lock.c: Update includes.
5524         * tests/test-tls.c: Update includes.
5525         * NEWS: Mention the renamed header files.
5526
5527 2008-08-11  Jim Meyering  <meyering@redhat.com>
5528
5529         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
5530
5531 2008-08-11  Eric Blake  <ebb9@byu.net>
5532
5533         test-c-stack: avoid C99-ism
5534         * tests/test-c-stack.c (main): Fix whitespace, move declaration
5535         before statement.
5536         Reported by Alain Guibert.
5537
5538 2008-08-10  Jim Meyering  <meyering@redhat.com>
5539
5540         ensure that return value of uinttostr et al are not ignored
5541         * lib/inttostr.h (__GNUC_PREREQ): Define.
5542         (__attribute_warn_unused_result__): Define.
5543         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
5544
5545 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
5546
5547         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
5548         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
5549
5550 2008-08-07  Jim Meyering  <meyering@redhat.com>
5551
5552         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
5553
5554         * modules/mkstemp (License): Relicense under LGPLv2+.
5555         * modules/tempname (License): Likewise.
5556
5557 2008-08-06  Bruno Haible  <bruno@clisp.org>
5558
5559         * lib/poll.c (poll): Further micro-optimization.
5560
5561 2008-08-06  Jim Meyering  <meyering@redhat.com>
5562
5563         inet_pton.c: use locale-independent tolower
5564         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
5565         (inet_pton6): Use c_tolower rather than tolower.
5566         * modules/inet_pton (Depends-on): Add c-ctype.
5567
5568 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
5569
5570         * lib/poll.c (poll): Avoid division when timeout is 0, cache
5571         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
5572
5573 2008-08-06  Jim Meyering  <meyering@redhat.com>
5574
5575         * modules/inet_pton (License): Relicense under LGPLv2+.
5576
5577 2008-08-03  Bruno Haible  <bruno@clisp.org>
5578
5579         Additional non-aborting API for lock and tls.
5580         * lib/lock.h: Include <errno.h>.
5581         (glthread_lock_init): New macro/function.
5582         (gl_lock_init): Define as wrapper around glthread_lock_init.
5583         (glthread_lock_lock): New macro/function.
5584         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
5585         (glthread_lock_unlock): New macro/function.
5586         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
5587         (glthread_lock_destroy): New macro/function.
5588         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
5589         (glthread_rwlock_init): New macro/function.
5590         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
5591         (glthread_rwlock_rdlock): New macro/function.
5592         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
5593         (glthread_rwlock_wrlock): New macro/function.
5594         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
5595         (glthread_rwlock_unlock): New macro/function.
5596         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
5597         (glthread_rwlock_destroy): New macro/function.
5598         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
5599         (glthread_recursive_lock_init): New macro/function.
5600         (gl_recursive_lock_init): Define as wrapper around
5601         glthread_recursive_lock_init.
5602         (glthread_recursive_lock_lock): New macro/function.
5603         (gl_recursive_lock_lock): Define as wrapper around
5604         glthread_recursive_lock_lock.
5605         (glthread_recursive_lock_unlock): New macro/function.
5606         (gl_recursive_lock_unlock): Define as wrapper around
5607         glthread_recursive_lock_unlock.
5608         (glthread_recursive_lock_destroy): New macro/function.
5609         (gl_recursive_lock_destroy): Define as wrapper around
5610         glthread_recursive_lock_destroy.
5611         (glthread_once): New macro/function.
5612         (gl_once): Define as wrapper around glthread_once.
5613         Update function declarations.
5614         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
5615         glthread_rwlock_init. Return error code.
5616         (glthread_rwlock_rdlock_multithreaded): Renamed from
5617         glthread_rwlock_rdlock. Return error code.
5618         (glthread_rwlock_wrlock_multithreaded): Renamed from
5619         glthread_rwlock_wrlock. Return error code.
5620         (glthread_rwlock_unlock_multithreaded): Renamed from
5621         glthread_rwlock_unlock. Return error code.
5622         (glthread_rwlock_destroy_multithreaded): Renamed from
5623         glthread_rwlock_destroy. Return error code.
5624         (glthread_recursive_lock_init_multithreaded): Renamed from
5625         glthread_recursive_lock_init. Return error code.
5626         (glthread_recursive_lock_lock_multithreaded): Renamed from
5627         glthread_recursive_lock_lock. Return error code.
5628         (glthread_recursive_lock_unlock_multithreaded): Renamed from
5629         glthread_recursive_lock_unlock. Return error code.
5630         (glthread_recursive_lock_destroy_multithreaded): Renamed from
5631         glthread_recursive_lock_destroy. Return error code.
5632         (glthread_once_call): Make static.
5633         (glthread_once_multithreaded): Renamed from glthread_once.
5634         * lib/tls.h: Include <errno.h>.
5635         (glthread_tls_key_init): New macro/function.
5636         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
5637         (glthread_tls_set): New macro/function.
5638         (gl_tls_set): Define as wrapper around glthread_tls_set.
5639         (glthread_tls_key_destroy): New macro/function.
5640         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
5641         Update function declarations.
5642         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
5643         glthread_tls_get.
5644         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5645
5646 2008-08-04  Eric Blake  <ebb9@byu.net>
5647
5648         gnumakefile: use space, not TAB, outside of targets
5649         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
5650
5651 2008-08-02  Jim Meyering  <meyering@redhat.com>
5652
5653         getdate.y: avoid locale-dependent date parsing failure
5654         In Turkish locales, getdate would fail to recognize keywords
5655         containing a lowercase "i".  The solution is not to rely on
5656         locale-sensitive case-conversion.
5657         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
5658         (lookup_word): Use c_toupper in place of toupper.
5659         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
5660         Reported by Vefa Bicakci <bicave@superonline.com> in
5661         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
5662         * modules/getdate (Depends-on): Add c-ctype.
5663
5664 2008-08-02  Bruno Haible  <bruno@clisp.org>
5665
5666         * gnulib-tool (func_import): When updating or creating a .gitignore
5667         file, prepend each added line with a slash, and ignore leading slashes
5668         from the existing lines.
5669         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5670
5671 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5672
5673         Portability fix for GNU make 3.79.1.
5674         * top/GNUmakefile: Avoid 'else COND', which older GNU make
5675         versions do not understand.
5676
5677 2008-08-01  Bruno Haible  <bruno@clisp.org>
5678
5679         Work around bug of HP-UX 10.20 cc with -0.0 literal.
5680         * tests/test-isnanf.h (zero): New variable.
5681         (main): Avoid literal -0.0f.
5682         * tests/test-isnand.h (zero): New variable.
5683         (main): Avoid literal -0.0.
5684         * tests/test-isnanl.h (zero): New variable.
5685         (main): Avoid literal -0.0L.
5686         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
5687         (test_float, test_double, test_long_double): Avoid literals -0.0f,
5688         -0.0, -0.0L.
5689         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
5690         (test_signbitd): Avoid literal -0.0.
5691         (test_signbitl): Avoid literal -0.0L.
5692         * tests/test-ceilf1.c (zero): New variable.
5693         (main): Avoid literal -0.0f.
5694         * tests/test-ceill.c (zero): New variable.
5695         (main): Avoid literal -0.0L.
5696         * tests/test-floorf1.c (zero): New variable.
5697         (main): Avoid literal -0.0f.
5698         * tests/test-floorl.c (zero): New variable.
5699         (main): Avoid literal -0.0L.
5700         * tests/test-roundf1.c (zero): New variable.
5701         (main): Avoid literal -0.0f.
5702         * tests/test-round1.c (zero): New variable.
5703         (main): Avoid literal -0.0.
5704         * tests/test-roundl.c (zero): New variable.
5705         (main): Avoid literal -0.0L.
5706         * tests/test-truncf1.c (zero): New variable.
5707         (main): Avoid literal -0.0f.
5708         * tests/test-trunc1.c (zero): New variable.
5709         (main): Avoid literal -0.0.
5710         * tests/test-truncl.c (zero): New variable.
5711         (main): Avoid literal -0.0L.
5712         * tests/test-frexp.c (zero): New variable.
5713         (main): Avoid literal -0.0.
5714         * tests/test-frexpl.c (zero): New variable.
5715         (main): Avoid literal -0.0L.
5716         * tests/test-ldexpl.c (zero): New variable.
5717         (main): Avoid literal -0.0L.
5718         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
5719         (zerod, zerol): New variables.
5720         (test_function): Avoid literals -0.0, -0.0L.
5721         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
5722         (zerod, zerol): New variables.
5723         (test_function): Avoid literals -0.0, -0.0L.
5724         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
5725         (zerod, zerol): New variables.
5726         (test_function): Avoid literals -0.0, -0.0L.
5727         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
5728         (zerod, zerol): New variables.
5729         (test_function): Avoid literals -0.0, -0.0L.
5730         * tests/test-strtod.c (zero): New variable.
5731         (main): Avoid literal -0.0.
5732         Reported by Jonathan C. Patschke <jp@centtech.com>.
5733
5734 2008-07-31  Jim Meyering  <meyering@redhat.com>
5735
5736         sha256.h: correct definition of SHA224_DIGEST_SIZE
5737         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
5738         Reported by Paulie Pena IV <paulie4@gmail.com>.
5739         Define as 224 / 8, rather than as a literal.
5740         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
5741         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
5742         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
5743
5744 2008-07-31  Bruno Haible  <bruno@clisp.org>
5745
5746         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
5747         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
5748         Reported by Jonathan Patschke <jp@centtech.com>.
5749
5750 2008-07-31  Bruno Haible  <bruno@clisp.org>
5751
5752         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
5753         Reported by Paolo Bonzini <bonzini@gnu.org>.
5754
5755 2008-07-30  Eric Blake  <ebb9@byu.net>
5756
5757         test-strtod: allow compilation without -lm
5758         * tests/test-strtod.c (main): Avoid link dependence on fabs.
5759         Reported by Dennis Clarke <blastwave@gmail.com>.
5760
5761 2008-07-28  Jim Meyering  <meyering@redhat.com>
5762
5763         bootstrap: work also when there are no .po files in po/
5764         * build-aux/bootstrap (update_po_files): Complete the change
5765         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
5766
5767 2008-07-27  Jim Meyering  <meyering@redhat.com>
5768
5769         * users.txt: Add zile.
5770
5771 2008-07-26  Ben Pfaff  <blp@gnu.org>
5772
5773         Add missing dependencies on new m4/exponent[fdl].m4 files.
5774         * modules/isnanf-nolibm: Add m4/exponentf.m4.
5775         * modules/isnand-nolibm: Add m4/exponentd.m4.
5776         * modules/isnanl-nolibm: Add m4/exponentl.m4.
5777         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
5778         m4/isnan[fdl].m4, because the macros actually used moved.
5779         Reported by Jim Meyering.
5780
5781 2008-07-14  Ben Pfaff  <blp@gnu.org>
5782
5783         Add isinf module.
5784         * lib/isinf.c: New file.
5785         * lib/math.in.h: Define isinf macro if we have decided to replace
5786         it.
5787         * m4/isinf.m4: New file.
5788         * m4/math_h.m4: Initialize and substitute variables for isinf
5789         module.
5790         * modules/isinf: New file.
5791         * modules/isinf-tests: New file.
5792         * modules/math: Add substitutions for new module.
5793         * tests/test-isinf.c: New file.
5794         * doc/posix-functions/isinf.texi: Mention new module.
5795         * MODULES.html.sh: Mention new module.
5796
5797 2008-07-14  Ben Pfaff  <blp@gnu.org>
5798
5799         Factor out some macros for use by additional modules.
5800         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
5801         exponentf.m4.
5802         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
5803         exponentd.m4.
5804         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
5805         file exponentl.m4.
5806         * m4/exponentf.m4: New file.
5807         * m4/exponentd.m4: New file.
5808         * m4/exponentl.m4: New file.
5809         * modules/isnanf: Use new file m4/exponentf.m4.
5810         * modules/isnand: Use new file m4/exponentd.m4.
5811         * modules/isnanl: Use new file m4/exponentl.m4.
5812
5813 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
5814
5815         mktime.c: normalize tp->tm_isdst value to -1/0/1.
5816         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5817         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
5818         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
5819
5820         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
5821         readlink on platforms without PATH_MAX.
5822
5823 2008-07-21  Eric Blake  <ebb9@byu.net>
5824
5825         Warn, not fail, on stale version.
5826         * top/GNUmakefile (_curr-ver): Tone down previous patch.
5827
5828         Don't allow installation with stale devel version number.
5829         * top/GNUmakefile (_is-install-target): New macro.
5830         (_curr-ver): Forbid installation with stale version number.
5831
5832 2008-07-20  Bruno Haible  <bruno@clisp.org>
5833
5834         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
5835         TESTS_ENVIRONMENT.
5836         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
5837
5838 2008-07-20  Bruno Haible  <bruno@clisp.org>
5839
5840         * lib/c-stack.h (c_stack_action): Add documentation.
5841         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
5842
5843 2008-07-20  Bruno Haible  <bruno@clisp.org>
5844
5845         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
5846         * modules/readlink (License): Likewise.
5847
5848 2008-07-17  Eric Blake  <ebb9@byu.net>
5849
5850         * modules/c-stack (Link): Fix typo.
5851
5852         Make c-stack use libsigsegv, when available.
5853         * modules/c-stack (Depends-on): Add libsigsegv.
5854         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
5855         needed.
5856         * lib/c-stack.c (SIGSTKSZ): Define fallback.
5857         (segv_handler, overflow_handler, c_stack_action)
5858         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
5859         implementation when libsigsegv is available, but only when using
5860         the library is necessary.
5861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
5862         comment, explaining why XSI check fails on Linux.
5863         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
5864         * tests/test-c-stack2.sh: Tweak skip message.
5865         * NEWS: Document new link-time requirements.
5866
5867 2008-07-16  Eric Blake  <ebb9@byu.net>
5868
5869         c-stack: Expose false positives when not using libsigsegv.
5870         * modules/c-stack-tests (Files): Expand test.
5871         * tests/test-c-stack.c (main): Add means to conditionally trigger
5872         non-overflow SIGSEGV.
5873         * tests/test-c-stack2.sh: New file.
5874
5875 2008-07-14  Bruno Haible  <bruno@clisp.org>
5876
5877         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
5878         Reported by Eric Blake.
5879
5880 2008-07-14  Sam Steingold  <sds@gnu.org>
5881             Bruno Haible  <bruno@clisp.org>
5882
5883         New module libsigsegv.
5884         * modules/libsigsegv: New file.
5885         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
5886         modifications.
5887         * MODULES.html.sh (Signal handling): New section.
5888
5889 2008-07-14  Bruno Haible  <bruno@clisp.org>
5890
5891         * modules/unictype/ctype-* (Description): Add the word "function".
5892         Improves the resulting doc in MODULES.html.
5893
5894 2008-07-12  Ben Pfaff  <blp@gnu.org>
5895
5896         Add longlong module.
5897         * modules/longlong: New file.
5898
5899 2008-07-12  Bruno Haible  <bruno@clisp.org>
5900
5901         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
5902         to empty.
5903
5904 2008-07-10  Ben Pfaff  <blp@gnu.org>
5905
5906         Add isnan module.
5907         * doc/posix-functions/isnan.texi: Mention new module.
5908         * lib/math.in.h: Define isnan macro if we have decided to replace
5909         it.
5910         * m4/isnan.m4: New file.
5911         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
5912         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
5913         also.
5914         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
5915         redundancy.
5916         * m4/math_h.m4: Initialize and substitute variables for isnan
5917         module.
5918         * modules/isnan: New file.
5919         * modules/isnan-tests: New file.
5920         * modules/math: Add substitutions for new module.
5921         * tests/test-isnan.c: New file.
5922         * MODULES.html.sh: Mention new module.
5923
5924 2008-07-10  Ben Pfaff  <blp@gnu.org>
5925
5926         Add isnanf module.
5927         * lib/isnanf.m4: New file.
5928         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
5929         (gl_HAVE_ISNANF_IN_LIBM): New macro.
5930         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
5931         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
5932         * modules/isnanf: New file.
5933         * modules/isnanf-tests: New file.
5934         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
5935         files.
5936         * tests/test-isnanf-nolibm.c: factored most of its contents into
5937         new file tests/test-isnanf.h.
5938         * tests/test-isnanf.h: New file.
5939         * tests/test-isnanf.c: New file.
5940         * MODULES.html.sh: Mention new module.
5941         * doc/glibc-functions/isnanf.texi: Mention new module.
5942
5943 2008-07-10  Ben Pfaff  <blp@gnu.org>
5944
5945         Add isnand module.
5946         * lib/isnand.h: New file.
5947         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
5948         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
5949         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
5950         functionality also.
5951         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
5952         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
5953         (gl_HAVE_ISNAND_IN_LIBM): New macro.
5954         * modules/isnand: New file.
5955         * modules/isnand-tests: New file.
5956         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
5957         files.
5958         * tests/test-isnand-nolibm.c: factored most of its contents into
5959         new file tests/test-isnand.h.
5960         * tests/test-isnand.h: New file.
5961         * tests/test-isnand.c: New file.
5962         * MODULES.html.sh: Mention new module.
5963
5964 2008-07-10  Ben Pfaff  <blp@gnu.org>
5965
5966         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
5967         * lib/isnand.h: Rename lib/isnand-nolibm.h.
5968         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
5969         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
5970         * modules/isnanf-nolibm: Update references to renamed files.
5971         * modules/isnand-nolibm: Likewise.
5972         * modules/isnanf-nolibm-tests: Likewise.
5973         * modules/isnand-nolibm-tests: Likewise.
5974         * lib/frexp.c: Likewise.
5975         * lib/isfinite.c: Likewise.
5976         * lib/signbitd.c: Likewise.
5977         * lib/signbitf.c: Likewise.
5978         * lib/vasnprintf.c: Likewise.
5979         * tests/test-ceilf1.c: Likewise.
5980         * tests/test-ceilf2.c: Likewise.
5981         * tests/test-floorf1.c: Likewise.
5982         * tests/test-floorf2.c: Likewise.
5983         * tests/test-frexp.c: Likewise.
5984         * tests/test-round1.c: Likewise.
5985         * tests/test-round2.c: Likewise.
5986         * tests/test-roundf1.c: Likewise.
5987         * tests/test-strtod.c: Likewise.
5988         * tests/test-trunc1.c: Likewise.
5989         * tests/test-trunc2.c: Likewise.
5990         * tests/test-truncf1.c: Likewise.
5991         * tests/test-truncf2.c: Likewise.
5992         * NEWS: Mention the renamed header files.
5993
5994 2008-07-11  Jim Meyering  <meyering@redhat.com>
5995
5996         vc-list-files: make the last-resort awk code more portable
5997         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
5998         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
5999         does not support it.
6000
6001 2008-07-10  Eric Blake  <ebb9@byu.net>
6002
6003         Work with tar's bootstrap.
6004         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
6005         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
6006         an m4 comment.
6007
6008 2008-07-09  Jim Meyering  <meyering@redhat.com>
6009
6010         posix-shell.m4: fix typo that made this test malfunction
6011         * m4/posix-shell.m4: Remove capitalization in variable name.
6012
6013 2008-07-08  Bruno Haible  <bruno@clisp.org>
6014
6015         * m4/onceonly.m4: Update comments.
6016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6017
6018 2008-07-04  Jim Meyering  <meyering@redhat.com>
6019
6020         * users.txt: Add vc-dwim.
6021         (bison, coreutils): Use the gitweb URL.
6022
6023 2008-07-03  Jim Meyering  <meyering@redhat.com>
6024
6025         * users.txt: Add libffcall.  From Sam Steingold.
6026
6027 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
6028
6029         getdate.y: do not ignore TZ with relative day, month or year offset
6030         * lib/getdate.y (get_date): Move the tz-handling block to follow the
6031         relative-date-handling, since otherwise, the latter would clobber the
6032         sole output (an updated Start value) of the tz-handling block.
6033         * tests/test-getdate.c: Tests for the fix
6034
6035 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6036
6037         Recognize 'foo_LIBRARIES += libgnu.a'.
6038         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
6039         makefile snippet has already specified an installation location,
6040         also using '+='.
6041
6042 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
6043
6044         getdate.y: factor out common actions
6045         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
6046         Use them in place of open-coded actions.
6047
6048 2008-07-01  Simon Josefsson  <simon@josefsson.org>
6049
6050         Add self-test for getdate module.
6051         * modules/getdate-tests: New file.
6052         * tests/test-getdate.c: New file.
6053
6054 2008-06-29  Bruno Haible  <bruno@clisp.org>
6055
6056         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
6057         .gitignore.
6058         Reported by Sylvain Beucler <beuc@beuc.net>.
6059
6060 2008-06-29  Bruno Haible  <bruno@clisp.org>
6061
6062         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
6063         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
6064
6065 2008-06-29  Bruno Haible  <bruno@clisp.org>
6066
6067         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
6068         EXTRA_DIST.
6069         Reported by Sylvain Beucler <beuc@beuc.net>.
6070
6071 2008-06-26  Jim Meyering  <meyering@redhat.com>
6072
6073         make several modules depend on the "open" module
6074         This provides slightly increased consistency when opening-for-write
6075         the name of a non-directory spelled with a trailing slash.
6076         * modules/chdir-safer: Likewise.
6077         * modules/chown: Likewise.
6078         * modules/clean-temp: Likewise.
6079         * modules/copy-file: Likewise.
6080         * modules/fchdir: Likewise.
6081         * modules/fcntl-safer: Likewise.
6082         * modules/pipe: Likewise.
6083         * modules/utime: Likewise.
6084         Prompted by Eric Blake and Bruno Haible.
6085
6086 2008-06-24  Andreas Schwab  <schwab@suse.de>
6087
6088         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
6089         literals can be used as initializers for global variables.
6090
6091 2008-06-23  Eric Blake  <ebb9@byu.net>
6092
6093         Make gnulib-cache.m4 easier to diff.
6094         * gnulib-tool (func_import): Allow newlines when reading cached
6095         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
6096
6097 2008-06-23  Bruno Haible  <bruno@clisp.org>
6098
6099         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
6100         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
6101         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
6102         m4/signalblocking.m4.
6103         (gl_PREREQ_SIGACTION): Don't invoke it.
6104         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
6105         gl_PREREQ_SIG_HANDLER_H.
6106         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
6107         Don't check for sigaction here.
6108
6109 2008-06-23  Bruno Haible  <bruno@clisp.org>
6110
6111         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
6112         (install_handlers): Don't set the SA_RESETHAND flag.
6113
6114 2008-06-23  Bruno Haible  <bruno@clisp.org>
6115
6116         * m4/sigaction.m4: Comment fixes.
6117         * lib/signal.in.h: Likewise.
6118
6119 2008-06-23  Eric Blake  <ebb9@byu.net>
6120
6121         Fix typo.
6122         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
6123
6124         Avoid SA_ namespace.
6125         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
6126         Reported by Ralf Wildenhues.
6127
6128         Avoid test failure due to SA_RESTORER.
6129         * tests/test-sigaction.c (SA_MASK): New macro.
6130         (main): Avoid failing due to extension flags being set.
6131         Reported by Jim Meyering.
6132
6133         Revert use of sig-handler.h in sigprocmask.c.
6134         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
6135         it requires the existence of struct sigaction.
6136         * lib/sigprocmask.c (handler_t): Restore typedef.
6137         (rpl_signal, old_handlers): Use local type.
6138
6139 2008-06-22  Bruno Haible  <bruno@clisp.org>
6140
6141         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
6142         conditionally.
6143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6144
6145 2008-06-22  Bruno Haible  <bruno@clisp.org>
6146
6147         * doc/posix-functions/siginterrupt.texi: Move note.
6148
6149         * lib/signal.in.h (SA_RESTART): New macro.
6150         * lib/sigaction.c: Update comment.
6151
6152         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
6153
6154         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
6155         (gl_PREREQ_SIGPROCMASK): Invoke it.
6156         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
6157
6158         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
6159
6160         * lib/sigprocmask.c: Update a comment.
6161
6162 2008-06-21  Eric Blake  <ebb9@byu.net>
6163
6164         Use sigaction module rather than signal().
6165         * modules/c-stack (Depends-on): Add sigaction.
6166         * modules/fatal-signal (Depends-on): Likewise.
6167         * modules/nanosleep (Depends-on): Likewise.
6168         * modules/sigprocmask (Files): Add sig-handler.h.
6169         * modules/sigaction (Files): Likewise.
6170         * lib/sig-handler.h (get_handler): New file, suggested by Paul
6171         Eggert.
6172         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
6173         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
6174         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6175         (init_fatal_signals): Likewise.
6176         * lib/nanosleep.c (rpl_nanosleep): Likewise.
6177         (siginterrupt): Delete fallback.
6178         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
6179         instead.
6180         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
6181         siginterrupt.
6182
6183         New module sigaction, for mingw.
6184         * modules/sigaction: New module...
6185         * modules/sigaction-tests: ...and its test.
6186         * m4/sigaction.m4: New file.
6187         * lib/sigaction.c: Likewise.
6188         * tests/test-sigaction.c: Likewise.
6189         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
6190         * modules/signal (Makefile.am): Likewise.
6191         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
6192         needed.
6193         * doc/posix-headers/signal.texi (signal.h): Mention provided
6194         types.
6195         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
6196         that sigaction is preferable.
6197         * doc/posix-functions/sigaction.texi (sigaction): Mention new
6198         module.
6199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6200         sigaction.
6201
6202         Improve robustness of sigprocmask by overriding signal.
6203         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
6204         is in use.
6205         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
6206         (SIGKILL, SIGSTOP): Provide fallbacks.
6207         (rpl_signal): Implement.
6208         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
6209         signal can be called inside handlers.
6210
6211         Fix nanosleep module on mingw.
6212         * modules/nanosleep (Depends-on): Add sys_select.
6213         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
6214
6215         Fix licensing of sigprocmask.
6216         * modules/raise (License): Relicense as LGPL.
6217
6218 2008-06-21  Bruno Haible  <bruno@clisp.org>
6219
6220         * lib/propername.c (proper_name_utf8): Don't use the transliterated
6221         result if it contains question marks.
6222         Reported by Michael Geng <linux@michaelgeng.de>.
6223
6224 2008-06-19  Bruno Haible  <bruno@clisp.org>
6225
6226         Fix CVS-ism.
6227         * doc/gnulib.texi: Include updated-stamp.texi.
6228         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
6229         (updated-stamp.texi): New rule.
6230         (gnulib.info): Depend on it.
6231         * doc/.gitignore: Add updated-stamp.texi.
6232         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
6233
6234 2008-06-19  Bruno Haible  <bruno@clisp.org>
6235
6236         * doc/Makefile (gnulib.info): Update and simplify dependencies.
6237         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6238
6239 2008-06-19  Eric Blake  <ebb9@byu.net>
6240
6241         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
6242         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
6243         Reported by Stepan Kasal.
6244
6245 2008-06-18  Bruno Haible  <bruno@clisp.org>
6246
6247         * lib/fatal-signal.c (init_fatal_signals): Add comment.
6248         Reported by Eric Blake.
6249
6250 2008-06-18  Eric Blake  <ebb9@byu.net>
6251
6252         Work around cygwin 1.5.25 strsignal bug.
6253         * tests/test-strsignal.c: Allow for const char *.
6254         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
6255
6256 2008-06-18  Simon Josefsson  <simon@josefsson.org>
6257
6258         * users.txt: Update URL to article and add author/date
6259         information.
6260
6261 2008-06-17  Bruno Haible  <bruno@clisp.org>
6262
6263         New macro gl_DISABLE_THREADS.
6264         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
6265         if the user did not pass --enable-threads or --disable-threads option.
6266         (gl_DISABLE_THREADS): New macro.
6267         Reported by Eric Blake <ebb9@byu.net>.
6268
6269 2008-06-17  Bruno Haible  <bruno@clisp.org>
6270
6271         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
6272         when the macro ignores it.
6273         Based on a patch by Eric Blake <ebb9@byu.net>.
6274
6275 2008-06-17  Bruno Haible  <bruno@clisp.org>
6276
6277         * modules/tls (License): Change to LGPLv2+.
6278         Reported by Eric Blake.
6279
6280 2008-06-17  Eric Blake  <ebb9@byu.net>
6281
6282         Simplify c-stack prerequisites.
6283         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
6284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
6285         no longer requires <ucontext.h> to exist.  Optimize setrlimit
6286         check.
6287         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
6288         <sys/resource.h>.
6289
6290         Move c-stack test into testsuite.
6291         * modules/c-stack-tests: New file.
6292         * lib/c-stack.c [DEBUG]: Move test program...
6293         * tests/test-c-stack.c: ...into this new file.  Skip rather than
6294         fail test if sigaltstack is lacking.
6295         * tests/test-c-stack.sh: New driver file.
6296
6297 2008-06-16  Eric Blake  <ebb9@byu.net>
6298
6299         Use raise module consistently.
6300         * modules/fatal-signal (Depends-on): Add raise.
6301         * modules/sigprocmask (Depends-on): Likewise.
6302         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
6303         * lib/sigprocmask.c (sigprocmask): Likewise.
6304         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
6305         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
6306
6307         Fix compliance bug in sigpending.
6308         * lib/sigprocmask.c (sigpending): Return pending array via
6309         parameter, not return value.
6310
6311 2008-06-14  Eric Blake  <ebb9@byu.net>
6312
6313         Improve obstack-printf test code.
6314         * tests/test-obstack-printf.c (test_function): Fix comment, and
6315         simplify usage of obstack_* in macros.  Add a test for coverage.
6316         Reported by Bruno Haible.
6317
6318 2008-06-14  Bruno Haible  <bruno@clisp.org>
6319
6320         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
6321         array size as a constant, not as a const variable.
6322         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
6323         AC_USE_SYSTEM_EXTENSIONS.
6324         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
6325         Test whether the obstack_printf function actually exists.
6326         * modules/obstack-printf (Depends-on): Add extensions.
6327         (Include): Remove obstack.h.
6328         * modules/obstack-printf-posix (Depends-on): Add extensions.
6329         (Include): Remove obstack.h.
6330
6331 2008-06-13  Eric Blake  <ebb9@byu.net>
6332
6333         Add obstack-printf and obstack-printf-posix modules.
6334         * modules/obstack-printf: New file.
6335         * modules/obstack-printf-posix: Likewise.
6336         * MODULES.html.sh (Misc): Mention them.
6337         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
6338         Likewise.
6339         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
6340         Likewise.
6341         * modules/stdio (Makefile.am): Accomodate new modules.
6342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6343         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
6344         Declare.
6345         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
6346         functions.
6347         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
6348         (gl_REPLACE_OBSTACK_PRINTF): New macros
6349         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
6350         * tests/test-obstack-printf.c: New file.
6351         * modules/obstack-printf-tests: Likewise.
6352         * modules/obstack-printf-posix-tests: Likewise.
6353
6354 2008-06-11  Bruno Haible  <bruno@clisp.org>
6355
6356         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
6357         * lib/open.c: Include errno.h.
6358         (open): Fail when attempting to write to a file that has a trailing
6359         slash.
6360         * tests/test-open.c (main): Test against trailing slash bug.
6361         * doc/posix-functions/open.texi: Mention the trailing slash bug.
6362
6363 2008-06-10  Bruno Haible  <bruno@clisp.org>
6364
6365         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
6366         for $? to work inside the trap command, with various /bin/sh-s.
6367         * tests/test-vc-list-files-cvs.sh: Likewise.
6368
6369 2008-06-10  Bruno Haible  <bruno@clisp.org>
6370
6371         * lib/acl-internal.h: Don't include gettext.h here.
6372         * lib/set-mode-acl.c: Include gettext.h here.
6373         * lib/copy-acl.c: Likewise.
6374
6375 2008-06-10  Bruno Haible  <bruno@clisp.org>
6376
6377         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
6378         * lib/wait-process.c (wait_subprocess): Likewise.
6379         * lib/execute.h (execute): Add termsigp argument.
6380         * lib/execute.c (execute): Likewise.
6381         * lib/csharpcomp.c (compile_csharp_using_pnet,
6382         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
6383         * lib/csharpexec.c (execute_csharp_using_pnet,
6384         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
6385         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
6386         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
6387         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
6388         is_jikes_present): Update.
6389         * lib/javaexec.c (execute_java_class): Update.
6390         * lib/javaversion.c (execute_and_read_line): Update.
6391         * NEWS: Document the changes.
6392         Reported by Eric Blake.
6393
6394 2008-06-10  Eric Blake  <ebb9@byu.net>
6395
6396         Add missing include.
6397         * tests/test-strstr.c (includes): Add <signal.h>.
6398         * tests/test-strcasestr.c (includes): Likewise.
6399         * tests/test-memmem.c (includes): Likewise.
6400
6401 2008-06-10  Bruno Haible  <bruno@clisp.org>
6402
6403         * lib/wait-process.c (wait_subprocess): Add an assertion.
6404
6405 2008-06-10  Bruno Haible  <bruno@clisp.org>
6406
6407         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
6408
6409 2008-06-10  Bruno Haible  <bruno@clisp.org>
6410
6411         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
6412         using alarm().
6413         * tests/test-strcasestr.c (main): Likewise.
6414         * tests/test-strstr.c (main): Likewise.
6415
6416 2008-06-09  Bruno Haible  <bruno@clisp.org>
6417
6418         Work around the Solaris 10 ACE ACLs ABI change.
6419         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
6420         declare if ACL_NO_TRIVIAL is present.
6421         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
6422         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
6423         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
6424         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
6425         define if ACL_NO_TRIVIAL is present.
6426         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
6427         and use the current ABI.
6428         (file_has_acl): Use same #if condition as elsewhere.
6429         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
6430         in use, and use the current ABI.
6431         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
6432         Reported by Jim Meyering.
6433
6434 2008-06-09  Eric Blake  <ebb9@byu.net>
6435
6436         Work around environments that (stupidly) ignore SIGALRM.
6437         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
6438         before using alarm().
6439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6440         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6441         Reported by Ian Beckwith <ianb@erislabs.net>.
6442
6443         Produce autobuild blurb earlier in log.
6444         * modules/autobuild (configure.ac-early): Move AB_INIT here.
6445
6446 2008-06-09  Jim Meyering  <meyering@redhat.com>
6447         and OndÅ™ej Vašík  <ovasik@redhat.com>
6448
6449         utimens.c: correct kernel bug work-around
6450         OndÅ™ej Vašík found that the invalid return value of 280 indicates
6451         failure, not success, and the kernel bug we're trying to work
6452         around affects not just the utimensat call, but also the fallback
6453         futimens call.
6454         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
6455         not success.
6456         [HAVE_FUTIMENS]: Use the same work-around, here.
6457
6458 2008-06-09  Jim Meyering  <meyering@redhat.com>
6459
6460         add more guards around definition of ACE_-related code
6461         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
6462         ALLOW and ACE_OWNER are also defined.
6463
6464 2008-06-08  Bruno Haible  <bruno@clisp.org>
6465
6466         * lib/acl-internal.h: Add me as co-author.
6467         * lib/file-has-acl.c: Likewise.
6468         * lib/set-mode-acl.c: Likewise.
6469         * lib/copy-acl.c: Likewise.
6470
6471 2008-06-08  Bruno Haible  <bruno@clisp.org>
6472
6473         Add support for AIX ACLs.
6474         * lib/acl-internal.h (acl_nontrivial): New declaration.
6475         * lib/file-has-acl.c (acl_nontrivial): New function.
6476         (file_has_acl): Add implementation using AIX 4 ACL API.
6477         * lib/set-mode-acl.c (qset_acl): Likewise.
6478         * lib/copy-acl.c (qcopy_acl): Likewise.
6479
6480 2008-06-08  Bruno Haible  <bruno@clisp.org>
6481
6482         Add support for HP-UX ACLs.
6483         * lib/acl-internal.h (acl_nontrivial): New declaration.
6484         * lib/file-has-acl.c (acl_nontrivial): New function.
6485         (file_has_acl): Add implementation using HP-UX 11 ACL API.
6486         * lib/set-mode-acl.c (qset_acl): Likewise.
6487         * lib/copy-acl.c (qcopy_acl): Likewise.
6488
6489 2008-06-08  Bruno Haible  <bruno@clisp.org>
6490
6491         Add support for Cygwin ACLs.
6492         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
6493         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
6494         the chmod_or_fchmod call.
6495         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
6496
6497 2008-06-08  Bruno Haible  <bruno@clisp.org>
6498
6499         Fix bug with setuid modes in Solaris 10+ code.
6500         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
6501         succeeded, when the mode contains some special bits.
6502
6503 2008-06-08  Bruno Haible  <bruno@clisp.org>
6504
6505         Add support for Solaris 7..10 ACLs.
6506         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
6507         declarations.
6508         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
6509         functions.
6510         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
6511         * lib/set-mode-acl.c (qset_acl): Likewise.
6512         * lib/copy-acl.c (qcopy_acl): Likewise.
6513
6514 2008-06-08  Bruno Haible  <bruno@clisp.org>
6515
6516         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
6517         declaration.
6518         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
6519         (acl_access_nontrivial): Remove MacOS X case.
6520         (file_has_acl): Use acl_extended_nontrivial.
6521         * lib/copy-acl.c (qcopy_acl): Likewise.
6522
6523 2008-06-08  Bruno Haible  <bruno@clisp.org>
6524
6525         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
6526
6527 2008-06-08  Jim Meyering  <meyering@redhat.com>
6528
6529         * modules/acl (Maintainer): Add Bruno Haible.
6530
6531 2008-06-07  Bruno Haible  <bruno@clisp.org>
6532
6533         Improve support for Tru64 ACLs.
6534         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
6535         ACL on OSF/1.
6536
6537 2008-06-07  Bruno Haible  <bruno@clisp.org>
6538
6539         Add support for MacOS X ACLs.
6540         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
6541         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
6542         * lib/set-mode-acl.c (qset_acl): Likewise.
6543         * lib/copy-acl.c (qcopy_acl): Likewise.
6544
6545 2008-06-07  Bruno Haible  <bruno@clisp.org>
6546
6547         Fix memory leak introduced on 2008-05-22.
6548         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
6549         use.
6550
6551 2008-06-07  Bruno Haible  <bruno@clisp.org>
6552
6553         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
6554         to construct an empty ACL.
6555
6556 2008-06-07  Bruno Haible  <bruno@clisp.org>
6557
6558         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
6559         precisely.
6560         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
6561
6562 2008-06-07  Bruno Haible  <bruno@clisp.org>
6563
6564         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
6565         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
6566
6567 2008-06-07  Bruno Haible  <bruno@clisp.org>
6568
6569         * doc/posix-functions/_setjmp.texi: Explain the use of this function
6570         regardless of POSIX.
6571         * doc/posix-functions/_longjmp.texi: Likewise.
6572         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
6573         SystemV platform in this case.
6574
6575 2008-06-06  Eric Blake  <ebb9@byu.net>
6576
6577         Document abort() bugs.
6578         * doc/posix-functions/abort.texi (abort): Mention anomalies.
6579
6580         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
6581         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
6582         sigsetjmp.
6583         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
6584         siglongjmp, but only as a macro.
6585         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
6586         is obsolete.
6587         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
6588
6589         Tweak documentation to cover cygwin argz bugs.
6590         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
6591         argz bug fix; no code change needed since no cygwin releases
6592         occurred between the last fix and the bug being tested.
6593         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
6594         module and recently fixed cygwin bugs.
6595         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
6596         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
6597         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
6598         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
6599         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
6600         Likewise.
6601         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
6602         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
6603         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
6604         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
6605         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
6606         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
6607         Likewise.
6608
6609         Avoid gcc warning on cygwin.
6610         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
6611         !ACL_NO_TRIVIAL]: Avoid unused variable.
6612
6613 2008-06-05  Eric Blake  <ebb9@byu.net>
6614
6615         Be tolerant of UNKNOWN version in gnulib-tool test dir.
6616         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
6617         git-version-gen fails to come up with a version.
6618         Reported by Simon Josefsson.
6619
6620 2008-06-05  Jim Meyering  <meyering@redhat.com>
6621             Paul Eggert  <eggert@cs.ucla.edu>
6622
6623         utimens.c: work around a probable Linux kernel bug
6624         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
6625         appears to be a kernel bug that causes utimensat to return 280
6626         instead of 0, indicating success.
6627
6628 2008-06-04  Bruno Haible  <bruno@clisp.org>
6629
6630         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
6631         2008-06-01 commit.
6632
6633 2008-06-04  Bruno Haible  <bruno@clisp.org>
6634
6635         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
6636         * lib/file-has-acl.c (acl_access_nontrivial): New function.
6637         (file_has_acl): Use it. Save errno afterwards.
6638         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
6639
6640 2008-06-03  Bruno Haible  <bruno@clisp.org>
6641
6642         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
6643         draft code. Simplify #ifs.
6644         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
6645         Put Solaris code after POSIX-draft code. Fix comments regarding
6646         Solaris 10, HP-UX. Mention Cygwin.
6647         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
6648
6649 2008-06-03  Eric Blake  <ebb9@byu.net>
6650
6651         Provide fallback for older kernels.
6652         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
6653         Provide runtime fallback if kernel lacks support.
6654         Reported by Mike Frysinger.
6655
6656 2008-06-02  Bruno Haible  <bruno@clisp.org>
6657
6658         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
6659         it exists.
6660
6661 2008-06-02  Bruno Haible  <bruno@clisp.org>
6662
6663         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
6664         * lib/copy-acl.c (qcopy_acl): Update comment.
6665
6666 2008-06-02  Bruno Haible  <bruno@clisp.org>
6667
6668         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
6669         like ACL APIs.
6670
6671 2008-06-02  Bruno Haible  <bruno@clisp.org>
6672
6673         * tests/test-file-has-acl.sh: Use different code for Cygwin.
6674         * tests/test-set-mode-acl.sh: Likewise.
6675         * tests/test-copy-acl.sh: Likewise.
6676         * tests/test-copy-file.sh: Likewise.
6677
6678 2008-06-02  Bruno Haible  <bruno@clisp.org>
6679
6680         * tests/test-file-has-acl.sh: Remove unused code.
6681
6682 2008-06-01  Bruno Haible  <bruno@clisp.org>
6683
6684         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
6685         (copy_acl): Just a wrapper around qcopy_acl that emits the error
6686         messages.
6687         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
6688
6689 2008-06-01  Bruno Haible  <bruno@clisp.org>
6690
6691         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
6692         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
6693         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
6694         APIs.
6695         * modules/acl-tests (configure.ac): Remove tests now contained in
6696         m4/acl.m4.
6697
6698 2008-06-02  Jim Meyering  <meyering@redhat.com>
6699
6700         announce-gen: use a better key-server host name
6701         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
6702         it may be more consistently reliable.  Suggested by Werner Koch
6703         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
6704
6705 2008-06-01  Bruno Haible  <bruno@clisp.org>
6706
6707         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
6708         Reported by Voroskoi Andras <voroskoi@gmail.com>.
6709
6710 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
6711
6712         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
6713
6714 2008-06-01  Bruno Haible  <bruno@clisp.org>
6715
6716         New ACL tests.
6717         * tests/test-file-has-acl.sh: New file.
6718         * tests/test-file-has-acl.c: New file.
6719         * tests/test-set-mode-acl.sh: New file.
6720         * tests/test-set-mode-acl.c: New file.
6721         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
6722         * tests/test-copy-acl.c: New file.
6723         * modules/acl-tests: New file, based on modules/copy-file-tests.
6724         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
6725         (Depends-on): Add acl-tests.
6726         (configure.ac): Remove checks.
6727         (Makefile.am): Don't create test-sameacls program here any more.
6728
6729 2008-06-01  Bruno Haible  <bruno@clisp.org>
6730
6731         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
6732         * tests/test-sameacls.c: Include progname.h.
6733         (main): Invoke set_program_name. Portability fixes for MacOS X,
6734         Solaris, HP-UX.
6735
6736 2008-06-01  Bruno Haible  <bruno@clisp.org>
6737
6738         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
6739         function.
6740         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
6741
6742 2008-06-01  Bruno Haible  <bruno@clisp.org>
6743
6744         * modules/rpmatch (Depends-on): Add strdup.
6745
6746 2008-06-01  Bruno Haible  <bruno@clisp.org>
6747
6748         * lib/pipe.c: Include unistd-safer.h.
6749         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
6750         * modules/pipe (Depends-on): Add unistd-safer.
6751
6752 2008-05-30  Simon Josefsson  <simon@josefsson.org>
6753
6754         * modules/autobuild (configure.ac): Call AB_INIT.
6755
6756 2008-05-30  Simon Josefsson  <simon@josefsson.org>
6757
6758         * tests/test-getaddrinfo.c: Don't print debug messages by default.
6759         Suggested by Bruno Haible <bruno@clisp.org>.
6760
6761 2008-05-30  Simon Josefsson  <simon@josefsson.org>
6762
6763         * tests/test-base64.c: Cast size_t to unsigned long when invoking
6764         printf.  Use %lu instead of %d.  Reported by Bruno Haible
6765         <bruno@clisp.org>.
6766
6767 2008-05-29  Eric Blake  <ebb9@byu.net>
6768
6769         Prefer new POSIX 200x interfaces over futimesat.
6770         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
6771         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
6772         when available.
6773         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
6774
6775 2008-05-28  Bruno Haible  <bruno@clisp.org>
6776
6777         * modules/stpcpy (License): Change to LGPLv2+.
6778         Requested by David Lutterkort <dlutter@redhat.com>.
6779
6780 2008-05-27  Bruno Haible  <bruno@clisp.org>
6781
6782         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
6783         current mingw.
6784         Reported by Jose E. Marchesi <jemarch@gnu.org>.
6785
6786 2008-05-27  Bruno Haible  <bruno@clisp.org>
6787
6788         * modules/iconv_open (Link): New section, from module 'iconv'.
6789         * modules/striconv (Link): Likewise.
6790         * modules/striconveh (Link): Likewise.
6791         * modules/xstriconv (Link): Likewise.
6792         * modules/unicodeio (Link): Likewise.
6793         * modules/propername (Link): Likewise.
6794         Reported by Jim Meyering.
6795
6796 2008-05-26  Jim Meyering  <meyering@redhat.com>
6797
6798         sha256: do not artificially restrict buffer length to be < 2^32
6799         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
6800         uint32_t to size_t.
6801         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
6802         to match.
6803
6804         avoid unaligned access errors, e.g., on sparc
6805         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
6806         direct access through a possibly-unaligned uint64* pointer.
6807         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
6808         direct access through a possibly-unaligned uint32* pointer.
6809         Prompted by this patch from Tom "spot" Callaway:
6810         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
6811
6812         sha512.c: fix typo in comment
6813         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
6814
6815 2008-05-25  Bruno Haible  <bruno@clisp.org>
6816
6817         * lib/set-mode-acl.c: Renamed from lib/acl.c.
6818         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
6819         (Makefile.am): Update lib_SOURCES.
6820
6821 2008-05-25  Bruno Haible  <bruno@clisp.org>
6822
6823         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
6824
6825 2008-05-25  Jim Meyering  <meyering@redhat.com>
6826
6827         useless-if-before-free: freed expr may have white-space differences
6828         * build-aux/useless-if-before-free: Recognize cases in which the
6829         freed expression differs from the tested one in embedded white
6830         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
6831         $1 was used, so we can't make any regexp shy.  Improved tests now
6832         detect this.
6833
6834         useless-if-before-free: accept white space in the expression.
6835         * build-aux/useless-if-before-free: For now, any white space
6836         in the expression must be identical in the free argument.
6837
6838         useless-if-before-free: efficiency tweak
6839         * build-aux/useless-if-before-free: Make the expression-matching
6840         regexp "shy".
6841         Make the *outer* regexp shy, not the expr-matching one.
6842
6843         update code-in-comment to accept cast of free arg
6844         * build-aux/useless-if-before-free: Update regexp.
6845
6846 2008-05-25  Bruno Haible  <bruno@clisp.org>
6847
6848         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
6849         * modules/copy-file-tests (Files, Makefile.am): Update.
6850         * tests/test-copy-file.c (func_test_copy): Update.
6851
6852 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
6853
6854         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
6855
6856 2008-05-23  Bruno Haible  <bruno@clisp.org>
6857
6858         Improve support for ACLs on OSF/1.
6859         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
6860         Remove fallback for unknown flavors of ACLs.
6861
6862 2008-05-22  Bruno Haible  <bruno@clisp.org>
6863
6864         Add support for ACLs on OSF/1.
6865         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
6866         replacements.
6867         (acl_free_text): New macro fallback.
6868         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
6869         acl_free.
6870         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
6871         acl_free_text function. Require AC_C_INLINE.
6872
6873 2008-05-22  Bruno Haible  <bruno@clisp.org>
6874
6875         Make copy_acl work on MacOS X 10.5.
6876         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
6877         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
6878         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
6879         If MODE_INSIDE_ACL, don't assume that every system has the same text
6880         representation for ACLs as FreeBSD.
6881         * lib/copy-acl.c (copy_acl): Add support for platforms with
6882         !MODE_INSIDE_ACL.
6883         * lib/file-has-acl.c (file_has_acl): Likewise.
6884         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
6885         FreeBSD, MacOS X, or IRIX, respectively.
6886
6887 2008-05-22  Bruno Haible  <bruno@clisp.org>
6888
6889         * lib/acl.h: Don't include <sys/acl.h>.
6890         (GETACLCNT): Move fallback to lib/acl-internal.h.
6891         * lib/acl-internal.h: Include <sys/acl.h> here.
6892         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
6893
6894 2008-05-22  Bruno Haible  <bruno@clisp.org>
6895
6896         Split off copy_acl function to separate file.
6897         * lib/copy-acl.c: New file, extracted from lib/acl.c.
6898         * lib/acl.c (copy_acl): Moved function to separate file.
6899         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
6900         * modules/acl (Files): Add lib/copy-acl.c.
6901         (Makefiles.am): Augment lib_SOURCES.
6902
6903 2008-05-22  Bruno Haible  <bruno@clisp.org>
6904
6905         * modules/copy-file-tests: New file.
6906         * tests/test-copy-file.sh: New file.
6907         * tests/test-copy-file.c: New file.
6908         * tests/test-copy-file-sameacls.c: New file.
6909
6910 2008-05-22  Eric Blake  <ebb9@byu.net>
6911
6912         Avoid gcc warning.
6913         * tests/test-memcmp.c (main): Pass NULL indirectly.
6914
6915 2008-05-21  Bruno Haible  <bruno@clisp.org>
6916
6917         Add reference doc about ACLs.
6918         * doc/acl-resources.txt: New file.
6919         * doc/acl-cygwin.txt: New file.
6920
6921 2008-05-21  Bruno Haible  <bruno@clisp.org>
6922
6923         Avoid one more warning from gcc.
6924         * lib/vasnprintf.c (IF_LINT): Update comments.
6925         (VASNPRINTF): Use it also for the 'prefix' array initializer.
6926
6927 2008-05-21  Jim Meyering  <meyering@redhat.com>
6928
6929         avoid a warning from gcc
6930         * lib/vasnprintf.c (IF_LINT): Define.
6931         (scale10_round_decimal_long_double):
6932         Use it to avoid a "may be used uninitialized" warning.
6933         (scale10_round_decimal_double): Likewise.
6934
6935 2008-05-21  Simon Josefsson  <simon@josefsson.org>
6936
6937         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
6938         declared.
6939
6940 2008-05-20  Bruno Haible  <bruno@clisp.org>
6941
6942         * tests/test-memcmp.c (main): Test also the sign of the result. Test
6943         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
6944
6945 2008-05-20  Simon Josefsson  <simon@josefsson.org>
6946
6947         * modules/memcmp-tests: New file.
6948         * tests/test-memcmp.c: New file.
6949
6950 2008-05-19  Bruno Haible  <bruno@clisp.org>
6951
6952         * modules/propername (Notice, configure.ac): Put quoted "..." into
6953         --keyword option.
6954         * lib/propername.h: Update comments accordingly.
6955         Reported by Eric Blake.
6956
6957 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
6958
6959         * modules/getpass-gnu (Depends-on): Add fseeko.
6960
6961 2008-05-19  Simon Josefsson  <simon@josefsson.org>
6962
6963         * modules/base64-tests: New file.
6964
6965 2008-05-19  Bo Borgerson <gigabo@gmail.com>
6966
6967         * lib/base64.c (base64_decode_ctx): If a decode context structure
6968         was passed in use it to ignore newlines.  If a context structure
6969         was _not_ passed in, continue to treat newlines as garbage (this
6970         is the historical behavior).  Formerly base64_decode.
6971         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
6972         takes a decode context structure.
6973         * lib/base64.h (base64_decode): Macro for four-argument calls.
6974         (base64_decode_alloc): Likewise.
6975         * lib/base64.c (base64_decode_ctx): If a decode context structure
6976         was passed in use it to ignore newlines.  If a context structure
6977         was _not_ passed in, continue to treat newlines as garbage (this
6978         is the historical behavior).  Formerly base64_decode.
6979         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
6980         takes a decode context structure.
6981         * lib/base64.h (base64_decode): Macro for four-argument calls.
6982         (base64_decode_alloc): Likewise.
6983
6984 2008-05-19  Jim Meyering  <meyering@redhat.com>
6985
6986         avoid a warning from gcc
6987         * lib/trim.c (IF_LINT): Define.
6988         (trim2): Use it to avoid a "may be used uninitialized" warning.
6989
6990         Fix doc typo.
6991         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
6992
6993 2008-05-19  Bruno Haible  <bruno@clisp.org>
6994
6995         * doc/glibc-functions/getpass.texi: Document limits of other
6996         implementations.
6997
6998 2008-05-19  Simon Josefsson  <simon@josefsson.org>
6999             Bruno Haible <bruno@clisp.org>
7000
7001         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
7002
7003 2008-05-18  Bruno Haible  <bruno@clisp.org>
7004
7005         * modules/propername: New file, from GNU gettext.
7006         * lib/propername.h: New file, from GNU gettext.
7007         * lib/propername.c: New file, from GNU gettext.
7008         * MODULES.html.sh (Internationalization functions): Add propername.
7009
7010 2008-05-16  Jim Meyering  <meyering@redhat.com>
7011             Bruno Haible  <bruno@clisp.org>
7012
7013         Avoid some warnings from "gcc -Wshadow".
7014         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
7015
7016 2008-05-15  Eric Blake  <ebb9@byu.net>
7017
7018         Extend previous patch to cygwin 1.7.0.
7019         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
7020         fast implementation in cygwin >= 1.7.0.
7021         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7023
7024 2008-05-15  Bruno Haible  <bruno@clisp.org>
7025
7026         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
7027         implementation in glibc >= 2.9.
7028         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7030
7031 2008-05-15  Bruno Haible  <bruno@clisp.org>
7032
7033         * MODULES.html.sh (Internationalization functions): Remove linebreak.
7034         (Unicode string functions): Add unilbrk/*.
7035         Reported by Karl Berry.
7036
7037 2008-05-15  Eric Blake  <ebb9@byu.net>
7038
7039         Fix violation of <stdbool.h> replacement in regex.
7040         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
7041         * lib/regexec.c (re_search_internal): Likewise.
7042         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
7043
7044 2008-05-15  Jim Meyering  <meyering@redhat.com>
7045
7046         avoid distracting test output when git or cvs is not found
7047         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
7048         * tests/test-vc-list-files-git.sh: Likewise.
7049
7050 2008-05-15  Eric Blake  <ebb9@byu.net>
7051
7052         Glibc finally accepted the memmem speedup code, bugzilla #5514.
7053         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
7054         glibc version.
7055         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7056         * doc/posix-functions/strstr.texi (strstr): Likewise.
7057         * lib/str-two-way.h (MAX): Sychronize with glibc.
7058
7059 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
7060
7061         * lib/regcomp.c (optimize_utf8): Add a note on why we test
7062         opr.ctx_type.
7063         (calc_first): Initialize constraint field.
7064         (duplicate_node_closure): Use it instead of special casing ANCHORS.
7065         Fix grammar.
7066         (duplicate_node): Merge constraint field for all node types.
7067         (calc_eclosure_iter): Look at constraint field for all node types.
7068         * lib/regex_internal.c (create_cd_newstate): Don't look at
7069         opr.ctx_type.
7070
7071 2008-05-14  Bruno Haible  <bruno@clisp.org>
7072
7073         Help GCC to do better code generation.
7074         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
7075         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7076         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
7077         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
7078         Declare with attribute 'malloc' if supported.
7079
7080 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
7081
7082         use "echo STR|wc -c" rather than unportable "expr length STR"
7083         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
7084         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
7085
7086 2008-05-14  Jim Meyering  <meyering@redhat.com>
7087
7088         use dd ibs=$n count=1 ... rather than less-portable head -c$n
7089         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
7090         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
7091         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
7092         via Collin Lasse.
7093
7094 2008-05-14  Eric Blake  <ebb9@byu.net>
7095
7096         Avoid quadratic growth in gl_LIBSOURCES.
7097         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
7098         Suggested by Bruno Haible.
7099
7100         Test xmemdup0.
7101         * modules/xmemdup0-tests: New file.
7102         * tests/test-xmemdup0.c: Likewise.
7103
7104 2008-05-13  Eric Blake  <ebb9@byu.net>
7105
7106         Split xmemdup0 into its own module.
7107         * modules/xmemdup0: New file.
7108         * lib/xmemdup0.h: Likewise.
7109         * lib/xmemdup0.c: Likewise.
7110         * MODULES.html.sh (Memory management functions): Add xmemdup0.
7111         * lib/xalloc.h (xmemdup0): Remove.
7112         * lib/xmalloc.c (xmemdup0): Likewise.
7113
7114 2008-05-13  Eric Blake  <ebb9@byu.net>
7115             Bruno Haible  <bruno@clisp.org>
7116
7117         Reduce number of forks required during autoconf.
7118         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
7119         and gl_LIBSOURCES_DIR.
7120         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
7121         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
7122         m4_syscmd per file.
7123         <m4_foreach_w>: Move...
7124         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
7125
7126 2008-05-13  Eric Blake  <ebb9@byu.net>
7127
7128         * gnulib-tool: Fix various comment typos.
7129
7130 2008-05-12  Bruno Haible  <bruno@clisp.org>
7131
7132         Tailor the linebreaking algorithm.
7133         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
7134
7135 2008-05-12  Bruno Haible  <bruno@clisp.org>
7136
7137         Update to Unicode 5.0.0.
7138         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
7139         LBP_JV, LBP_JT. Redistribute values.
7140         (unilbrk_table): Change size.
7141         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
7142         Unicode TR#14 rev. 22.
7143         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
7144         LBP_JV, LBP_JT. Redistribute values.
7145         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
7146         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
7147         Update.
7148         * lib/unilbrk/lbrkprop1.h: Regenerated.
7149         * lib/unilbrk/lbrkprop2.h: Regenerated.
7150         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
7151         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
7152         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
7153         Likewise.
7154         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
7155         Likewise.
7156         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
7157         result.
7158         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7159         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7160         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7161         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
7162         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
7163         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
7164
7165 2008-05-11  Bruno Haible  <bruno@clisp.org>
7166
7167         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
7168
7169 2008-05-11  Bruno Haible  <bruno@clisp.org>
7170
7171         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
7172         * modules/unilbrk/gen-lbrk: New file.
7173
7174 2008-05-11  Bruno Haible  <bruno@clisp.org>
7175
7176         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
7177         * m4/sha512.m4 (gl_SHA512): Likewise.
7178
7179 2008-05-11  Jim Meyering  <meyering@redhat.com>
7180
7181         New modules: crypto/sha256, crypto/sha512 (from coreutils)
7182         * modules/crypto/sha256: New file.
7183         * modules/crypto/sha512: Likewise.
7184         * lib/sha256.c: Likewise.
7185         * lib/sha256.h: Likewise.
7186         * lib/sha512.c: Likewise.
7187         * lib/sha512.h: Likewise.
7188         * lib/u64.h: Likewise.
7189         * m4/sha256.m4: Likewise.
7190         * m4/sha512.m4: Likewise.
7191         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
7192
7193 2008-05-10  Bruno Haible  <bruno@clisp.org>
7194
7195         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
7196         (Input/Output <stdio.h>): Add xprintf.
7197         (Signal handling <signal.h>): Add strsignal.
7198         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
7199         (Core language properties): Add func.
7200         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
7201         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
7202         strings.
7203         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
7204         (Input/output): New section.
7205         (File system functions): Add openat-die, stat-macros.
7206         (Networking functions): Add sockets.
7207         (Unicode string functions): Add unictype/*.
7208         (Support for building libraries and executables): Add gperf.
7209         (Support for building documentation): Add agpl-3.0.
7210         (Misc): Add nocrash.
7211
7212 2008-05-10  Bruno Haible  <bruno@clisp.org>
7213
7214         * modules/unictype/gen-ctype: New file.
7215
7216 2008-05-10  Jim Meyering  <meyering@redhat.com>
7217
7218         Make chdir-safer.c more efficient on a system with no symlinks.
7219         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
7220         also if ELOOP is zero.  Suggested by Bruno Haible.
7221
7222         Make chdir-safer.c slightly safer.
7223         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
7224         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
7225
7226         Avoid compile failure on systems without ELOOP (like mingw).
7227         * lib/chdir-safer.c (ELOOP): Define if not already defined.
7228         Reported by Bruno Haible.
7229
7230 2008-05-10  Bruno Haible  <bruno@clisp.org>
7231
7232         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
7233         (is_utf8_encoding): Use a case-insensitive comparison.
7234         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
7235         streq.
7236
7237 2008-05-10  Bruno Haible  <bruno@clisp.org>
7238
7239         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
7240         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
7241         * lib/unilbrk/ulc-common.h (iconv_string_length,
7242         iconv_string_keeping_offsets): Remove declarations.
7243         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
7244         Don't include <iconv.h>, streq.h, xsize.h.
7245         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
7246         conversion.
7247         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
7248         <iconv.h>, streq.h, xsize.h.
7249         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
7250         conversion.
7251         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
7252         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
7253         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
7254         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
7255
7256 2008-05-10  Bruno Haible  <bruno@clisp.org>
7257
7258         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
7259         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
7260
7261         * modules/unilbrk/u32-width-linebreaks-tests: New file.
7262         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
7263
7264         * modules/unilbrk/u16-width-linebreaks-tests: New file.
7265         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
7266
7267         * modules/unilbrk/u8-width-linebreaks-tests: New file.
7268         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
7269
7270         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
7271         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
7272
7273         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
7274         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
7275
7276         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
7277         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
7278
7279         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
7280         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
7281
7282 2008-05-10  Bruno Haible  <bruno@clisp.org>
7283
7284         Split up 'linebreak' module.
7285         * lib/unilbrk.h: New file, based on lib/linebreak.h.
7286         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
7287         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
7288         modifications.
7289         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
7290         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
7291         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
7292         lib/linebreak.c.
7293         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
7294         lib/linebreak.c.
7295         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
7296         lib/linebreak.c.
7297         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
7298         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
7299         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
7300         lib/linebreak.c.
7301         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
7302         lib/linebreak.c.
7303         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
7304         lib/linebreak.c.
7305         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
7306         lib/linebreak.c.
7307         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
7308         lib/linebreak.c.
7309         * modules/unilbrk/base: New file.
7310         * modules/unilbrk/tables: New file.
7311         * modules/unilbrk/u8-possible-linebreaks: New file.
7312         * modules/unilbrk/u16-possible-linebreaks: New file.
7313         * modules/unilbrk/u32-possible-linebreaks: New file.
7314         * modules/unilbrk/ulc-common: New file.
7315         * modules/unilbrk/ulc-possible-linebreaks: New file.
7316         * modules/unilbrk/u8-width-linebreaks: New file.
7317         * modules/unilbrk/u16-width-linebreaks: New file.
7318         * modules/unilbrk/u32-width-linebreaks: New file.
7319         * modules/unilbrk/ulc-width-linebreaks: New file.
7320         * lib/linebreak.h: Remove file.
7321         * lib/linebreak.c: Remove file.
7322         * m4/linebreak.m4: Remove file.
7323         * modules/linebreak: Remove file.
7324         * NEWS: Mention the changes.
7325
7326 2008-05-09  Eric Blake  <ebb9@byu.net>
7327
7328         Add xmemdup0.
7329         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
7330         implementation.
7331         * lib/xmalloc.c (xmemdup0): New C implementation.
7332
7333 2008-05-08  Bruno Haible  <bruno@clisp.org>
7334
7335         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
7336
7337 2008-05-07  Eric Blake  <ebb9@byu.net>
7338
7339         Support cross-compilation of <wctype.h>.
7340         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
7341         AC_CACHE_CHECK.
7342
7343 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
7344
7345         * build-aux/vc-list-files: Add support for bzr.
7346
7347 2008-05-03  Jim Meyering  <meyering@redhat.com>
7348
7349         avoid failed assertion with tight malloc
7350         * tests/test-getndelim2.c: Correct an off-by-one assertion.
7351
7352 2008-05-03  Simon Josefsson  <simon@josefsson.org>
7353
7354         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
7355         are needed from arpa/inet.h.
7356         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
7357         Reported by Bruno Haible.
7358
7359 2008-05-02  Jim Meyering  <meyering@redhat.com>
7360
7361         avoid compilation error on FreeBSD 6
7362         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
7363
7364 2008-05-01  Jim Meyering  <meyering@redhat.com>
7365
7366         useless-if-before-free: correct --help's exit status description
7367         * build-aux/useless-if-before-free (usage): Like grep, exit 0
7368         for one or more matches, etc.  Reported by Bruno Haible.
7369
7370         vc-list-files: make the stand-alone gnulib test work
7371         * modules/vc-list-files-tests (configure.ac):
7372         Define and AC_SUBST abs_aux_dir.
7373         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
7374         $(abs_top_srcdir) to each script and having each of them
7375         duplicate the work of setting PATH, set PATH here, using
7376         the new variable, abs_aux_dir instead.
7377         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
7378         * tests/test-vc-list-files-git.sh: Likewise.
7379         Reported by Bruno Haible.
7380
7381 2008-05-01  Bruno Haible  <bruno@clisp.org>
7382
7383         * lib/getndelim2.c (getndelim2): Fix newsize computation during
7384         reallocation. Rename 'done' to 'found_delimiter'.
7385
7386 2008-05-01  Jim Meyering  <meyering@redhat.com>
7387
7388         vc-list-files: accommodate /bin/sh like the one from Solaris 10
7389         * build-aux/vc-list-files: Use `...`, not $(...).
7390
7391 2008-04-30  Jim Meyering  <meyering@redhat.com>
7392
7393         add tests for vc-list-files
7394         * modules/vc-list-files-tests: New module.
7395         * tests/test-vc-list-files-cvs.sh: New file.
7396         * tests/test-vc-list-files-git.sh: New file.
7397
7398         avoid a warning from gcc
7399         * lib/getndelim2.c (IF_LINT): Define.
7400         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
7401
7402         vc-list-files: work properly with build-aux/cvsu, too
7403         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
7404         to all cvs-based clauses.
7405
7406         vc-list-files: work properly in the CVS+awk case, too
7407         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
7408
7409         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
7410         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
7411         take more than one file argument, so .  Add quotes, just in case $dir
7412         ever contains a shell meta-character.  Prompted by Soren Hansen in
7413         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
7414
7415 2008-04-29  Eric Blake  <ebb9@byu.net>
7416
7417         Optimize getndelim2 to use block operations when possible.
7418         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
7419         freadseek, and memchr2.
7420         * lib/getndelim2.c (getndelim2): Use them for block reads.
7421
7422 2008-04-29  Bruno Haible  <bruno@clisp.org>
7423
7424         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
7425         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7426         * modules/inet_ntop (Depends-on): Add extensions.
7427         * modules/inet_pton (Depends-on): Likewise.
7428         Reported by Simon Josefsson.
7429
7430 2008-04-29  Jim Meyering  <meyering@redhat.com>
7431
7432         When the is more than one match in a block, match all of them.
7433         * build-aux/useless-if-before-free: Iterate through each block
7434         until there are no more matches.
7435
7436         Fix broken useless-if-before-free script.
7437         * build-aux/useless-if-before-free: Fix typo: missing "?" after
7438         the expression to match cast of argument to free-like function.
7439
7440 2008-04-29  Eric Blake  <ebb9@byu.net>
7441
7442         Use new header.
7443         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
7444
7445 2008-04-29  Jim Meyering  <meyering@redhat.com>
7446
7447         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
7448         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
7449         by gnulib to exist and to declare e.g., inet_ntop.
7450         Don't include "inet_ntop.h", now removed.
7451
7452         * m4/arpa_inet_h.m4: Remove trailing blanks.
7453
7454 2008-04-29  Eric Blake  <ebb9@byu.net>
7455
7456         Silence valgrind on safe reads beyond potential array bounds.
7457         * lib/rawmemchr.valgrind: New file.
7458         * lib/strchrnul.valgrind: Likewise.
7459         * modules/rawmemchr (Files): Distribute new file.
7460         * modules/strchrnul (Files): Likewise.
7461         Suggested by Bruno Haible.
7462
7463 2008-04-29  Bruno Haible  <bruno@clisp.org>
7464
7465         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
7466         (inet_ntop, inet_pton): Change portability warning's wording.
7467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
7468         Invoke gl_CHECK_NEXT_HEADERS.
7469         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
7470         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
7471         set ARPA_INET_H.
7472         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7473         * modules/arpa_inet (Description): No longer only for systems that
7474         lack it.
7475         (Depends-on): Add include_next.
7476         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
7477         HAVE_ARPA_INET_H.
7478
7479 2008-04-29  Jim Meyering  <meyering@redhat.com>
7480
7481         * modules/mkdir (License): Re-license as LGPLv2+.
7482
7483 2008-04-29  Bruno Haible  <bruno@clisp.org>
7484
7485         * modules/rawmemchr (Maintainer): Set to Eric.
7486         * modules/strchrnul (Maintainer): Likewise.
7487
7488 2008-04-29  Simon Josefsson  <simon@josefsson.org>
7489
7490         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
7491         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
7492
7493         * modules/arpa_inet (arpa/inet.h): Use them.
7494
7495 2008-04-28  Eric Blake  <ebb9@byu.net>
7496
7497         Test getndelim2.
7498         * modules/getndelim2-tests: New file.
7499         * tests/test-getndelim2.c: Likewise.
7500         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
7501         stream.
7502         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
7503
7504         * MODULES.html.sh: Document new module.
7505
7506 2008-04-20  Bruno Haible  <bruno@clisp.org>
7507
7508         * lib/c-stack.c (die): Use raise.
7509         * modules/c-stack (Depends-on): Add raise.
7510
7511 2008-04-28  Bruno Haible  <bruno@clisp.org>
7512
7513         Expect rpmatch to be declared.
7514         * lib/yesno.c (rpmatch): Remove declaration.
7515
7516         Declare rpmatch.
7517         * lib/stdlib.in.h (rpmatch): New declaration.
7518         * lib/rpmatch.c: Include <stdlib.h> first.
7519         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
7520         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
7521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
7522         HAVE_RPMATCH.
7523         * modules/rpmatch (Depends-on): Add stdlib, extensions.
7524         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7525         (Include): Set to <stdlib.h>.
7526         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
7527         HAVE_RPMATCH.
7528         * NEWS: Document the change.
7529
7530 2008-04-28  Bruno Haible  <bruno@clisp.org>
7531
7532         Change rpmatch to use nl_langinfo when appropriate.
7533         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
7534         (N_): New macro.
7535         (localized_pattern): New function/macro.
7536         (try): Remove match, nomatch arguments. Copy the pattern into safe
7537         memory before caching it.
7538         (rpmatch): Use localized_pattern. Add translator comments.
7539         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
7540         Suggested by Eric Blake.
7541         * modules/rpmatch (Depends-on): Add stdbool.
7542
7543 2008-04-28  Eric Blake  <ebb9@byu.net>
7544
7545         Add rawmemchr module, matching glibc.
7546         * modules/string (Makefile.am): New indicator.
7547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
7548         * lib/string.in.h (rawmemchr): Declare when appropriate.
7549         * modules/rawmemchr: New file.
7550         * m4/rawmemchr.m4: Likewise.
7551         * lib/rawmemchr.c: Likewise.
7552         * modules/rawmemchr-tests: Likewise.
7553         * tests/test-rawmemchr.c: Likewise.
7554         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
7555         module.
7556         * modules/strchrnul (Depends-on): Add rawmemchr.
7557         * lib/strchrnul.c (strchrnul): Optimize a corner case.
7558
7559         Whitespace cleanup.
7560         * tests/test-strchrnul.c: Reindent.
7561         * lib/strchrnul.c: Likewise.
7562
7563         Optimize and test strchrnul.
7564         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
7565         * modules/strchrnul-tests: New file.
7566         * tests/test-strchrnul.c: Likewise.
7567
7568         Remove intprops dependency.
7569         * modules/memchr (Depends-on): Remove intprops.
7570         * modules/memrchr (Depends-on): Likewise.
7571         * modules/memchr2 (Depends-on): Likewise.
7572         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
7573         * lib/memrchr.c (__memrchr): Likewise.
7574         * lib/memrchr2.c (memchr2): Likewise.
7575         Reported by Simon Josefsson.
7576
7577 2008-04-28  Simon Josefsson  <simon@josefsson.org>
7578
7579         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
7580         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7581
7582 2008-04-28  Simon Josefsson  <simon@josefsson.org>
7583
7584         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
7585
7586         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
7587
7588         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
7589
7590         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
7591         declarations.
7592         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
7593
7594         * m4/inet_pton.m4: Don't check for header files.
7595
7596         * m4/inet_ntop.m4: Don't check for header files.
7597
7598 2008-04-28  Simon Josefsson  <simon@josefsson.org>
7599
7600         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
7601         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
7602         trigger for cygwin).
7603         Reported by Bruno Haible  <bruno@clisp.org>.
7604
7605 2008-04-28  Bruno Haible  <bruno@clisp.org>
7606
7607         * doc/posix-functions/strdup.texi: Mention mingw problem.
7608
7609 2008-04-27  Bruno Haible  <bruno@clisp.org>
7610
7611         * modules/stat-time-tests (Depends-on): Add sleep.
7612         * tests/test-stat-time.c (force_unlink): New function.
7613         (cleanup): Use it.
7614         (test_mtime): Remove the ctime related tests.
7615         (test_ctime): New function, containing the ctime related tests.
7616         (main): Call test_ctime, except on native Windows platforms.
7617
7618 2008-04-27  Bruno Haible  <bruno@clisp.org>
7619
7620         * lib/rpmatch.c (rpmatch): Add some comments.
7621         Reported by James Youngman <jay@gnu.org>.
7622
7623 2008-04-27  Bruno Haible  <bruno@clisp.org>
7624
7625         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
7626         quiet NaNs.
7627
7628 2008-04-27  Bruno Haible  <bruno@clisp.org>
7629
7630         Make test-yesno.sh work on mingw.
7631         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
7632         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
7633         (main): Set stdin to binary mode.
7634         * modules/yesno-tests (Depends-on): Add binary-io.
7635
7636 2008-04-27  Bruno Haible  <bruno@clisp.org>
7637
7638         Fix 'isfinite' on x86, x86_64, ia64 platforms.
7639         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
7640         argument that lie outside the IEEE 854 domain.
7641         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
7642         (gl_ISFINITE): Use it.
7643         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
7644
7645 2008-04-27  Bruno Haible  <bruno@clisp.org>
7646
7647         Allow local renaming in config.h.
7648         * lib/memrchr.c (memrchr): Don't undefine outside libc.
7649
7650 2008-04-27  Bruno Haible  <bruno@clisp.org>
7651
7652         * lib/memchr.c (__memchr): Change type of 'i'.
7653         * lib/memchr2.c (memchr2): Likewise.
7654
7655 2008-04-26  Eric Blake  <ebb9@byu.net>
7656         and Bruno Haible  <bruno@clisp.org>
7657
7658         Optimize and test memrchr.
7659         * modules/memrchr (Depends-on): Add intprops.
7660         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
7661         * modules/memrchr-tests: New file.
7662         * tests/test-memrchr.c: New file.
7663
7664 2008-04-26  Bruno Haible  <bruno@clisp.org>
7665
7666         Add tentative support for DragonFly BSD.
7667         * lib/stdio-impl.h: Add macros for DragonFly BSD.
7668         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
7669         fp.
7670         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
7671         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
7672         * lib/fpurge.c (fpurge): Likewise.
7673         * lib/freadable.c (freaadable): Likewise.
7674         * lib/freadahead.c (freadahead): Likewise.
7675         * lib/freading.c (freading): Likewise.
7676         * lib/freadptr.c (freadptr): Likewise.
7677         * lib/freadseek.c (freadptrinc): Likewise.
7678         * lib/fseeko.c (fseeko): Likewise.
7679         * lib/fseterr.c (fseterr): Likewise.
7680         * lib/fwritable.c (fwritable): Likewise.
7681         * lib/fwriting.c (fwriting): Likewise.
7682
7683 2008-04-26  Bruno Haible  <bruno@clisp.org>
7684
7685         * lib/stdio-impl.h: New file.
7686         * lib/fbufmode.c: Include stdio-impl.h.
7687         (fbufmode): Use fp_, remove redundant #defines.
7688         * lib/fflush.c: Include stdio-impl.h.
7689         (clear_ungetc_buffer): Remove redundant #defines.
7690         * lib/fpurge.c: Include stdio-impl.h.
7691         (fpurge): Remove redundant #defines.
7692         * lib/freadable.c: Include stdio-impl.h.
7693         (freadable): Remove redundant #defines.
7694         * lib/freadahead.c: Include stdio-impl.h.
7695         (freadahead): Remove redundant #defines.
7696         * lib/freading.c: Include stdio-impl.h.
7697         (freading): Remove redundant #defines.
7698         * lib/freadptr.c: Include stdio-impl.h.
7699         (freadptr): Remove redundant #defines.
7700         * lib/freadseek.c: Include stdio-impl.h.
7701         (freadptrinc): Remove redundant #defines.
7702         * lib/fseeko.c: Include stdio-impl.h.
7703         (rpl_fseeko): Remove redundant #defines.
7704         * lib/fseterr.c: Include stdio-impl.h.
7705         (fseterr): Remove redundant #defines.
7706         * lib/fwritable.c: Include stdio-impl.h.
7707         (fwritable: Remove redundant #defines.
7708         * lib/fwriting.c: Include stdio-impl.h.
7709         (fwriting): Remove redundant #defines.
7710         * modules/fbufmode (Files): Add lib/stdio-impl.h.
7711         * modules/fflush (Files): Likewise.
7712         * modules/fpurge (Files): Likewise.
7713         * modules/freadable (Files): Likewise.
7714         * modules/freadahead (Files): Likewise.
7715         * modules/freading (Files): Likewise.
7716         * modules/freadptr (Files): Likewise.
7717         * modules/freadseek (Files): Likewise.
7718         * modules/fseeko (Files): Likewise.
7719         * modules/fseterr (Files): Likewise.
7720         * modules/fwritable (Files): Likewise.
7721         * modules/fwriting (Files): Likewise.
7722
7723 2008-04-26  Bruno Haible  <bruno@clisp.org>
7724
7725         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
7726         restore_seek_optimization, update_fpos_cache): New functions, extracted
7727         from rpl_fflush.
7728         (rpl_fflush): Use them.
7729         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
7730         (gl_REPLACE_FFLUSH): Use it.
7731
7732 2008-04-26  Bruno Haible  <bruno@clisp.org>
7733
7734         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
7735         on Solaris.
7736         * tests/test-xstrtoimax.sh: Likewise.
7737         * tests/test-xstrtoumax.sh: Likewise.
7738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7739
7740 2008-04-26  Bruno Haible  <bruno@clisp.org>
7741
7742         * modules/memchr-tests: New file.
7743         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
7744
7745 2008-04-26  Eric Blake  <ebb9@byu.net>
7746             Bruno Haible  <bruno@clisp.org>
7747
7748         * lib/memchr.c: Include intprops.h.
7749         (__memchr): Optimize parallel detection of matching bytes. Rename local
7750         variables. Add explanatory comments.
7751
7752 2008-04-26  Bruno Haible  <bruno@clisp.org>
7753
7754         Fix module 'memchr', broken since 2000-10-28.
7755         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
7756
7757 2008-04-26  Bruno Haible  <bruno@clisp.org>
7758
7759         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
7760         comments.
7761
7762 2008-04-25  Eric Blake  <ebb9@byu.net>
7763
7764         Use native fstatat on cygwin 1.7.0.
7765         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
7766         first.
7767
7768 2008-04-23  Eric Blake  <ebb9@byu.net>
7769
7770         Improve memchr2 performance.
7771         * lib/memchr2.c (memchr2): Further optimize parallel detection of
7772         NUL bytes.
7773         * modules/memchr2 (Depends-on): Use intprops.h.
7774
7775 2008-04-23  Simon Josefsson  <simon@josefsson.org>
7776
7777         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
7778         an inline function instead of a CPP macro.  Patch by Ben Pfaff
7779         <blp@cs.stanford.edu>.
7780
7781 2008-04-23  Simon Josefsson  <simon@josefsson.org>
7782
7783         * lib/arpa_inet.in.h: New file.
7784
7785         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
7786         (Makefile.am): Sed in substitute header file.
7787
7788         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
7789         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
7790
7791         * modules/inet_ntop (configure.ac): Use
7792         gl_ARPA_INET_MODULE_INDICATOR.
7793
7794         * modules/inet_pton (configure.ac): Use
7795         gl_ARPA_INET_MODULE_INDICATOR.
7796
7797 2008-04-22  Jim Meyering  <meyering@redhat.com>
7798
7799         * modules/verify (License): Re-license as LGPLv2+.
7800
7801 2008-04-22  Simon Josefsson  <simon@josefsson.org>
7802
7803         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
7804         parameter to void* as per POSIX standard (MinGW uses char*).
7805
7806 2008-04-21  Bruno Haible  <bruno@clisp.org>
7807
7808         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7809         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
7810         Define to replacements if REPLACE_ISWCNTRL is 1.
7811         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
7812         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
7813         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
7814         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
7815         what it fixes.
7816         * doc/posix-functions/iswalpha.texi: Likewise.
7817         * doc/posix-functions/iswblank.texi: Likewise.
7818         * doc/posix-functions/iswcntrl.texi: Likewise.
7819         * doc/posix-functions/iswdigit.texi: Likewise.
7820         * doc/posix-functions/iswgraph.texi: Likewise.
7821         * doc/posix-functions/iswlower.texi: Likewise.
7822         * doc/posix-functions/iswprint.texi: Likewise.
7823         * doc/posix-functions/iswpunct.texi: Likewise.
7824         * doc/posix-functions/iswspace.texi: Likewise.
7825         * doc/posix-functions/iswupper.texi: Likewise.
7826         * doc/posix-functions/iswxdigit.texi: Likewise.
7827         Reported by Alain Guibert.
7828
7829 2008-04-21  Bruno Haible  <bruno@clisp.org>
7830
7831         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
7832         Patch by Alain Guibert.
7833
7834 2008-04-21  Bruno Haible  <bruno@clisp.org>
7835
7836         Fix test failures on mingw.
7837         * tests/test-xstrtol.c (print_no_progname): New function.
7838         (main): Install it in error_print_progname hook.
7839         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
7840         * tests/test-xstrtoimax.sh: Likewise.
7841         * tests/test-xstrtoumax.sh: Likewise.
7842
7843 2008-04-21  Bruno Haible  <bruno@clisp.org>
7844
7845         Fix test failure on mingw.
7846         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
7847
7848 2008-04-21  Bruno Haible  <bruno@clisp.org>
7849
7850         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
7851         Actually assign a value.
7852
7853 2008-04-20  Bruno Haible  <bruno@clisp.org>
7854
7855         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
7856         take 2.
7857         * lib/canonicalize.c (canonicalize_file_name): Elide if the
7858         'canonicalize-lgpl' module is also used.
7859         * lib/canonicalize-lgpl.c: Undo last change.
7860         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
7861
7862 2008-04-20  Bruno Haible  <bruno@clisp.org>
7863
7864         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
7865         config.h. Provide _mkdir based fallback for mingw.
7866         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
7867         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
7868         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
7869         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
7870         rather than defining mkdir in config.h.
7871         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
7872         (gl_SYS_STAT_H_DEFAULTS): New macro.
7873         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
7874         HAVE_IO_H any more.
7875         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
7876         HAVE_DECL_MKDIR and HAVE_IO_H.
7877
7878 2008-04-20  Bruno Haible  <bruno@clisp.org>
7879
7880         * lib/isapipe.c: Port to native Windows platforms.
7881
7882 2008-04-20  Bruno Haible  <bruno@clisp.org>
7883
7884         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
7885
7886 2008-04-21  Eric Blake  <ebb9@byu.net>
7887
7888         Work around preprocessors that don't handle UINTMAX_MAX.
7889         * lib/memchr2.c (memchr2): Avoid embedded #if.
7890         Reported by Alain Guibert, fix suggested by Bruno Haible.
7891
7892 2008-04-21  Simon Josefsson  <simon@josefsson.org>
7893
7894         * doc/posix-functions/strftime.texi (strftime): Explain better
7895         Windows incompatibility.  Suggested by Micah Cowan
7896         <micah@cowan.name>.
7897
7898 2008-04-20  Bruno Haible  <bruno@clisp.org>
7899
7900         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
7901         unistr/u8-mblen.
7902
7903 2008-04-20  Bruno Haible  <bruno@clisp.org>
7904
7905         Fix test failure on platforms with non-GNU iconv.
7906         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
7907         (U_TO_U8): Use it, rather than u16_to_u8.
7908         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
7909         units at the end of the input string.
7910         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
7911
7912 2008-04-20  Bruno Haible  <bruno@clisp.org>
7913
7914         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
7915         when the resulting length is 0.
7916         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
7917
7918 2008-04-20  Bruno Haible  <bruno@clisp.org>
7919
7920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
7921         works.
7922         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
7923
7924 2008-04-20  Bruno Haible  <bruno@clisp.org>
7925
7926         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
7927         * modules/tsearch-tests (configure.ac): Test for initstate function.
7928
7929 2008-04-20  Bruno Haible  <bruno@clisp.org>
7930
7931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
7932         for nlink_t if missing.
7933         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
7934
7935 2008-04-19  Bruno Haible  <bruno@clisp.org>
7936
7937         Work around snprintf bug on Linux libc5.
7938         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
7939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7940         gl_SNPRINTF_SIZE1.
7941         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7942         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
7943         that test failed.
7944         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7945         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
7946         * modules/snprintf (Files): Add m4/printf.m4.
7947         * modules/vsnprintf (Files): Likewise.
7948         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
7949         * doc/posix-functions/vsnprintf.texi: Likewise.
7950
7951 2008-04-19  Bruno Haible  <bruno@clisp.org>
7952
7953         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
7954         from 0.0058 to less than 10^-7.
7955
7956 2008-04-19  Bruno Haible  <bruno@clisp.org>
7957
7958         Fix rounding when a precision is given.
7959         * lib/vasnprintf.c (is_borderline): New function.
7960         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
7961         9...9x.
7962         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
7963         %e, %g.
7964         * tests/test-vasprintf-posix.c (test_function): Likewise.
7965         * tests/test-snprintf-posix.h (test_function): Likewise.
7966         * tests/test-sprintf-posix.h (test_function): Likewise.
7967         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
7968         * tests/test-printf-posix.h (test_function): Likewise.
7969         * tests/test-printf-posix.output: Update.
7970         Reported by John Darrington <john@darrington.wattle.id.au> via
7971         Ben Pfaff <blp@cs.stanford.edu>.
7972
7973 2008-04-18  Simon Josefsson  <simon@josefsson.org>
7974
7975         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
7976         Suggested by Bruno Haible <bruno@clisp.org>.
7977
7978 2008-04-17  Bruno Haible  <bruno@clisp.org>
7979
7980         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
7981         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
7982         implementation.
7983         Patch by Bruce Merry <bmerry@gmail.com>.
7984
7985 2008-04-17  Simon Josefsson  <simon@josefsson.org>
7986
7987         * doc/posix-functions/strftime.texi (strftime): Mention that %e
7988         doesn't work under Windows.
7989
7990 2008-04-16  Bruno Haible  <bruno@clisp.org>
7991
7992         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
7993         New macros.
7994         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
7995         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
7996         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
7997         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
7998         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
7999         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
8000         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
8001         macros.
8002         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
8003         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
8004         Northern Sotho, Uighur.
8005
8006 2008-04-16  Bruno Haible  <bruno@clisp.org>
8007
8008         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
8009         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
8010         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
8011         Reported by Daniel Bergström <daniel@octocode.com>.
8012
8013 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
8014             Bruno Haible  <bruno@clisp.org>
8015
8016         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
8017         function.
8018         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
8019         New functions, mostly extracted from gl_locale_name_default.
8020         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
8021
8022 2008-04-16  Eric Blake  <ebb9@byu.net>
8023
8024         Adjust strtod detection to catch glibc 2.7 bug.
8025         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
8026         Reported by John Gatewood Ham.
8027
8028 2008-04-16  Bruno Haible  <bruno@clisp.org>
8029
8030         Add tentative support for Linux libc5.
8031         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
8032         * lib/fpurge.c (fpurge): Likewise.
8033         * lib/freadable.c (freadable): Likewise.
8034         * lib/freadahead.c (freadahead): Likewise.
8035         * lib/freading.c (freading): Likewise.
8036         * lib/freadptr.c (freadptr): Likewise.
8037         * lib/freadseek.c (freadptrinc): Likewise.
8038         * lib/fseeko.c (rpl_fseeko): Likewise.
8039         * lib/fseterr.c (fseterr): Likewise.
8040         * lib/fwritable.c (fwritable): Likewise.
8041         * lib/fwriting.c (fwriting): Likewise.
8042         Reported by Alain Guibert <alguibert+bts@free.fr>.
8043
8044 2008-04-15  Bruno Haible  <bruno@clisp.org>
8045
8046         * modules/mathl (configure.ac): Define module indicator.
8047
8048 2008-04-15  Bruno Haible  <bruno@clisp.org>
8049
8050         * lib/logl.c (logl): Remove unused variables.
8051
8052 2008-04-15  Bruno Haible  <bruno@clisp.org>
8053
8054         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
8055         fails.
8056
8057 2008-04-15  Bruno Haible  <bruno@clisp.org>
8058
8059         * lib/trim.c (trim2): Fix argument of isspace() macro.
8060
8061 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
8062
8063         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
8064         to 0.
8065         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
8066
8067 2008-04-14  Bruno Haible  <bruno@clisp.org>
8068
8069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
8070         AC_LANG_PROGRAM argument.
8071         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
8072         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
8073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8074         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8075         * m4/math_h.m4 (gl_MATH_H): Likewise.
8076         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8078         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
8079         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
8080         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8081         * m4/regex.m4 (gl_REGEX): Likewise.
8082         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
8083         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
8084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8085         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
8086         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8087         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8090
8091 2008-04-14  Jim Meyering  <meyering@redhat.com>
8092
8093         test-strtod: fix typos: s/abs/fabs/
8094         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
8095
8096 2008-04-13  Bruno Haible  <bruno@clisp.org>
8097
8098         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
8099         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
8100         module is also used and while not building the reloc-wrapper.
8101
8102 2008-04-13  Bruno Haible  <bruno@clisp.org>
8103
8104         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
8105
8106 2008-04-13  Bruno Haible  <bruno@clisp.org>
8107
8108         Fix AIX compilation failure introduced on 2008-04-02.
8109         * tests/test-frexp.c (exp): Undefine before redefining.
8110         * tests/test-frexpl.c (exp): Likewise.
8111
8112 2008-04-13  Bruno Haible  <bruno@clisp.org>
8113
8114         Work around a HP-UX stdio bug.
8115         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
8116         * tests/test-ftello.c (main): Likewise.
8117         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
8118         * doc/posix-functions/ftello.texi: Likewise.
8119
8120 2008-04-13  Bruno Haible  <bruno@clisp.org>
8121
8122         Make test-signbit pass on HP-UX/hppa.
8123         * tests/test-signbit.c (minus_zerol): New variable.
8124         (test_signbitl): Use it.
8125
8126 2008-04-13  Bruno Haible  <bruno@clisp.org>
8127
8128         Make truncl work on OSF/1 4.0.
8129         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
8130         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
8131         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
8132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
8133         HAVE_DECL_TRUNCL.
8134         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
8135         HAVE_DECL_TRUNCL.
8136         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
8137
8138 2008-04-13  Bruno Haible  <bruno@clisp.org>
8139
8140         * lib/unictype.h: Remove trailing comma from enumeration definitions.
8141
8142 2008-04-13  Bruno Haible  <bruno@clisp.org>
8143
8144         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
8145         expression, so as to avoid HP-UX 11 cc compiler bug.
8146
8147 2008-04-13  Bruno Haible  <bruno@clisp.org>
8148
8149         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
8150
8151 2008-04-13  Bruno Haible  <bruno@clisp.org>
8152
8153         * lib/git-merge-changelog.c: Remove empty declaration outside of
8154         functions.
8155
8156 2008-04-13  Bruno Haible  <bruno@clisp.org>
8157
8158         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
8159
8160 2008-04-13  Bruno Haible  <bruno@clisp.org>
8161
8162         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
8163         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
8164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
8165         also if it exists but lacks definitions of the SHUT_* macros.
8166         * modules/sys_socket (Description): Update.
8167         Reported by Elbert Pol <e.pol@chello.nl>.
8168
8169 2008-04-13  Bruno Haible  <bruno@clisp.org>
8170
8171         * lib/localcharset.c (OS2): Don't redefine if already defined.
8172         Reported by Elbert Pol <e.pol@chello.nl>.
8173
8174 2008-04-13  Bruno Haible  <bruno@clisp.org>
8175
8176         * lib/binary-io.h [__EMX__]: Include <io.h>.
8177         Reported by Elbert Pol <e.pol@chello.nl>.
8178
8179 2008-04-12  Bruno Haible  <bruno@clisp.org>
8180
8181         * lib/fpucw.h: Enable the definitions also for x86_64.
8182         Needed for NetBSD/x86_64.
8183         Reported by Thomas Klausner <tk@giga.or.at>.
8184
8185 2008-04-12  Bruno Haible  <bruno@clisp.org>
8186
8187         * tests/test-strtod.c: Include isnand.h.
8188         (main): Use isnand instead of isnan.
8189         Reported by Jim Meyering.
8190
8191 2008-04-12  Bruno Haible  <bruno@clisp.org>
8192
8193         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
8194         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8195
8196 2008-04-12  Jim Meyering  <meyering@redhat.com>
8197
8198         * m4/math_h.m4 (gl_MATH_H): Fix typos.
8199
8200 2008-04-12  Bruno Haible  <bruno@clisp.org>
8201
8202         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
8203         Reported by Elbert Pol <e.pol@chello.nl>.
8204
8205 2008-04-12  Eric Blake  <ebb9@byu.net>
8206
8207         Work around Solaris 10 math.h bug.
8208         * m4/math_h.m4 (gl_MATH_H): Check for bug.
8209         (gl_MATH_H_DEFAULTS): Set up default.
8210         * modules/math (Makefile.am): Replace new indicators.
8211         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
8212         * tests/test-math.c (main): Test this.
8213         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
8214         * doc/posix-headers/math.texi (math.h): Mention bug.
8215         Reported by Nelson H. F. Beebe and Jim Meyering.
8216
8217 2008-04-11  Bruno Haible  <bruno@clisp.org>
8218
8219         Adapt to future versions of Apple GCC.
8220         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
8221         Reported by Peter O'Gorman <peter@pogma.com>.
8222
8223 2008-04-11  Bruno Haible  <bruno@clisp.org>
8224
8225         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
8226
8227 2008-04-11  Bruno Haible  <bruno@clisp.org>
8228
8229         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
8230
8231         * modules/getaddrinfo-tests (Makefile.am): Define
8232         test_getaddrinfo_LDADD.
8233
8234 2008-04-11  Bruno Haible  <bruno@clisp.org>
8235
8236         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
8237         (init): Fix syntax error.
8238         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
8239         is declared.
8240
8241 2008-04-11  Bruno Haible  <bruno@clisp.org>
8242
8243         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
8244         * modules/glob (Depends-on): Add stdbool.
8245
8246 2008-04-11  Bruno Haible  <bruno@clisp.org>
8247
8248         * lib/trim.c: Include <string.h>.
8249
8250 2008-04-11  Eric Blake  <ebb9@byu.net>
8251
8252         Avoid compile failure on OS/2.
8253         * lib/regex_internal.h (internal_function): Disable optimization
8254         on OS/2 (__EMX__), where it caused compiler error.
8255         Reported by Elbert Pol.
8256
8257 2008-04-11  Bruno Haible  <bruno@clisp.org>
8258
8259         Flush the standard error stream before aborting. Needed on mingw.
8260         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
8261         * tests/test-array_list.c (ASSERT): Likewise.
8262         * tests/test-array_oset.c (ASSERT): Likewise.
8263         * tests/test-avltree_list.c (ASSERT): Likewise.
8264         * tests/test-avltree_oset.c (ASSERT): Likewise.
8265         * tests/test-avltreehash_list.c (ASSERT): Likewise.
8266         * tests/test-binary-io.c (ASSERT): Likewise.
8267         * tests/test-byteswap.c (ASSERT): Likewise.
8268         * tests/test-c-ctype.c (ASSERT): Likewise.
8269         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
8270         * tests/test-c-strcasestr.c (ASSERT): Likewise.
8271         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
8272         * tests/test-c-strstr.c (ASSERT): Likewise.
8273         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
8274         * tests/test-canonicalize.c (ASSERT): Likewise.
8275         * tests/test-carray_list.c (ASSERT): Likewise.
8276         * tests/test-ceilf1.c (ASSERT): Likewise.
8277         * tests/test-ceilf2.c (ASSERT): Likewise.
8278         * tests/test-ceill.c (ASSERT): Likewise.
8279         * tests/test-count-one-bits.c (ASSERT): Likewise.
8280         * tests/test-fbufmode.c (ASSERT): Likewise.
8281         * tests/test-fflush2.c (ASSERT): Likewise.
8282         * tests/test-floorf1.c (ASSERT): Likewise.
8283         * tests/test-floorf2.c (ASSERT): Likewise.
8284         * tests/test-floorl.c (ASSERT): Likewise.
8285         * tests/test-fopen.c (ASSERT): Likewise.
8286         * tests/test-fpending.c (ASSERT): Likewise.
8287         * tests/test-fprintf-posix.c (ASSERT): Likewise.
8288         * tests/test-fpurge.c (ASSERT): Likewise.
8289         * tests/test-freadable.c (ASSERT): Likewise.
8290         * tests/test-freadahead.c (ASSERT): Likewise.
8291         * tests/test-freading.c (ASSERT): Likewise.
8292         * tests/test-freadptr.c (ASSERT): Likewise.
8293         * tests/test-freadptr2.c (ASSERT): Likewise.
8294         * tests/test-freadseek.c (ASSERT): Likewise.
8295         * tests/test-freopen.c (ASSERT): Likewise.
8296         * tests/test-frexp.c (ASSERT): Likewise.
8297         * tests/test-frexpl.c (ASSERT): Likewise.
8298         * tests/test-fseek.c (ASSERT): Likewise.
8299         * tests/test-fseeko.c (ASSERT): Likewise.
8300         * tests/test-fstrcmp.c (ASSERT): Likewise.
8301         * tests/test-ftell.c (ASSERT): Likewise.
8302         * tests/test-ftello.c (ASSERT): Likewise.
8303         * tests/test-func.c (ASSERT): Likewise.
8304         * tests/test-fwritable.c (ASSERT): Likewise.
8305         * tests/test-fwriting.c (ASSERT): Likewise.
8306         * tests/test-getdelim.c (ASSERT): Likewise.
8307         * tests/test-getline.c (ASSERT): Likewise.
8308         * tests/test-i-ring.c (ASSERT): Likewise.
8309         * tests/test-iconv-utf.c (ASSERT): Likewise.
8310         * tests/test-iconv.c (ASSERT): Likewise.
8311         * tests/test-isfinite.c (ASSERT): Likewise.
8312         * tests/test-isnand.c (ASSERT): Likewise.
8313         * tests/test-isnanf.c (ASSERT): Likewise.
8314         * tests/test-isnanl.h (ASSERT): Likewise.
8315         * tests/test-ldexpl.c (ASSERT): Likewise.
8316         * tests/test-linked_list.c (ASSERT): Likewise.
8317         * tests/test-linkedhash_list.c (ASSERT): Likewise.
8318         * tests/test-localename.c (ASSERT): Likewise.
8319         * tests/test-lseek.c (ASSERT): Likewise.
8320         * tests/test-mbscasecmp.c (ASSERT): Likewise.
8321         * tests/test-mbscasestr1.c (ASSERT): Likewise.
8322         * tests/test-mbscasestr2.c (ASSERT): Likewise.
8323         * tests/test-mbscasestr3.c (ASSERT): Likewise.
8324         * tests/test-mbscasestr4.c (ASSERT): Likewise.
8325         * tests/test-mbschr.c (ASSERT): Likewise.
8326         * tests/test-mbscspn.c (ASSERT): Likewise.
8327         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
8328         * tests/test-mbspbrk.c (ASSERT): Likewise.
8329         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
8330         * tests/test-mbsrchr.c (ASSERT): Likewise.
8331         * tests/test-mbsspn.c (ASSERT): Likewise.
8332         * tests/test-mbsstr1.c (ASSERT): Likewise.
8333         * tests/test-mbsstr2.c (ASSERT): Likewise.
8334         * tests/test-mbsstr3.c (ASSERT): Likewise.
8335         * tests/test-memchr2.c (ASSERT): Likewise.
8336         * tests/test-memmem.c (ASSERT): Likewise.
8337         * tests/test-open.c (ASSERT): Likewise.
8338         * tests/test-printf-frexp.c (ASSERT): Likewise.
8339         * tests/test-printf-frexpl.c (ASSERT): Likewise.
8340         * tests/test-printf-posix.c (ASSERT): Likewise.
8341         * tests/test-quotearg.c (ASSERT): Likewise.
8342         * tests/test-rbtree_list.c (ASSERT): Likewise.
8343         * tests/test-rbtree_oset.c (ASSERT): Likewise.
8344         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
8345         * tests/test-round1.c (ASSERT): Likewise.
8346         * tests/test-roundf1.c (ASSERT): Likewise.
8347         * tests/test-roundl.c (ASSERT): Likewise.
8348         * tests/test-signbit.c (ASSERT): Likewise.
8349         * tests/test-sleep.c (ASSERT): Likewise.
8350         * tests/test-snprintf-posix.c (ASSERT): Likewise.
8351         * tests/test-snprintf.c (ASSERT): Likewise.
8352         * tests/test-sprintf-posix.c (ASSERT): Likewise.
8353         * tests/test-stat-time.c (ASSERT): Likewise.
8354         * tests/test-strcasestr.c (ASSERT): Likewise.
8355         * tests/test-strerror.c (ASSERT): Likewise.
8356         * tests/test-striconv.c (ASSERT): Likewise.
8357         * tests/test-striconveh.c (ASSERT): Likewise.
8358         * tests/test-striconveha.c (ASSERT): Likewise.
8359         * tests/test-strsignal.c (ASSERT): Likewise.
8360         * tests/test-strstr.c (ASSERT): Likewise.
8361         * tests/test-strtod.c (ASSERT): Likewise.
8362         * tests/test-trunc1.c (ASSERT): Likewise.
8363         * tests/test-trunc2.c (ASSERT): Likewise.
8364         * tests/test-truncf1.c (ASSERT): Likewise.
8365         * tests/test-truncf2.c (ASSERT): Likewise.
8366         * tests/test-truncl.c (ASSERT): Likewise.
8367         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
8368         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
8369         * tests/test-vasnprintf.c (ASSERT): Likewise.
8370         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
8371         * tests/test-vasprintf.c (ASSERT): Likewise.
8372         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
8373         * tests/test-vprintf-posix.c (ASSERT): Likewise.
8374         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
8375         * tests/test-vsnprintf.c (ASSERT): Likewise.
8376         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
8377         * tests/test-wcwidth.c (ASSERT): Likewise.
8378         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
8379         * tests/test-xprintf-posix.c (ASSERT): Likewise.
8380         * tests/test-xvasprintf.c (ASSERT): Likewise.
8381         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
8382         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
8383         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
8384         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
8385         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
8386         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
8387         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
8388         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
8389         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
8390         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
8391         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
8392         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
8393         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
8394         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
8395         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
8396         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
8397         * tests/unictype/test-block_list.c (ASSERT): Likewise.
8398         * tests/unictype/test-block_of.c (ASSERT): Likewise.
8399         * tests/unictype/test-block_test.c (ASSERT): Likewise.
8400         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
8401         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
8402         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
8403         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
8404         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
8405         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
8406         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
8407         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
8408         * tests/unictype/test-combining.c (ASSERT): Likewise.
8409         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
8410         * tests/unictype/test-digit.c (ASSERT): Likewise.
8411         * tests/unictype/test-mirror.c (ASSERT): Likewise.
8412         * tests/unictype/test-numeric.c (ASSERT): Likewise.
8413         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
8414         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
8415         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
8416         * tests/unictype/test-scripts.c (ASSERT): Likewise.
8417         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
8418         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
8419         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
8420         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
8421         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
8422         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
8423         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
8424         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
8425         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
8426         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
8427         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
8428         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
8429         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
8430         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
8431         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
8432         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
8433         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
8434         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
8435         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
8436         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
8437         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
8438         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
8439         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
8440         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
8441         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
8442         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
8443         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
8444         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
8445         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
8446         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
8447         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
8448         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
8449         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
8450         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
8451         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
8452         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
8453         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
8454         Reported by Eric Blake.
8455
8456 2008-04-11  Bruno Haible  <bruno@clisp.org>
8457
8458         * lib/wchar.in.h: Tweak comment.
8459
8460 2008-04-11  Bruno Haible  <bruno@clisp.org>
8461
8462         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
8463         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
8464         gl_COMMON.
8465         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
8466
8467 2008-04-11  Bruno Haible  <bruno@clisp.org>
8468
8469         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
8470
8471 2008-04-11  Simon Josefsson  <simon@josefsson.org>
8472
8473         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
8474         of attempting to use non-existing /dev/*random.  Based on patch
8475         from Adam Strzelecki <ono@java.pl> in
8476         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
8477
8478 2008-04-08  Bruno Haible  <bruno@clisp.org>
8479
8480         Add tentative support for emx+gcc.
8481         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
8482         * lib/fpurge.c (fpurge): Likewise.
8483         * lib/freadable.c (freadable): Likewise.
8484         * lib/freadahead.c (freadahead): Likewise.
8485         * lib/freading.c (freading): Likewise.
8486         * lib/freadptr.c (freadptr): Likewise.
8487         * lib/freadseek.c (freadptrinc): Likewise.
8488         * lib/fseeko.c (rpl_fseeko): Likewise.
8489         * lib/fseterr.c (fseterr): Likewise.
8490         * lib/fwritable.c (fwritable): Likewise.
8491         * lib/fwriting.c (fwriting): Likewise.
8492         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
8493
8494 2008-04-09  Eric Blake  <ebb9@byu.net>
8495
8496         Avoid some autoconf warnings.
8497         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
8498         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
8499         * m4/afs.m4 (gl_AFS): Likewise.
8500         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
8501         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
8502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8503         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
8504         (gl_INTEGER_TYPE_SUFFIX): Likewise.
8505         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
8506         (AC_CHECK_DECLS_ONCE): Likewise.
8507         Rename file...
8508         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
8509         gnulib-tool requires autoconf 2.59 or better.
8510         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
8511
8512 2008-04-08  Eric Blake  <ebb9@byu.net>
8513
8514         Use 'git describe --match' if present (added in git 1.5.5).
8515         * build-aux/git-version-gen: Limit result to tags that match 'v*'
8516         if possible.
8517
8518 2008-04-08  Bruno Haible  <bruno@clisp.org>
8519
8520         Add tentative support for OpenServer.
8521         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
8522         _ptr, _cnt.
8523         * lib/fpurge.c (fpurge): Likewise.
8524         * lib/freadable.c (freadable): Likewise.
8525         * lib/freadahead.c (freadahead): Likewise.
8526         * lib/freading.c (freading): Likewise.
8527         * lib/freadptr.c (freadptr): Likewise.
8528         * lib/freadseek.c (freadptrinc): Likewise.
8529         * lib/fseeko.c (rpl_fseeko): Likewise.
8530         * lib/fseterr.c (fseterr): Likewise.
8531         * lib/fwritable.c (fwritable): Likewise.
8532         * lib/fwriting.c (fwriting): Likewise.
8533         Reported by Roger Cornelius <rac@tenzing.org> and
8534         Brian K. White <brian@aljex.com>.
8535
8536 2008-04-06  Jim Meyering  <meyering@redhat.com>
8537
8538         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
8539
8540 2008-04-06  Bruno Haible  <bruno@clisp.org>
8541
8542         Avoid possible error with non-ASCII bytes in UTF-8 locales.
8543         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
8544         * tests/test-printf-posix.sh: Likewise.
8545         * tests/test-vfprintf-posix.sh: Likewise.
8546         * tests/test-vprintf-posix.sh: Likewise.
8547         * tests/test-xprintf-posix.sh: Likewise.
8548
8549 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8550
8551         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
8552         hide error from 'ls', needed on OS/2.
8553         Report by Elbert Pol <elbert.pol@gmail.com>.
8554
8555 2008-04-04  Eric Blake  <ebb9@byu.net>
8556
8557         Make test-fseeko.c failures meaningful.
8558         * tests/test-fseeko.c: Print line number on failure.
8559         * tests/test-fseek.c: Likewise.
8560         Reported by Nelson H. F. Beebe.
8561
8562         Improve strtod bug detection check.
8563         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
8564         required for Solaris 10.
8565         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
8566
8567 2008-04-04  Bruno Haible  <bruno@clisp.org>
8568
8569         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
8570         by m4/setenv.m4.
8571
8572 2008-04-03  Eric Blake  <ebb9@byu.net>
8573
8574         Ensure sane .version contents.
8575         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
8576         version string.
8577         * build-aux/git-version-gen: Improve documentation.
8578
8579         Make GNU make output nicer.
8580         * top/GNUmakefile [!_have-Makefile]: Add dependency on
8581         MAKECMDGOALS to enforce message for all command line targets.  Set
8582         srcdir for use in maint.mk.
8583
8584         Another maintainer tweak.
8585         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
8586         a target that regenerates version.
8587
8588 2008-04-03  Jim Meyering  <meyering@redhat.com>
8589
8590         vc-list-files: don't cause coreutils "make po-check" failure
8591         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
8592
8593 2008-04-03  Eric Blake  <ebb9@byu.net>
8594
8595         Allow VPATH usage of vc-list-files.
8596         * build-aux/vc-list-files (scriptversion): Add timestamp.
8597         (options): Add --help, --version, -C.
8598         (CVS): Support installed cvsu.
8599
8600 2008-04-02  Bruno Haible  <bruno@clisp.org>
8601
8602         Avoid some "statement with no effect" warnings from gcc.
8603         * tests/test-wctype.c (main): Explicitly ignore unused values.
8604         Reported by Jim Meyering.
8605
8606 2008-04-02  Jim Meyering  <meyering@redhat.com>
8607
8608         Avoid some warnings from "gcc -Wshadow".
8609         * tests/test-frexp.c (exp): Define to a different identifier.
8610         * tests/test-frexpl.c (exp): Likewise.
8611
8612 2008-04-03  Jim Meyering  <meyering@redhat.com>
8613
8614         bootstrap: remove dangling *.[ch] symlinks from lib
8615         * build-aux/bootstrap [dangling symlink removal]: Move find's
8616         -depth option to precede all others, to avoid a warning.
8617         Remove *.[ch] files too, and from "$source_base" (usually lib/).
8618
8619 2008-04-02  Bruno Haible  <bruno@clisp.org>
8620
8621         Avoid some warnings from "gcc -Wshadow".
8622         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
8623         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
8624         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
8625         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
8626         Reported by Jim Meyering.
8627
8628 2008-04-01  Bruno Haible  <bruno@clisp.org>
8629
8630         Fix test to work on IRIX 6.5 with cc.
8631         * tests/test-math.c (numeric_equal): New function.
8632         (main): Use it.
8633
8634 2008-04-01  Bruno Haible  <bruno@clisp.org>
8635
8636         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
8637
8638 2008-04-01  Bruno Haible  <bruno@clisp.org>
8639
8640         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
8641         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
8642         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
8643         (Depends-on): Remove math.
8644
8645         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
8646         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
8647         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
8648         (Depends-on): Remove math.
8649
8650         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
8651         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
8652         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
8653         (Depends-on): Remove math.
8654         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
8655         (Depends-on): Remove math.
8656
8657         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
8658         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
8659         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
8660         (Depends-on): Remove math.
8661         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
8662         (Depends-on): Remove math.
8663
8664         * tests/test-round1.c: Include nan.h.
8665         (main): Use NaNd instead of NAN.
8666         * modules/round-tests (Files): Add tests/nan.h.
8667
8668         * tests/test-trunc1.c: Include nan.h.
8669         (main): Use NaNd instead of NAN.
8670         * modules/trunc-tests (Files): Add tests/nan.h.
8671
8672         * tests/test-roundf1.c: Include nan.h.
8673         (main): Use NaNf instead of NAN.
8674         * modules/roundf-tests (Files): Add tests/nan.h.
8675
8676         * tests/test-truncf1.c: Include nan.h.
8677         (main): Use NaNf instead of NAN.
8678         * modules/truncf-tests (Files): Add tests/nan.h.
8679
8680         * tests/test-ceilf1.c: Include nan.h.
8681         (main): Use NaNf instead of NAN.
8682         * modules/ceilf-tests (Files): Add tests/nan.h.
8683
8684         * tests/test-floorf1.c: Include nan.h.
8685         (main): Use NaNf instead of NAN.
8686         * modules/floorf-tests (Files): Add tests/nan.h.
8687
8688         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
8689         (main): Use NaNf instead of NAN.
8690         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
8691
8692         * tests/test-isnand.c: Include nan.h instead of <math.h>.
8693         (main): Use NaNd instead of NAN.
8694         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
8695
8696         * tests/test-frexp.c: Include nan.h.
8697         (main): Use NaNd instead of NAN.
8698         * modules/frexp-tests (Files): Add tests/nan.h.
8699
8700         * lib/isnan.c: Don't include <math.h>.
8701         (FUNC): Don't use NAN macro.
8702         * modules/isnand-nolibm (Depends-on): Remove math.
8703         * modules/isnanf-nolibm (Depends-on): Remove math.
8704         * modules/isnanl (Depends-on): Remove math.
8705         * modules/isnanl-nolibm (Depends-on): Remove math.
8706
8707         * tests/nan.h: New file.
8708
8709 2008-04-01  Eric Blake  <ebb9@byu.net>
8710
8711         Fix typos.
8712         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
8713         values to be the right type.
8714
8715         For now, cater to gnulib strtod inaccuracies.
8716         * tests/test-strtod.c (main): Allow 1-ulp error on expected
8717         fractional results.  While not as nice from a QoI perspective, it
8718         is a quicker patch than correctly implementing decimal to binary
8719         rounding.
8720
8721 2008-03-31  Eric Blake  <ebb9@byu.net>
8722
8723         Guarantee a definition of NAN.
8724         * lib/math.in.h (NAN): Define if missing.
8725         * tests/test-math.c (main): Test it.
8726         * doc/posix-headers/math.texi (math.h): Document this.
8727         * lib/isnan.c (rpl_isnand): Use it.
8728         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
8729         * tests/test-floorf1.c (NaN): Likewise.
8730         * tests/test-frexp.c (NaN): Likewise.
8731         * tests/test-isnand.c (NaN): Likewise.
8732         * tests/test-isnanf.c (NaN): Likewise.
8733         * tests/test-round1.c (NaN): Likewise.
8734         * tests/test-roundf1.c (NaN): Likewise.
8735         * tests/test-snprintf-posix.h (NaN): Likewise.
8736         * tests/test-sprintf-posix.h (NaN): Likewise.
8737         * tests/test-trunc1.c (NaN): Likewise.
8738         * tests/test-truncf1.c (NaN): Likewise.
8739         * tests/test-vasnprintf-posix.c (NaN): Likewise.
8740         * tests/test-vasprintf-posix.c (NaN): Likewise.
8741         * modules/isnand-nolibm (Depends-on): Add math.
8742         * modules/isnanf-nolibm (Depends-on): Likewise.
8743         * modules/isnanl (Depends-on): Likewise.
8744         * modules/isnanl-nolibm (Depends-on): Likewise.
8745         * modules/snprintf-posix-tests (Depends-on): Likewise.
8746         * modules/sprintf-posix-tests (Depends-on): Likewise.
8747         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
8748         * modules/vsprintf-posix-tests (Depends-on): Likewise.
8749         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
8750         * modules/vasprintf-posix-tests (Depends-on): Likewise.
8751
8752 2008-03-31  Bruno Haible  <bruno@clisp.org>
8753
8754         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
8755         * doc/posix-functions/strtod.texi: Likewise.
8756
8757 2008-03-31  Bruno Haible  <bruno@clisp.org>
8758
8759         * tests/test-strtod.c (main): Don't use C99 syntax.
8760
8761 2008-03-31  Bruno Haible  <bruno@clisp.org>
8762
8763         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
8764         Reported by Eric Blake.
8765
8766 2008-03-31  Jim Meyering  <meyering@redhat.com>
8767
8768         Don't compare actual signbit return values.
8769         * tests/test-strtod.c (main): Rather, compare only their
8770         zero/non-zero nature.
8771
8772 2008-03-31  Eric Blake  <ebb9@byu.net>
8773
8774         More strtod documentation.
8775         * doc/posix-functions/strtod.texi (strtod): Interpret more test
8776         failures as distinct bugs.
8777
8778 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
8779
8780         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
8781         Problem reported by Erik Benada in
8782         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
8783
8784 2008-03-30  Bruno Haible  <bruno@clisp.org>
8785
8786         * tests/test-strtod.c: Add comments about which assertion fails on which
8787         platform.
8788         * doc/posix-functions/strtod.texi: Add info about many more platforms.
8789
8790 2008-03-30  Eric Blake  <ebb9@byu.net>
8791
8792         Test signbit behavior on zeros.
8793         * tests/test-signbit.c (test_signbitf): Add tests for zero.
8794         (test_signbitd, test_signbitl): Likewise.
8795
8796         More strtod touchups.
8797         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
8798         sign of negative underflow, for now.  Use .5, not .1.
8799         * doc/posix-functions/strtod.texi (strtod): Mention these
8800         limitations.
8801         Reported by Jim Meyering.
8802
8803 2008-03-30  Bruno Haible  <bruno@clisp.org>
8804
8805         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
8806         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
8807
8808 2008-03-30  Bruno Haible  <bruno@clisp.org>
8809
8810         Avoid failure when attempting to return empty iconv results on some
8811         platforms.
8812         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
8813         allocation, don't report ENOMEM when the resulting string is empty.
8814
8815 2008-03-30  Bruno Haible  <bruno@clisp.org>
8816
8817         Fix buffer overrun.
8818         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
8819         Don't consider the width for tmp_length. Check count against tmp_length
8820         before doing the padding. Ensure enough allocation during padding.
8821
8822 2008-03-30  Eric Blake  <ebb9@byu.net>
8823
8824         strtod touchups.
8825         * lib/strtod.c (strtod): Avoid compiler warnings.
8826         Reported by Jim Meyering.
8827
8828 2008-03-30  Bruno Haible  <bruno@clisp.org>
8829
8830         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
8831         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
8832         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
8833         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
8834         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
8835         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
8836         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
8837         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
8838
8839         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
8840         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
8841         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
8842         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
8843         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
8844         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
8845         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
8846         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
8847
8848         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
8849         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
8850         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
8851         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
8852         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
8853         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
8854         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
8855         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
8856
8857         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
8858         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
8859
8860         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
8861         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
8862
8863         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
8864         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
8865
8866         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
8867         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
8868         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
8869
8870         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
8871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
8872         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
8873
8874         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
8875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
8876         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
8877
8878         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
8879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
8880         * modules/vasprintf (Depends-on): Add EOVERFLOW.
8881
8882         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
8883         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
8884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
8885         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
8886         (Depends-on): Add EOVERFLOW.
8887         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
8888         (Depends-on): Add EOVERFLOW.
8889         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
8890         (Depends-on): Add EOVERFLOW.
8891         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
8892         (Depends-on): Add EOVERFLOW.
8893         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
8894         (Depends-on): Add EOVERFLOW.
8895         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
8896         (Depends-on): Add EOVERFLOW.
8897         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
8898         (Depends-on): Add EOVERFLOW.
8899         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
8900         (Depends-on): Add EOVERFLOW.
8901
8902         * lib/sprintf.c (EOVERFLOW): Remove fallback.
8903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
8904         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
8905
8906         * lib/snprintf.c (EOVERFLOW): Remove fallback.
8907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
8908         * modules/snprintf (Depends-on): Add EOVERFLOW.
8909
8910         * lib/poll.c (EOVERFLOW): Remove fallback.
8911         * modules/poll (Depends-on): Add EOVERFLOW.
8912
8913         * lib/getugroups.c (EOVERFLOW): Remove fallback.
8914         * modules/getugroups (Depends-on): Add EOVERFLOW.
8915
8916         * lib/getdelim.c (EOVERFLOW): Remove fallback.
8917         * modules/getdelim (Depends-on): Add EOVERFLOW.
8918
8919         * lib/ftell.c (EOVERFLOW): Remove fallback.
8920         * modules/ftell (Depends-on): Add EOVERFLOW.
8921
8922         * lib/fprintf.c (EOVERFLOW): Remove fallback.
8923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
8924         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
8925
8926         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
8927
8928         * modules/EOVERFLOW-tests: New file.
8929         * tests/test-EOVERFLOW.c: New file.
8930
8931         * modules/EOVERFLOW: New file.
8932         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
8933
8934 2008-03-30  Bruno Haible  <bruno@clisp.org>
8935
8936         Fix bug introduced on 2007-06-10.
8937         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
8938         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
8939
8940 2008-03-30  Bruno Haible  <bruno@clisp.org>
8941
8942         Improve freadseek's efficiency after ungetc.
8943         * lib/freadseek.c: Include freadahead.h.
8944         (freadptrinc): New function, extracted from freadseek.
8945         (freadseek): Use it in a loop. Use freadahead to determine the number
8946         of loop iterations.
8947         * modules/freadseek (Depends-on): Add freadahead.
8948         (configure.ac): Require AC_C_INLINE.
8949
8950 2008-03-30  Bruno Haible  <bruno@clisp.org>
8951
8952         * lib/freadseek.c (freadseek): Don't ignore the return value of
8953         freadptr.
8954
8955 2008-03-29  Eric Blake  <ebb9@byu.net>
8956
8957         Add hex float support.
8958         * modules/strtod (Depends-on): Add c-ctype.
8959         (Link): Mention POW_LIB.
8960         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
8961         whitespace between 'e' and exponent.
8962         * tests/test-strtod.c (main): Enable hex float tests.
8963         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
8964         now provides.
8965
8966         Document various strtod bugs, with some fixes.
8967         * doc/posix-functions/strtod.texi (strtod): Document bugs with
8968         "-0x", "inf", "nan", and hex constants.
8969         * doc/posix-functions/atof.texi (atof): Likewise.
8970         * modules/stdlib (Makefile.am): Support strtod.
8971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8972         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
8973         detect additional strtod bugs.
8974         * lib/stdlib.in.h (rpl_strtod): Add declarations.
8975         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
8976         bool where appropriate.  Parse 'inf' and 'nan'.
8977         * tests/test-strtod.c: New file.
8978         * modules/strtod (Depends-on): Add stdbool, stdlib.
8979         (configure.ac): Turn on module indicator.
8980         * modules/strtod-tests: New module.
8981
8982 2008-03-29  Eric Blake  <ebb9@byu.net>
8983
8984         Fix ftell on mingw.
8985         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
8986         * modules/ftell-tests (Depends-on): Add binary-io.
8987         * modules/ftello-tests (Depends-on): Likewise.
8988         * tests/test-ftell.c (main): Enhance test to cover behavior after
8989         ungetc.  Enforce binary mode.
8990         * tests/test-ftello.c (main): Likewise.
8991
8992         Pass test-freadseek on cygwin.
8993         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
8994         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
8995         ungetc buffer.
8996
8997         * tests/test-fflush2.c (main): Fix typo.
8998
8999 2008-03-29  Bruno Haible  <bruno@clisp.org>
9000
9001         * tests/test-fflush2.c (main): Temporarily disable the contents of
9002         this test.
9003         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
9004         Reported by Eric Blake.
9005
9006 2008-03-28  Simon Josefsson  <simon@josefsson.org>
9007
9008         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
9009         (GC_SHA224_DIGEST_SIZE): Add.
9010
9011         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
9012         (gc_hash_digest_length): Likewise.
9013         (gc_hash_buffer): Likewise.
9014
9015 2008-03-25  Bruno Haible  <bruno@clisp.org>
9016
9017         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
9018         detail which gettext release to use.
9019         Reported by Simon Josefsson.
9020
9021 2008-03-26  Jim Meyering  <meyering@redhat.com>
9022
9023         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
9024         * modules/gnumakefile (clean-GNUmakefile): Also, use
9025         test ... && ... || : syntax rather than if-then ... fi.
9026
9027         gnumakefile: Don't double-quote-expand $(VPATH) value.
9028         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
9029
9030 2008-03-24  Eric Blake  <ebb9@byu.net>
9031
9032         Alter GNUmakefile to install into top directory.
9033         * modules/maintainer-makefile: Split, and add dependency...
9034         * modules/gnumakefile: to this new module.
9035         * build-aux/GNUmakefile: Move...
9036         * top/GNUmakefile: ...here.
9037         * build-aux/maint.mk: Move...
9038         * top/maint.mk: ...here.
9039         * MODULES.html.sh (Support for maintaining...): Document new
9040         module.
9041
9042 2008-03-23  Bruno Haible  <bruno@clisp.org>
9043
9044         * gnulib-tool: New options --vc-files, --no-vc-files.
9045         (func_usage): Document them.
9046         (vc_files): New variable.
9047         (func_import): Consider vc_files.
9048         (func_create_testdir): Set vc_files to empty.
9049         Suggested by Jim Meyering and Karl Berry.
9050
9051 2008-03-23  Bruno Haible  <bruno@clisp.org>
9052
9053         Fix regex compilation error on HP-UX 11.
9054         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
9055         * modules/regex (Files): Add m4/mbstate_t.m4.
9056         Reported by Ton Voon <ton.voon@altinity.com>.
9057
9058 2008-03-23  Bruno Haible  <bruno@clisp.org>
9059
9060         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
9061
9062 2008-03-23  Eric Blake  <ebb9@byu.net>
9063             Bruno Haible  <bruno@clisp.org>
9064
9065         Install files from top/ in the destination directory.
9066         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9067         augmentation also for the files from top/.
9068         (func_import, func_create_testdir): Rewrite file names:
9069         top/filename -> filename.
9070
9071 2008-03-23  Bruno Haible  <bruno@clisp.org>
9072
9073         Tweak "gnulib --version" output.
9074         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
9075
9076 2008-03-23  Bruno Haible  <bruno@clisp.org>
9077
9078         Tweak "gnulib --version" output.
9079         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
9080         rather than contents of ChangeLog, when possible.
9081
9082 2008-03-21  Eric Blake  <ebb9@byu.net>
9083
9084         More --version tweaks.
9085         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
9086         date of last ChangeLog entry.
9087
9088 2008-03-21  Jim Meyering  <meyering@redhat.com>
9089
9090         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
9091
9092 2008-03-20  Eric Blake  <ebb9@byu.net>
9093
9094         VPATH fix.
9095         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
9096
9097 2008-03-20  Simon Josefsson  <simon@josefsson.org>
9098
9099         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
9100         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
9101
9102 2008-03-20  Eric Blake  <ebb9@byu.net>
9103
9104         Sync GNUmakefile with coreutils.
9105         * build-aux/GNUmakefile (have-Makefile): Rename...
9106         (_have-Makefile): ...to this, for namespace consideration.
9107         (GNUmakefile.cfg): Include, if present.
9108         (_autoreconf): Define a default.
9109         (_is-dist-target): New rule for rebuilds to pick up intra-release
9110         version.
9111         (maint-cfg.mk): Rename...
9112         (cfg.mk): ...to this.
9113
9114 2008-03-18  Jim Meyering  <meyering@redhat.com>
9115
9116         New script and module: mktempd
9117         * MODULES.html.sh (maint+release support): Add mktempd.
9118         * build-aux/mktempd: New file.
9119         * modules/mktempd: New file.
9120
9121 2008-03-15  Jim Meyering  <meyering@redhat.com>
9122
9123         Undo last change.
9124         * lib/sha1.c, lib/md5.c: 63 != ~63.
9125         Reported by Andreas Schwab.
9126
9127         sha1.c, md5.c: Hoist a redundant expression.
9128         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
9129         "ctx->buflen" only once, before calling *_process_block.
9130         * lib/md5.c (md5_process_bytes): Likewise.
9131
9132 2008-03-14  Eric Blake  <ebb9@byu.net>
9133
9134         Bump copyright year in files generated by gnulib-tool.
9135         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
9136         gnulib-tool, rather than hard-coding it.
9137
9138         Fix 'gnulib-tool --version' output to work with git.
9139         * gnulib-tool (func_gnulib_dir): New function, extracted from...
9140         (startup): ...here.
9141         (func_version): Use it to invoke git-version-gen, rather than
9142         relying on CVS keyword expansion.  Modernize wording.
9143         (cvsdatestamp, last_checkin_date, version): Kill unused
9144         variables.
9145
9146 2008-03-12  Jim Meyering  <meyering@redhat.com>
9147
9148         Recognize optional cast of the argument to free.
9149         * build-aux/useless-if-before-free: Update regexps.
9150
9151         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
9152
9153 2008-03-11  Bruno Haible  <bruno@clisp.org>
9154
9155         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
9156         by a single package.
9157         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
9158         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
9159         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
9160         Reported by Sam Steingold <sds@gnu.org>.
9161
9162 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9163
9164         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
9165         repositories.
9166
9167 2008-03-11  Bruno Haible  <bruno@clisp.org>
9168
9169         Avoid conflicts between local macro definitions.
9170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9171         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
9172
9173 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
9174             Bruno Haible  <bruno@clisp.org>
9175
9176         Make va_copy work with some version of xlc on AIX 5.1.
9177         * lib/stdarg.in.h: New file.
9178         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
9179         On AIX, use a <stdarg.h> file substitute.
9180         * modules/stdarg (Files): Add lib/stdarg.in.h.
9181         (Depends-on): Add include_next.
9182         (Makefile.am): Build a stdarg.h substitute if requested.
9183         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
9184
9185 2008-03-10  Bruno Haible  <bruno@clisp.org>
9186
9187         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
9188         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9189         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
9190
9191 2008-03-10  Bruno Haible  <bruno@clisp.org>
9192
9193         * modules/stdlib (Depends-on): Add include_next, remove
9194         absolute-header.
9195
9196 2008-03-09  Bruno Haible  <bruno@clisp.org>
9197
9198         * lib/freadahead.h (freadahead): Document more precisely.
9199         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
9200         the sum of both buffer sizes.
9201         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
9202         * NEWS: Document the change.
9203
9204 2008-03-09  Bruno Haible  <bruno@clisp.org>
9205
9206         Extend freadptr to return also the buffer size.
9207         * lib/freadptr.h (freadptr): Add sizep argument.
9208         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
9209         (freadptr): Add sizep argument. Determine buffer size like freadahead
9210         does.
9211         * tests/test-freadptr.c: Don't include freadahead.h.
9212         (main): Adapt for new calling convention of freadptr.
9213         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
9214         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
9215         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
9216         tests/test-freadptr2.sh.
9217         (Depends): Remove freadahead.
9218         (TESTS): Add test-freadptr2.sh.
9219         (check_PROGRAMS): Add test-freadptr2.
9220
9221 2008-03-09  Bruno Haible  <bruno@clisp.org>
9222
9223         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
9224         Report and solution by Simon Josefsson.
9225
9226 2008-03-06  Bruno Haible  <bruno@clisp.org>
9227
9228         Make fflush after ungetc work on BSD platforms.
9229         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
9230         * tests/test-fflush2.c: New file.
9231         * tests/test-fflush2.sh: New file.
9232         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
9233         tests/test-fflush2.c.
9234         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
9235         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
9236
9237 2008-03-06  Eric Blake  <ebb9@byu.net>
9238
9239         Likewise for ftello.
9240         * modules/ftello (Dependencies): Add extensions.
9241         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
9242
9243 2008-03-06  Bruno Haible  <bruno@clisp.org>
9244
9245         * modules/fseeko (Dependencies): Add extensions.
9246         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
9247         Needed on glibc systems.
9248
9249 2008-03-06  Bruno Haible  <bruno@clisp.org>
9250
9251         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
9252         email address.
9253         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9254
9255 2008-03-06  Bruno Haible  <bruno@clisp.org>
9256
9257         * users.txt: Add libgnupdf.
9258
9259 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9260
9261         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
9262         (Header File Substitutes, Function Substitutes,
9263         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
9264         (Build robot for gnulib): Fix typo.
9265
9266 2008-03-06  Bruno Haible  <bruno@clisp.org>
9267
9268         * doc/gnulib-tool.texi (VCS Issues): Small updates.
9269         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9270
9271 2008-03-06  Bruno Haible  <bruno@clisp.org>
9272
9273         * doc/func.texi: New file, extracted from doc/gnulib.texi.
9274         * doc/gnulib.texi: Include it.
9275
9276 2008-03-06  Simon Josefsson  <simon@josefsson.org>
9277
9278         * modules/func (License): Change license to unlimited; there was
9279         no LGPL parts in the module anyway.
9280
9281 2008-03-06  Simon Josefsson  <simon@josefsson.org>
9282
9283         * modules/__func__: Renamed to modules/func.
9284         * modules/__func__-tests: Renamed to modules/func-tests.
9285         * tests/test-__func__.c: Renamed to tests/test-func.c.
9286         * m4/__func__.m4: Renamed to m4/func.m4.
9287         * doc/gnulib.texi (__func__): Section renamed to func.
9288         Suggested by Eric Blake <ebb9@byu.net>.
9289
9290 2008-03-06  Simon Josefsson  <simon@josefsson.org>
9291
9292         * doc/gnulib.texi (__func__): Use C99 terminology when talking
9293         about __func__.  Make example self-contained.  Suggested by Eric
9294         Blake <ebb9@byu.net>.
9295
9296         * tests/test-__func__.c (main): Avoid extraneous () around __func.
9297         Suggested by Eric Blake <ebb9@byu.net>.
9298
9299 2008-03-06  Simon Josefsson  <simon@josefsson.org>
9300
9301         * modules/__func__: New file.
9302         * modules/__func__-tests: New file.
9303         * tests/test-__func__.c: New file.
9304         * m4/__func__.m4: New file.
9305         * doc/gnulib.texi (__func__): Document __func__ module.
9306
9307 2008-03-05  Simon Josefsson  <simon@josefsson.org>
9308
9309         * modules/byteswap (License): Re-license as LGPLv2+.
9310
9311 2008-03-05  Simon Josefsson  <simon@josefsson.org>
9312
9313         * doc/Makefile: Add pdf target.
9314
9315 2008-03-05  Simon Josefsson  <simon@josefsson.org>
9316
9317         * modules/inline (License): Use 'unlimited', since there are only
9318         *.m4 files in this module.
9319
9320 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
9321             Bruno Haible  <bruno@clisp.org>
9322
9323         Add support for HP C 7.1 on OpenVMS 8.3.
9324         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
9325
9326 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
9327
9328         Update VMS specifics.
9329         * lib/getopt.c [VMS]: Remove include of unixlib.h.
9330
9331 2008-03-02  Jim Meyering  <meyering@redhat.com>
9332
9333         Remove the last dependency on the "free" module.
9334         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
9335         Reported by Bob Proulx.
9336
9337         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
9338
9339         Remove useless "if" tests before free.  Deprecate "free" module.
9340         * doc/posix-functions/free.texi: Mention that this
9341         module is no longer useful.
9342         * modules/free (Notice): Say this module is obsolete.
9343         * modules/readutmp (Depends-on): Remove free.
9344         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
9345         * lib/putenv.c (putenv): Likewise.
9346         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
9347         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
9348         * tests/test-c-strcasestr.c (main): Likewise.
9349         * tests/test-c-strstr.c (main): Likewise.
9350         * tests/test-mbscasestr1.c (main): Likewise.
9351         * tests/test-mbscasestr2.c (main): Likewise.
9352         * tests/test-mbsstr1.c (main): Likewise.
9353         * tests/test-mbsstr2.c (main): Likewise.
9354         * tests/test-memmem.c (main): Likewise.
9355         * tests/test-strcasestr.c (main): Likewise.
9356         * tests/test-striconv.c (main): Likewise.
9357         * tests/test-striconveh.c (main): Likewise.
9358         * tests/test-striconveha.c (main): Likewise.
9359         * tests/test-strstr.c (main): Likewise.
9360
9361         * build-aux/git-version-gen: Adjust a comment and the Usage string.
9362
9363         bootstrap: sync from coreutils again
9364         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
9365
9366 2008-03-01  Jim Meyering  <meyering@redhat.com>
9367
9368         bootstrap: sync from coreutils
9369         * build-aux/bootstrap (update_po_files): Copy a .po file into place
9370         also when the target doesn't exist.
9371
9372 2008-03-01  Eric Blake  <ebb9@byu.net>
9373
9374         Fix bugs in last patch.
9375         * lib/memchr2.c (memchr2): Fix typo.
9376         * tests/test-memchr2.c: Test previous bug, and don't use GNU
9377         extension.
9378         Reported by Bruce Korb.
9379
9380         New module 'memchr2'.
9381         * modules/memchr2: New file.
9382         * modules/memchr2-tests: Likewise.
9383         * lib/memchr2.h: Likewise.
9384         * lib/memchr2.c: Likewise, based on memchr.c.
9385         * tests/test-memchr2.c: New test.
9386         * MODULES.html.sh (String handling): Add memchr2.
9387
9388 2008-02-29  Bruno Haible  <bruno@clisp.org>
9389
9390         * modules/freadseek-tests: New file.
9391         * tests/test-freadseek.sh: New file.
9392         * tests/test-freadseek.c: New file.
9393
9394         New module 'freadseek'.
9395         * modules/freadseek: New file.
9396         * lib/freadseek.h: New file.
9397         * lib/freadseek.c: New file.
9398         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
9399
9400 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
9401
9402         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
9403         wydawca.
9404
9405         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
9406         program_invocation_name and program_invocation_short_name are
9407         present.
9408
9409 2008-02-28  Bruno Haible  <bruno@clisp.org>
9410
9411         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
9412         * tests/test-freadptr.sh: Also test non-seekable stdin.
9413
9414 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
9415
9416         * build-aux/bootstrap (source_base, m4_base)
9417         (doc_base, tests_base): New variables.
9418         (gnulib_tool_options): Do not hardcode base directories, use
9419         the above variables instead.
9420
9421 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
9422
9423         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
9424
9425 2008-02-28  Bruno Haible  <bruno@clisp.org>
9426
9427         * modules/freadptr-tests: New file.
9428         * tests/test-freadptr.sh: New file.
9429         * tests/test-freadptr.c: New file.
9430
9431         New module 'freadptr'.
9432         * modules/freadptr: New file.
9433         * lib/freadptr.h: New file.
9434         * lib/freadptr.c: New file.
9435         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
9436
9437 2008-02-26  Karl Berry  <karl@freefriends.org>
9438
9439         Sync from Libtool:
9440         * libltdl/argz.c (argz_add, argz_count): New functions.
9441         * libltdl/argz.in.h: Declare them.
9442         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
9443
9444 2008-02-22  Bruno Haible  <bruno@clisp.org>
9445
9446         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
9447         is a pointer type.  Needed for HP-UX 10.
9448         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
9449         * doc/posix-functions/gmtime_r.texi: Likewise.
9450         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
9451
9452 2008-02-24  Bruno Haible  <bruno@clisp.org>
9453
9454         * modules/environ-tests: New file.
9455         * tests/test-environ.c: New file.
9456
9457         New module 'environ'.
9458         * modules/environ: New file.
9459         * lib/unistd.in.h (environ): New declaration.
9460         * m4/environ.m4: New file.
9461         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
9462         after use.
9463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
9464         HAVE_DECL_ENVIRON.
9465         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
9466         HAVE_DECL_ENVIRON.
9467         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
9468         wrong claim that 'environ' is missing on some systems.
9469         * modules/execute (Depends-on): Add environ.
9470         * lib/execute.c (environ): Remove fallback declaration.
9471         * modules/pipe (Depends-on): Add environ.
9472         * lib/pipe.c (environ): Remove fallback declaration.
9473         * modules/setenv (Depends-on): Add environ.
9474         * lib/setenv.c (environ): Remove fallback declaration.
9475         * modules/unsetenv (Depends-on): Add environ.
9476         * lib/unsetenv.c (environ): Remove fallback declaration.
9477         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
9478         m4/environ.m4.
9479         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
9480         (gl_PREREQ_UNSETENV): Likewise.
9481
9482 2008-02-24  Bruno Haible  <bruno@clisp.org>
9483
9484         * doc/posix-functions/environ.texi: Document the MacOS X problem.
9485
9486 2008-02-20  Bob Proulx  <bob@proulx.com>
9487
9488         Enable use of older two part flavor 'git describe'.
9489         * build-aux/git-version-gen: If using the older two part flavor of
9490         git version then recreate the third part now present in the
9491         newer three part flavor of git describe.
9492
9493 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
9494
9495         * lib/fts.c (fts_build): Typo correction to comment.
9496
9497 2008-02-17  Bruno Haible  <bruno@clisp.org>
9498
9499         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
9500         generating no-op conflicts.
9501
9502 2008-02-17  Bruno Haible  <bruno@clisp.org>
9503
9504         Speed up by 10%.
9505         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
9506         result_entries, rather than an index-based loop.
9507
9508 2008-02-17  Bruno Haible  <bruno@clisp.org>
9509
9510         Speed up by 25%.
9511         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
9512         'hashcode_cached'.
9513         (entry_create): New function.
9514         (entry_hashcode): Use the cached hashcode if possible.
9515         (read_changelog_file, try_split_merged_entry): Use entry_create.
9516
9517 2008-02-17  Bruno Haible  <bruno@clisp.org>
9518
9519         Speed up from O(n^2) to O(n) for long ChangeLog files.
9520         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
9521         (read_changelog_file): Change implementation of entries_reversed list
9522         to rbtreehash.
9523         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
9524
9525 2008-02-17  Bruno Haible  <bruno@clisp.org>
9526
9527         New option --split-merged-entry.
9528         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
9529         (find_paragraph_end, try_split_merged_entry): New functions.
9530         (long_options): Add option --split-merged-entry.
9531         (usage): Document option --split-merged-entry.
9532         (main): Implement option --split-merged-entry.
9533         Reported by Eric Blake.
9534
9535 2008-02-17  Bruno Haible  <bruno@clisp.org>
9536
9537         * lib/git-merge-changelog.c: Include c-strstr.h.
9538         (main): Support the "git pull --rebase" situation.
9539         * modules/git-merge-changelog (Depends-on): Add c-strstr.
9540         Reported by Eric Blake.
9541
9542 2008-02-16  Eric Blake  <ebb9@byu.net>
9543
9544         Avoid doubling \ in common case of "c-maybe" quoting style.
9545         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
9546         eliding outer quotes.
9547         * lib/quotearg.h: Document this.
9548         * tests/test-quotearg.c (result_strings, inputs, results_g)
9549         (flag_results, locale_results): Test it by adding a new string to
9550         each test group.
9551         (compare_strings): Test new string.
9552
9553 2008-02-13  Eric Blake  <ebb9@byu.net>
9554
9555         Avoid trigraph quoting in default output.
9556         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
9557         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
9558         unless explicitly requested.
9559         * tests/test-quotearg.c (flag_results, main): Add additional tests.
9560
9561 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
9562
9563         Don't rely on signed integer overflowing to negative value.
9564         * lib/getugroups.c (getugroups): Include <limits.h>.
9565         Instead, compare against INT_MAX, and increment only if the test passes.
9566
9567 2008-02-13  Jim Meyering  <meyering@redhat.com>
9568         and Eric Blake  <ebb9@byu.net>
9569
9570         Avoid shadowing warning and compile errors on Linux.
9571         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
9572         forwarding macros on Linux.
9573         (dcgettext): Define a stub, for Linux.
9574         (results_g, main): Avoid warnings.
9575
9576 2008-02-12  Eric Blake  <ebb9@byu.net>
9577
9578         Silence warning in last patch.
9579         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
9580
9581         Quotearg part 4: add tests, fix c-maybe colon quoting.
9582         * lib/quotearg.h: Improve documentation.
9583         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
9584         escapes when adding outer quotes.  When quoting trigraphs, use
9585         valid C notation.  When quoting NUL, omit extra characters if next
9586         character is not digit.  Alter prototype.
9587         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
9588         callers.
9589         * modules/quotearg-tests: New module.
9590         * tests/test-quotearg.c: New test.
9591
9592 2008-02-07  Eric Blake  <ebb9@byu.net>
9593
9594         Quotearg part 3: add flag to control outer quote elision.
9595         * lib/quotearg.h (c_maybe_quoting_style): New style.
9596         (enum quoting_flags): Better documentation of flags.
9597         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
9598         c-maybe style.
9599         (quotearg_buffer_restyled): Handle new flag to elide outer
9600         quotes.
9601
9602         Quotearg part 2: add flag that can control NUL elision.
9603         * lib/quotearg.h (set_quoting_flags): New prototype.
9604         * lib/quotearg.c (struct quoting_options): Add flag field.
9605         (set_quoting_flags): New function.
9606         (quotearg_buffer_restyled): Add flags parameter.
9607         (quotearg_alloc_mem): Set the flag if length cannot be returned.
9608         (quotearg_n_options): Set the flag, since length cannot be
9609         returned.
9610         (quoting_options_from_style): Default flags correctly.
9611
9612         Quotearg part 1: more wrappers, restore quotearg_char state.
9613         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
9614         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
9615         (quotearg_colon_mem): New wrappers.
9616         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
9617         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
9618         functions.
9619         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
9620         (quotearg_colon_mem): New functions.
9621
9622 2008-02-11  Bruno Haible  <bruno@clisp.org>
9623
9624         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
9625         library in the current directory: it does not work with parallel make.
9626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9627
9628 2008-02-11  Bruno Haible  <bruno@clisp.org>
9629
9630         * .gitattributes: New file.
9631
9632 2008-02-11  Jim Meyering  <meyering@redhat.com>
9633
9634         useless-if-before-free: Fix reversed exit values.
9635         * build-aux/useless-if-before-free: Use correct values
9636         for EXIT_MATCH and EXIT_NO_MATCH.
9637
9638         * build-aux/useless-if-before-free: Close stdout carefully.
9639
9640 2008-02-10  Bruno Haible  <bruno@clisp.org>
9641
9642         New module 'git-merge-changelog'.
9643         * modules/git-merge-changelog: New file.
9644         * lib/git-merge-changelog.c: New file.
9645
9646 2008-02-10  Jim Meyering  <meyering@redhat.com>
9647
9648         useless-if-before-free: New option: --list (-l).
9649
9650         useless-if-before-free: Don't exit immediately upon open failure.
9651         * build-aux/useless-if-before-free: Exit 2 for errors.
9652         Upon failure to open a file, don't exit immediately.
9653         Rather, just warn and continue with any remaining files.
9654
9655 2008-02-10  Bruno Haible  <bruno@clisp.org>
9656
9657         New abstract list operation 'node_set_value'.
9658         * lib/gl_list.h (gl_list_node_set_value): New function.
9659         (struct gl_list_implementation): New field node_set_value.
9660         * lib/gl_list.c (gl_list_node_set_value): New function.
9661         * lib/gl_array_list.c (gl_array_node_set_value): New function.
9662         (gl_array_list_implementation): Update.
9663         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
9664         (gl_carray_list_implementation): Update.
9665         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
9666         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9667         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9668         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
9669         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9670         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9671         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9672         Update.
9673         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9674         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
9675         (gl_sublist_list_implementation): Update.
9676
9677 2008-02-10  Bruno Haible  <bruno@clisp.org>
9678
9679         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
9680         Needed when ELEMENT is #defined to 'some_type *'.
9681
9682 2008-02-10  Jim Meyering  <meyering@redhat.com>
9683
9684         New script and module: useless-if-before-free
9685         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
9686         * build-aux/useless-if-before-free: New file.
9687         * modules/useless-if-before-free: New file.
9688
9689         * build-aux/gitlog-to-changelog: Use committer date, not author date.
9690
9691         xstrtol_error: Fix typo.
9692         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
9693         s/exit_failure/exit_status/.
9694
9695 2008-02-09  Jim Meyering  <meyering@redhat.com>
9696
9697         New script and module: gitlog-to-changelog
9698         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
9699         * modules/gitlog-to-changelog: New file.
9700         * build-aux/gitlog-to-changelog: New file.
9701
9702 2008-02-08  Jim Meyering  <meyering@redhat.com>
9703
9704         Avoid two "parameter unused" warnings.
9705         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
9706         Mark "st" as used.
9707
9708         Use "git COMMAND", not "git-COMMAND".
9709         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
9710         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
9711         * build-aux/git-version-gen: Use "git status", not "git-status".
9712
9713 2008-02-07  Bruno Haible  <bruno@clisp.org>
9714
9715         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
9716         Avoids a crash on Windows Vista.
9717         Reported by Adam Strzelecki <ono@java.pl> via
9718         Simon Josefsson <simon@josefsson.org>.
9719
9720 2008-02-06  Bruno Haible  <bruno@clisp.org>
9721
9722         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
9723         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
9724         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
9725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
9726         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9728         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
9729         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
9730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9737         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
9738         left-adjust flag.
9739         * tests/test-snprintf-posix.h (test_function): Likewise.
9740         * tests/test-sprintf-posix.h (test_function): Likewise.
9741         * tests/test-vasprintf-posix.c (test_function): Likewise.
9742         * doc/posix-functions/fprintf.texi: Update.
9743         * doc/posix-functions/printf.texi: Update.
9744         * doc/posix-functions/snprintf.texi: Update.
9745         * doc/posix-functions/sprintf.texi: Update.
9746         * doc/posix-functions/vfprintf.texi: Update.
9747         * doc/posix-functions/vprintf.texi: Update.
9748         * doc/posix-functions/vsnprintf.texi: Update.
9749         * doc/posix-functions/vsprintf.texi: Update.
9750         Reported by Peter Fales <psfales@alcatel-lucent.com>.
9751
9752 2008-02-06  Bruno Haible  <bruno@clisp.org>
9753
9754         Fix bug introduced on 2008-01-26.
9755         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
9756
9757 2008-02-06  Bruno Haible  <bruno@clisp.org>
9758
9759         Fix bug introduced on 2007-06-10.
9760         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
9761         !NEED_PRINTF_FLAG_ZERO.
9762
9763 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
9764
9765         getloadavg: use libperfstat on AIX5
9766         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
9767
9768 2008-02-03  Bruno Haible  <bruno@clisp.org>
9769
9770         * lib/diffseq.h: Add comments about required #includes.
9771         Reported by Michael Biggs <gnulib@doubleplum.net>.
9772
9773 2008-02-01  Bruno Haible  <bruno@clisp.org>
9774
9775         * users.txt: Add gnuit.
9776
9777 2008-01-31  Bruno Haible  <bruno@clisp.org>
9778
9779         * lib/md4.c (set_uint32): Mark as inline.
9780         * lib/md5.c (set_uint32): Likewise.
9781         * lib/sha1.c (set_uint32): Likewise.
9782         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
9783         * m4/md5.m4 (gl_MD5): Likewise.
9784         * m4/sha1.m4 (gl_SHA1): Likewise.
9785
9786 2008-01-31  Jim Meyering  <meyering@redhat.com>
9787
9788         Use "sizeof VAR", rather than a literal "4".
9789         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
9790         * lib/md4.c (md4_read_ctx): Likewise.
9791         * lib/sha1.c (sha1_read_ctx): Likewise.
9792
9793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
9794
9795         * tests/test-sha1.c: New file, based on test-md5.c.
9796
9797         * modules/crypto/sha1-tests: New file.
9798
9799 2008-01-31  Simon Josefsson  <simon@josefsson.org>
9800
9801         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
9802
9803 2008-01-31  Jim Meyering  <meyering@redhat.com>
9804
9805         Prefer "sizeof v" over the equivalent "4".
9806         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
9807         * lib/md5.c (set_uint32): Likewise.
9808         * lib/sha1.c (set_uint32): Likewise.
9809
9810 2008-01-31  Simon Josefsson  <simon@josefsson.org>
9811
9812         * lib/sha1.c (set_uint32): Mark function as static.
9813
9814 2008-01-31  Simon Josefsson  <simon@josefsson.org>
9815
9816         md2: clarify comments to say that alignment is not required.
9817         * lib/md2.h: Remove warning about alignment in comment.
9818         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
9819         never been required.
9820
9821 2008-01-31  Simon Josefsson  <simon@josefsson.org>
9822
9823         md4: adapt alignment constraint fix from sha1.
9824         * lib/md4.c (set_uint32): New function, from sha1.c
9825         (md4_read_ctx): Use it.
9826         (md4_finish_ctx): Doc fix.
9827         * lib/md4.h: Doc fix.
9828
9829 2008-01-31  Simon Josefsson  <simon@josefsson.org>
9830
9831         md5: adapt alignment constraint fix from sha1.
9832         * lib/md5.c (set_uint32): New function, from sha1.c
9833         (md5_read_ctx): Use it.
9834         (md5_finish_ctx): Doc fix.
9835         * lib/md5.h: Doc fix.
9836
9837 2008-01-30  Peter Palfrader  <weasel@debian.org>
9838
9839         sha1: remove the result buffer alignment constraint
9840         * lib/sha1.c (set_uint32): New function.
9841         (sha1_read_ctx): Rewrite to remove the result buffer alignment
9842         constraint.
9843         (sha1_finish_ctx): Remove comment warning about alignment constraint.
9844         * lib/sha1.h: Likewise.
9845
9846 2008-01-30  Andreas Schwab  <schwab@suse.de>
9847             Bruno Haible  <bruno@clisp.org>
9848
9849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
9850         correct definition of LDBL_MIN_EXP.
9851
9852 2008-01-30  Karl Berry  <karl@gnu.org>
9853
9854         * config/srclist-update: try to preserve x bit on updates.
9855         * config/srclistvars.sh: update for karl.
9856
9857 2008-01-29  Jim Meyering  <meyering@redhat.com>
9858
9859         vasnprintf.c: Avoid warning about unused label
9860         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
9861         "overflow" label definition and associated code with the
9862         same cpp condition that guards the sole use of that label.
9863
9864 2008-01-26  Bruno Haible  <bruno@clisp.org>
9865
9866         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
9867         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
9868         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
9869         * lib/isnanl-nolibm.h (isnanl): Likewise.
9870         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9871
9872 2008-01-26  Bruno Haible  <bruno@clisp.org>
9873
9874         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
9875         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
9876
9877 2008-01-26  Bruno Haible  <bruno@clisp.org>
9878
9879         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
9880         GCC >= 4.0 built-in.
9881         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
9882
9883 2008-01-26  Bruno Haible  <bruno@clisp.org>
9884
9885         Rename isnan, applicable to 'double' only, to isnand.
9886         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
9887         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
9888         (configure.ac): Update.
9889         (Include): Replace "isnan.h" with "isnand.h".
9890         * m4/isnand.m4: Renamed from m4/isnan.m4.
9891         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
9892         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
9893         instead of isnan.c.
9894         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
9895         instead of HAVE_ISNAN_IN_LIBC.
9896         (isnand): Renamed from isnan.
9897         * lib/isnand.c: New file.
9898         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
9899         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
9900         (Makefile.am): Update.
9901         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
9902         Include isnand.h instead of isnan.h.
9903         (main): Test isnand instead of isnan.
9904         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
9905         isnan-nolibm.
9906         * modules/frexp (Depends-on): Likewise.
9907         * modules/frexp-tests (Depends-on): Likewise.
9908         * modules/frexp-nolibm (Depends-on): Likewise.
9909         * modules/frexp-nolibm-tests (Depends-on): Likewise.
9910         * modules/isfinite (Depends-on): Likewise.
9911         * modules/round-tests (Depends-on): Likewise.
9912         * modules/signbit (Depends-on): Likewise.
9913         * modules/signbit-tests (Depends-on): Likewise.
9914         * modules/snprintf-posix (Depends-on): Likewise.
9915         * modules/sprintf-posix (Depends-on): Likewise.
9916         * modules/trunc-tests (Depends-on): Likewise.
9917         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9918         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9919         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9920         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9921         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9922         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9924         * modules/vasnprintf-posix (Depends-on): Likewise.
9925         * modules/vasprintf-posix (Depends-on): Likewise.
9926         * modules/vfprintf-posix (Depends-on): Likewise.
9927         * modules/vsnprintf-posix (Depends-on): Likewise.
9928         * modules/vsprintf-posix (Depends-on): Likewise.
9929         * lib/frexp.c: Include isnand.h instead of isnan.h.
9930         (ISNAN): Set to isnand instead of isnan.
9931         * lib/isfinite.c: Include isnand.h instead of isnan.h.
9932         (gl_isfinited): Use isnand instead of isnan.
9933         * lib/signbitd.c: Include isnand.h instead of isnan.h.
9934         (gl_signbitd): Use isnand instead of isnan.
9935         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
9936         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
9937         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
9938         (main): Use isnand instead of isnan.
9939         * tests/test-round1.c: Include isnand.h.
9940         (main): Use isnand instead of isnan.
9941         * tests/test-round2.c: Include isnand.h instead of isnan.h.
9942         (ISNAN): Set to isnand instead of isnan.
9943         * tests/test-trunc1.c: Include isnand.h.
9944         (main): Use isnand instead of isnan.
9945         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
9946         (equal): Use isnand instead of isnan.
9947         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
9948         isnand-nolibm.
9949         * NEWS: Mention the change.
9950
9951 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9952             Bruno Haible  <bruno@clisp.org>
9953
9954         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
9955         the GCC builtins for signbits are present and set
9956         REPLACE_SIGNBIT_USING_GCC if so.
9957         * lib/math.in.h (signbit): Define using GCC builtins if
9958         REPLACE_SIGNBIT_USING_GCC is set.
9959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
9960         REPLACE_SIGNBIT_USING_GCC.
9961         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
9962
9963 2008-01-25  Jim Meyering  <meyering@redhat.com>
9964
9965         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
9966         * lib/poll.c: Include <config.h>, not "config.h".
9967         * tests/test-getaddrinfo.c: Likewise.
9968
9969 2008-01-25  Simon Josefsson  <simon@josefsson.org>
9970
9971         * modules/sockets-tests: New file.
9972
9973 2008-01-24  Simon Josefsson  <simon@josefsson.org>
9974
9975         * modules/sockets: New module, can be used to call WSA_Startup and
9976         WSA_Cleanup when needed.
9977
9978         * lib/sockets.h, lib/sockets.c: New files.
9979
9980         * m4/sockets.m4: New file.
9981
9982         * tests/test-sockets.c: New file.
9983
9984 2008-01-19  Bruno Haible  <bruno@clisp.org>
9985
9986         * doc/posix-headers: Renamed from doc/headers.
9987         * doc/posix-functions: Renamed from doc/functions.
9988         * doc/gnulib.texi: Update.
9989
9990 2008-01-19  Bruno Haible  <bruno@clisp.org>
9991
9992         * doc/glibc-functions/strcasestr.texi: Include contents of
9993         doc/functions/strcasestr.texi, fixing the list of platforms.
9994         * doc/functions/strcasestr.texi: Remove file.
9995
9996 2008-01-19  Bruno Haible  <bruno@clisp.org>
9997
9998         * doc/glibc-functions/memmem.texi: Include contents of
9999         doc/functions/memmem.texi.
10000         * doc/functions/memmem.texi: Remove file.
10001
10002 2008-01-18  Bruno Haible  <bruno@clisp.org>
10003
10004         * doc/glibc-functions/*.texi: New files.
10005         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
10006         to use the new files.
10007
10008 2008-01-17  Bruno Haible  <bruno@clisp.org>
10009
10010         * tests/test-gethostname.c (main): Fix printf statement.
10011
10012 2008-01-17  Simon Josefsson  <simon@josefsson.org>
10013
10014         * modules/gethostname-tests: New file.
10015
10016         * tests/test-gethostname.c: New file.
10017
10018 2008-01-17  Simon Josefsson  <simon@josefsson.org>
10019
10020         * lib/gethostname.c: Include string.h unconditionally, strncpy is
10021         used by the UNAME case.  Reported by Bruno Haible
10022         <bruno@clisp.org>.
10023
10024 2008-01-17  Eric Blake  <ebb9@byu.net>
10025
10026         Convert c-strcasestr to be more efficient.
10027         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
10028         (Depends-on): Add c-strcase, remove malloca, strnlen.
10029         * tests/test-c-strcasestr.c (main): Enhance test.
10030         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
10031
10032 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
10033
10034         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
10035         Use it in creating po/Makevars.
10036
10037 2008-01-15  Simon Josefsson  <simon@josefsson.org>
10038
10039         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
10040         Applications that requires it should initialize libgcrypt
10041         manually.
10042
10043 2008-01-16  Simon Josefsson  <simon@josefsson.org>
10044
10045         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
10046
10047 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10048
10049         Fix problem with getdate on mingw32 reported by Simon Josefsson
10050         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
10051         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
10052         tzname", when deciding whether to declare tzname.
10053         * lib/strftime.c (tzname): Likewise.
10054
10055 2008-01-15  Bruno Haible  <bruno@clisp.org>
10056
10057         Work around a MacOS X 10.5 bug in frexpl().
10058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
10059         * doc/functions/frexpl.texi: Document the bug.
10060         Reported by Elias Pipping <pipping@gentoo.org>.
10061
10062 2008-01-14  Eric Blake  <ebb9@byu.net>
10063
10064         Touch up previous patch.
10065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
10066         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
10067
10068         Convert strcasestr module to use Two-Way algorithm.
10069         * modules/strcasestr-simple: New module, based on the old
10070         strcasestr, but with Two-Way rather than KMP.
10071         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
10072         * lib/string.in.h (rpl_strcasestr): Declare.
10073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
10074         performance.
10075         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
10076         * modules/string (Makefile.am): Support strcasestr.
10077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
10078         * modules/strcasestr-tests (Depends-on): Check for alarm.
10079         * tests/test-strcasestr.c: Augment test.
10080         * lib/str-two-way.h: Clean up stray macro.
10081         * NEWS: Document new module.
10082         * MODULES.html.sh (string handling): Likewise.
10083         * doc/functions/strcasestr.texi: New file.
10084         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
10085         here, since it is not a POSIX function.
10086
10087 2008-01-14  Colin Watson  <cjwatson@debian.org>
10088             Bruno Haible  <bruno@clisp.org>
10089
10090         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
10091         works fine; if not, set REPLACE_STRSIGNAL.
10092         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
10093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10094         REPLACE_STRSIGNAL.
10095         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
10096         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
10097         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
10098
10099 2008-01-14  Bruno Haible  <bruno@clisp.org>
10100
10101         * modules/strsignal (Include): Change to <string.h>.
10102
10103 2008-01-14  Colin Watson  <cjwatson@debian.org>
10104
10105         * modules/argp (Notice): Add a notice recommending to change
10106         XGETTEXT_OPTIONS.
10107         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
10108
10109 2008-01-13  Colin Watson  <cjwatson@debian.org>
10110
10111         * modules/strsignal-tests: New file.
10112         * tests/test-strsignal.c: New file.
10113
10114         * lib/strsignal.c: New file, from glibc with modifications.
10115         * lib/siglist.h: New file, from glibc with modifications.
10116         * lib/string.in.h (strsignal): New declaration.
10117         * m4/strsignal.m4: New file.
10118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10119         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
10120         * modules/strsignal: New file.
10121         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
10122         HAVE_DECL_STRSIGNAL.
10123
10124 2008-01-13  Bruno Haible  <bruno@clisp.org>
10125
10126         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
10127         locale encoding is not ASCII. Needed for OpenBSD 4.0.
10128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10129         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10130
10131 2008-01-13  Bruno Haible  <bruno@clisp.org>
10132
10133         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
10134         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
10135         * lib/argp.h (__attribute__): Likewise.
10136         * lib/c-stack.c (__attribute__): Likewise.
10137         * lib/error.h (__attribute__): Likewise.
10138         * lib/fts.c (__attribute__): Likewise.
10139         * lib/openat.h (__attribute__): Likewise.
10140         * lib/stdio.in.h (__attribute__): Likewise.
10141         * lib/string.in.h (__attribute__): Likewise.
10142         * lib/utimens.c (__attribute__): Likewise.
10143         * lib/vasnprintf.h (__attribute__): Likewise.
10144         * lib/xalloc.h (__attribute__): Likewise.
10145         * lib/xprintf.h (__attribute__): Likewise.
10146         * lib/xstrtol.h (__attribute__): Likewise.
10147         * lib/xvasprintf.h (__attribute__): Likewise.
10148
10149 2008-01-12  Bruno Haible  <bruno@clisp.org>
10150
10151         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
10152         * doc/glibc-headers/a.out.texi: New file.
10153         * doc/glibc-headers/aliases.texi: New file.
10154         * doc/glibc-headers/alloca.texi: New file.
10155         * doc/glibc-headers/ar.texi: New file.
10156         * doc/glibc-headers/argp.texi: New file.
10157         * doc/glibc-headers/argz.texi: New file.
10158         * doc/glibc-headers/byteswap.texi: New file.
10159         * doc/glibc-headers/crypt.texi: New file.
10160         * doc/glibc-headers/endian.texi: New file.
10161         * doc/glibc-headers/envz.texi: New file.
10162         * doc/glibc-headers/err.texi: New file.
10163         * doc/glibc-headers/error.texi: New file.
10164         * doc/glibc-headers/execinfo.texi: New file.
10165         * doc/glibc-headers/fpu_control.texi: New file.
10166         * doc/glibc-headers/fstab.texi: New file.
10167         * doc/glibc-headers/fts.texi: New file.
10168         * doc/glibc-headers/getopt.texi: New file.
10169         * doc/glibc-headers/ieee754.texi: New file.
10170         * doc/glibc-headers/ifaddrs.texi: New file.
10171         * doc/glibc-headers/libintl.texi: New file.
10172         * doc/glibc-headers/mcheck.texi: New file.
10173         * doc/glibc-headers/mntent.texi: New file.
10174         * doc/glibc-headers/obstack.texi: New file.
10175         * doc/glibc-headers/paths.texi: New file.
10176         * doc/glibc-headers/printf.texi: New file.
10177         * doc/glibc-headers/pty.texi: New file.
10178         * doc/glibc-headers/resolv.texi: New file.
10179         * doc/glibc-headers/shadow.texi: New file.
10180         * doc/glibc-headers/sysexits.texi: New file.
10181         * doc/glibc-headers/ttyent.texi: New file.
10182
10183 2008-01-12  Jim Meyering  <meyering@redhat.com>
10184
10185         announce-gen: emit Gnulib's git-based version string.
10186         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
10187         New option --gnulib-version=V, where V is expected to be
10188         the output of running git describe in the gnulib directory.
10189         (get_tool_versions): Request feedback on xdelta.  I suspect it's
10190         not useful, and plan to stop publishing an xdelta file with each
10191         coreutils release.
10192
10193         * build-aux/announce-gen: Also check for lzma-compressed files.
10194
10195 2008-01-11  Bruno Haible  <bruno@clisp.org>
10196
10197         * tests/test-memmem.c (main): Increase maximum allowed time.
10198         * tests/test-strstr.c (main): Likewise.
10199
10200 2008-01-11  Bruno Haible  <bruno@clisp.org>
10201
10202         * doc/functions/memmem.texi: Add more precisions about platforms.
10203         * doc/functions/strstr.texi: Likewise.
10204
10205 2008-01-10  Eric Blake  <ebb9@byu.net>
10206
10207         * m4/strstr.m4: Delete cruft from copy-n-paste.
10208         Reported by Bruno Haible.
10209
10210 2008-01-10  Bruno Haible  <bruno@clisp.org>
10211
10212         Make c-strstr rely on strstr.
10213         * lib/c-strstr.c: Don't include str-kmp.h.
10214         (c_strstr): Define in terms of strstr.
10215         * modules/c-strstr (Files): Remove lib/str-kmp.h.
10216         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
10217
10218 2008-01-10  Bruno Haible  <bruno@clisp.org>
10219
10220         * doc/gnulib.texi (String Functions in C Locale): New section.
10221         * doc/c-ctype.texi: New file.
10222         * doc/c-strcase.texi: New file.
10223         * doc/c-strcaseeq.texi: New file.
10224         * doc/c-strcasestr.texi: New file.
10225         * doc/c-strstr.texi: New file.
10226         * doc/c-strtod.texi: New file.
10227         * doc/c-strtold.texi: New file.
10228
10229 2008-01-10  Eric Blake  <ebb9@byu.net>
10230
10231         * lib/relocatable.h: Fix a comment.
10232
10233 2008-01-10  Eric Blake  <ebb9@byu.net>
10234
10235         Share two-way algorithm.
10236         * lib/str-two-way.h: New file, merged from...
10237         * lib/memmem.c: ...here...
10238         * lib/strstr.c: ...and here.
10239         * modules/memmem (Files): Use it.
10240         * modules/strstr (Files): Likewise.
10241
10242         Avoid quadratic strstr implementations.
10243         * lib/strstr.c: New file.
10244         * m4/strstr.m4: Likewise.
10245         * modules/strstr: Likewise.
10246         * modules/strstr-tests: Likewise.
10247         * tests/test-strstr.c: Likewise.
10248         * lib/string.in.h (rpl_strstr): Declare.
10249         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
10250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
10251         * modules/string (Makefile.am): Likewise.
10252         * MODULES.html.sh (string handling): Mention new module.
10253         * doc/functions/strstr.texi (strstr): Document the bug.
10254
10255 2008-01-10  Bruno Haible  <bruno@clisp.org>
10256
10257         * lib/relocatable.h (relocate): State whether result is freshly
10258         allocated or not.
10259         * lib/relocatable.c (relocate): Return a freshly allocated string
10260         instead of a pointer to a privately held string.
10261         Reported by Sylvain Beucler <beuc@gnu.org>.
10262
10263 2008-01-10  Colin Watson  <cjwatson@debian.org>
10264
10265         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
10266         s/S_ISNLK/S_ISLNK/.
10267
10268 2008-01-09  Bruno Haible  <bruno@clisp.org>
10269
10270         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
10271         and other files.
10272         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
10273         if it's only a guess.
10274         * modules/memmem: Simplify by depending on memmem-simple.
10275
10276 2008-01-09  Bruno Haible  <bruno@clisp.org>
10277
10278         Work around OpenBSD 4.0 tdelete() bug.
10279         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
10280         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
10281         macros and don't redefine the enum values.
10282         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
10283         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
10284         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
10285
10286 2008-01-09  Bruno Haible  <bruno@clisp.org>
10287
10288         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
10289         (main): Don't perform the tests if setlocale did not install a UTF-8
10290         locale. Needed on OpenBSD 4.0.
10291         * modules/wcwidth-tests (Depends-on): Add localcharset.
10292
10293 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
10294
10295         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
10296         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
10297         * NEWS: announce this.
10298         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
10299
10300 2008-01-09  Simon Josefsson  <simon@josefsson.org>
10301         and Eric Blake  <ebb9@byu.net>
10302
10303         Add memmem-simple module.
10304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
10305         (gl_FUNC_MEMMEM): Separate performance from presence checks.
10306         * modules/memmem-simple: New file.
10307         * modules/memmem (Description): Tweak.
10308         * MODULES.html.sh (string handling): Mention new module.
10309         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
10310         addressed by memmem-simple.
10311         * NEWS: Document the difference.
10312
10313 2008-01-09  Eric Blake  <ebb9@byu.net>
10314
10315         Give gcc some memmem optimization hints.
10316         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
10317         (strcasestr): Declare as pure.
10318         * modules/memmem (Maintainer): Claim my implementation.
10319
10320 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10321
10322         Support AIX 6.1 and higher.
10323         * build-aux/config.libpath: Likewise.
10324         * build-aux/config.rpath: Likewise.
10325
10326 2008-01-08  Jim Meyering  <meyering@redhat.com>
10327             Bruno Haible  <bruno@clisp.org>
10328
10329         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
10330         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
10331         Reported by Peter Fales in
10332         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
10333
10334 2008-01-08  Bruno Haible  <bruno@clisp.org>
10335
10336         * modules/unictype/category-of (Depends-on): Add
10337         unictype/category-none.
10338         * modules/unictype/category-and-tests (Depends-on): Add
10339         unictype/category-{L,N,Lu,Nd}.
10340         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
10341         * modules/unictype/category-or-tests (Depends-on): Add
10342         unictype/category-{L,N}.
10343         * modules/unictype/category-name-tests (Depends-on): Add
10344         unictype/category-{Z,Nl}.
10345         Reported by Simon Josefsson.
10346
10347 2008-01-08  Bruno Haible  <bruno@clisp.org>
10348
10349         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
10350         convention better.
10351         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
10352         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
10353         Reported by Peter Miller <millerp@canb.auug.org.au>.
10354
10355 2008-01-08  Eric Blake  <ebb9@byu.net>
10356
10357         Rewrite memmem to guarantee linear complexity without malloc.
10358         * lib/memmem.c (memmem): Use Two-Way rather than
10359         Knuth-Morris-Pratt, to allow O(1) space usage.
10360         (critical_factorization, two_way_short_needle)
10361         (two_way_long_needle): New functions.
10362         (knuth_morris_pratt): Delete.
10363         * modules/memmem (Depends-on): No longer need malloca or stdbool.
10364         Add stdint.
10365         * tests/test-memmem.c (main): Add tests for periodic needle and
10366         sublinear performance.
10367         * doc/functions/memmem.texi (memmem): Document other deficiencies
10368         in cygwin and older glibc.
10369
10370 2008-01-08  Bruno Haible  <bruno@clisp.org>
10371
10372         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
10373         augmentation.
10374
10375 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
10376
10377         Add a configure time option: --disable-acl.
10378         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
10379         AC_ARG_ENABLE(acl).
10380
10381 2008-01-06  Simon Josefsson  <simon@josefsson.org>
10382
10383         * tests/test-localename.c: Don't include obsolete "setenv.h".
10384
10385         * modules/localename-tests (Depends-on): Need unsetenv.
10386
10387 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10388
10389         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
10390
10391 2008-01-06  Colin Watson  <cjwatson@debian.org>
10392
10393         * users.txt: Add man-db.
10394
10395 2008-01-07  Bruno Haible  <bruno@clisp.org>
10396
10397         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
10398         previous section name.
10399
10400 2008-01-07  Bruno Haible  <bruno@clisp.org>
10401
10402         * lib/progname.c (set_program_name): Don't strip off a leading
10403         "lt-" prefix outside a .libs directory.
10404         Suggested by Paul Eggert.
10405
10406 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
10407             Bruno Haible  <bruno@clisp.org>
10408
10409         Improve memory cleanup in 'relocatable' module.
10410         * lib/relocatable.h (compute_curr_prefix): Change return type to
10411         'char *'.
10412         * lib/relocatable.c (compute_curr_prefix): Change return type to
10413         'char *'. Free curr_installdir after use.
10414         (relocate): Free curr_prefix_better after use.
10415         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
10416
10417 2008-01-01  Bruno Haible  <bruno@clisp.org>
10418
10419         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
10420         failure on older glibc systems.
10421         Reported by Peter Fales <psfales@alcatel-lucent.com>.
10422
10423 2008-01-05  Eric Blake  <ebb9@byu.net>
10424
10425         Avoid quadratic system memmem.
10426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
10427         Reported by Ralf Wildenhues.
10428
10429         Fix memmem test for mingw.
10430         * modules/memmem-tests (configure.ac): Check for alarm.
10431         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
10432         it.
10433         * doc/functions/memmem.texi: New file.
10434         * doc/gnulib.texi (Function Substitutes): Add memmem.
10435         Reported by Bruno Haible.
10436
10437 2008-01-04  Bruno Haible  <bruno@clisp.org>
10438
10439         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
10440         Require gl_HEADER_STRINGS_H_DEFAULTS, not
10441         gl_HEADER_STRING_H_DEFAULTS.
10442
10443 2008-01-04  Eric Blake  <ebb9@byu.net>
10444
10445         Shorten duration of memmem test.
10446         * tests/test-memmem.c (main): Use alarm to declare failure if test
10447         is taking too long.
10448         Reported by Ralf Wildenhues.
10449
10450 2007-12-21  Simon Josefsson  <simon@josefsson.org>
10451
10452         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
10453         string, needed by strerror.
10454
10455 2008-01-03  Colin Watson  <cjwatson@debian.org>
10456             Bruno Haible  <bruno@clisp.org>
10457
10458         * doc/gnulib-tool.texi (Localization): New section.
10459
10460 2008-01-02  Bruno Haible  <bruno@clisp.org>
10461
10462         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
10463         variables to 'unsigned char *' type.
10464         Reported by Paul Eggert.
10465
10466 2008-01-02  Jim Meyering  <jim@meyering.net>
10467
10468         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
10469
10470 2007-12-31  Jim Meyering  <jim@meyering.net>
10471
10472         Avoid use of private FTS type name.
10473         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
10474
10475 2007-12-30  Karl Berry  <karl@gnu.org>
10476
10477         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
10478         work around defect in Texinfo and/or the standalone Info browser.
10479
10480 2007-12-30  Bruno Haible  <bruno@clisp.org>
10481
10482         Unify 5 copies of the KMP code.
10483         * lib/str-kmp.h: New file.
10484         * lib/c-strcasestr.c: Include str-kmp.h.
10485         (knuth_morris_pratt): Remove function.
10486         (c_strcasestr): Update.
10487         * lib/c-strstr.c: Include str-kmp.h.
10488         (knuth_morris_pratt): Remove function.
10489         (c_strcasestr): Update.
10490         * lib/mbscasestr.c: Include str-kmp.h.
10491         (knuth_morris_pratt_unibyte): Remove function.
10492         * lib/mbsstr.c: Include str-kmp.h.
10493         (knuth_morris_pratt_unibyte): Remove function.
10494         * lib/strcasestr.c: Include str-kmp.h.
10495         (knuth_morris_pratt): Remove function.
10496         (strcasestr): Update.
10497         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
10498         * modules/c-strstr (Files): Likewise.
10499         * modules/mbscasestr (Files): Likewise.
10500         * modules/mbsstr (Files): Likewise.
10501         * modules/strcasestr (Files): Likewise.
10502         Suggested by Paul Eggert.
10503
10504 2007-12-30  Bruno Haible  <bruno@clisp.org>
10505
10506         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
10507         defined.
10508
10509 2007-12-30  Bruno Haible  <bruno@clisp.org>
10510
10511         * lib/xmalloca.h: Include xalloc.h.
10512         (xnmalloca): New macro.
10513
10514 2007-12-30  Bruno Haible  <bruno@clisp.org>
10515
10516         * lib/malloca.h (nmalloca): New macro.
10517         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
10518         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
10519         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
10520         knuth_morris_pratt_multibyte): Likewise.
10521         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
10522         knuth_morris_pratt_multibyte): Likewise.
10523         * lib/memmem.c (knuth_morris_pratt): Likewise.
10524         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
10525
10526 2007-12-25  Bruno Haible  <bruno@clisp.org>
10527
10528         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
10529         * lib/glob.c: Don't include openat.h.
10530         (link_exists2_p): Add back the code that deals with the
10531         !GLOB_ALTDIRFUNC case.
10532         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
10533         let it do the filename concatenation.
10534         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
10535         * modules/glob (Depends-on): Remove openat.
10536
10537 2007-12-31  Bruno Haible  <bruno@clisp.org>
10538
10539         * modules/dirfd (License): Change to LGPLv2+.
10540         Approved by Jim Meyering.
10541
10542 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10543
10544         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
10545         when multiplying M by sizeof (size_t).
10546
10547 2007-12-10  Martin Lambers  <marlam@marlam.de>
10548
10549         Override getpagesize on mingw.
10550         * lib/getpagesize.c: New file.
10551         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
10552         * modules/getpagesize (Files): Add lib/getpagesize.c.
10553         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
10554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10555         REPLACE_GETPAGESIZE.
10556         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
10557
10558 2007-12-25  Bruno Haible  <bruno@clisp.org>
10559
10560         * modules/localcharset (Notice): New field.
10561         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
10562         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10563
10564 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10565             Bruno Haible  <bruno@clisp.org>
10566
10567         Avoid using the syntax symbol() in formatted documentation.
10568         * MODULES.html.sh (func_module): When replacing symbol() with a
10569         hyperlink, remove the parentheses. Show an error if some remain.
10570         Recognize and render the '...' syntax.
10571         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
10572         Rework. Add paragraph about GCC's inlining.
10573         * doc/alloca.texi: Likewise.
10574         * doc/error.texi: Remove parentheses from symbol reference.
10575         * doc/gnulib-intro.texi: Likewise.
10576         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
10577         * modules/fnmatch (Description): Reword to say "the ... function".
10578         * modules/full-read (Description): Likewise.
10579         * modules/full-write (Description): Likewise.
10580         * modules/safe-read (Description): Likewise.
10581         * modules/safe-write (Description): Likewise.
10582         * modules/strchrnul (Description): Likewise.
10583         * modules/trim (Description): Likewise.
10584         * modules/error (Description): Remove parentheses from symbol
10585         references.
10586         * modules/verror (Description): Likewise.
10587         Reported by Karl Berry.
10588
10589 2007-12-25  Bruno Haible  <bruno@clisp.org>
10590
10591         Fixup after 2007-10-16 commit.
10592         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
10593
10594 2007-12-24  Bruno Haible  <bruno@clisp.org>
10595
10596         Make --enable-relocatable work with DESTDIR.
10597         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
10598         to compute installdir from destprog.
10599         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
10600         also set the RELOC_DESTDIR variable.
10601         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
10602
10603 2007-12-24  Bruno Haible  <bruno@clisp.org>
10604
10605         Fix link error due to xalloc_die().
10606         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
10607         of xreadlink.
10608         * lib/relocwrapper.c: Update comments.
10609         * build-aux/install-reloc: Remove xreadlink.c from file list.
10610         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
10611         xreadlink.c.
10612         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
10613
10614 2007-12-24  Bruno Haible  <bruno@clisp.org>
10615
10616         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
10617         * lib/setenv.h: Remove file.
10618         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
10619         lib/setenv.h.
10620         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
10621         (Depends-on): Add stdlib.
10622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
10623         gl_FUNC_UNSETENV.
10624         (Include): Replace setenv.h with <stdlib.h>.
10625         * modules/unsetenv: New file.
10626         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
10627         * lib/unsetenv.c: Include <stdlib.h> first.
10628         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
10629         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
10630         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
10631         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
10632         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
10633         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
10634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
10635         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
10636         * doc/functions/unsetenv.texi: Update.
10637         * modules/xsetenv (Depends-on): Add unsetenv.
10638         * modules/getdate (Depends-on): Likewise.
10639         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
10640         * lib/xsetenv.c: Don't include setenv.h.
10641         * lib/getdate.y: Likewise.
10642         * lib/relocwrapper.c: Likewise.
10643         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
10644         (Depends-on): Add stdlib.
10645         * NEWS: Mention the changes.
10646         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
10647
10648 2007-12-23  Bruno Haible  <bruno@clisp.org>
10649
10650         * lib/memmem.c (memmem): Use lowercase variable names. Tab
10651         indentation.
10652
10653 2007-12-23  Bruno Haible  <bruno@clisp.org>
10654
10655         * lib/c-strcasestr.c: Add more comments.
10656         * lib/c-strstr.c: Likewise.
10657         * lib/mbscasestr.c: Likewise.
10658         * lib/mbsstr.c: Likewise.
10659         * lib/strcasestr.c: Likewise.
10660         * lib/memmem.c: Likewise.
10661
10662 2007-12-23  Bruno Haible  <bruno@clisp.org>
10663
10664         * tests/test-memmem.c: Include <string.h> first.
10665
10666 2007-12-22  Bruno Haible  <bruno@clisp.org>
10667
10668         * gnulib-tool (func_create_testdir): Change $auxdir while generating
10669         the contents of $testsbase.
10670         Reported by Ralf Wildenhues.
10671
10672 2007-12-22  Bruno Haible  <bruno@clisp.org>
10673
10674         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
10675         two variables local_ldadd_before, local_ldadd_last.
10676
10677 2007-12-20  Eric Blake  <ebb9@byu.net>
10678
10679         Work around circular library issue when cross-compiling.
10680         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
10681         that progname.o does not need to pull in rpl_memcmp.
10682
10683 2007-12-19  Eric Blake  <ebb9@byu.net>
10684
10685         Fix memmem to avoid O(n^2) worst-case complexity.
10686         * lib/memmem.c (knuth_morris_pratt): New function.
10687         (memmem): Use it if first few naive iterations fail.
10688         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
10689         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
10690         * modules/memchr (License): Likewise.
10691         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
10692         malloca.
10693         * tests/test-memmem.c: Rewrite, borrowing ideas from
10694         test-mbsstr1.c; the old version wouldn't even compile!
10695         * modules/memmem-tests: New file.
10696         * lib/string.in.h (rpl_memmem): Add declaration.
10697         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
10698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
10699         REPLACE_MEMMEM.
10700
10701 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10702
10703         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
10704         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
10705         before any system include files, and undef after them all.  This
10706         should fix a problem on VMS reported by John E. Malmberg in
10707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
10708
10709 2007-12-17  Eric Blake  <ebb9@byu.net>
10710
10711         Revert addition of verify, for BSD/OS.
10712         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
10713         can't handle large files, for the sake of obsolete platforms.
10714         * modules/fseeko (Depends-on): Remove verify.
10715         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
10716         * doc/functions/ftello.texi (ftello): Likewise.
10717         * doc/functions/fgetpos.texi (fgetpos): Likewise.
10718         Reported by Larry Jones.
10719
10720 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
10721
10722         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
10723         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
10724
10725 2007-12-17  Jim Meyering  <meyering@redhat.com>
10726
10727         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
10728         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
10729         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
10730         * modules/getcwd (Depends-on): Add openat.
10731         Reported by Petr Salinger.
10732
10733 2007-12-17  Bruno Haible  <bruno@clisp.org>
10734
10735         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
10736         avoid a segmentation fault of the configure test on x86_64 systems.
10737
10738 2007-12-15  Jim Meyering  <meyering@redhat.com>
10739
10740         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
10741
10742 2007-12-13  Eric Blake  <ebb9@byu.net>
10743
10744         Another fseek test.
10745         * tests/test-fseek.c (main): Also test ungetc handling.
10746         * tests/test-fseeko.c (main): Likewise.
10747         * modules/fseeko (Depends-on): Add verify.
10748         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
10749         large.
10750         Reported by Larry Jones.
10751
10752         Fix fseeko on mingw.
10753         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
10754         seek.
10755
10756         Beef up fseek tests.
10757         * tests/test-fseek.c (main): Also test eof handling.
10758         * tests/test-fseeko.c (main): Likewise.
10759         Reported by Larry Jones.
10760
10761 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
10762
10763         Fix fseeko on BSD-based platforms.
10764         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
10765         successful seek.
10766
10767 2007-12-12  Eric Blake  <ebb9@byu.net>
10768
10769         Allow circular dependency of separate libtests.a
10770         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
10771         when use_libtests.
10772
10773 2007-12-11  Eric Blake  <ebb9@byu.net>
10774
10775         Fix bug with -0.0L in previous patch.
10776         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
10777         * tests/test-isnan.c (main): Also test on zeroes.
10778         * tests/test-isnanf.c (main): Likewise.
10779         * tests/test-isnanl.h (main): Likewise.
10780
10781         Detect pseudo-denormals on x86 even when cross-compiling.
10782         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
10783         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
10784         invalid bit patterns that happen to satisfy ==.
10785
10786         Avoid link failures with separate libtests.a.
10787         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
10788         last, to satisfy circular dependencies.
10789
10790 2007-12-11  Eric Blake  <ebb9@byu.net>
10791         and Bruno Haible  <bruno@clisp.org>
10792
10793         Fix OpenBSD 4.0 <float.h> handling of long double.
10794         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
10795         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
10796         * doc/headers/float.texi (float.h): Document OpenBSD bug.
10797
10798 2007-12-11  Jim Meyering  <meyering@redhat.com>
10799
10800         * users.txt: Add libvirt.
10801
10802         Support versions of autoconf prior to 2.59c.
10803         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
10804         if it is not already defined.
10805
10806 2007-12-09  Bruno Haible  <bruno@clisp.org>
10807
10808         Let 'gnulib-tool --import' collect sources needed for the tests in
10809         tests/ rather than in lib/.
10810         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
10811         argument. If true, add rules to generate libtests.a, and put libtests.a
10812         into $(LDADD). Consider source files in subdirectories and set
10813         uses_subdirs.
10814         (func_emit_initmacro_start, func_emit_initmacro_end,
10815         func_emit_initmacro_done): Pass all arguments explicitly.
10816         (func_import): Determine two module lists main_modules,
10817         testsrelated_modules. Determine use_libtests. Determine two variables
10818         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
10819         instead of just sed_transform_lib_file. Determine two variables
10820         main_files and testsrelated_files. Compute 'files' as the union of
10821         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
10822         func_add_or_update. In the generated gnulib-comp.m4, collect the
10823         object files for tests/ in different variables than those for lib/.
10824         Substitute LIBTESTS_LIBDEPS.
10825         (func_create_testdir): Combine the uses_subdirs results from
10826         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
10827
10828 2007-12-09  Bruno Haible  <bruno@clisp.org>
10829
10830         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
10831         the build-aux directory.
10832
10833 2007-12-09  Bruno Haible  <bruno@clisp.org>
10834
10835         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
10836         introduced on 2006-09-09.
10837
10838 2007-12-07  Jim Meyering  <meyering@redhat.com>
10839
10840         Let these macros work also with autoconf-2.59.
10841         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
10842         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
10843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10844
10845 2007-12-06  Jim Meyering  <meyering@redhat.com>
10846
10847         Avoid a configure-time syntax error in gl_FUNC_ACL.
10848         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
10849         function in each branch, before testing the cache variable.
10850
10851 2007-12-04  Eric Blake  <ebb9@byu.net>
10852
10853         Make scripts executable.
10854         * build-aux/config.guess: Add execute permissions.
10855         * build-aux/config.sub: Likewise.
10856         * build-aux/gendocs.sh: Likewise.
10857
10858         Fix frexp on mingw.
10859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
10860         cross-compiling.
10861         * doc/functions/frexp.texi (frexp): Document the bug.
10862
10863         Make cygwin fseeko check more reliable.
10864         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
10865         version numbers, rather than unrelated feature check.
10866         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
10867         * doc/functions/ftello.texi (ftello): Likewise.
10868         Reported by Bruno Haible.
10869
10870         * m4/strerror.m4: Bump version number.
10871
10872 2007-12-03  Bruno Haible  <bruno@clisp.org>
10873
10874         * doc/functions/mprotect.texi: Mention the mingw problem.
10875
10876 2007-12-03  Eric Blake  <ebb9@byu.net>
10877
10878         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
10879         REPLACE_STRERROR is initialized before this macro.
10880
10881 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
10882
10883         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
10884         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
10885         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
10886         put -lsec in even for programs other than 'ls'.  This fixes a problem
10887         for gettext reported by Bruno Haible in
10888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
10889         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
10890         Add support for Solaris 10.  This isn't efficient, but should get the
10891         job done for now.
10892
10893 2007-12-03  James Youngman  <jay@gnu.org>
10894
10895         * doc/regexprops-generic.texi: change "an close-group" to "a
10896         close-group" and "illegal" to "not allowed".
10897
10898 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10899
10900         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
10901         pr_byname.h. Needed for the rare case when the maintainer has done
10902         "make maintainer-clean" in the source directory and then attempts a
10903         build outside the source directory.
10904         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
10905         scripts_byname.h.
10906
10907 2007-12-02  Martin Lambers <marlam@marlam.de>
10908             Bruno Haible  <bruno@clisp.org>
10909
10910         * lib/getpagesize.h: Remove file.
10911         * lib/unistd.in.h: Include declaration of getpagesize here.
10912         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
10913         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
10914         HAVE_SYS_PARAM_H.
10915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
10916         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
10917         * modules/getpagesize (Files): Remove lib/getpagesize.h.
10918         (Depends-on): Add unistd.
10919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10920         (Include): Use <unistd.h> instead of getpagesize.h.
10921         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
10922         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
10923         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
10924         gl_GETPAGESIZE invocation, already handled by module dependency.
10925         * lib/pagealign_alloc.c: Don't include getpagesize.h.
10926
10927 2007-12-02  Bruno Haible  <bruno@clisp.org>
10928
10929         * modules/strings-tests: New file.
10930         * tests/test-strings.c: New file.
10931
10932         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
10933         * lib/strings.in.h: New file.
10934         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
10935         * m4/strings_h.m4: New file.
10936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
10937         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
10938         * modules/strings: New file.
10939         * modules/string (Makefile.am): Update.
10940         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
10941         Reported by Karl Berry.
10942
10943 2007-12-01  Eric Blake  <ebb9@byu.net>
10944
10945         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
10946         accomodate fix in cygwin 1.5.25.
10947
10948 2007-12-01  Jim Meyering  <meyering@redhat.com>
10949
10950         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
10951         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
10952         that would inhibit utf8-optimization of a regexp containing line-
10953         or buffer-anchors, e.g., `^', `$'.
10954
10955 2007-11-30  Bruno Haible  <bruno@clisp.org>
10956
10957         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
10958         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
10959         glthread_recursive_lock_init.
10960         * lib/lock.c (glthread_recursive_lock_init)
10961         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
10962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10963
10964 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         New function qset_acl, like set_acl but with syscall semantics.
10967         * lib/acl.h (qset_acl): New decl.
10968         * lib/acl.c (qset_acl): New function.
10969         (set_acl): Use new function.  Use more-consistent diagnostics.
10970
10971 2007-11-28  Jim Meyering  <meyering@redhat.com>
10972
10973         * modules/physmem (License): Change from GPL to LGPLv2+.
10974
10975 2007-11-26  Bruno Haible  <bruno@clisp.org>
10976
10977         * lib/vasnprintf.c (decode_long_double): Don't abort if the
10978         'long double' type has excess precision.
10979         Reported by Jim Meyering in
10980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
10981
10982 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10983
10984         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
10985         Sync from <http://gnu.org/licenses>.
10986         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
10987         with license text from same location.
10988         * doc/maintain.texi, doc/standards.texi:  Sync from
10989         <http://savannah.gnu.org/projects/gnustandards>.
10990
10991 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
10992         and Jim Meyering  <meyering@redhat.com>
10993
10994         Adjust getdate' grammar to accept a slightly more regular language.
10995         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
10996         Before, the former was rejected.
10997         * lib/getdate.y (digits_to_date_time): New function, factored
10998         out of ...
10999         (number): ...here.  Just call digits_to_date_time.
11000         (hybrid): New non-terminal to handle an <unsigned number,
11001         signed relative offset> sequence consistently.
11002
11003 2007-11-18  Jim Meyering  <meyering@redhat.com>
11004
11005         Pull my changes from coreutils:
11006         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
11007         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
11008         use of $gnulib_tool_option_extras, so that it's separated from the
11009         preceding argument.
11010
11011         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
11012         * build-aux/bootstrap (cp_mark_as_generated): Create any required
11013         parent destination directories before copying a file into place.
11014
11015 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
11016
11017         bootstrap: work also with 4-argument variant of AC_INIT
11018         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
11019
11020 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
11021
11022         Port test-getaddrinfo to Solaris.
11023         Problem reported by Bruno Haible in
11024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
11025         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
11026         explanation of setting 'hints'.
11027         Don't reject an implementation merely because it returns EAI_SERVICE.
11028         (EAI_SERVICE): Define to 0 if not defined.
11029
11030 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11031
11032         The license of gnu-make and posix-shell is now "GPLed build tool".
11033         * modules/gnu-make (License): Likewise.
11034         * modules/posix-shell (License): Likewise.
11035
11036         New module posix-shell, for determining a POSIX shell
11037         or perhaps something that is close enough to a POSIX shell.
11038         * m4/posix-shell.m4: New file.
11039         * modules/posix-shell: New file.
11040
11041         * MODULES.html.sh: Mention new module.
11042
11043         New module gnu-make, for determining whether we're using GNU Make.
11044         * m4/gnu-make.m4: New file.
11045         * modules/gnu-make: New file.
11046         * MODULES.html.sh: Mention new module.
11047
11048 2007-11-14  Jim Meyering  <meyering@redhat.com>
11049
11050         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
11051         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
11052         use this macro to create a function _definition_.
11053         Remove useless "#undef ARGMATCH_DIE".
11054
11055 2007-11-14  Bruno Haible  <bruno@clisp.org>
11056
11057         * lib/config.charset: Update for OpenBSD 4.1.
11058         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
11059
11060 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
11061
11062         Document 64-bit #if problems in stdint.texi.
11063         * doc/headers/stdint.texi (stdint.h): Mention problems with
11064         64-bit-#if, and how to work around them.
11065
11066         Don't insist on 'long long int' support in the preprocessor.  It
11067         breaks too many things.  For example, PRIdMAX still uses a 'long
11068         long int' format with the latest Sun compiler, even though
11069         HAVE_LONG_LONG_INT isn't defined due to that compiler's
11070         preprocessor problem.  This causes the latest coreutils to dump
11071         core on Solaris 10 sparc with the Sun C compiler.
11072         Instead, fix the 2007-10-16 problem in a different way, by evaluating
11073         the troublesome expressions at configure-time, not at #if-time.
11074         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
11075         preprocessor.
11076         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
11077         compile-time C checks, done at 'configure'-time.
11078         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
11079         * modules/inttypes (Makefile): Substitute the new symbols that
11080         gl_INTTYPES_H now generates.
11081         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
11082
11083 2007-11-12  Bruno Haible  <bruno@clisp.org>
11084
11085         Tests for Unicode character classification functions.
11086
11087         * modules/unictype/bidicategory-byname-tests: New file.
11088         * modules/unictype/bidicategory-name-tests: New file.
11089         * modules/unictype/bidicategory-of-tests: New file.
11090         * modules/unictype/bidicategory-test-tests: New file.
11091         * modules/unictype/block-list-tests: New file.
11092         * modules/unictype/block-of-tests: New file.
11093         * modules/unictype/block-test-tests: New file.
11094         * modules/unictype/category-C-tests: New file.
11095         * modules/unictype/category-Cc-tests: New file.
11096         * modules/unictype/category-Cf-tests: New file.
11097         * modules/unictype/category-Cn-tests: New file.
11098         * modules/unictype/category-Co-tests: New file.
11099         * modules/unictype/category-Cs-tests: New file.
11100         * modules/unictype/category-L-tests: New file.
11101         * modules/unictype/category-Ll-tests: New file.
11102         * modules/unictype/category-Lm-tests: New file.
11103         * modules/unictype/category-Lo-tests: New file.
11104         * modules/unictype/category-Lt-tests: New file.
11105         * modules/unictype/category-Lu-tests: New file.
11106         * modules/unictype/category-M-tests: New file.
11107         * modules/unictype/category-Mc-tests: New file.
11108         * modules/unictype/category-Me-tests: New file.
11109         * modules/unictype/category-Mn-tests: New file.
11110         * modules/unictype/category-N-tests: New file.
11111         * modules/unictype/category-Nd-tests: New file.
11112         * modules/unictype/category-Nl-tests: New file.
11113         * modules/unictype/category-No-tests: New file.
11114         * modules/unictype/category-P-tests: New file.
11115         * modules/unictype/category-Pc-tests: New file.
11116         * modules/unictype/category-Pd-tests: New file.
11117         * modules/unictype/category-Pe-tests: New file.
11118         * modules/unictype/category-Pf-tests: New file.
11119         * modules/unictype/category-Pi-tests: New file.
11120         * modules/unictype/category-Po-tests: New file.
11121         * modules/unictype/category-Ps-tests: New file.
11122         * modules/unictype/category-S-tests: New file.
11123         * modules/unictype/category-Sc-tests: New file.
11124         * modules/unictype/category-Sk-tests: New file.
11125         * modules/unictype/category-Sm-tests: New file.
11126         * modules/unictype/category-So-tests: New file.
11127         * modules/unictype/category-Z-tests: New file.
11128         * modules/unictype/category-Zl-tests: New file.
11129         * modules/unictype/category-Zp-tests: New file.
11130         * modules/unictype/category-Zs-tests: New file.
11131         * modules/unictype/category-and-not-tests: New file.
11132         * modules/unictype/category-and-tests: New file.
11133         * modules/unictype/category-byname-tests: New file.
11134         * modules/unictype/category-name-tests: New file.
11135         * modules/unictype/category-none-tests: New file.
11136         * modules/unictype/category-of-tests: New file.
11137         * modules/unictype/category-or-tests: New file.
11138         * modules/unictype/category-test-withtable-tests: New file.
11139         * modules/unictype/combining-class-tests: New file.
11140         * modules/unictype/ctype-alnum-tests: New file.
11141         * modules/unictype/ctype-alpha-tests: New file.
11142         * modules/unictype/ctype-blank-tests: New file.
11143         * modules/unictype/ctype-cntrl-tests: New file.
11144         * modules/unictype/ctype-digit-tests: New file.
11145         * modules/unictype/ctype-graph-tests: New file.
11146         * modules/unictype/ctype-lower-tests: New file.
11147         * modules/unictype/ctype-print-tests: New file.
11148         * modules/unictype/ctype-punct-tests: New file.
11149         * modules/unictype/ctype-space-tests: New file.
11150         * modules/unictype/ctype-upper-tests: New file.
11151         * modules/unictype/ctype-xdigit-tests: New file.
11152         * modules/unictype/decimal-digit-tests: New file.
11153         * modules/unictype/digit-tests: New file.
11154         * modules/unictype/mirror-tests: New file.
11155         * modules/unictype/numeric-tests: New file.
11156         * modules/unictype/property-alphabetic-tests: New file.
11157         * modules/unictype/property-ascii-hex-digit-tests: New file.
11158         * modules/unictype/property-bidi-arabic-digit-tests: New file.
11159         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
11160         * modules/unictype/property-bidi-block-separator-tests: New file.
11161         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
11162         * modules/unictype/property-bidi-common-separator-tests: New file.
11163         * modules/unictype/property-bidi-control-tests: New file.
11164         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
11165         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
11166         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
11167         * modules/unictype/property-bidi-european-digit-tests: New file.
11168         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
11169         * modules/unictype/property-bidi-left-to-right-tests: New file.
11170         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
11171         * modules/unictype/property-bidi-other-neutral-tests: New file.
11172         * modules/unictype/property-bidi-pdf-tests: New file.
11173         * modules/unictype/property-bidi-segment-separator-tests: New file.
11174         * modules/unictype/property-bidi-whitespace-tests: New file.
11175         * modules/unictype/property-byname-tests: New file.
11176         * modules/unictype/property-combining-tests: New file.
11177         * modules/unictype/property-composite-tests: New file.
11178         * modules/unictype/property-currency-symbol-tests: New file.
11179         * modules/unictype/property-dash-tests: New file.
11180         * modules/unictype/property-decimal-digit-tests: New file.
11181         * modules/unictype/property-default-ignorable-code-point-tests: New file.
11182         * modules/unictype/property-deprecated-tests: New file.
11183         * modules/unictype/property-diacritic-tests: New file.
11184         * modules/unictype/property-extender-tests: New file.
11185         * modules/unictype/property-format-control-tests: New file.
11186         * modules/unictype/property-grapheme-base-tests: New file.
11187         * modules/unictype/property-grapheme-extend-tests: New file.
11188         * modules/unictype/property-grapheme-link-tests: New file.
11189         * modules/unictype/property-hex-digit-tests: New file.
11190         * modules/unictype/property-hyphen-tests: New file.
11191         * modules/unictype/property-id-continue-tests: New file.
11192         * modules/unictype/property-id-start-tests: New file.
11193         * modules/unictype/property-ideographic-tests: New file.
11194         * modules/unictype/property-ids-binary-operator-tests: New file.
11195         * modules/unictype/property-ids-trinary-operator-tests: New file.
11196         * modules/unictype/property-ignorable-control-tests: New file.
11197         * modules/unictype/property-iso-control-tests: New file.
11198         * modules/unictype/property-join-control-tests: New file.
11199         * modules/unictype/property-left-of-pair-tests: New file.
11200         * modules/unictype/property-line-separator-tests: New file.
11201         * modules/unictype/property-logical-order-exception-tests: New file.
11202         * modules/unictype/property-lowercase-tests: New file.
11203         * modules/unictype/property-math-tests: New file.
11204         * modules/unictype/property-non-break-tests: New file.
11205         * modules/unictype/property-not-a-character-tests: New file.
11206         * modules/unictype/property-numeric-tests: New file.
11207         * modules/unictype/property-other-alphabetic-tests: New file.
11208         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
11209         * modules/unictype/property-other-grapheme-extend-tests: New file.
11210         * modules/unictype/property-other-id-continue-tests: New file.
11211         * modules/unictype/property-other-id-start-tests: New file.
11212         * modules/unictype/property-other-lowercase-tests: New file.
11213         * modules/unictype/property-other-math-tests: New file.
11214         * modules/unictype/property-other-uppercase-tests: New file.
11215         * modules/unictype/property-paired-punctuation-tests: New file.
11216         * modules/unictype/property-paragraph-separator-tests: New file.
11217         * modules/unictype/property-pattern-syntax-tests: New file.
11218         * modules/unictype/property-pattern-white-space-tests: New file.
11219         * modules/unictype/property-private-use-tests: New file.
11220         * modules/unictype/property-punctuation-tests: New file.
11221         * modules/unictype/property-quotation-mark-tests: New file.
11222         * modules/unictype/property-radical-tests: New file.
11223         * modules/unictype/property-sentence-terminal-tests: New file.
11224         * modules/unictype/property-soft-dotted-tests: New file.
11225         * modules/unictype/property-space-tests: New file.
11226         * modules/unictype/property-terminal-punctuation-tests: New file.
11227         * modules/unictype/property-test-tests: New file.
11228         * modules/unictype/property-titlecase-tests: New file.
11229         * modules/unictype/property-unassigned-code-value-tests: New file.
11230         * modules/unictype/property-unified-ideograph-tests: New file.
11231         * modules/unictype/property-uppercase-tests: New file.
11232         * modules/unictype/property-variation-selector-tests: New file.
11233         * modules/unictype/property-white-space-tests: New file.
11234         * modules/unictype/property-xid-continue-tests: New file.
11235         * modules/unictype/property-xid-start-tests: New file.
11236         * modules/unictype/property-zero-width-tests: New file.
11237         * modules/unictype/scripts-tests: New file.
11238         * modules/unictype/syntax-c-ident-tests: New file.
11239         * modules/unictype/syntax-c-whitespace-tests: New file.
11240         * modules/unictype/syntax-java-ident-tests: New file.
11241         * modules/unictype/syntax-java-whitespace-tests: New file.
11242         * tests/unictype/test-bidi_byname.c: New file.
11243         * tests/unictype/test-bidi_name.c: New file.
11244         * tests/unictype/test-bidi_of.c: New file.
11245         * tests/unictype/test-bidi_test.c: New file.
11246         * tests/unictype/test-block_list.c: New file.
11247         * tests/unictype/test-block_of.c: New file.
11248         * tests/unictype/test-block_test.c: New file.
11249         * tests/unictype/test-categ_and.c: New file.
11250         * tests/unictype/test-categ_and_not.c: New file.
11251         * tests/unictype/test-categ_byname.c: New file.
11252         * tests/unictype/test-categ_name.c: New file.
11253         * tests/unictype/test-categ_none.c: New file.
11254         * tests/unictype/test-categ_of.c: New file.
11255         * tests/unictype/test-categ_or.c: New file.
11256         * tests/unictype/test-categ_test_withtable.c: New file.
11257         * tests/unictype/test-combining.c: New file.
11258         * tests/unictype/test-decdigit.c: New file.
11259         * tests/unictype/test-digit.c: New file.
11260         * tests/unictype/test-mirror.c: New file.
11261         * tests/unictype/test-numeric.c: New file.
11262         * tests/unictype/test-pr_byname.c: New file.
11263         * tests/unictype/test-pr_test.c: New file.
11264         * tests/unictype/test-predicate-part1.h: New file.
11265         * tests/unictype/test-predicate-part2.h: New file.
11266         * tests/unictype/test-scripts.c: New file.
11267         * tests/unictype/test-sy_c_ident.c: New file.
11268         * tests/unictype/test-sy_java_ident.c: New file.
11269
11270         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
11271         for Unicode 5.0.0.
11272         * tests/unictype/test-categ_Cc.c: Likewise.
11273         * tests/unictype/test-categ_Cf.c: Likewise.
11274         * tests/unictype/test-categ_Cn.c: Likewise.
11275         * tests/unictype/test-categ_Co.c: Likewise.
11276         * tests/unictype/test-categ_Cs.c: Likewise.
11277         * tests/unictype/test-categ_L.c: Likewise.
11278         * tests/unictype/test-categ_Ll.c: Likewise.
11279         * tests/unictype/test-categ_Lm.c: Likewise.
11280         * tests/unictype/test-categ_Lo.c: Likewise.
11281         * tests/unictype/test-categ_Lt.c: Likewise.
11282         * tests/unictype/test-categ_Lu.c: Likewise.
11283         * tests/unictype/test-categ_M.c: Likewise.
11284         * tests/unictype/test-categ_Mc.c: Likewise.
11285         * tests/unictype/test-categ_Me.c: Likewise.
11286         * tests/unictype/test-categ_Mn.c: Likewise.
11287         * tests/unictype/test-categ_N.c: Likewise.
11288         * tests/unictype/test-categ_Nd.c: Likewise.
11289         * tests/unictype/test-categ_Nl.c: Likewise.
11290         * tests/unictype/test-categ_No.c: Likewise.
11291         * tests/unictype/test-categ_P.c: Likewise.
11292         * tests/unictype/test-categ_Pc.c: Likewise.
11293         * tests/unictype/test-categ_Pd.c: Likewise.
11294         * tests/unictype/test-categ_Pe.c: Likewise.
11295         * tests/unictype/test-categ_Pf.c: Likewise.
11296         * tests/unictype/test-categ_Pi.c: Likewise.
11297         * tests/unictype/test-categ_Po.c: Likewise.
11298         * tests/unictype/test-categ_Ps.c: Likewise.
11299         * tests/unictype/test-categ_S.c: Likewise.
11300         * tests/unictype/test-categ_Sc.c: Likewise.
11301         * tests/unictype/test-categ_Sk.c: Likewise.
11302         * tests/unictype/test-categ_Sm.c: Likewise.
11303         * tests/unictype/test-categ_So.c: Likewise.
11304         * tests/unictype/test-categ_Z.c: Likewise.
11305         * tests/unictype/test-categ_Zl.c: Likewise.
11306         * tests/unictype/test-categ_Zp.c: Likewise.
11307         * tests/unictype/test-categ_Zs.c: Likewise.
11308         * tests/unictype/test-ctype_alnum.c: Likewise.
11309         * tests/unictype/test-ctype_alpha.c: Likewise.
11310         * tests/unictype/test-ctype_blank.c: Likewise.
11311         * tests/unictype/test-ctype_cntrl.c: Likewise.
11312         * tests/unictype/test-ctype_digit.c: Likewise.
11313         * tests/unictype/test-ctype_graph.c: Likewise.
11314         * tests/unictype/test-ctype_lower.c: Likewise.
11315         * tests/unictype/test-ctype_print.c: Likewise.
11316         * tests/unictype/test-ctype_punct.c: Likewise.
11317         * tests/unictype/test-ctype_space.c: Likewise.
11318         * tests/unictype/test-ctype_upper.c: Likewise.
11319         * tests/unictype/test-ctype_xdigit.c: Likewise.
11320         * tests/unictype/test-decdigit.h: Likewise.
11321         * tests/unictype/test-digit.h: Likewise.
11322         * tests/unictype/test-numeric.h: Likewise.
11323         * tests/unictype/test-pr_alphabetic.c: Likewise.
11324         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
11325         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11326         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11327         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
11328         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11329         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
11330         * tests/unictype/test-pr_bidi_control.c: Likewise.
11331         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
11332         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
11333         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11334         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11335         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11336         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11337         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11338         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11339         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
11340         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
11341         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
11342         * tests/unictype/test-pr_combining.c: Likewise.
11343         * tests/unictype/test-pr_composite.c: Likewise.
11344         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11345         * tests/unictype/test-pr_dash.c: Likewise.
11346         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11347         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
11348         * tests/unictype/test-pr_deprecated.c: Likewise.
11349         * tests/unictype/test-pr_diacritic.c: Likewise.
11350         * tests/unictype/test-pr_extender.c: Likewise.
11351         * tests/unictype/test-pr_format_control.c: Likewise.
11352         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11353         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11354         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11355         * tests/unictype/test-pr_hex_digit.c: Likewise.
11356         * tests/unictype/test-pr_hyphen.c: Likewise.
11357         * tests/unictype/test-pr_id_continue.c: Likewise.
11358         * tests/unictype/test-pr_id_start.c: Likewise.
11359         * tests/unictype/test-pr_ideographic.c: Likewise.
11360         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
11361         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
11362         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11363         * tests/unictype/test-pr_iso_control.c: Likewise.
11364         * tests/unictype/test-pr_join_control.c: Likewise.
11365         * tests/unictype/test-pr_left_of_pair.c: Likewise.
11366         * tests/unictype/test-pr_line_separator.c: Likewise.
11367         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11368         * tests/unictype/test-pr_lowercase.c: Likewise.
11369         * tests/unictype/test-pr_math.c: Likewise.
11370         * tests/unictype/test-pr_non_break.c: Likewise.
11371         * tests/unictype/test-pr_not_a_character.c: Likewise.
11372         * tests/unictype/test-pr_numeric.c: Likewise.
11373         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11374         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
11375         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
11376         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11377         * tests/unictype/test-pr_other_id_start.c: Likewise.
11378         * tests/unictype/test-pr_other_lowercase.c: Likewise.
11379         * tests/unictype/test-pr_other_math.c: Likewise.
11380         * tests/unictype/test-pr_other_uppercase.c: Likewise.
11381         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
11382         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
11383         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
11384         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
11385         * tests/unictype/test-pr_private_use.c: Likewise.
11386         * tests/unictype/test-pr_punctuation.c: Likewise.
11387         * tests/unictype/test-pr_quotation_mark.c: Likewise.
11388         * tests/unictype/test-pr_radical.c: Likewise.
11389         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11390         * tests/unictype/test-pr_soft_dotted.c: Likewise.
11391         * tests/unictype/test-pr_space.c: Likewise.
11392         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11393         * tests/unictype/test-pr_titlecase.c: Likewise.
11394         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11395         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11396         * tests/unictype/test-pr_uppercase.c: Likewise.
11397         * tests/unictype/test-pr_variation_selector.c: Likewise.
11398         * tests/unictype/test-pr_white_space.c: Likewise.
11399         * tests/unictype/test-pr_xid_continue.c: Likewise.
11400         * tests/unictype/test-pr_xid_start.c: Likewise.
11401         * tests/unictype/test-pr_zero_width.c: Likewise.
11402         * tests/unictype/test-sy_c_whitespace.c: Likewise.
11403         * tests/unictype/test-sy_java_whitespace.c: Likewise.
11404
11405 2007-11-12  Bruno Haible  <bruno@clisp.org>
11406
11407         Unicode character classification functions.
11408         * lib/unictype.h: New file.
11409         * modules/unictype/base: New file.
11410         * modules/unictype/category-L: New file.
11411         * modules/unictype/category-Lu: New file.
11412         * modules/unictype/category-Ll: New file.
11413         * modules/unictype/category-Lt: New file.
11414         * modules/unictype/category-Lm: New file.
11415         * modules/unictype/category-Lo: New file.
11416         * modules/unictype/category-M: New file.
11417         * modules/unictype/category-Mn: New file.
11418         * modules/unictype/category-Mc: New file.
11419         * modules/unictype/category-Me: New file.
11420         * modules/unictype/category-N: New file.
11421         * modules/unictype/category-Nd: New file.
11422         * modules/unictype/category-Nl: New file.
11423         * modules/unictype/category-No: New file.
11424         * modules/unictype/category-P: New file.
11425         * modules/unictype/category-Pc: New file.
11426         * modules/unictype/category-Pd: New file.
11427         * modules/unictype/category-Ps: New file.
11428         * modules/unictype/category-Pe: New file.
11429         * modules/unictype/category-Pi: New file.
11430         * modules/unictype/category-Pf: New file.
11431         * modules/unictype/category-Po: New file.
11432         * modules/unictype/category-S: New file.
11433         * modules/unictype/category-Sm: New file.
11434         * modules/unictype/category-Sc: New file.
11435         * modules/unictype/category-Sk: New file.
11436         * modules/unictype/category-So: New file.
11437         * modules/unictype/category-Z: New file.
11438         * modules/unictype/category-Zs: New file.
11439         * modules/unictype/category-Zl: New file.
11440         * modules/unictype/category-Zp: New file.
11441         * modules/unictype/category-C: New file.
11442         * modules/unictype/category-Cc: New file.
11443         * modules/unictype/category-Cf: New file.
11444         * modules/unictype/category-Cs: New file.
11445         * modules/unictype/category-Co: New file.
11446         * modules/unictype/category-Cn: New file.
11447         * modules/unictype/category-or: New file.
11448         * modules/unictype/category-of: New file.
11449         * modules/unictype/category-test: New file.
11450         * modules/unictype/category-test-withtable: New file.
11451         * modules/unictype/category-byname: New file.
11452         * modules/unictype/category-none: New file.
11453         * modules/unictype/category-and: New file.
11454         * modules/unictype/category-and-not: New file.
11455         * modules/unictype/category-name: New file.
11456         * modules/unictype/combining-class: New file.
11457         * modules/unictype/category-all: New file.
11458         * modules/unictype/bidicategory-all: New file.
11459         * modules/unictype/bidicategory-byname: New file.
11460         * modules/unictype/bidicategory-name: New file.
11461         * modules/unictype/bidicategory-of: New file.
11462         * modules/unictype/bidicategory-test: New file.
11463         * modules/unictype/decimal-digit: New file.
11464         * modules/unictype/digit: New file.
11465         * modules/unictype/numeric: New file.
11466         * modules/unictype/mirror: New file.
11467         * modules/unictype/property-white-space: New file.
11468         * modules/unictype/property-alphabetic: New file.
11469         * modules/unictype/property-other-alphabetic: New file.
11470         * modules/unictype/property-not-a-character: New file.
11471         * modules/unictype/property-default-ignorable-code-point: New file.
11472         * modules/unictype/property-other-default-ignorable-code-point: New
11473         file.
11474         * modules/unictype/property-deprecated: New file.
11475         * modules/unictype/property-logical-order-exception: New file.
11476         * modules/unictype/property-variation-selector: New file.
11477         * modules/unictype/property-private-use: New file.
11478         * modules/unictype/property-unassigned-code-value: New file.
11479         * modules/unictype/property-uppercase: New file.
11480         * modules/unictype/property-other-uppercase: New file.
11481         * modules/unictype/property-lowercase: New file.
11482         * modules/unictype/property-other-lowercase: New file.
11483         * modules/unictype/property-titlecase: New file.
11484         * modules/unictype/property-soft-dotted: New file.
11485         * modules/unictype/property-id-start: New file.
11486         * modules/unictype/property-other-id-start: New file.
11487         * modules/unictype/property-id-continue: New file.
11488         * modules/unictype/property-other-id-continue: New file.
11489         * modules/unictype/property-xid-start: New file.
11490         * modules/unictype/property-xid-continue: New file.
11491         * modules/unictype/property-pattern-white-space: New file.
11492         * modules/unictype/property-pattern-syntax: New file.
11493         * modules/unictype/property-join-control: New file.
11494         * modules/unictype/property-grapheme-base: New file.
11495         * modules/unictype/property-grapheme-extend: New file.
11496         * modules/unictype/property-other-grapheme-extend: New file.
11497         * modules/unictype/property-grapheme-link: New file.
11498         * modules/unictype/property-bidi-control: New file.
11499         * modules/unictype/property-bidi-left-to-right: New file.
11500         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
11501         * modules/unictype/property-bidi-arabic-right-to-left: New file.
11502         * modules/unictype/property-bidi-european-digit: New file.
11503         * modules/unictype/property-bidi-eur-num-separator: New file.
11504         * modules/unictype/property-bidi-eur-num-terminator: New file.
11505         * modules/unictype/property-bidi-arabic-digit: New file.
11506         * modules/unictype/property-bidi-common-separator: New file.
11507         * modules/unictype/property-bidi-block-separator: New file.
11508         * modules/unictype/property-bidi-segment-separator: New file.
11509         * modules/unictype/property-bidi-whitespace: New file.
11510         * modules/unictype/property-bidi-non-spacing-mark: New file.
11511         * modules/unictype/property-bidi-boundary-neutral: New file.
11512         * modules/unictype/property-bidi-pdf: New file.
11513         * modules/unictype/property-bidi-embedding-or-override: New file.
11514         * modules/unictype/property-bidi-other-neutral: New file.
11515         * modules/unictype/property-hex-digit: New file.
11516         * modules/unictype/property-ascii-hex-digit: New file.
11517         * modules/unictype/property-ideographic: New file.
11518         * modules/unictype/property-unified-ideograph: New file.
11519         * modules/unictype/property-radical: New file.
11520         * modules/unictype/property-ids-binary-operator: New file.
11521         * modules/unictype/property-ids-trinary-operator: New file.
11522         * modules/unictype/property-zero-width: New file.
11523         * modules/unictype/property-space: New file.
11524         * modules/unictype/property-non-break: New file.
11525         * modules/unictype/property-iso-control: New file.
11526         * modules/unictype/property-format-control: New file.
11527         * modules/unictype/property-dash: New file.
11528         * modules/unictype/property-hyphen: New file.
11529         * modules/unictype/property-punctuation: New file.
11530         * modules/unictype/property-line-separator: New file.
11531         * modules/unictype/property-paragraph-separator: New file.
11532         * modules/unictype/property-quotation-mark: New file.
11533         * modules/unictype/property-sentence-terminal: New file.
11534         * modules/unictype/property-terminal-punctuation: New file.
11535         * modules/unictype/property-currency-symbol: New file.
11536         * modules/unictype/property-math: New file.
11537         * modules/unictype/property-other-math: New file.
11538         * modules/unictype/property-paired-punctuation: New file.
11539         * modules/unictype/property-left-of-pair: New file.
11540         * modules/unictype/property-combining: New file.
11541         * modules/unictype/property-composite: New file.
11542         * modules/unictype/property-decimal-digit: New file.
11543         * modules/unictype/property-numeric: New file.
11544         * modules/unictype/property-diacritic: New file.
11545         * modules/unictype/property-extender: New file.
11546         * modules/unictype/property-ignorable-control: New file.
11547         * modules/unictype/property-test: New file.
11548         * modules/unictype/property-byname: New file.
11549         * modules/unictype/property-all: New file.
11550         * modules/unictype/scripts: New file.
11551         * modules/unictype/scripts-all: New file.
11552         * modules/unictype/block-of: New file.
11553         * modules/unictype/block-test: New file.
11554         * modules/unictype/block-list: New file.
11555         * modules/unictype/block-all: New file.
11556         * modules/unictype/syntax-c-whitespace: New file.
11557         * modules/unictype/syntax-java-whitespace: New file.
11558         * modules/unictype/syntax-c-ident: New file.
11559         * modules/unictype/syntax-java-ident: New file.
11560         * modules/unictype/ctype-alnum: New file.
11561         * modules/unictype/ctype-alpha: New file.
11562         * modules/unictype/ctype-cntrl: New file.
11563         * modules/unictype/ctype-digit: New file.
11564         * modules/unictype/ctype-graph: New file.
11565         * modules/unictype/ctype-lower: New file.
11566         * modules/unictype/ctype-print: New file.
11567         * modules/unictype/ctype-punct: New file.
11568         * modules/unictype/ctype-space: New file.
11569         * modules/unictype/ctype-upper: New file.
11570         * modules/unictype/ctype-xdigit: New file.
11571         * modules/unictype/ctype-blank: New file.
11572         * lib/unictype/bidi_byname.c: New file.
11573         * lib/unictype/bidi_name.c: New file.
11574         * lib/unictype/bidi_of.c: New file.
11575         * lib/unictype/bidi_test.c: New file.
11576         * lib/unictype/bitmap.h: New file.
11577         * lib/unictype/block_test.c: New file.
11578         * lib/unictype/blocks.c: New file.
11579         * lib/unictype/categ_C.c: New file.
11580         * lib/unictype/categ_Cc.c: New file.
11581         * lib/unictype/categ_Cf.c: New file.
11582         * lib/unictype/categ_Cn.c: New file.
11583         * lib/unictype/categ_Co.c: New file.
11584         * lib/unictype/categ_Cs.c: New file.
11585         * lib/unictype/categ_L.c: New file.
11586         * lib/unictype/categ_Ll.c: New file.
11587         * lib/unictype/categ_Lm.c: New file.
11588         * lib/unictype/categ_Lo.c: New file.
11589         * lib/unictype/categ_Lt.c: New file.
11590         * lib/unictype/categ_Lu.c: New file.
11591         * lib/unictype/categ_M.c: New file.
11592         * lib/unictype/categ_Mc.c: New file.
11593         * lib/unictype/categ_Me.c: New file.
11594         * lib/unictype/categ_Mn.c: New file.
11595         * lib/unictype/categ_N.c: New file.
11596         * lib/unictype/categ_Nd.c: New file.
11597         * lib/unictype/categ_Nl.c: New file.
11598         * lib/unictype/categ_No.c: New file.
11599         * lib/unictype/categ_P.c: New file.
11600         * lib/unictype/categ_Pc.c: New file.
11601         * lib/unictype/categ_Pd.c: New file.
11602         * lib/unictype/categ_Pe.c: New file.
11603         * lib/unictype/categ_Pf.c: New file.
11604         * lib/unictype/categ_Pi.c: New file.
11605         * lib/unictype/categ_Po.c: New file.
11606         * lib/unictype/categ_Ps.c: New file.
11607         * lib/unictype/categ_S.c: New file.
11608         * lib/unictype/categ_Sc.c: New file.
11609         * lib/unictype/categ_Sk.c: New file.
11610         * lib/unictype/categ_Sm.c: New file.
11611         * lib/unictype/categ_So.c: New file.
11612         * lib/unictype/categ_Z.c: New file.
11613         * lib/unictype/categ_Zl.c: New file.
11614         * lib/unictype/categ_Zp.c: New file.
11615         * lib/unictype/categ_Zs.c: New file.
11616         * lib/unictype/categ_and.c: New file.
11617         * lib/unictype/categ_and_not.c: New file.
11618         * lib/unictype/categ_byname.c: New file.
11619         * lib/unictype/categ_name.c: New file.
11620         * lib/unictype/categ_none.c: New file.
11621         * lib/unictype/categ_of.c: New file.
11622         * lib/unictype/categ_or.c: New file.
11623         * lib/unictype/categ_test.c: New file.
11624         * lib/unictype/combining.c: New file.
11625         * lib/unictype/ctype_alnum.c: New file.
11626         * lib/unictype/ctype_alpha.c: New file.
11627         * lib/unictype/ctype_blank.c: New file.
11628         * lib/unictype/ctype_cntrl.c: New file.
11629         * lib/unictype/ctype_digit.c: New file.
11630         * lib/unictype/ctype_graph.c: New file.
11631         * lib/unictype/ctype_lower.c: New file.
11632         * lib/unictype/ctype_print.c: New file.
11633         * lib/unictype/ctype_punct.c: New file.
11634         * lib/unictype/ctype_space.c: New file.
11635         * lib/unictype/ctype_upper.c: New file.
11636         * lib/unictype/ctype_xdigit.c: New file.
11637         * lib/unictype/decdigit.c: New file.
11638         * lib/unictype/digit.c: New file.
11639         * lib/unictype/identsyntaxmap.h: New file.
11640         * lib/unictype/mirror.c: New file.
11641         * lib/unictype/numeric.c: New file.
11642         * lib/unictype/pr_alphabetic.c: New file.
11643         * lib/unictype/pr_ascii_hex_digit.c: New file.
11644         * lib/unictype/pr_bidi_arabic_digit.c: New file.
11645         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
11646         * lib/unictype/pr_bidi_block_separator.c: New file.
11647         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
11648         * lib/unictype/pr_bidi_common_separator.c: New file.
11649         * lib/unictype/pr_bidi_control.c: New file.
11650         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
11651         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
11652         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
11653         * lib/unictype/pr_bidi_european_digit.c: New file.
11654         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
11655         * lib/unictype/pr_bidi_left_to_right.c: New file.
11656         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
11657         * lib/unictype/pr_bidi_other_neutral.c: New file.
11658         * lib/unictype/pr_bidi_pdf.c: New file.
11659         * lib/unictype/pr_bidi_segment_separator.c: New file.
11660         * lib/unictype/pr_bidi_whitespace.c: New file.
11661         * lib/unictype/pr_byname.c: New file.
11662         * lib/unictype/pr_byname.gperf: New file.
11663         * lib/unictype/pr_combining.c: New file.
11664         * lib/unictype/pr_composite.c: New file.
11665         * lib/unictype/pr_currency_symbol.c: New file.
11666         * lib/unictype/pr_dash.c: New file.
11667         * lib/unictype/pr_decimal_digit.c: New file.
11668         * lib/unictype/pr_default_ignorable_code_point.c: New file.
11669         * lib/unictype/pr_deprecated.c: New file.
11670         * lib/unictype/pr_diacritic.c: New file.
11671         * lib/unictype/pr_extender.c: New file.
11672         * lib/unictype/pr_format_control.c: New file.
11673         * lib/unictype/pr_grapheme_base.c: New file.
11674         * lib/unictype/pr_grapheme_extend.c: New file.
11675         * lib/unictype/pr_grapheme_link.c: New file.
11676         * lib/unictype/pr_hex_digit.c: New file.
11677         * lib/unictype/pr_hyphen.c: New file.
11678         * lib/unictype/pr_id_continue.c: New file.
11679         * lib/unictype/pr_id_start.c: New file.
11680         * lib/unictype/pr_ideographic.c: New file.
11681         * lib/unictype/pr_ids_binary_operator.c: New file.
11682         * lib/unictype/pr_ids_trinary_operator.c: New file.
11683         * lib/unictype/pr_ignorable_control.c: New file.
11684         * lib/unictype/pr_iso_control.c: New file.
11685         * lib/unictype/pr_join_control.c: New file.
11686         * lib/unictype/pr_left_of_pair.c: New file.
11687         * lib/unictype/pr_line_separator.c: New file.
11688         * lib/unictype/pr_logical_order_exception.c: New file.
11689         * lib/unictype/pr_lowercase.c: New file.
11690         * lib/unictype/pr_math.c: New file.
11691         * lib/unictype/pr_non_break.c: New file.
11692         * lib/unictype/pr_not_a_character.c: New file.
11693         * lib/unictype/pr_numeric.c: New file.
11694         * lib/unictype/pr_other_alphabetic.c: New file.
11695         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
11696         * lib/unictype/pr_other_grapheme_extend.c: New file.
11697         * lib/unictype/pr_other_id_continue.c: New file.
11698         * lib/unictype/pr_other_id_start.c: New file.
11699         * lib/unictype/pr_other_lowercase.c: New file.
11700         * lib/unictype/pr_other_math.c: New file.
11701         * lib/unictype/pr_other_uppercase.c: New file.
11702         * lib/unictype/pr_paired_punctuation.c: New file.
11703         * lib/unictype/pr_paragraph_separator.c: New file.
11704         * lib/unictype/pr_pattern_syntax.c: New file.
11705         * lib/unictype/pr_pattern_white_space.c: New file.
11706         * lib/unictype/pr_private_use.c: New file.
11707         * lib/unictype/pr_punctuation.c: New file.
11708         * lib/unictype/pr_quotation_mark.c: New file.
11709         * lib/unictype/pr_radical.c: New file.
11710         * lib/unictype/pr_sentence_terminal.c: New file.
11711         * lib/unictype/pr_soft_dotted.c: New file.
11712         * lib/unictype/pr_space.c: New file.
11713         * lib/unictype/pr_terminal_punctuation.c: New file.
11714         * lib/unictype/pr_test.c: New file.
11715         * lib/unictype/pr_titlecase.c: New file.
11716         * lib/unictype/pr_unassigned_code_value.c: New file.
11717         * lib/unictype/pr_unified_ideograph.c: New file.
11718         * lib/unictype/pr_uppercase.c: New file.
11719         * lib/unictype/pr_variation_selector.c: New file.
11720         * lib/unictype/pr_white_space.c: New file.
11721         * lib/unictype/pr_xid_continue.c: New file.
11722         * lib/unictype/pr_xid_start.c: New file.
11723         * lib/unictype/pr_zero_width.c: New file.
11724         * lib/unictype/scripts.c: New file.
11725         * lib/unictype/sy_c_ident.c: New file.
11726         * lib/unictype/sy_c_whitespace.c: New file.
11727         * lib/unictype/sy_java_ident.c: New file.
11728         * lib/unictype/sy_java_whitespace.c: New file.
11729
11730         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
11731         Unicode 5.0.0.
11732         * lib/unictype/blocks.h: Likewise.
11733         * lib/unictype/categ_C.h: Likewise.
11734         * lib/unictype/categ_Cc.h: Likewise.
11735         * lib/unictype/categ_Cf.h: Likewise.
11736         * lib/unictype/categ_Cn.h: Likewise.
11737         * lib/unictype/categ_Co.h: Likewise.
11738         * lib/unictype/categ_Cs.h: Likewise.
11739         * lib/unictype/categ_L.h: Likewise.
11740         * lib/unictype/categ_Ll.h: Likewise.
11741         * lib/unictype/categ_Lm.h: Likewise.
11742         * lib/unictype/categ_Lo.h: Likewise.
11743         * lib/unictype/categ_Lt.h: Likewise.
11744         * lib/unictype/categ_Lu.h: Likewise.
11745         * lib/unictype/categ_M.h: Likewise.
11746         * lib/unictype/categ_Mc.h: Likewise.
11747         * lib/unictype/categ_Me.h: Likewise.
11748         * lib/unictype/categ_Mn.h: Likewise.
11749         * lib/unictype/categ_N.h: Likewise.
11750         * lib/unictype/categ_Nd.h: Likewise.
11751         * lib/unictype/categ_Nl.h: Likewise.
11752         * lib/unictype/categ_No.h: Likewise.
11753         * lib/unictype/categ_P.h: Likewise.
11754         * lib/unictype/categ_Pc.h: Likewise.
11755         * lib/unictype/categ_Pd.h: Likewise.
11756         * lib/unictype/categ_Pe.h: Likewise.
11757         * lib/unictype/categ_Pf.h: Likewise.
11758         * lib/unictype/categ_Pi.h: Likewise.
11759         * lib/unictype/categ_Po.h: Likewise.
11760         * lib/unictype/categ_Ps.h: Likewise.
11761         * lib/unictype/categ_S.h: Likewise.
11762         * lib/unictype/categ_Sc.h: Likewise.
11763         * lib/unictype/categ_Sk.h: Likewise.
11764         * lib/unictype/categ_Sm.h: Likewise.
11765         * lib/unictype/categ_So.h: Likewise.
11766         * lib/unictype/categ_Z.h: Likewise.
11767         * lib/unictype/categ_Zl.h: Likewise.
11768         * lib/unictype/categ_Zp.h: Likewise.
11769         * lib/unictype/categ_Zs.h: Likewise.
11770         * lib/unictype/categ_of.h: Likewise.
11771         * lib/unictype/combining.h: Likewise.
11772         * lib/unictype/ctype_alnum.h: Likewise.
11773         * lib/unictype/ctype_alpha.h: Likewise.
11774         * lib/unictype/ctype_blank.h: Likewise.
11775         * lib/unictype/ctype_cntrl.h: Likewise.
11776         * lib/unictype/ctype_digit.h: Likewise.
11777         * lib/unictype/ctype_graph.h: Likewise.
11778         * lib/unictype/ctype_lower.h: Likewise.
11779         * lib/unictype/ctype_print.h: Likewise.
11780         * lib/unictype/ctype_punct.h: Likewise.
11781         * lib/unictype/ctype_space.h: Likewise.
11782         * lib/unictype/ctype_upper.h: Likewise.
11783         * lib/unictype/ctype_xdigit.h: Likewise.
11784         * lib/unictype/decdigit.h: Likewise.
11785         * lib/unictype/digit.h: Likewise.
11786         * lib/unictype/mirror.h: Likewise.
11787         * lib/unictype/numeric.h: Likewise.
11788         * lib/unictype/pr_alphabetic.h: Likewise.
11789         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11790         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11791         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11792         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11793         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11794         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11795         * lib/unictype/pr_bidi_control.h: Likewise.
11796         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11797         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11798         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11799         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11800         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11801         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11802         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11803         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11804         * lib/unictype/pr_bidi_pdf.h: Likewise.
11805         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11806         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11807         * lib/unictype/pr_combining.h: Likewise.
11808         * lib/unictype/pr_composite.h: Likewise.
11809         * lib/unictype/pr_currency_symbol.h: Likewise.
11810         * lib/unictype/pr_dash.h: Likewise.
11811         * lib/unictype/pr_decimal_digit.h: Likewise.
11812         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11813         * lib/unictype/pr_deprecated.h: Likewise.
11814         * lib/unictype/pr_diacritic.h: Likewise.
11815         * lib/unictype/pr_extender.h: Likewise.
11816         * lib/unictype/pr_format_control.h: Likewise.
11817         * lib/unictype/pr_grapheme_base.h: Likewise.
11818         * lib/unictype/pr_grapheme_extend.h: Likewise.
11819         * lib/unictype/pr_grapheme_link.h: Likewise.
11820         * lib/unictype/pr_hex_digit.h: Likewise.
11821         * lib/unictype/pr_hyphen.h: Likewise.
11822         * lib/unictype/pr_id_continue.h: Likewise.
11823         * lib/unictype/pr_id_start.h: Likewise.
11824         * lib/unictype/pr_ideographic.h: Likewise.
11825         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11826         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11827         * lib/unictype/pr_ignorable_control.h: Likewise.
11828         * lib/unictype/pr_iso_control.h: Likewise.
11829         * lib/unictype/pr_join_control.h: Likewise.
11830         * lib/unictype/pr_left_of_pair.h: Likewise.
11831         * lib/unictype/pr_line_separator.h: Likewise.
11832         * lib/unictype/pr_logical_order_exception.h: Likewise.
11833         * lib/unictype/pr_lowercase.h: Likewise.
11834         * lib/unictype/pr_math.h: Likewise.
11835         * lib/unictype/pr_non_break.h: Likewise.
11836         * lib/unictype/pr_not_a_character.h: Likewise.
11837         * lib/unictype/pr_numeric.h: Likewise.
11838         * lib/unictype/pr_other_alphabetic.h: Likewise.
11839         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11840         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11841         * lib/unictype/pr_other_id_continue.h: Likewise.
11842         * lib/unictype/pr_other_id_start.h: Likewise.
11843         * lib/unictype/pr_other_lowercase.h: Likewise.
11844         * lib/unictype/pr_other_math.h: Likewise.
11845         * lib/unictype/pr_other_uppercase.h: Likewise.
11846         * lib/unictype/pr_paired_punctuation.h: Likewise.
11847         * lib/unictype/pr_paragraph_separator.h: Likewise.
11848         * lib/unictype/pr_pattern_syntax.h: Likewise.
11849         * lib/unictype/pr_pattern_white_space.h: Likewise.
11850         * lib/unictype/pr_private_use.h: Likewise.
11851         * lib/unictype/pr_punctuation.h: Likewise.
11852         * lib/unictype/pr_quotation_mark.h: Likewise.
11853         * lib/unictype/pr_radical.h: Likewise.
11854         * lib/unictype/pr_sentence_terminal.h: Likewise.
11855         * lib/unictype/pr_soft_dotted.h: Likewise.
11856         * lib/unictype/pr_space.h: Likewise.
11857         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11858         * lib/unictype/pr_titlecase.h: Likewise.
11859         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11860         * lib/unictype/pr_unified_ideograph.h: Likewise.
11861         * lib/unictype/pr_uppercase.h: Likewise.
11862         * lib/unictype/pr_variation_selector.h: Likewise.
11863         * lib/unictype/pr_white_space.h: Likewise.
11864         * lib/unictype/pr_xid_continue.h: Likewise.
11865         * lib/unictype/pr_xid_start.h: Likewise.
11866         * lib/unictype/pr_zero_width.h: Likewise.
11867         * lib/unictype/scripts.h: Likewise.
11868         * lib/unictype/scripts_byname.gperf: Likewise.
11869         * lib/unictype/sy_c_ident.h: Likewise.
11870         * lib/unictype/sy_c_whitespace.h: Likewise.
11871         * lib/unictype/sy_java_ident.h: Likewise.
11872         * lib/unictype/sy_java_whitespace.h: Likewise.
11873
11874         * lib/unictype/Makefile: New file.
11875         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
11876         glibc.
11877         * lib/unictype/3level.h: New file, copied from glibc.
11878         * lib/unictype/3levelbit.h: New file.
11879
11880 2007-11-11  Bruno Haible  <bruno@clisp.org>
11881
11882         * modules/gperf: New file.
11883         * modules/iconv_open (Depends-on): Add it.
11884         (Makefile.am): Remove the GPERF definition.
11885
11886 2007-11-11  Bruno Haible  <bruno@clisp.org>
11887
11888         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
11889         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
11890
11891 2007-11-11  Bruno Haible  <bruno@clisp.org>
11892
11893         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
11894         (usage): Remove function.
11895
11896 2007-11-11  Bruno Haible  <bruno@clisp.org>
11897
11898         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
11899         gl_FUNC_CEILF_LIBS.
11900         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
11901         gl_FUNC_CEIL_LIBS.
11902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
11903         gl_FUNC_CEILL_LIBS.
11904         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
11905         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
11906         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
11907
11908 2007-11-11  Bruno Haible  <bruno@clisp.org>
11909
11910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
11911         roundf were declared but do not exist on functions.
11912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
11913         roundl were declared but do not exist on functions.
11914         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
11915         HAVE_FLOORL_AND_CEILL, respectively.
11916         Needed for Sun C on Solaris 10.
11917
11918 2007-11-11  Bruno Haible  <bruno@clisp.org>
11919
11920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
11921         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
11922         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
11923         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
11924         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
11925         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
11926         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
11927         HAVE_DECL_ROUNDF.
11928         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
11929         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
11930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
11931         of HAVE_DECL_ROUND*.
11932         * modules/math (Makefile.am): Update.
11933
11934 2007-11-10  Bruno Haible  <bruno@clisp.org>
11935
11936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
11937         ptrdiff_t as m4/intl.m4.
11938
11939 2007-11-10  Jim Meyering  <meyering@redhat.com>
11940
11941         Avoid link failure for the argmatch test.
11942         * tests/test-argmatch.c (usage): Define function to avoid a link
11943         failure: argmatch_die requires a usage function.
11944
11945 2007-11-09  Bruno Haible  <bruno@clisp.org>
11946
11947         * doc/functions/snprintf.texi: Mention BeOS deficiency.
11948         * doc/functions/vsnprintf.texi: Likewise.
11949         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
11950         with a size argument < 2.
11951
11952 2007-11-09  Bruno Haible  <bruno@clisp.org>
11953
11954         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
11955         buffer. Fixes an inefficiency introduced on 2007-11-03.
11956
11957 2007-11-09  Bruno Haible  <bruno@clisp.org>
11958
11959         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
11960         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
11961
11962 2007-11-08  Jim Meyering  <meyering@redhat.com>
11963
11964         Change cache variable name prefix "jm_" to "gl_" everywhere.
11965         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
11966         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
11967         * m4/uptime.m4: s/gl_/jm_/
11968
11969 2007-11-07  Bruno Haible  <bruno@clisp.org>
11970
11971         Update to GNU gettext 0.17.
11972         * m4/intl.m4: Update to GNU gettext 0.17.
11973         * m4/po.m4: Likewise.
11974         * modules/gettext (Files): Remove m4/ulonglong.m4.
11975         (configure.ac): Require gettext infrastructure from version 0.17.
11976
11977 2007-11-06  Bruno Haible  <bruno@clisp.org>
11978
11979         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
11980         symbolic values are not defined in a public header.
11981         * lib/freadable.c (freadable) [QNX]: Likewise.
11982         * lib/freadahead.c (freadahead) [QNX]: Likewise.
11983         * lib/freading.c (freading) [QNX]: Likewise.
11984         * lib/fseterr.c (fseterr) [QNX]: Likewise.
11985         * lib/fwritable.c (fwritable) [QNX]: Likewise.
11986         * lib/fwriting.c (fwriting) [QNX]: Likewise.
11987         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
11988         Reported by Alain Magloire.
11989
11990         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
11991
11992 2007-11-05  Bruno Haible  <bruno@clisp.org>
11993
11994         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
11995         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
11996         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
11997         Reported by Eric Blake.
11998
11999 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12000             Bruno Haible  <bruno@clisp.org>
12001
12002         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
12003         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
12004         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
12005         (malloc): Undefine also before including <stdlib.h>.
12006         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
12007         Needed on OSF/1 4.0.
12008
12009 2007-11-05  Jim Meyering  <meyering@redhat.com>
12010
12011         git-version-gen: sync from coreutils.
12012         * build-aux/git-version-gen: Add comments.
12013         Change the first '-' to '.' in the snapshot version string,
12014         e.g., 6.9-377-08144 -> 6.9.377-08144
12015         Remove first parameter.
12016         Don't declare a version "-dirty" merely because a time
12017         stamp has changed.
12018
12019 2007-11-04  Bruno Haible  <bruno@clisp.org>
12020
12021         * lib/lock.h: Protect all macro definitions containing an 'if'
12022         statement through a "do { ... } while (0)".
12023         * lib/tls.h: Likewise.
12024
12025 2007-11-04  Bruno Haible  <bruno@clisp.org>
12026
12027         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
12028
12029 2007-11-04  Bruno Haible  <bruno@clisp.org>
12030
12031         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
12032         * modules/fprintf-posix (Depends-on): Add nocrash.
12033         * modules/snprintf-posix (Depends-on): Likewise.
12034         * modules/sprintf-posix (Depends-on): Likewise.
12035         * modules/vasnprintf-posix (Depends-on): Likewise.
12036         * modules/vasprintf-posix (Depends-on): Likewise.
12037         * modules/vfprintf-posix (Depends-on): Likewise.
12038         * modules/vsnprintf-posix (Depends-on): Likewise.
12039         * modules/vsprintf-posix (Depends-on): Likewise.
12040         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12041         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12042         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12043         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12044         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12045         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12046         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12047
12048 2007-11-04  Bruno Haible  <bruno@clisp.org>
12049
12050         * modules/nocrash: New file.
12051         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
12052         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
12053
12054 2007-11-04  Bruno Haible  <bruno@clisp.org>
12055
12056         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
12057         precision handling.
12058         * tests/test-vasprintf-posix.c (test_function): Likewise.
12059         * tests/test-snprintf-posix.h (test_function): Likewise.
12060         * tests/test-sprintf-posix.h (test_function): Likewise.
12061
12062         Fix *printf behaviour for large precisions on mingw and BeOS.
12063         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
12064         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
12065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
12066         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12068         gl_PRINTF_PRECISION and test its result. Invoke
12069         gl_PREREQ_VASNPRINTF_PRECISION.
12070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12071         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12077         * doc/functions/fprintf.texi: Update.
12078         * doc/functions/printf.texi: Update.
12079         * doc/functions/snprintf.texi: Update.
12080         * doc/functions/sprintf.texi: Update.
12081         * doc/functions/vfprintf.texi: Update.
12082         * doc/functions/vprintf.texi: Update.
12083         * doc/functions/vsnprintf.texi: Update.
12084         * doc/functions/vsprintf.texi: Update.
12085
12086 2007-11-04  Bruno Haible  <bruno@clisp.org>
12087
12088         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
12089
12090 2007-11-04  Bruno Haible  <bruno@clisp.org>
12091
12092         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
12093         Reported by Sylvain Beucler <beuc@gnu.org>.
12094
12095 2007-11-03  Bruno Haible  <bruno@clisp.org>
12096
12097         * tests/test-fprintf-posix2.sh: New file.
12098         * tests/test-fprintf-posix2.c: New file.
12099         * modules/fprintf-posix-tests (Files): Add them.
12100         (TESTS): Add test-fprintf-posix2.sh.
12101         (configure.ac): Check for getrlimit and setrlimit.
12102         (check_PROGRAMS): Add test-fprintf-posix2.
12103
12104         * tests/test-printf-posix2.sh: New file.
12105         * tests/test-printf-posix2.c: New file.
12106         * modules/printf-posix-tests (Files): Add them.
12107         (TESTS): Add test-printf-posix2.sh.
12108         (configure.ac): Check for getrlimit and setrlimit.
12109         (check_PROGRAMS): Add test-printf-posix2.
12110
12111         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
12112         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
12113         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
12114         (decode_double): New function, copied from decode_long_double.
12115         (scale10_round_decimal_decoded): New function, extracted from
12116         scale10_round_decimal_long_double.
12117         (scale10_round_decimal_long_double): Use it.
12118         (scale10_round_decimal_double): New function.
12119         (floorlog10): New function.
12120         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
12121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
12122         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12124         gl_PRINTF_ENOMEM and test its result. Invoke
12125         gl_PREREQ_VASNPRINTF_ENOMEM.
12126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12133         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
12134         * modules/snprintf-posix (Depends-on): Likewise.
12135         * modules/sprintf-posix (Depends-on): Likewise.
12136         * modules/vasnprintf-posix (Depends-on): Likewise.
12137         * modules/vasprintf-posix (Depends-on): Likewise.
12138         * modules/vfprintf-posix (Depends-on): Likewise.
12139         * modules/vsnprintf-posix (Depends-on): Likewise.
12140         * modules/vsprintf-posix (Depends-on): Likewise.
12141         * doc/functions/fprintf.texi: Update.
12142         * doc/functions/printf.texi: Update.
12143         * doc/functions/snprintf.texi: Update.
12144         * doc/functions/sprintf.texi: Update.
12145         * doc/functions/vfprintf.texi: Update.
12146         * doc/functions/vprintf.texi: Update.
12147         * doc/functions/vsnprintf.texi: Update.
12148         * doc/functions/vsprintf.texi: Update.
12149
12150 2007-11-03  Bruno Haible  <bruno@clisp.org>
12151
12152         * modules/frexp-nolibm-tests: New file.
12153
12154         * modules/frexp-nolibm: New file.
12155         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
12156
12157 2007-11-03  Bruno Haible  <bruno@clisp.org>
12158
12159         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
12160         value is C99 compliant.
12161         Needed for OSF/1 5.1.
12162
12163 2007-11-03  Bruno Haible  <bruno@clisp.org>
12164
12165         Fix out-of-memory handling of vasnprintf.
12166         * lib/printf-parse.c: Include <errno.h>.
12167         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
12168         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
12169         is already set.
12170
12171 2007-11-02  Eric Blake  <ebb9@byu.net>
12172
12173         Fix tests on cygwin.
12174         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
12175
12176 2007-11-01  Bruno Haible  <bruno@clisp.org>
12177
12178         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
12179         warning.
12180         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
12181         needed for POSIX compatibility.
12182
12183 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12184
12185         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
12186         for compatibility with GNU.
12187
12188 2007-11-01  Bruno Haible  <bruno@clisp.org>
12189
12190         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
12191         (putenv): Renamed from rpl_putenv. Change argument type from
12192         'const char *' to 'char *'.
12193         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
12194         of defining putenv in config.h, just set REPLACE_PUTENV.
12195         * modules/putenv (Depends-on): Add stdlib.
12196         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12197         (Include): Use <stdlib.h>.
12198         * lib/stdlib.in.h (putenv): New declaration.
12199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
12200         REPLACE_PUTENV.
12201         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
12202         REPLACE_PUTENV.
12203         Needed for MacOS X 10.5.0.
12204         Reported by Peter O'Gorman <peter@pogma.com>.
12205
12206 2007-11-01  Jim Meyering  <meyering@redhat.com>
12207
12208         Treat an empty date string exactly like "0".
12209         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
12210         if the remaining date string (to be parsed) is empty, use "0".
12211         Reported by Mischa Molhoek and discussed in this thread:
12212         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
12213
12214 2007-10-31  Bruno Haible  <bruno@clisp.org>
12215
12216         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
12217         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
12218         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
12219         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
12220         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
12221         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
12222
12223 2007-10-31  Bruno Haible  <bruno@clisp.org>
12224
12225         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
12226         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
12227         (AC_TYPE_LONG_LONG_INT): Use it.
12228         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
12229         it as well.
12230         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
12231         to m4/longlong.m4.
12232         * modules/stdint (Files): Remove m4/ulonglong.m4.
12233         * modules/strtoull (Files): Use m4/longlong.m4 instead of
12234         m4/ulonglong.m4.
12235         * modules/strtoumax (Files): Likewise.
12236
12237 2007-10-30  Bruno Haible  <bruno@clisp.org>
12238
12239         * modules/xvasprintf-posix: New file.
12240         Suggested by Eric Blake.
12241
12242 2007-10-30  Bruno Haible  <bruno@clisp.org>
12243
12244         * modules/xprintf-posix-tests: New file.
12245         * tests/test-xprintf-posix.sh: New file.
12246         * tests/test-xprintf-posix.c: New file.
12247         * tests/test-xfprintf-posix.c: New file.
12248
12249         * modules/xprintf-posix: New file.
12250
12251 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12252
12253         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
12254         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
12255         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
12256
12257 2007-10-29  Bruno Haible  <bruno@clisp.org>
12258
12259         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
12260         contain the special marker '_cv_'.
12261         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12262         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12263         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12264         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12265         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12266         Reported by Ralf Wildenhues.
12267
12268 2007-10-29  Bruno Haible  <bruno@clisp.org>
12269
12270         * gnulib-tool (func_import): When --lgpl is not specified, set
12271         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
12272         GPLv3.
12273         Reported by Simon Josefsson.
12274
12275 2007-10-28  Bruno Haible  <bruno@clisp.org>
12276
12277         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
12278         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
12279         HAVE_DECL_ISFINITE.
12280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
12281         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
12282         HAVE_DECL_ISFINITE.
12283
12284 2007-10-28  Bruno Haible  <bruno@clisp.org>
12285
12286         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
12287         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
12288
12289 2007-10-28  Bruno Haible  <bruno@clisp.org>
12290
12291         Fix link errors with Sun C 5.0 on Solaris 10.
12292         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
12293         function is declared but not present in the compiler's libm.
12294         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12295         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12296         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
12297         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
12298         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
12299         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
12300         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
12301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
12302         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
12303         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
12304         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
12305         HAVE_DECL_FLOORL.
12306
12307 2007-10-28  Bruno Haible  <bruno@clisp.org>
12308
12309         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
12310         gl_FUNC_FLOORL. Cache the result.
12311         (gl_FUNC_FLOORL): Use it.
12312         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
12313         gl_FUNC_CEILL. Cache the result.
12314         (gl_FUNC_CEILL): Use it.
12315
12316         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
12317         gl_FUNC_FLOOR. Cache the result.
12318         (gl_FUNC_FLOOR): Use it.
12319         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
12320         gl_FUNC_CEIL. Cache the result.
12321         (gl_FUNC_CEIL): Use it.
12322
12323         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
12324         gl_FUNC_FLOORF. Cache the result.
12325         (gl_FUNC_FLOORF): Use it.
12326         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
12327         gl_FUNC_CEILF. Cache the result.
12328         (gl_FUNC_CEILF): Use it.
12329
12330 2007-10-28  Bruno Haible  <bruno@clisp.org>
12331
12332         * gnulib-tool: Allow specifying the LGPL version number through
12333         --lgpl=2 or --lgpl=3.
12334         (func_usage): Document --lgpl with argument.
12335         Handle --lgpl=... arguments.
12336         (func_import): Recognize also gl_LGPL calls with an argument. When
12337         --lgpl=2 is used and the module's license is just LGPL, report an
12338         error. Set sed_transform_lib_file according to the lgpl variable. In
12339         the generated files, use --lgpl or gl_LGPL invocations with argument,
12340         if necessary.
12341         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
12342         an LGPv2+ license.
12343         * doc/gnulib-tool.texi (Modified imports): Update explanation of
12344         gl_LGPL macro.
12345
12346 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12347             Bruno Haible  <bruno@clisp.org>
12348
12349         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
12350         (u16_uctomb_aux): Likewise.
12351         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
12352         !HAVE_INLINE.
12353         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
12354
12355 2007-10-28  Bruno Haible  <bruno@clisp.org>
12356
12357         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
12358         Invoke AM_GETTEXT_OPTION if it exists.
12359         * modules/vasprintf: Likewise.
12360         * modules/verror: Likewise.
12361         * modules/xprintf: Likewise.
12362         * modules/xvasprintf: Likewise.
12363
12364 2007-10-27  Ben Pfaff  <blp@gnu.org>
12365
12366         * lib/math.in.h: Define isfinite macro and prototypes for
12367         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
12368         implementations.
12369         * m4/math_h.m4: New substitutions for isfinite module.
12370         * lib/isfinite.c: New file.
12371         * m4/isfinite.m4: New file.
12372         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
12373         * modules/isfinite: New file.
12374         * modules/isfinite-tests: New file.
12375         * tests/tests-isfinite.c: New file.
12376         * doc/functions/isfinite.texi: Mention isfinite module.
12377         * MODULES.html.sh: Mention new module.
12378
12379 2007-10-27  Ben Pfaff  <blp@gnu.org>
12380
12381         Ralf Wildenhues reported that Tru64 4.0D declares the round
12382         functions but does not have definitions.
12383         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
12384         cannot be found in any library, set the output variable to
12385         "missing" instead of "".
12386         * m4/round.m4: Also use our substitute if we cannot find round in
12387         any library, even if it is declared.
12388         * m4/roundf.m4: Likewise for roundf.
12389         * m4/roundl.m4: Likewise for roundl.
12390         * lib/math.in.h: Undefine roundf, round, roundl before defining
12391         their replacements, to allow for hypothetical systems where these
12392         may be defined as macros but not available in libraries.
12393
12394 2007-10-27  Bruno Haible  <bruno@clisp.org>
12395
12396         * doc/gnulib.texi: Invoke @firstparagraphindent.
12397         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
12398         changes in gnulib.
12399         (Source changes): New section.
12400
12401 2007-10-26  Bruno Haible  <bruno@clisp.org>
12402
12403         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
12404         borrowed from autoconf.
12405
12406 2007-10-26  Bruno Haible  <bruno@clisp.org>
12407
12408         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
12409         strerror returned the empty string. Needed on HP-UX 11.00.
12410
12411 2007-10-24  Micah Cowan  <micah@cowan.name>
12412
12413         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
12414         * build-aux/bootstrap: Remove support for now-unnecessary option,
12415         --cvs-user, and envvars CVS_USER, CVS_RSH.
12416
12417 2007-10-24  Jim Meyering  <meyering@redhat.com>
12418
12419         Avoid diagnostics from sha1sum when there is no cached checksum.
12420         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
12421         if the po.s1 file hasn't been created yet.
12422
12423         * build-aux/bootstrap: Sync from coreutils:
12424         2007-10-24  Jim Meyering  <meyering@redhat.com>
12425         Get gnulib from the git repository, not from an obsolete cvs one.
12426         * build-aux/bootstrap: Suggestion from Micah Cowan.
12427         2007-10-04  Jim Meyering  <jim@meyering.net>
12428         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
12429         (update_po_files): Work also when there are no .po files in po/.
12430
12431 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12432
12433         * README: Append ".git" to git and cg examples.
12434         Problem reported by Benoit Sigoure.
12435
12436 2007-10-23  Micah Cowan  <micah@cowan.name>
12437
12438         * users.txt: Add wget.
12439
12440 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12441
12442         Fix linking of some unistdio tests on FreeBSD.
12443         * modules/unistdio/u16-vsnprintf-tests
12444         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
12445         * modules/unistdio/u16-vsprintf-tests
12446         (test_u16_vsnprintf1_LDADD): Likewise.
12447         * modules/unistdio/u32-vsnprintf-tests
12448         (test_u32_vsnprintf1_LDADD): Likewise.
12449         * modules/unistdio/u32-vsprintf-tests
12450         (test_u32_vsprintf1_LDADD): Likewise.
12451         * modules/unistdio/u8-vsnprintf-tests
12452         (test_u8_vsnprintf1_LDADD): Likewise.
12453         * modules/unistdio/u8-vsprintf-tests
12454         (test_u8_vsprintf1_LDADD): Likewise.
12455         * modules/unistdio/ulc-vsnprintf-tests
12456         (test_ulc_vsnprintf1_LDADD): Likewise.
12457         * modules/unistdio/ulc-vsprintf-tests
12458         (test_ulc_vsprintf1_LDADD): Likewise.
12459
12460         Fix linking of some uniconv tests on FreeBSD.
12461         * modules/uniconv/u16-conv-from-enc-tests
12462         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
12463         * modules/uniconv/u16-conv-to-enc-tests
12464         (test_u16_conv_to_enc_LDADD): Likewise.
12465         * modules/uniconv/u16-strconv-from-enc-tests
12466         (test_u16_strconv_from_enc_LDADD): Likewise.
12467         * modules/uniconv/u16-strconv-to-enc-tests
12468         (test_u16_strconv_to_enc_LDADD): Likewise.
12469         * modules/uniconv/u32-conv-from-enc-tests
12470         (test_u32_conv_from_enc_LDADD): Likewise.
12471         * modules/uniconv/u32-conv-to-enc-tests
12472         (test_u32_conv_to_enc_LDADD): Likewise.
12473         * modules/uniconv/u32-strconv-from-enc-tests
12474         (test_u32_strconv_from_enc_LDADD): Likewise.
12475         * modules/uniconv/u32-strconv-to-enc-tests
12476         (test_u32_strconv_to_enc_LDADD): Likewise.
12477         * modules/uniconv/u8-conv-from-enc-tests
12478         (test_u8_conv_from_enc_LDADD): Likewise.
12479         * modules/uniconv/u8-conv-to-enc-tests
12480         (test_u8_conv_to_enc_LDADD): Likewise.
12481         * modules/uniconv/u8-strconv-from-enc-tests
12482         (test_u8_strconv_from_enc_LDADD): Likewise.
12483         * modules/uniconv/u8-strconv-to-enc-tests
12484         (test_u8_strconv_to_enc_LDADD): Likewise.
12485
12486 2007-10-22  Bruno Haible  <bruno@clisp.org>
12487
12488         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
12489         size.
12490
12491 2007-10-22  Eric Blake  <ebb9@byu.net>
12492
12493         Tweak x*printf documentation.
12494         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
12495         variable name and comments.
12496         Suggested by Bruno Haible.
12497
12498 2007-10-22  Bruno Haible  <bruno@clisp.org>
12499
12500         * lib/acl.c (copy_acl): Fix file name in comment.
12501
12502 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
12503
12504         Fix Tru64 problem with stdbool.h.
12505         * lib/stdbool.in.h (false, true):
12506         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
12507         Don't declare as an enum in this situation; it runs afoul of Tru64.
12508         Problem reported by Steven M. Schweda in
12509         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
12510
12511 2007-10-22  Eric Blake  <ebb9@byu.net>
12512
12513         Also wrap vf?printf.
12514         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
12515         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
12516         (xvprintf, xvfprintf): New functions.
12517
12518 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12519
12520         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
12521         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
12522
12523         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
12524         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
12525
12526 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
12527
12528         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
12529         by Bruno Haible.
12530
12531 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12532
12533         * lib/getloadavg.c
12534         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
12535         Undef `sys' after including sys/table.h, for Tru64 4.0D.
12536
12537         * tests/test-i-ring.c: Work for C89.
12538
12539 2007-10-22  Bruno Haible  <bruno@clisp.org>
12540
12541         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
12542         -1u, in preprocessor expression, so that we don't test for the bug
12543         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
12544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
12545
12546 2007-10-22  Eric Blake  <ebb9@byu.net>
12547
12548         * tests/test-yesno.sh: Silence stderr during test.
12549
12550 2007-10-22  Simon Josefsson  <simon@josefsson.org>
12551
12552         * modules/crypto/gc-camellia: New file.
12553
12554         * m4/gc-camellia.m4: New file.
12555
12556         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
12557
12558         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
12559
12560 2007-10-22  Simon Josefsson  <simon@josefsson.org>
12561
12562         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
12563         --help to stdout.  Reported by sms@antinode.org (Steven
12564         M. Schweda).
12565
12566 2007-10-22  Simon Josefsson  <simon@josefsson.org>
12567
12568         * users.txt: Fix link to libksba.
12569
12570 2007-10-21  Ben Pfaff  <blp@gnu.org>
12571
12572         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
12573         round.c roundf implementation that depends on floorf and ceilf to
12574         be tested unconditionally.
12575
12576 2007-10-21  Ben Pfaff  <blp@gnu.org>
12577
12578         * m4/check-libm-func.m4: Removed.
12579         * m4/check-math-lib.m4: New file.
12580         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
12581         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
12582         definition and lack of AC_LIBOBJ([roundf]).
12583         * m4/roundl.m4: Ditto, and similarly for roundl.
12584         * modules/round: Reference new m4 file.
12585         * modules/roundf: Ditto.
12586         * modules/roundl: Ditto.
12587         * tests/test-round2.c (main): Use ROUND instead of round.
12588         Bug report from Bruno Haible.
12589
12590 2007-10-21  Bruno Haible  <bruno@clisp.org>
12591
12592         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
12593         context.
12594
12595 2007-10-21  Bruno Haible  <bruno@clisp.org>
12596
12597         * tests/test-wcwidth.c (main): Allow negative result for some control
12598         characters.
12599
12600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
12601         Needed on OSF/1 5.1.
12602
12603 2007-10-21  Bruno Haible  <bruno@clisp.org>
12604
12605         * tests/test-floorf1.c: Include isnanf.h.
12606         (main): Use isnanf() instead of isnan().
12607         * tests/test-ceilf1.c: Include isnanf.h.
12608         (main): Use isnanf() instead of isnan().
12609         * tests/test-truncf1.c: Include isnanf.h.
12610         (main): Use isnanf() instead of isnan().
12611         * tests/test-roundf1.c: Include isnanf.h.
12612         (main): Use isnanf() instead of isnan().
12613
12614 2007-10-21  Eric Blake  <ebb9@byu.net>
12615
12616         * users.txt: Update URL for m4.
12617
12618 2007-10-21  Bruno Haible  <bruno@clisp.org>
12619
12620         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
12621
12622 2007-10-21  Bruno Haible  <bruno@clisp.org>
12623
12624         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
12625         Git's management files if the CVS files are not present.
12626
12627 2007-10-20  Bruno Haible  <bruno@clisp.org>
12628
12629         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
12630         gcc-3.4.x.
12631
12632 2007-10-20  Ben Pfaff  <blp@gnu.org>
12633
12634         * lib/math.in.h: Declare round, roundf, roundl if we are providing
12635         implementations.
12636         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
12637         * lib/round.c: New file.
12638         * lib/roundf.c: New file.
12639         * lib/roundl.c: New file.
12640         * m4/round.m4: New file.
12641         * m4/roundf.m4: New file.
12642         * m4/roundl.m4: New file.
12643         * m4/check-libm-func-m4: New file.
12644         * modules/math: Replace round, roundf, roundl related @VARS@ in
12645         math.in.h.
12646         * modules/round: New file.
12647         * modules/round-tests: New file.
12648         * modules/roundf: New file.
12649         * modules/roundf-tests: New file.
12650         * modules/roundl: New file.
12651         * modules/roundl-tests: New file.
12652         * tests/test-round1.c: New file.
12653         * tests/test-round2.c: New file.
12654         * tests/test-roundf1.c: New file.
12655         * tests/test-roundf2.c: New file.
12656         * tests/test-roundl.c: New file.
12657         * doc/functions/round.texi: Mention round module.
12658         * doc/functions/roundf.texi: Mention roundf module.
12659         * doc/functions/roundl.texi: Mention roundl module.
12660         * MODULES.html.sh: Mention new modules.
12661         Thanks to Bruno Haible for suggestions.
12662
12663 2007-10-20  Jim Meyering  <meyering@redhat.com>
12664
12665         * lib/xprintf.c: Include <config.h> unconditionally.
12666
12667         Change xprintf's license to GPL.
12668         * modules/xprintf (License): s/LGPL/GPL/, since this module
12669         depends on modules (exit and exitfail) which are GPL.
12670         Suggestion from Bruno Haible.
12671
12672         xprintf fixes.
12673         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
12674         Use a clearer diagnostic.
12675         Patch from Bruno Haible.
12676
12677 2007-10-20  Bruno Haible  <bruno@clisp.org>
12678
12679         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
12680         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
12681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12682
12683 2007-10-20  Bruno Haible  <bruno@clisp.org>
12684
12685         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
12686         precision in the comparison result > x - 1 or similar.
12687         * tests/test-ceilf2.c (correct_result_p): Likewise.
12688         * tests/test-truncf2.c (correct_result_p): Likewise.
12689         * tests/test-trunc2.c (correct_result_p): Likewise.
12690         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12691
12692 2007-10-20  Bruno Haible  <bruno@clisp.org>
12693
12694         * modules/ceil: New file.
12695         * m4/ceil.m4: New file.
12696         * doc/functions/ceil.texi: Mention the 'ceil' module.
12697
12698 2007-10-20  Bruno Haible  <bruno@clisp.org>
12699
12700         * modules/floor: New file.
12701         * m4/floor.m4: New file.
12702         * doc/functions/floor.texi: Mention the 'floor' module.
12703
12704 2007-10-20  Bruno Haible  <bruno@clisp.org>
12705
12706         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
12707         of %a.
12708         * modules/floorf-tests (Depends-on): Likewise.
12709         * modules/truncf-tests (Depends-on): Likewise.
12710         * modules/trunc-tests (Depends-on): Likewise.
12711         Reported by Ben Pfaff.
12712
12713 2007-10-19  Jim Meyering  <meyering@redhat.com>
12714
12715         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
12716         Don't bother testing specific errno values.  Just test ferror.
12717
12718         New module: xprintf
12719         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
12720
12721 2007-10-19  Bruno Haible  <bruno@clisp.org>
12722
12723         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
12724         syntax.
12725         * modules/javaexec (Makefile.am): Likewise.
12726         * modules/relocatable-prog (Makefile.am): Likewise.
12727         Suggested by Jim Meyering.
12728
12729 2007-10-18  Bruno Haible  <bruno@clisp.org>
12730
12731         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
12732         Reported by Jim Meyering.
12733
12734 2007-10-18  Eric Blake  <ebb9@byu.net>
12735
12736         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
12737
12738 2007-10-18  Bruno Haible  <bruno@clisp.org>
12739
12740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
12741         the format string into writable memory. Needed in Fortify conditions.
12742
12743 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
12744             Bruno Haible  <bruno@clisp.org>
12745
12746         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
12747         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
12748         * modules/trim (Depends-on): Add mbchar.
12749         (configure.ac): Add gl_FUNC_MBRTOWC.
12750         (Makefile.am): Augment lib_SOURCES.
12751
12752 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
12753
12754         Modify glob.c to use fstatat and dirfd, to simplify it.
12755         Suggested by Eric Blake.
12756         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
12757         Don't include <stdbool.h>; not used.
12758         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
12759         (link_exists_p): Simplify implementation, since we can now assume
12760         dirfd and fstatat.
12761         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
12762
12763 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12764
12765         * gnulib-tool (func_get_dependencies): Fix sed script to
12766         match only tests.
12767
12768 2007-10-17  Bruno Haible  <bruno@clisp.org>
12769
12770         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
12771         allow locale names without encoding suffix.
12772         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12774
12775 2007-10-16  Bruno Haible  <bruno@clisp.org>
12776
12777         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
12778         * lib/getgroups.c (getgroups): Likewise.
12779         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
12780
12781 2007-10-16  Bruno Haible  <bruno@clisp.org>
12782
12783         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
12784         * modules/malloc-posix (License): Likewise.
12785         * modules/realloc-posix (License): Likewise.
12786         * modules/calloc-posix (License): Likewise.
12787         * modules/intprops (License): Change from GPL to LGPL, with
12788         Paul Eggert's approval.
12789
12790 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12791
12792         Merge glibc changes into lib/glob.c.
12793
12794         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
12795         2007-10-15 04:59:03 UTC.  Here are the changes:
12796
12797         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
12798
12799         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
12800
12801         * lib/glob.c: Add some branch prediction throughout.
12802
12803         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
12804
12805         [BZ #5103]
12806         * lib/glob.c (glob): Recognize patterns starting \/.
12807
12808         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12809
12810         [BZ #3996]
12811         * lib/glob.c (attribute_hidden): Define if not defined.
12812         (glob): Unescape dirname, filename or username when needed and not
12813         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12814         is NULL.  Handle unescaped [ in pattern without closing ].
12815         Don't pass GLOB_CHECK down to recursive glob for directories.
12816         (__glob_pattern_type): New function.
12817         (__glob_pattern_p): Implement using __glob_pattern_type.
12818         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12819         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12820         Remove unreachable code.
12821
12822         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12823
12824         * lib/glob.c (glob_in_dir): Add some comments and asserts to
12825         explain why there are no leaks.
12826
12827         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12828
12829         [BZ #3253]
12830         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12831         time, rather allocate increasingly bigger arrays of pointers, if
12832         possible with alloca, if too large with malloc.
12833
12834 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12835
12836         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
12837         Problem reported by H.Merijn Brand in
12838         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
12839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
12840         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
12841
12842 2007-10-15  Bruno Haible  <bruno@clisp.org>
12843
12844         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
12845         with explicit rpl_ prefix.
12846         * lib/fopen.c (fopen): Likewise.
12847         * lib/freopen.c (freopen): Likewise.
12848         * lib/iconv.c (iconv): Likewise.
12849         * lib/iconv_close.c (iconv_close): Likewise.
12850
12851 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12852
12853         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
12854
12855 2007-10-15  Bruno Haible  <bruno@clisp.org>
12856
12857         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
12858         <stddef.h> instead of <stdlib.h> since we only need NULL.
12859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12860
12861 2007-10-15  Bruno Haible  <bruno@clisp.org>
12862
12863         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
12864         Replace paragraph talking about LIBOBJS.
12865         Reported by Colin Watson <cjwatson@debian.org>.
12866
12867 2007-10-15  Bruno Haible  <bruno@clisp.org>
12868
12869         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
12870         <stdlib.h> before using NULL.
12871
12872 2007-10-15  Simon Josefsson  <simon@josefsson.org>
12873
12874         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
12875         Reported by Albert Chin <china@thewrittenword.com>.
12876
12877 2007-10-14  Bruno Haible  <bruno@clisp.org>
12878
12879         * modules/iconv_open-utf-tests: New file.
12880         * tests/test-iconv-utf.c: New file.
12881
12882         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
12883         * modules/iconv_open-utf: New file.
12884         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
12885         (iconv, iconv_close): New declarations.
12886         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
12887         be defined.
12888         (iconv_open): Add special handling of conversion between UTF-8 and
12889         UTF-{16,32}{BE,LE}.
12890         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
12891         * lib/iconv_close.c: New file.
12892         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
12893         gl_FUNC_ICONV_OPEN.
12894         (gl_FUNC_ICONV_OPEN): Use it.
12895         (gl_FUNC_ICONV_OPEN_UTF): New macro.
12896         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
12897         and REPLACE_ICONV_UTF.
12898         * modules/iconv_open (Depends-on): Add c-strcase.
12899         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
12900         ICONV_CONST.
12901         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
12902
12903 2007-10-13  Albert Chin  <china@thewrittenword.com>
12904             Bruno Haible  <bruno@clisp.org>
12905
12906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
12907         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
12908
12909 2007-10-13  Bruno Haible  <bruno@clisp.org>
12910
12911         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
12912         defined, use the ISO C99 inline semantics.
12913         * lib/argp.h (ARGP_EI): Likewise.
12914
12915 2007-10-13  Bruno Haible  <bruno@clisp.org>
12916
12917         Handle 'inline' change in gcc 4.3.0.
12918         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
12919         argp_fmtstream_write, argp_fmtstream_set_lmargin,
12920         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
12921         argp_fmtstream_point): Disable 'extern' declaration if the function
12922         definition is going to be provided inline.
12923         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
12924         semantics, not the ISO C99 inline semantics.
12925         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
12926         'extern' declaration if the function definition is going to be provided
12927         inline.
12928         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
12929         the GNU C inline semantics, not the ISO C99 inline semantics. With
12930         GCC 4.2, avoid a warning.
12931
12932 2007-10-13  Bruno Haible  <bruno@clisp.org>
12933
12934         * lib/freading.h (freading): Enable the use of __freading for
12935         glibc >= 2.7.
12936         * lib/freading.c (freading): Likewise.
12937
12938 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12939
12940         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
12941         "warning: C99 inline functions are not supported; using GNU89".
12942
12943 2007-10-12  Bruno Haible  <bruno@clisp.org>
12944
12945         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
12946         of 2.
12947         * tests/test-ceilf2.c: New file.
12948         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
12949
12950         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
12951         * modules/ceilf-tests: Update.
12952
12953 2007-10-12  Bruno Haible  <bruno@clisp.org>
12954
12955         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
12956         of 2.
12957         * tests/test-floorf2.c: New file.
12958         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
12959
12960         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
12961         * modules/floorf-tests: Update.
12962
12963 2007-10-12  Bruno Haible  <bruno@clisp.org>
12964
12965         * tests/test-trunc2.c: New file.
12966         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
12967
12968         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
12969         * modules/trunc-tests: Update.
12970
12971 2007-10-12  Bruno Haible  <bruno@clisp.org>
12972
12973         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
12974         of 2.
12975         * tests/test-truncf2.c: New file.
12976         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
12977
12978         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
12979         * modules/truncf-tests: Update.
12980
12981 2007-10-11  Eric Blake  <ebb9@byu.net>
12982
12983         Don't claim strerror is broken on Interix.
12984         * doc/functions/strerror.texi (strerror): Known broken systems are
12985         now Solaris 8, and not Interix.
12986         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
12987         Interix on cross-compile.
12988         Reported by Martin Koeppe in
12989         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
12990
12991 2007-10-11  Bruno Haible  <bruno@clisp.org>
12992
12993         * modules/i-ring-tests: New file.
12994         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
12995         instead of assert.
12996
12997 2007-10-11  Bruno Haible  <bruno@clisp.org>
12998
12999         * modules/filenamecat-tests: New file.
13000         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
13001         * lib/filenamecat.c: Remove test code.
13002
13003 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13004
13005         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
13006
13007         * lib/strerror.c: Include <string.h> always, to test interface,
13008         and to remove the need for the dummy.
13009         Include intprops.h to compute width instead of doing it ourselves
13010         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
13011         (strerror): Define it to return NULL if there's no system strerror.
13012         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
13013         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
13014         ancient pre-strerror Unix systems well any more.  Saying "unknown
13015         system error" is enough.
13016         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
13017         simpler strerror.c implementation.
13018         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
13019         Simplify the tests to reflect the simpler strerror implementation.
13020         * modules/strerror (Depends-on): Add intprops.
13021
13022 2007-10-09  Eric Blake  <ebb9@byu.net>
13023
13024         Silence test-fpending.
13025         * modules/fpending-tests (Files): Add wrapper script.
13026         * tests/test-fpending.sh: New file.
13027
13028 2007-10-09  Bruno Haible  <bruno@clisp.org>
13029
13030         * MODULES.html.sh (func_module): Don't create a hyperlink for
13031         function names like 'printf_frexp'.
13032         (Misc): Add crc, memxor.
13033         (Characteristics of floating types): New section.
13034         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
13035         isnanf-nolibm, signbit, trunc, truncf, truncl.
13036         (Enhancements for ISO C 99 functions): New subsection Input/output.
13037         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
13038         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
13039         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
13040         (Compatibility checks for POSIX:2001 functions): Add clock-time.
13041         (Enhancements for POSIX:2001 functions): Add chdir-long.
13042         (File system functions): Add areadlink, chdir-safer, read-file.
13043         Remove cycle-check.
13044         (File system as inode set): New section.
13045         (Date and time): Add gethrxtime.
13046         (Multithreading): Add openmp.
13047         (Internationalization functions): Add localename.
13048         (Unicode string functions): Add unistr/u*-mbsnlen.
13049         (Support for maintaining and releasing projects): Add git-version-gen.
13050         (Lone files): Remove directories.
13051
13052 2007-10-08  Ben Pfaff  <blp@gnu.org>
13053
13054         * lib/xmalloca.h: Fix typo in comment.
13055
13056 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
13059         when avoiding problems with integer overflow.  Use a portable test
13060         instead.
13061
13062 2007-10-08  Simon Josefsson  <simon@josefsson.org>
13063
13064         * modules/dummy (License): Change to LGPLv2+.
13065         * modules/float (License): Likewise
13066         * modules/realloc (License): Likewise
13067         * modules/stdlib (License): Likewise
13068
13069 2007-10-07  Bruno Haible  <bruno@clisp.org>
13070
13071         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
13072         * floor.c (TWO_MANT_DIG): Likewise.
13073         * ceil.c (TWO_MANT_DIG): Likewise.
13074         Reported by Ben Pfaff.
13075
13076 2007-10-07  Bruno Haible  <bruno@clisp.org>
13077
13078         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
13079         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
13080         * lib/frexp.c (FUNC): Likewise.
13081         * lib/printf-frexp.h (printf_frexp): Likewise.
13082         * lib/printf-frexpl.h (printf_frexpl): Likewise.
13083         * lib/printf-frexp.c (FUNC): Likewise.
13084         Suggested by Jim Meyering.
13085
13086 2007-10-07  Jim Meyering  <meyering@redhat.com>
13087
13088         Make xnanosleep's integer overflow test more robust.
13089         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
13090         so that gcc-4.3.0 doesn't optimize away this test for overflow.
13091
13092 2007-10-07  Bruno Haible  <bruno@clisp.org>
13093
13094         * NEWS: Mention the license change.
13095
13096         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
13097         abbreviations in the modules files.
13098
13099         Change copyright notice from GPLv2+ to GPLv3+.
13100         * README: Change copyright notice.
13101         * MODULES.html.sh: Likewise.
13102         * build-aux/bootstrap.conf: Likewise.
13103         * build-aux/config.libpath: Likewise.
13104         * build-aux/csharpcomp.sh.in: Likewise.
13105         * build-aux/csharpexec.sh.in: Likewise.
13106         * build-aux/install-reloc: Likewise.
13107         * build-aux/javacomp.sh.in: Likewise.
13108         * build-aux/javaexec.sh.in: Likewise.
13109         * build-aux/ldd.sh.in: Likewise.
13110         * build-aux/reloc-ldflags: Likewise.
13111         * build-aux/relocatable.sh.in: Likewise.
13112         * build-aux/x-to-1.in: Likewise.
13113         * check-module: Likewise.
13114         * config/srclistvars.sh: Likewise.
13115         * gnulib-tool: Likewise.
13116         * lib/acl-internal.h: Likewise.
13117         * lib/acl.c: Likewise.
13118         * lib/acl.h: Likewise.
13119         * lib/acl_entries.c: Likewise.
13120         * lib/areadlink-with-size.c: Likewise.
13121         * lib/areadlink.c: Likewise.
13122         * lib/areadlink.h: Likewise.
13123         * lib/argmatch.c: Likewise.
13124         * lib/argmatch.h: Likewise.
13125         * lib/argp-ba.c: Likewise.
13126         * lib/argp-eexst.c: Likewise.
13127         * lib/argp-fmtstream.c: Likewise.
13128         * lib/argp-fmtstream.h: Likewise.
13129         * lib/argp-fs-xinl.c: Likewise.
13130         * lib/argp-help.c: Likewise.
13131         * lib/argp-namefrob.h: Likewise.
13132         * lib/argp-parse.c: Likewise.
13133         * lib/argp-pin.c: Likewise.
13134         * lib/argp-pv.c: Likewise.
13135         * lib/argp-pvh.c: Likewise.
13136         * lib/argp-xinl.c: Likewise.
13137         * lib/argp.h: Likewise.
13138         * lib/at-func.c: Likewise.
13139         * lib/atanl.c: Likewise.
13140         * lib/backupfile.c: Likewise.
13141         * lib/backupfile.h: Likewise.
13142         * lib/basename.c: Likewise.
13143         * lib/binary-io.h: Likewise.
13144         * lib/byteswap.in.h: Likewise.
13145         * lib/c-stack.c: Likewise.
13146         * lib/c-stack.h: Likewise.
13147         * lib/c-strcasestr.c: Likewise.
13148         * lib/c-strcasestr.h: Likewise.
13149         * lib/c-strstr.c: Likewise.
13150         * lib/c-strstr.h: Likewise.
13151         * lib/c-strtod.c: Likewise.
13152         * lib/calloc.c: Likewise.
13153         * lib/canon-host.c: Likewise.
13154         * lib/canon-host.h: Likewise.
13155         * lib/canonicalize-lgpl.c: Likewise.
13156         * lib/canonicalize.c: Likewise.
13157         * lib/canonicalize.h: Likewise.
13158         * lib/ceil.c: Likewise.
13159         * lib/ceilf.c: Likewise.
13160         * lib/ceill.c: Likewise.
13161         * lib/chdir-long.c: Likewise.
13162         * lib/chdir-long.h: Likewise.
13163         * lib/chdir-safer.c: Likewise.
13164         * lib/chdir-safer.h: Likewise.
13165         * lib/chown.c: Likewise.
13166         * lib/classpath.c: Likewise.
13167         * lib/classpath.h: Likewise.
13168         * lib/clean-temp.c: Likewise.
13169         * lib/clean-temp.h: Likewise.
13170         * lib/cloexec.c: Likewise.
13171         * lib/close-stream.c: Likewise.
13172         * lib/closein.c: Likewise.
13173         * lib/closein.h: Likewise.
13174         * lib/closeout.c: Likewise.
13175         * lib/closeout.h: Likewise.
13176         * lib/concat-filename.c: Likewise.
13177         * lib/copy-file.c: Likewise.
13178         * lib/copy-file.h: Likewise.
13179         * lib/count-one-bits.h: Likewise.
13180         * lib/crc.c: Likewise.
13181         * lib/crc.h: Likewise.
13182         * lib/creat-safer.c: Likewise.
13183         * lib/csharpcomp.c: Likewise.
13184         * lib/csharpcomp.h: Likewise.
13185         * lib/csharpexec.c: Likewise.
13186         * lib/csharpexec.h: Likewise.
13187         * lib/cycle-check.c: Likewise.
13188         * lib/cycle-check.h: Likewise.
13189         * lib/diacrit.c: Likewise.
13190         * lib/diacrit.h: Likewise.
13191         * lib/diffseq.h: Likewise.
13192         * lib/dirchownmod.c: Likewise.
13193         * lib/dirent.in.h: Likewise.
13194         * lib/dirfd.c: Likewise.
13195         * lib/dirfd.h: Likewise.
13196         * lib/dirname.c: Likewise.
13197         * lib/dirname.h: Likewise.
13198         * lib/dummy.c: Likewise.
13199         * lib/dup-safer.c: Likewise.
13200         * lib/dup2.c: Likewise.
13201         * lib/eealloc.h: Likewise.
13202         * lib/error.c: Likewise.
13203         * lib/error.h: Likewise.
13204         * lib/euidaccess.c: Likewise.
13205         * lib/exclude.c: Likewise.
13206         * lib/exclude.h: Likewise.
13207         * lib/execute.c: Likewise.
13208         * lib/execute.h: Likewise.
13209         * lib/exitfail.c: Likewise.
13210         * lib/exitfail.h: Likewise.
13211         * lib/expl.c: Likewise.
13212         * lib/fatal-signal.c: Likewise.
13213         * lib/fatal-signal.h: Likewise.
13214         * lib/fbufmode.c: Likewise.
13215         * lib/fbufmode.h: Likewise.
13216         * lib/fchdir.c: Likewise.
13217         * lib/fchmodat.c: Likewise.
13218         * lib/fchownat.c: Likewise.
13219         * lib/fcntl--.h: Likewise.
13220         * lib/fcntl-safer.h: Likewise.
13221         * lib/fcntl.in.h: Likewise.
13222         * lib/fd-safer.c: Likewise.
13223         * lib/fflush.c: Likewise.
13224         * lib/file-has-acl.c: Likewise.
13225         * lib/file-set.c: Likewise.
13226         * lib/file-type.c: Likewise.
13227         * lib/file-type.h: Likewise.
13228         * lib/fileblocks.c: Likewise.
13229         * lib/filemode.c: Likewise.
13230         * lib/filemode.h: Likewise.
13231         * lib/filename.h: Likewise.
13232         * lib/filenamecat.c: Likewise.
13233         * lib/filenamecat.h: Likewise.
13234         * lib/findprog.c: Likewise.
13235         * lib/findprog.h: Likewise.
13236         * lib/float.in.h: Likewise.
13237         * lib/floor.c: Likewise.
13238         * lib/floorf.c: Likewise.
13239         * lib/floorl.c: Likewise.
13240         * lib/fopen-safer.c: Likewise.
13241         * lib/fopen.c: Likewise.
13242         * lib/fpending.c: Likewise.
13243         * lib/fpending.h: Likewise.
13244         * lib/fprintf.c: Likewise.
13245         * lib/fprintftime.h: Likewise.
13246         * lib/fpucw.h: Likewise.
13247         * lib/fpurge.c: Likewise.
13248         * lib/fpurge.h: Likewise.
13249         * lib/freadable.c: Likewise.
13250         * lib/freadable.h: Likewise.
13251         * lib/freadahead.c: Likewise.
13252         * lib/freadahead.h: Likewise.
13253         * lib/freading.c: Likewise.
13254         * lib/freading.h: Likewise.
13255         * lib/free.c: Likewise.
13256         * lib/freopen.c: Likewise.
13257         * lib/frexp.c: Likewise.
13258         * lib/frexpl.c: Likewise.
13259         * lib/fseek.c: Likewise.
13260         * lib/fseterr.c: Likewise.
13261         * lib/fseterr.h: Likewise.
13262         * lib/fstatat.c: Likewise.
13263         * lib/fstrcmp.c: Likewise.
13264         * lib/fstrcmp.h: Likewise.
13265         * lib/fsusage.c: Likewise.
13266         * lib/fsusage.h: Likewise.
13267         * lib/ftell.c: Likewise.
13268         * lib/ftello.c: Likewise.
13269         * lib/fts-cycle.c: Likewise.
13270         * lib/fts.c: Likewise.
13271         * lib/fts_.h: Likewise.
13272         * lib/full-read.c: Likewise.
13273         * lib/full-read.h: Likewise.
13274         * lib/full-write.c: Likewise.
13275         * lib/full-write.h: Likewise.
13276         * lib/fwritable.c: Likewise.
13277         * lib/fwritable.h: Likewise.
13278         * lib/fwriteerror.c: Likewise.
13279         * lib/fwriteerror.h: Likewise.
13280         * lib/fwriting.c: Likewise.
13281         * lib/fwriting.h: Likewise.
13282         * lib/gcd.c: Likewise.
13283         * lib/gcd.h: Likewise.
13284         * lib/getcwd.c: Likewise.
13285         * lib/getdate.h: Likewise.
13286         * lib/getdate.y: Likewise.
13287         * lib/getdomainname.c: Likewise.
13288         * lib/getdomainname.h: Likewise.
13289         * lib/getgroups.c: Likewise.
13290         * lib/gethostname.c: Likewise.
13291         * lib/gethrxtime.c: Likewise.
13292         * lib/gethrxtime.h: Likewise.
13293         * lib/getloadavg.c: Likewise.
13294         * lib/getndelim2.c: Likewise.
13295         * lib/getndelim2.h: Likewise.
13296         * lib/getnline.c: Likewise.
13297         * lib/getnline.h: Likewise.
13298         * lib/getopt.c: Likewise.
13299         * lib/getopt.in.h: Likewise.
13300         * lib/getopt1.c: Likewise.
13301         * lib/getopt_int.h: Likewise.
13302         * lib/getpagesize.h: Likewise.
13303         * lib/getsubopt.c: Likewise.
13304         * lib/gettime.c: Likewise.
13305         * lib/getugroups.c: Likewise.
13306         * lib/getugroups.h: Likewise.
13307         * lib/getusershell.c: Likewise.
13308         * lib/gl_anyavltree_list1.h: Likewise.
13309         * lib/gl_anyavltree_list2.h: Likewise.
13310         * lib/gl_anyhash_list1.h: Likewise.
13311         * lib/gl_anyhash_list2.h: Likewise.
13312         * lib/gl_anylinked_list1.h: Likewise.
13313         * lib/gl_anylinked_list2.h: Likewise.
13314         * lib/gl_anyrbtree_list1.h: Likewise.
13315         * lib/gl_anyrbtree_list2.h: Likewise.
13316         * lib/gl_anytree_list1.h: Likewise.
13317         * lib/gl_anytree_list2.h: Likewise.
13318         * lib/gl_anytree_oset.h: Likewise.
13319         * lib/gl_anytreehash_list1.h: Likewise.
13320         * lib/gl_anytreehash_list2.h: Likewise.
13321         * lib/gl_array_list.c: Likewise.
13322         * lib/gl_array_list.h: Likewise.
13323         * lib/gl_array_oset.c: Likewise.
13324         * lib/gl_array_oset.h: Likewise.
13325         * lib/gl_avltree_list.c: Likewise.
13326         * lib/gl_avltree_list.h: Likewise.
13327         * lib/gl_avltree_oset.c: Likewise.
13328         * lib/gl_avltree_oset.h: Likewise.
13329         * lib/gl_avltreehash_list.c: Likewise.
13330         * lib/gl_avltreehash_list.h: Likewise.
13331         * lib/gl_carray_list.c: Likewise.
13332         * lib/gl_carray_list.h: Likewise.
13333         * lib/gl_linked_list.c: Likewise.
13334         * lib/gl_linked_list.h: Likewise.
13335         * lib/gl_linkedhash_list.c: Likewise.
13336         * lib/gl_linkedhash_list.h: Likewise.
13337         * lib/gl_list.c: Likewise.
13338         * lib/gl_list.h: Likewise.
13339         * lib/gl_oset.c: Likewise.
13340         * lib/gl_oset.h: Likewise.
13341         * lib/gl_rbtree_list.c: Likewise.
13342         * lib/gl_rbtree_list.h: Likewise.
13343         * lib/gl_rbtree_oset.c: Likewise.
13344         * lib/gl_rbtree_oset.h: Likewise.
13345         * lib/gl_rbtreehash_list.c: Likewise.
13346         * lib/gl_rbtreehash_list.h: Likewise.
13347         * lib/gl_sublist.c: Likewise.
13348         * lib/gl_sublist.h: Likewise.
13349         * lib/group-member.c: Likewise.
13350         * lib/group-member.h: Likewise.
13351         * lib/hard-locale.c: Likewise.
13352         * lib/hard-locale.h: Likewise.
13353         * lib/hash-pjw.c: Likewise.
13354         * lib/hash-pjw.h: Likewise.
13355         * lib/hash-triple.c: Likewise.
13356         * lib/hash.c: Likewise.
13357         * lib/hash.h: Likewise.
13358         * lib/human.c: Likewise.
13359         * lib/human.h: Likewise.
13360         * lib/i-ring.c: Likewise.
13361         * lib/i-ring.h: Likewise.
13362         * lib/idcache.c: Likewise.
13363         * lib/imaxabs.c: Likewise.
13364         * lib/imaxdiv.c: Likewise.
13365         * lib/inet_pton.c: Likewise.
13366         * lib/inet_pton.h: Likewise.
13367         * lib/intprops.h: Likewise.
13368         * lib/inttostr.c: Likewise.
13369         * lib/inttostr.h: Likewise.
13370         * lib/inttypes.in.h: Likewise.
13371         * lib/isapipe.c: Likewise.
13372         * lib/isdir.c: Likewise.
13373         * lib/isnan.c: Likewise.
13374         * lib/isnan.h: Likewise.
13375         * lib/isnanf.c: Likewise.
13376         * lib/isnanf.h: Likewise.
13377         * lib/isnanl-nolibm.h: Likewise.
13378         * lib/isnanl.c: Likewise.
13379         * lib/isnanl.h: Likewise.
13380         * lib/javacomp.c: Likewise.
13381         * lib/javacomp.h: Likewise.
13382         * lib/javaexec.c: Likewise.
13383         * lib/javaexec.h: Likewise.
13384         * lib/javaversion.c: Likewise.
13385         * lib/javaversion.h: Likewise.
13386         * lib/javaversion.java: Likewise.
13387         * lib/lbrkprop.h: Likewise.
13388         * lib/lchmod.h: Likewise.
13389         * lib/lchown.c: Likewise.
13390         * lib/ldexpl.c: Likewise.
13391         * lib/linebreak.c: Likewise.
13392         * lib/linebreak.h: Likewise.
13393         * lib/linebuffer.c: Likewise.
13394         * lib/linebuffer.h: Likewise.
13395         * lib/locale.in.h: Likewise.
13396         * lib/logl.c: Likewise.
13397         * lib/long-options.c: Likewise.
13398         * lib/long-options.h: Likewise.
13399         * lib/lstat.c: Likewise.
13400         * lib/lstat.h: Likewise.
13401         * lib/math.in.h: Likewise.
13402         * lib/mbchar.c: Likewise.
13403         * lib/mbchar.h: Likewise.
13404         * lib/mbfile.h: Likewise.
13405         * lib/mbiter.h: Likewise.
13406         * lib/mbscasecmp.c: Likewise.
13407         * lib/mbscasestr.c: Likewise.
13408         * lib/mbschr.c: Likewise.
13409         * lib/mbscspn.c: Likewise.
13410         * lib/mbslen.c: Likewise.
13411         * lib/mbsncasecmp.c: Likewise.
13412         * lib/mbsnlen.c: Likewise.
13413         * lib/mbspbrk.c: Likewise.
13414         * lib/mbspcasecmp.c: Likewise.
13415         * lib/mbsrchr.c: Likewise.
13416         * lib/mbssep.c: Likewise.
13417         * lib/mbsspn.c: Likewise.
13418         * lib/mbsstr.c: Likewise.
13419         * lib/mbstok_r.c: Likewise.
13420         * lib/mbswidth.c: Likewise.
13421         * lib/mbswidth.h: Likewise.
13422         * lib/mbuiter.h: Likewise.
13423         * lib/memcasecmp.c: Likewise.
13424         * lib/memcasecmp.h: Likewise.
13425         * lib/memchr.c: Likewise.
13426         * lib/memcmp.c: Likewise.
13427         * lib/memcoll.c: Likewise.
13428         * lib/memcoll.h: Likewise.
13429         * lib/memcpy.c: Likewise.
13430         * lib/memrchr.c: Likewise.
13431         * lib/mkancesdirs.c: Likewise.
13432         * lib/mkdir-p.c: Likewise.
13433         * lib/mkdir-p.h: Likewise.
13434         * lib/mkdir.c: Likewise.
13435         * lib/mkdirat.c: Likewise.
13436         * lib/mkdtemp.c: Likewise.
13437         * lib/mkstemp-safer.c: Likewise.
13438         * lib/mkstemp.c: Likewise.
13439         * lib/modechange.c: Likewise.
13440         * lib/modechange.h: Likewise.
13441         * lib/mountlist.c: Likewise.
13442         * lib/mountlist.h: Likewise.
13443         * lib/mpsort.c: Likewise.
13444         * lib/nanosleep.c: Likewise.
13445         * lib/obstack.c: Likewise.
13446         * lib/obstack.h: Likewise.
13447         * lib/open-safer.c: Likewise.
13448         * lib/open.c: Likewise.
13449         * lib/openat-die.c: Likewise.
13450         * lib/openat-priv.h: Likewise.
13451         * lib/openat-proc.c: Likewise.
13452         * lib/openat.c: Likewise.
13453         * lib/openat.h: Likewise.
13454         * lib/pagealign_alloc.c: Likewise.
13455         * lib/pagealign_alloc.h: Likewise.
13456         * lib/physmem.c: Likewise.
13457         * lib/physmem.h: Likewise.
13458         * lib/pipe-safer.c: Likewise.
13459         * lib/pipe.c: Likewise.
13460         * lib/pipe.h: Likewise.
13461         * lib/posixtm.c: Likewise.
13462         * lib/posixtm.h: Likewise.
13463         * lib/posixver.c: Likewise.
13464         * lib/printf-frexp.c: Likewise.
13465         * lib/printf-frexp.h: Likewise.
13466         * lib/printf-frexpl.c: Likewise.
13467         * lib/printf-frexpl.h: Likewise.
13468         * lib/printf.c: Likewise.
13469         * lib/progname.c: Likewise.
13470         * lib/progname.h: Likewise.
13471         * lib/progreloc.c: Likewise.
13472         * lib/putenv.c: Likewise.
13473         * lib/quote.c: Likewise.
13474         * lib/quote.h: Likewise.
13475         * lib/quotearg.c: Likewise.
13476         * lib/quotearg.h: Likewise.
13477         * lib/raise.c: Likewise.
13478         * lib/readline.c: Likewise.
13479         * lib/readline.h: Likewise.
13480         * lib/readlink.c: Likewise.
13481         * lib/readtokens.c: Likewise.
13482         * lib/readtokens.h: Likewise.
13483         * lib/readtokens0.c: Likewise.
13484         * lib/readtokens0.h: Likewise.
13485         * lib/readutmp.c: Likewise.
13486         * lib/readutmp.h: Likewise.
13487         * lib/realloc.c: Likewise.
13488         * lib/relocwrapper.c: Likewise.
13489         * lib/rename-dest-slash.c: Likewise.
13490         * lib/rename.c: Likewise.
13491         * lib/rmdir.c: Likewise.
13492         * lib/rpmatch.c: Likewise.
13493         * lib/safe-read.c: Likewise.
13494         * lib/safe-read.h: Likewise.
13495         * lib/safe-write.c: Likewise.
13496         * lib/safe-write.h: Likewise.
13497         * lib/same-inode.h: Likewise.
13498         * lib/same.c: Likewise.
13499         * lib/same.h: Likewise.
13500         * lib/save-cwd.c: Likewise.
13501         * lib/save-cwd.h: Likewise.
13502         * lib/savedir.c: Likewise.
13503         * lib/savedir.h: Likewise.
13504         * lib/savewd.c: Likewise.
13505         * lib/savewd.h: Likewise.
13506         * lib/search.in.h: Likewise.
13507         * lib/setenv.c: Likewise.
13508         * lib/setenv.h: Likewise.
13509         * lib/settime.c: Likewise.
13510         * lib/sh-quote.c: Likewise.
13511         * lib/sh-quote.h: Likewise.
13512         * lib/sig2str.c: Likewise.
13513         * lib/sig2str.h: Likewise.
13514         * lib/signal.in.h: Likewise.
13515         * lib/signbitd.c: Likewise.
13516         * lib/signbitf.c: Likewise.
13517         * lib/signbitl.c: Likewise.
13518         * lib/sigprocmask.c: Likewise.
13519         * lib/sincosl.c: Likewise.
13520         * lib/sleep.c: Likewise.
13521         * lib/sprintf.c: Likewise.
13522         * lib/sqrtl.c: Likewise.
13523         * lib/stat-time.h: Likewise.
13524         * lib/stdio--.h: Likewise.
13525         * lib/stdio-safer.h: Likewise.
13526         * lib/stdlib--.h: Likewise.
13527         * lib/stdlib-safer.h: Likewise.
13528         * lib/stdlib.in.h: Likewise.
13529         * lib/stpcpy.c: Likewise.
13530         * lib/stpncpy.c: Likewise.
13531         * lib/strchrnul.c: Likewise.
13532         * lib/strcspn.c: Likewise.
13533         * lib/strerror.c: Likewise.
13534         * lib/strftime.c: Likewise.
13535         * lib/strftime.h: Likewise.
13536         * lib/striconveh.c: Likewise.
13537         * lib/striconveh.h: Likewise.
13538         * lib/striconveha.c: Likewise.
13539         * lib/striconveha.h: Likewise.
13540         * lib/stripslash.c: Likewise.
13541         * lib/strnlen1.c: Likewise.
13542         * lib/strnlen1.h: Likewise.
13543         * lib/strtod.c: Likewise.
13544         * lib/strtoimax.c: Likewise.
13545         * lib/strtok_r.c: Likewise.
13546         * lib/strtol.c: Likewise.
13547         * lib/strtoll.c: Likewise.
13548         * lib/strtoul.c: Likewise.
13549         * lib/strtoull.c: Likewise.
13550         * lib/sysexits.in.h: Likewise.
13551         * lib/tempname.c: Likewise.
13552         * lib/tempname.h: Likewise.
13553         * lib/timespec.h: Likewise.
13554         * lib/tls.c: Likewise.
13555         * lib/tls.h: Likewise.
13556         * lib/tmpdir.c: Likewise.
13557         * lib/tmpdir.h: Likewise.
13558         * lib/tmpfile-safer.c: Likewise.
13559         * lib/tmpfile.c: Likewise.
13560         * lib/trigl.c: Likewise.
13561         * lib/trigl.h: Likewise.
13562         * lib/trim.c: Likewise.
13563         * lib/trim.h: Likewise.
13564         * lib/trunc.c: Likewise.
13565         * lib/truncf.c: Likewise.
13566         * lib/truncl.c: Likewise.
13567         * lib/tsearch.c: Likewise.
13568         * lib/unicodeio.c: Likewise.
13569         * lib/unicodeio.h: Likewise.
13570         * lib/unistd--.h: Likewise.
13571         * lib/unistd-safer.h: Likewise.
13572         * lib/unistdio/ulc-fprintf.c: Likewise.
13573         * lib/unistdio/ulc-vfprintf.c: Likewise.
13574         * lib/unlinkdir.c: Likewise.
13575         * lib/unlinkdir.h: Likewise.
13576         * lib/unlocked-io.h: Likewise.
13577         * lib/unsetenv.c: Likewise.
13578         * lib/userspec.c: Likewise.
13579         * lib/utime.c: Likewise.
13580         * lib/utimecmp.c: Likewise.
13581         * lib/utimecmp.h: Likewise.
13582         * lib/utimens.c: Likewise.
13583         * lib/verify.h: Likewise.
13584         * lib/verror.c: Likewise.
13585         * lib/verror.h: Likewise.
13586         * lib/version-etc-fsf.c: Likewise.
13587         * lib/version-etc.c: Likewise.
13588         * lib/version-etc.h: Likewise.
13589         * lib/vfprintf.c: Likewise.
13590         * lib/vprintf.c: Likewise.
13591         * lib/vsprintf.c: Likewise.
13592         * lib/w32spawn.h: Likewise.
13593         * lib/wait-process.c: Likewise.
13594         * lib/wait-process.h: Likewise.
13595         * lib/wcwidth.c: Likewise.
13596         * lib/write-any-file.c: Likewise.
13597         * lib/xalloc-die.c: Likewise.
13598         * lib/xalloc.h: Likewise.
13599         * lib/xasprintf.c: Likewise.
13600         * lib/xgetcwd.c: Likewise.
13601         * lib/xgetcwd.h: Likewise.
13602         * lib/xgetdomainname.c: Likewise.
13603         * lib/xgetdomainname.h: Likewise.
13604         * lib/xgethostname.c: Likewise.
13605         * lib/xmalloc.c: Likewise.
13606         * lib/xmalloca.c: Likewise.
13607         * lib/xmalloca.h: Likewise.
13608         * lib/xmemcoll.c: Likewise.
13609         * lib/xnanosleep.c: Likewise.
13610         * lib/xreadlink.c: Likewise.
13611         * lib/xreadlink.h: Likewise.
13612         * lib/xsetenv.c: Likewise.
13613         * lib/xsetenv.h: Likewise.
13614         * lib/xstriconv.c: Likewise.
13615         * lib/xstriconv.h: Likewise.
13616         * lib/xstrndup.c: Likewise.
13617         * lib/xstrndup.h: Likewise.
13618         * lib/xstrtod.c: Likewise.
13619         * lib/xstrtod.h: Likewise.
13620         * lib/xstrtol-error.c: Likewise.
13621         * lib/xstrtol.c: Likewise.
13622         * lib/xstrtol.h: Likewise.
13623         * lib/xtime.h: Likewise.
13624         * lib/xvasprintf.c: Likewise.
13625         * lib/xvasprintf.h: Likewise.
13626         * lib/yesno.c: Likewise.
13627         * lib/yesno.h: Likewise.
13628         * posix-modules: Likewise.
13629         * tests/test-alloca-opt.c: Likewise.
13630         * tests/test-arcfour.c: Likewise.
13631         * tests/test-arctwo.c: Likewise.
13632         * tests/test-argmatch.c: Likewise.
13633         * tests/test-argp-2.sh: Likewise.
13634         * tests/test-argp.c: Likewise.
13635         * tests/test-arpa_inet.c: Likewise.
13636         * tests/test-array_list.c: Likewise.
13637         * tests/test-array_oset.c: Likewise.
13638         * tests/test-atexit.c: Likewise.
13639         * tests/test-avltree_list.c: Likewise.
13640         * tests/test-avltree_oset.c: Likewise.
13641         * tests/test-avltreehash_list.c: Likewise.
13642         * tests/test-base64.c: Likewise.
13643         * tests/test-binary-io.c: Likewise.
13644         * tests/test-byteswap.c: Likewise.
13645         * tests/test-c-ctype.c: Likewise.
13646         * tests/test-c-strcasecmp.c: Likewise.
13647         * tests/test-c-strcasestr.c: Likewise.
13648         * tests/test-c-strncasecmp.c: Likewise.
13649         * tests/test-c-strstr.c: Likewise.
13650         * tests/test-canonicalize-lgpl.c: Likewise.
13651         * tests/test-canonicalize.c: Likewise.
13652         * tests/test-carray_list.c: Likewise.
13653         * tests/test-ceilf.c: Likewise.
13654         * tests/test-ceill.c: Likewise.
13655         * tests/test-count-one-bits.c: Likewise.
13656         * tests/test-crc.c: Likewise.
13657         * tests/test-dirname.c: Likewise.
13658         * tests/test-fbufmode.c: Likewise.
13659         * tests/test-fcntl.c: Likewise.
13660         * tests/test-fflush.c: Likewise.
13661         * tests/test-floorf.c: Likewise.
13662         * tests/test-floorl.c: Likewise.
13663         * tests/test-fopen.c: Likewise.
13664         * tests/test-fprintf-posix.c: Likewise.
13665         * tests/test-fprintf-posix.h: Likewise.
13666         * tests/test-fpurge.c: Likewise.
13667         * tests/test-freadable.c: Likewise.
13668         * tests/test-freadahead.c: Likewise.
13669         * tests/test-freading.c: Likewise.
13670         * tests/test-freopen.c: Likewise.
13671         * tests/test-frexp.c: Likewise.
13672         * tests/test-frexpl.c: Likewise.
13673         * tests/test-fseek.c: Likewise.
13674         * tests/test-fseeko.c: Likewise.
13675         * tests/test-fseterr.c: Likewise.
13676         * tests/test-fstrcmp.c: Likewise.
13677         * tests/test-ftell.c: Likewise.
13678         * tests/test-ftello.c: Likewise.
13679         * tests/test-fwritable.c: Likewise.
13680         * tests/test-fwriting.c: Likewise.
13681         * tests/test-getaddrinfo.c: Likewise.
13682         * tests/test-getpass.c: Likewise.
13683         * tests/test-gettimeofday.c: Likewise.
13684         * tests/test-hmac-md5.c: Likewise.
13685         * tests/test-hmac-sha1.c: Likewise.
13686         * tests/test-iconv.c: Likewise.
13687         * tests/test-iconvme.c: Likewise.
13688         * tests/test-inttypes.c: Likewise.
13689         * tests/test-isnan.c: Likewise.
13690         * tests/test-isnanf.c: Likewise.
13691         * tests/test-isnanl-nolibm.c: Likewise.
13692         * tests/test-isnanl.c: Likewise.
13693         * tests/test-isnanl.h: Likewise.
13694         * tests/test-ldexpl.c: Likewise.
13695         * tests/test-linked_list.c: Likewise.
13696         * tests/test-linkedhash_list.c: Likewise.
13697         * tests/test-locale.c: Likewise.
13698         * tests/test-localename.c: Likewise.
13699         * tests/test-lock.c: Likewise.
13700         * tests/test-lseek.c: Likewise.
13701         * tests/test-malloca.c: Likewise.
13702         * tests/test-math.c: Likewise.
13703         * tests/test-mbscasecmp.c: Likewise.
13704         * tests/test-mbscasestr1.c: Likewise.
13705         * tests/test-mbscasestr2.c: Likewise.
13706         * tests/test-mbscasestr3.c: Likewise.
13707         * tests/test-mbscasestr4.c: Likewise.
13708         * tests/test-mbschr.c: Likewise.
13709         * tests/test-mbscspn.c: Likewise.
13710         * tests/test-mbsncasecmp.c: Likewise.
13711         * tests/test-mbspbrk.c: Likewise.
13712         * tests/test-mbspcasecmp.c: Likewise.
13713         * tests/test-mbsrchr.c: Likewise.
13714         * tests/test-mbsspn.c: Likewise.
13715         * tests/test-mbsstr1.c: Likewise.
13716         * tests/test-mbsstr2.c: Likewise.
13717         * tests/test-mbsstr3.c: Likewise.
13718         * tests/test-md5.c: Likewise.
13719         * tests/test-memmem.c: Likewise.
13720         * tests/test-netinet_in.c: Likewise.
13721         * tests/test-open.c: Likewise.
13722         * tests/test-printf-frexp.c: Likewise.
13723         * tests/test-printf-frexpl.c: Likewise.
13724         * tests/test-printf-posix.c: Likewise.
13725         * tests/test-printf-posix.h: Likewise.
13726         * tests/test-rbtree_list.c: Likewise.
13727         * tests/test-rbtree_oset.c: Likewise.
13728         * tests/test-rbtreehash_list.c: Likewise.
13729         * tests/test-read-file.c: Likewise.
13730         * tests/test-rijndael.c: Likewise.
13731         * tests/test-search.c: Likewise.
13732         * tests/test-signbit.c: Likewise.
13733         * tests/test-sleep.c: Likewise.
13734         * tests/test-snprintf-posix.c: Likewise.
13735         * tests/test-snprintf-posix.h: Likewise.
13736         * tests/test-snprintf.c: Likewise.
13737         * tests/test-sprintf-posix.c: Likewise.
13738         * tests/test-sprintf-posix.h: Likewise.
13739         * tests/test-stat-time.c: Likewise.
13740         * tests/test-stdbool.c: Likewise.
13741         * tests/test-stdint.c: Likewise.
13742         * tests/test-stdio.c: Likewise.
13743         * tests/test-stdlib.c: Likewise.
13744         * tests/test-stpncpy.c: Likewise.
13745         * tests/test-strcasestr.c: Likewise.
13746         * tests/test-striconv.c: Likewise.
13747         * tests/test-striconveh.c: Likewise.
13748         * tests/test-striconveha.c: Likewise.
13749         * tests/test-string.c: Likewise.
13750         * tests/test-sys_select.c: Likewise.
13751         * tests/test-sys_socket.c: Likewise.
13752         * tests/test-sys_stat.c: Likewise.
13753         * tests/test-sys_time.c: Likewise.
13754         * tests/test-sysexits.c: Likewise.
13755         * tests/test-time.c: Likewise.
13756         * tests/test-tls.c: Likewise.
13757         * tests/test-trunc.c: Likewise.
13758         * tests/test-truncf.c: Likewise.
13759         * tests/test-truncl.c: Likewise.
13760         * tests/test-unistd.c: Likewise.
13761         * tests/test-vasnprintf-posix.c: Likewise.
13762         * tests/test-vasnprintf-posix2.c: Likewise.
13763         * tests/test-vasnprintf.c: Likewise.
13764         * tests/test-vasprintf-posix.c: Likewise.
13765         * tests/test-vasprintf.c: Likewise.
13766         * tests/test-verify.c: Likewise.
13767         * tests/test-vfprintf-posix.c: Likewise.
13768         * tests/test-vprintf-posix.c: Likewise.
13769         * tests/test-vsnprintf-posix.c: Likewise.
13770         * tests/test-vsnprintf.c: Likewise.
13771         * tests/test-vsprintf-posix.c: Likewise.
13772         * tests/test-wchar.c: Likewise.
13773         * tests/test-wctype.c: Likewise.
13774         * tests/test-wcwidth.c: Likewise.
13775         * tests/test-xstrtol.c: Likewise.
13776         * tests/test-xvasprintf.c: Likewise.
13777         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13778         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13779         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13780         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13781         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13782         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13783         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13784         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13785         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13786         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13787         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13788         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13789         * tests/uniname/test-uninames.c: Likewise.
13790         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13791         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
13792         * tests/unistdio/test-u16-printf1.h: Likewise.
13793         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13794         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13795         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13796         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13797         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13798         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13799         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13800         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
13801         * tests/unistdio/test-u32-printf1.h: Likewise.
13802         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13803         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13804         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13805         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13806         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13807         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13808         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13809         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
13810         * tests/unistdio/test-u8-printf1.h: Likewise.
13811         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13812         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13813         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13814         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13815         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13816         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13817         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13818         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
13819         * tests/unistdio/test-ulc-printf1.h: Likewise.
13820         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13821         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13822         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13823         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13824         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13825         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13826         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13827         * tests/uniwidth/test-u16-width.c: Likewise.
13828         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13829         * tests/uniwidth/test-u32-width.c: Likewise.
13830         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13831         * tests/uniwidth/test-u8-width.c: Likewise.
13832         * tests/uniwidth/test-uc_width.c: Likewise.
13833         * config/srclist-update: Likewise.
13834         (fixlicense): Update to GPLv3+.
13835
13836         Change copyright notice from LGPLv2.1+ to LGPLv3+.
13837         * tests/test-tsearch.c: Change copyright notice.
13838
13839         Change copyright notice from LGPLv2.0+ to LGPLv3+.
13840         * lib/c-strcaseeq.h: Change copyright notice.
13841         * lib/streq.h: Likewise.
13842         * lib/uniconv.h: Likewise.
13843         * lib/uniconv/u-conv-from-enc.h: Likewise.
13844         * lib/uniconv/u-conv-to-enc.h: Likewise.
13845         * lib/uniconv/u-strconv-from-enc.h: Likewise.
13846         * lib/uniconv/u-strconv-to-enc.h: Likewise.
13847         * lib/uniconv/u16-conv-from-enc.c: Likewise.
13848         * lib/uniconv/u16-conv-to-enc.c: Likewise.
13849         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
13850         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
13851         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
13852         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
13853         * lib/uniconv/u32-conv-from-enc.c: Likewise.
13854         * lib/uniconv/u32-conv-to-enc.c: Likewise.
13855         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
13856         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
13857         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
13858         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
13859         * lib/uniconv/u8-conv-from-enc.c: Likewise.
13860         * lib/uniconv/u8-conv-to-enc.c: Likewise.
13861         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
13862         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
13863         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
13864         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
13865         * lib/uniname.h: Likewise.
13866         * lib/uniname/uniname.c: Likewise.
13867         * lib/unistdio.h: Likewise.
13868         * lib/unistdio/u-asnprintf.h: Likewise.
13869         * lib/unistdio/u-asprintf.h: Likewise.
13870         * lib/unistdio/u-printf-args.c: Likewise.
13871         * lib/unistdio/u-printf-args.h: Likewise.
13872         * lib/unistdio/u-printf-parse.h: Likewise.
13873         * lib/unistdio/u-snprintf.h: Likewise.
13874         * lib/unistdio/u-sprintf.h: Likewise.
13875         * lib/unistdio/u-vasprintf.h: Likewise.
13876         * lib/unistdio/u-vsnprintf.h: Likewise.
13877         * lib/unistdio/u-vsprintf.h: Likewise.
13878         * lib/unistdio/u16-asnprintf.c: Likewise.
13879         * lib/unistdio/u16-asprintf.c: Likewise.
13880         * lib/unistdio/u16-printf-parse.c: Likewise.
13881         * lib/unistdio/u16-snprintf.c: Likewise.
13882         * lib/unistdio/u16-sprintf.c: Likewise.
13883         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
13884         * lib/unistdio/u16-u16-asprintf.c: Likewise.
13885         * lib/unistdio/u16-u16-snprintf.c: Likewise.
13886         * lib/unistdio/u16-u16-sprintf.c: Likewise.
13887         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
13888         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
13889         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
13890         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
13891         * lib/unistdio/u16-vasnprintf.c: Likewise.
13892         * lib/unistdio/u16-vasprintf.c: Likewise.
13893         * lib/unistdio/u16-vsnprintf.c: Likewise.
13894         * lib/unistdio/u16-vsprintf.c: Likewise.
13895         * lib/unistdio/u32-asnprintf.c: Likewise.
13896         * lib/unistdio/u32-asprintf.c: Likewise.
13897         * lib/unistdio/u32-printf-parse.c: Likewise.
13898         * lib/unistdio/u32-snprintf.c: Likewise.
13899         * lib/unistdio/u32-sprintf.c: Likewise.
13900         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
13901         * lib/unistdio/u32-u32-asprintf.c: Likewise.
13902         * lib/unistdio/u32-u32-snprintf.c: Likewise.
13903         * lib/unistdio/u32-u32-sprintf.c: Likewise.
13904         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
13905         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
13906         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
13907         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
13908         * lib/unistdio/u32-vasnprintf.c: Likewise.
13909         * lib/unistdio/u32-vasprintf.c: Likewise.
13910         * lib/unistdio/u32-vsnprintf.c: Likewise.
13911         * lib/unistdio/u32-vsprintf.c: Likewise.
13912         * lib/unistdio/u8-asnprintf.c: Likewise.
13913         * lib/unistdio/u8-asprintf.c: Likewise.
13914         * lib/unistdio/u8-printf-parse.c: Likewise.
13915         * lib/unistdio/u8-snprintf.c: Likewise.
13916         * lib/unistdio/u8-sprintf.c: Likewise.
13917         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
13918         * lib/unistdio/u8-u8-asprintf.c: Likewise.
13919         * lib/unistdio/u8-u8-snprintf.c: Likewise.
13920         * lib/unistdio/u8-u8-sprintf.c: Likewise.
13921         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
13922         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
13923         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
13924         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
13925         * lib/unistdio/u8-vasnprintf.c: Likewise.
13926         * lib/unistdio/u8-vasprintf.c: Likewise.
13927         * lib/unistdio/u8-vsnprintf.c: Likewise.
13928         * lib/unistdio/u8-vsprintf.c: Likewise.
13929         * lib/unistdio/ulc-asnprintf.c: Likewise.
13930         * lib/unistdio/ulc-asprintf.c: Likewise.
13931         * lib/unistdio/ulc-printf-parse.c: Likewise.
13932         * lib/unistdio/ulc-snprintf.c: Likewise.
13933         * lib/unistdio/ulc-sprintf.c: Likewise.
13934         * lib/unistdio/ulc-vasnprintf.c: Likewise.
13935         * lib/unistdio/ulc-vasprintf.c: Likewise.
13936         * lib/unistdio/ulc-vsnprintf.c: Likewise.
13937         * lib/unistdio/ulc-vsprintf.c: Likewise.
13938         * lib/unistr.h: Likewise.
13939         * lib/unistr/u-cpy-alloc.h: Likewise.
13940         * lib/unistr/u-cpy.h: Likewise.
13941         * lib/unistr/u-endswith.h: Likewise.
13942         * lib/unistr/u-move.h: Likewise.
13943         * lib/unistr/u-set.h: Likewise.
13944         * lib/unistr/u-startswith.h: Likewise.
13945         * lib/unistr/u-stpcpy.h: Likewise.
13946         * lib/unistr/u-stpncpy.h: Likewise.
13947         * lib/unistr/u-strcat.h: Likewise.
13948         * lib/unistr/u-strcpy.h: Likewise.
13949         * lib/unistr/u-strcspn.h: Likewise.
13950         * lib/unistr/u-strdup.h: Likewise.
13951         * lib/unistr/u-strlen.h: Likewise.
13952         * lib/unistr/u-strncat.h: Likewise.
13953         * lib/unistr/u-strncpy.h: Likewise.
13954         * lib/unistr/u-strnlen.h: Likewise.
13955         * lib/unistr/u-strpbrk.h: Likewise.
13956         * lib/unistr/u-strspn.h: Likewise.
13957         * lib/unistr/u-strstr.h: Likewise.
13958         * lib/unistr/u-strtok.h: Likewise.
13959         * lib/unistr/u16-check.c: Likewise.
13960         * lib/unistr/u16-chr.c: Likewise.
13961         * lib/unistr/u16-cmp.c: Likewise.
13962         * lib/unistr/u16-cpy-alloc.c: Likewise.
13963         * lib/unistr/u16-cpy.c: Likewise.
13964         * lib/unistr/u16-endswith.c: Likewise.
13965         * lib/unistr/u16-mblen.c: Likewise.
13966         * lib/unistr/u16-mbsnlen.c: Likewise.
13967         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13968         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13969         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13970         * lib/unistr/u16-mbtouc.c: Likewise.
13971         * lib/unistr/u16-mbtoucr.c: Likewise.
13972         * lib/unistr/u16-move.c: Likewise.
13973         * lib/unistr/u16-next.c: Likewise.
13974         * lib/unistr/u16-prev.c: Likewise.
13975         * lib/unistr/u16-set.c: Likewise.
13976         * lib/unistr/u16-startswith.c: Likewise.
13977         * lib/unistr/u16-stpcpy.c: Likewise.
13978         * lib/unistr/u16-stpncpy.c: Likewise.
13979         * lib/unistr/u16-strcat.c: Likewise.
13980         * lib/unistr/u16-strchr.c: Likewise.
13981         * lib/unistr/u16-strcmp.c: Likewise.
13982         * lib/unistr/u16-strcpy.c: Likewise.
13983         * lib/unistr/u16-strcspn.c: Likewise.
13984         * lib/unistr/u16-strdup.c: Likewise.
13985         * lib/unistr/u16-strlen.c: Likewise.
13986         * lib/unistr/u16-strmblen.c: Likewise.
13987         * lib/unistr/u16-strmbtouc.c: Likewise.
13988         * lib/unistr/u16-strncat.c: Likewise.
13989         * lib/unistr/u16-strncmp.c: Likewise.
13990         * lib/unistr/u16-strncpy.c: Likewise.
13991         * lib/unistr/u16-strnlen.c: Likewise.
13992         * lib/unistr/u16-strpbrk.c: Likewise.
13993         * lib/unistr/u16-strrchr.c: Likewise.
13994         * lib/unistr/u16-strspn.c: Likewise.
13995         * lib/unistr/u16-strstr.c: Likewise.
13996         * lib/unistr/u16-strtok.c: Likewise.
13997         * lib/unistr/u16-to-u32.c: Likewise.
13998         * lib/unistr/u16-to-u8.c: Likewise.
13999         * lib/unistr/u16-uctomb-aux.c: Likewise.
14000         * lib/unistr/u16-uctomb.c: Likewise.
14001         * lib/unistr/u32-check.c: Likewise.
14002         * lib/unistr/u32-chr.c: Likewise.
14003         * lib/unistr/u32-cmp.c: Likewise.
14004         * lib/unistr/u32-cpy-alloc.c: Likewise.
14005         * lib/unistr/u32-cpy.c: Likewise.
14006         * lib/unistr/u32-endswith.c: Likewise.
14007         * lib/unistr/u32-mblen.c: Likewise.
14008         * lib/unistr/u32-mbsnlen.c: Likewise.
14009         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14010         * lib/unistr/u32-mbtouc.c: Likewise.
14011         * lib/unistr/u32-mbtoucr.c: Likewise.
14012         * lib/unistr/u32-move.c: Likewise.
14013         * lib/unistr/u32-next.c: Likewise.
14014         * lib/unistr/u32-prev.c: Likewise.
14015         * lib/unistr/u32-set.c: Likewise.
14016         * lib/unistr/u32-startswith.c: Likewise.
14017         * lib/unistr/u32-stpcpy.c: Likewise.
14018         * lib/unistr/u32-stpncpy.c: Likewise.
14019         * lib/unistr/u32-strcat.c: Likewise.
14020         * lib/unistr/u32-strchr.c: Likewise.
14021         * lib/unistr/u32-strcmp.c: Likewise.
14022         * lib/unistr/u32-strcpy.c: Likewise.
14023         * lib/unistr/u32-strcspn.c: Likewise.
14024         * lib/unistr/u32-strdup.c: Likewise.
14025         * lib/unistr/u32-strlen.c: Likewise.
14026         * lib/unistr/u32-strmblen.c: Likewise.
14027         * lib/unistr/u32-strmbtouc.c: Likewise.
14028         * lib/unistr/u32-strncat.c: Likewise.
14029         * lib/unistr/u32-strncmp.c: Likewise.
14030         * lib/unistr/u32-strncpy.c: Likewise.
14031         * lib/unistr/u32-strnlen.c: Likewise.
14032         * lib/unistr/u32-strpbrk.c: Likewise.
14033         * lib/unistr/u32-strrchr.c: Likewise.
14034         * lib/unistr/u32-strspn.c: Likewise.
14035         * lib/unistr/u32-strstr.c: Likewise.
14036         * lib/unistr/u32-strtok.c: Likewise.
14037         * lib/unistr/u32-to-u16.c: Likewise.
14038         * lib/unistr/u32-to-u8.c: Likewise.
14039         * lib/unistr/u32-uctomb.c: Likewise.
14040         * lib/unistr/u8-check.c: Likewise.
14041         * lib/unistr/u8-chr.c: Likewise.
14042         * lib/unistr/u8-cmp.c: Likewise.
14043         * lib/unistr/u8-cpy-alloc.c: Likewise.
14044         * lib/unistr/u8-cpy.c: Likewise.
14045         * lib/unistr/u8-endswith.c: Likewise.
14046         * lib/unistr/u8-mblen.c: Likewise.
14047         * lib/unistr/u8-mbsnlen.c: Likewise.
14048         * lib/unistr/u8-mbtouc-aux.c: Likewise.
14049         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14050         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14051         * lib/unistr/u8-mbtouc.c: Likewise.
14052         * lib/unistr/u8-mbtoucr.c: Likewise.
14053         * lib/unistr/u8-move.c: Likewise.
14054         * lib/unistr/u8-next.c: Likewise.
14055         * lib/unistr/u8-prev.c: Likewise.
14056         * lib/unistr/u8-set.c: Likewise.
14057         * lib/unistr/u8-startswith.c: Likewise.
14058         * lib/unistr/u8-stpcpy.c: Likewise.
14059         * lib/unistr/u8-stpncpy.c: Likewise.
14060         * lib/unistr/u8-strcat.c: Likewise.
14061         * lib/unistr/u8-strchr.c: Likewise.
14062         * lib/unistr/u8-strcmp.c: Likewise.
14063         * lib/unistr/u8-strcpy.c: Likewise.
14064         * lib/unistr/u8-strcspn.c: Likewise.
14065         * lib/unistr/u8-strdup.c: Likewise.
14066         * lib/unistr/u8-strlen.c: Likewise.
14067         * lib/unistr/u8-strmblen.c: Likewise.
14068         * lib/unistr/u8-strmbtouc.c: Likewise.
14069         * lib/unistr/u8-strncat.c: Likewise.
14070         * lib/unistr/u8-strncmp.c: Likewise.
14071         * lib/unistr/u8-strncpy.c: Likewise.
14072         * lib/unistr/u8-strnlen.c: Likewise.
14073         * lib/unistr/u8-strpbrk.c: Likewise.
14074         * lib/unistr/u8-strrchr.c: Likewise.
14075         * lib/unistr/u8-strspn.c: Likewise.
14076         * lib/unistr/u8-strstr.c: Likewise.
14077         * lib/unistr/u8-strtok.c: Likewise.
14078         * lib/unistr/u8-to-u16.c: Likewise.
14079         * lib/unistr/u8-to-u32.c: Likewise.
14080         * lib/unistr/u8-uctomb-aux.c: Likewise.
14081         * lib/unistr/u8-uctomb.c: Likewise.
14082         * lib/unitypes.h: Likewise.
14083         * lib/uniwidth.h: Likewise.
14084         * lib/uniwidth/cjk.h: Likewise.
14085         * lib/uniwidth/u16-strwidth.c: Likewise.
14086         * lib/uniwidth/u16-width.c: Likewise.
14087         * lib/uniwidth/u32-strwidth.c: Likewise.
14088         * lib/uniwidth/u32-width.c: Likewise.
14089         * lib/uniwidth/u8-strwidth.c: Likewise.
14090         * lib/uniwidth/u8-width.c: Likewise.
14091         * lib/uniwidth/width.c: Likewise.
14092
14093 2007-10-07  Bruno Haible  <bruno@clisp.org>
14094
14095         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
14096         The file is still under LGPL (see modules/inttypes).
14097
14098 2007-10-06  Bruno Haible  <bruno@clisp.org>
14099
14100         * modules/trunc (Dependencies): Add 'extensions'.
14101         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
14102         Reported by Ben Pfaff <blp@gnu.org>.
14103
14104 2007-10-06  Bruno Haible  <bruno@clisp.org>
14105
14106         * modules/freopen-tests: New file.
14107         * tests/test-freopen.c: New file.
14108
14109         * modules/fopen-tests: New file.
14110         * tests/test-fopen.c: New file.
14111
14112         * modules/fopen: New file.
14113         * lib/fopen.c: New file.
14114         * m4/fopen.m4: New file.
14115         * modules/freopen: New file.
14116         * lib/freopen.c: New file.
14117         * m4/freopen.m4: New file.
14118         * lib/stdio.in.h (fopen, freopen): New declarations.
14119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
14120         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
14121         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
14122         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
14123         * doc/functions/fopen.texi: Mention the 'fopen' module.
14124         * doc/functions/freopen.texi: Mention the 'freopen' module.
14125
14126 2007-10-06  Bruno Haible  <bruno@clisp.org>
14127
14128         * modules/open-tests: New file.
14129         * tests/test-open.c: New file.
14130
14131         * modules/open: New file.
14132         * lib/open.c: New file.
14133         * m4/open.m4: New file.
14134         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
14135         lib/open.c does.
14136         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
14137         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
14138         macros.
14139         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
14140         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
14141         REPLACE_OPEN.
14142         * doc/functions/open.texi: Mention the 'open' module.
14143
14144 2007-10-04  Bruno Haible  <bruno@clisp.org>
14145
14146         * modules/ceill-tests: New file.
14147         * tests/test-ceill.c: New file.
14148
14149         * modules/ceill: New file.
14150         * lib/ceill.c: Replace entire file.
14151         * m4/ceill.m4: New file.
14152         * lib/math.in.h (ceill): Replace declaration.
14153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
14154         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
14155         * doc/functions/ceill.texi: Mention the 'ceill' module.
14156         * modules/mathl (Files): Remove lib/ceill.c.
14157         (Depends-on): Add ceill.
14158
14159 2007-10-04  Bruno Haible  <bruno@clisp.org>
14160
14161         * modules/ceilf-tests: New file.
14162         * tests/test-ceilf.c: New file.
14163
14164         * modules/ceilf: New file.
14165         * lib/ceil.c: New file.
14166         * lib/ceilf.c: New file.
14167         * m4/ceilf.m4: New file.
14168         * lib/math.in.h (ceilf): New declaration.
14169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
14170         HAVE_DECL_CEILF.
14171         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
14172         HAVE_DECL_CEILF.
14173         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
14174
14175 2007-10-04  Bruno Haible  <bruno@clisp.org>
14176
14177         * modules/floorl-tests: New file.
14178         * tests/test-floorl.c: New file.
14179
14180         * modules/floorl: New file.
14181         * lib/floorl.c: Replace entire file.
14182         * m4/floorl.m4: New file.
14183         * lib/math.in.h (floorl): Replace declaration.
14184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
14185         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
14186         * doc/functions/floorl.texi: Mention the 'floorl' module.
14187         * modules/mathl (Files): Remove lib/floorl.c.
14188         (Depends-on): Add floorl.
14189
14190 2007-10-04  Bruno Haible  <bruno@clisp.org>
14191
14192         * modules/floorf-tests: New file.
14193         * tests/test-floorf.c: New file.
14194
14195         * modules/floorf: New file.
14196         * lib/floor.c: New file.
14197         * lib/floorf.c: New file.
14198         * m4/floorf.m4: New file.
14199         * lib/math.in.h (floorf): New declaration.
14200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
14201         HAVE_DECL_FLOORF.
14202         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
14203         HAVE_DECL_FLOORF.
14204         * doc/functions/floorf.texi: Mention the 'floorf' module.
14205
14206 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
14207             Bruno Haible  <bruno@clisp.org>
14208
14209         Advertise for the Git server instead of the CVS server.
14210         * doc/gnulib-intro.texi (Steady Development): Mention the Git
14211         repository instead of the CVS one.
14212         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
14213         about all VCS systems generically.
14214         * doc/gnulib.texi (Introduction): Capitalize `Git'.
14215
14216 2007-10-04  Bruno Haible  <bruno@clisp.org>
14217
14218         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
14219         means.
14220         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
14221
14222 2007-10-04  Bruno Haible  <bruno@clisp.org>
14223
14224         * modules/truncl-tests: New file.
14225         * tests/test-truncl.c: New file.
14226
14227         * modules/truncl: New file.
14228         * lib/truncl.c: New file.
14229         * m4/truncl.m4: New file.
14230         * lib/math.in.h (truncl): New declaration.
14231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
14232         HAVE_DECL_TRUNCL.
14233         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
14234         HAVE_DECL_TRUNCL.
14235         * doc/functions/truncl.texi: Mention the 'truncl' module.
14236
14237 2007-10-04  Bruno Haible  <bruno@clisp.org>
14238
14239         * modules/truncf-tests: New file.
14240         * tests/test-truncf.c: New file.
14241
14242         * modules/truncf: New file.
14243         * lib/trunc.c: Make paramerizable through USE_* macros.
14244         * lib/truncf.c: New file.
14245         * m4/truncf.m4: New file.
14246         * lib/math.in.h (truncf): New declaration.
14247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
14248         HAVE_DECL_TRUNCF.
14249         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
14250         HAVE_DECL_TRUNCF.
14251         * doc/functions/truncf.texi: Mention the 'truncf' module.
14252
14253 2007-10-03  Bruno Haible  <bruno@clisp.org>
14254
14255         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
14256         augmentation also for tests modules.
14257         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
14258         * modules/atexit-tests (Makefile.am): Likewise.
14259         * modules/binary-io-tests (Makefile.am): Likewise.
14260         * modules/c-strcase-tests (Makefile.am): Likewise.
14261         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
14262         * modules/canonicalize-tests (Makefile.am): Likewise.
14263         * modules/closein-tests (Makefile.am): Likewise.
14264         * modules/fprintf-posix-tests (Makefile.am): Likewise.
14265         * modules/freadahead-tests (Makefile.am): Likewise.
14266         * modules/fseek-tests (Makefile.am): Likewise.
14267         * modules/fseeko-tests (Makefile.am): Likewise.
14268         * modules/ftell-tests (Makefile.am): Likewise.
14269         * modules/ftello-tests (Makefile.am): Likewise.
14270         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
14271         * modules/isnanl-tests (Makefile.am): Likewise.
14272         * modules/lseek-tests (Makefile.am): Likewise.
14273         * modules/mbscasecmp-tests (Makefile.am): Likewise.
14274         * modules/mbscasestr-tests (Makefile.am): Likewise.
14275         * modules/mbschr-tests (Makefile.am): Likewise.
14276         * modules/mbscspn-tests (Makefile.am): Likewise.
14277         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
14278         * modules/mbspbrk-tests (Makefile.am): Likewise.
14279         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
14280         * modules/mbsrchr-tests (Makefile.am): Likewise.
14281         * modules/mbsspn-tests (Makefile.am): Likewise.
14282         * modules/mbsstr-tests (Makefile.am): Likewise.
14283         * modules/printf-posix-tests (Makefile.am): Likewise.
14284         * modules/snprintf-posix-tests (Makefile.am): Likewise.
14285         * modules/sprintf-posix-tests (Makefile.am): Likewise.
14286         * modules/tsearch-tests (Makefile.am): Likewise.
14287         * modules/uniname/uniname-tests (Makefile.am): Likewise.
14288         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
14289         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
14290         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
14291         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
14292         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
14293         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
14294         * modules/vprintf-posix-tests (Makefile.am): Likewise.
14295         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
14296         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
14297         * modules/xstrtoimax-tests (Makefile.am): Likewise.
14298         * modules/xstrtol-tests (Makefile.am): Likewise.
14299         * modules/xstrtoumax-tests (Makefile.am): Likewise.
14300         * modules/yesno-tests (Makefile.am): Likewise.
14301
14302 2007-10-03  Bruno Haible  <bruno@clisp.org>
14303
14304         * modules/trunc-tests: New file.
14305         * tests/test-trunc.c: New file.
14306
14307         * modules/trunc: New file.
14308         * lib/trunc.c: New file.
14309         * m4/trunc.m4: New file.
14310         * lib/math.in.h (trunc): New declaration.
14311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
14312         HAVE_DECL_TRUNC.
14313         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
14314         HAVE_DECL_TRUNC.
14315         * doc/functions/trunc.texi: Mention the 'trunc' module.
14316
14317 2007-10-03  Bruno Haible  <bruno@clisp.org>
14318
14319         * tests/test-fpending.c: New file, mostly copied
14320         from coreutils/lib/t-fpending.c.
14321         * modules/fpending-tests: New file.
14322
14323 2007-10-03  Bruno Haible  <bruno@clisp.org>
14324
14325         Port the stdio extensions to QNX (untested).
14326         * lib/fseterr.c (fseterr): Add support for QNX.
14327         * lib/fbufmode.c (fbufmode): Likewise.
14328         * lib/freadable.c (freadable): Likewise.
14329         * lib/fwritable.c (fwritable): Likewise.
14330         * lib/freading.c (freading): Likewise.
14331         * lib/fwriting.c (fwriting): Likewise.
14332         * lib/freadahead.c (freadahed): Likewise.
14333         * lib/fpurge.c (fpurge): Likewise.
14334         * lib/fseeko.c (rpl_fseeko): Likewise.
14335
14336 2007-10-03  Bruno Haible  <bruno@clisp.org>
14337             Jim Meyering  <jim@meyering.net>
14338             Eric Blake  <ebb9@byu.net>
14339
14340         * doc/relocatable.texi: Use @command instead of @program.
14341
14342 2007-10-02  Jim Meyering  <jim@meyering.net>
14343
14344         Perform one more "_.h" -> ".in.h" substitution.
14345         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
14346         instead of unistd_.h here, too.
14347
14348 2007-10-01  Bruno Haible  <bruno@clisp.org>
14349
14350         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
14351         Needed for the alloca-opt module.
14352
14353 2007-09-30  Bruno Haible  <bruno@clisp.org>
14354
14355         * lib/alloca.in.h: Renamed from lib/alloca_.h.
14356         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
14357         alloca_.h.
14358         * lib/argz.in.h: Renamed from lib/argz_.h.
14359         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
14360         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
14361         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
14362         byteswap_.h.
14363         * lib/dirent.in.h: Renamed from lib/dirent_.h.
14364         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
14365         dirent_.h.
14366         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
14367         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
14368         fcntl_.h.
14369         * lib/float.in.h: Renamed from lib/float_.h.
14370         * modules/float (Files, Makefile.am): Use float.in.h instead of
14371         float_.h.
14372         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
14373         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
14374         fnmatch_.h.
14375         * lib/getopt.in.h: Renamed from lib/getopt_.h.
14376         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
14377         getopt_.h.
14378         * lib/glob.in.h: Renamed from lib/glob_.h.
14379         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
14380         * lib/iconv.in.h: Renamed from lib/iconv_.h.
14381         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
14382         iconv_.h.
14383         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
14384         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
14385         inttypes_.h.
14386         * lib/locale.in.h: Renamed from lib/locale_.h.
14387         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
14388         locale_.h.
14389         * lib/math.in.h: Renamed from lib/math_.h.
14390         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
14391         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
14392         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
14393         of netinet_in_.h. Add dependency.
14394         * lib/poll.in.h: Renamed from lib/poll_.h.
14395         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
14396         * lib/search.in.h: Renamed from lib/search_.h.
14397         * modules/search (Files, Makefile.am): Use search.in.h instead of
14398         search_.h.
14399         * lib/signal.in.h: Renamed from lib/signal_.h.
14400         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
14401         _signal.h.
14402         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
14403         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
14404         stdbool_.h.
14405         * lib/stdint.in.h: Renamed from lib/stdint_.h.
14406         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
14407         stdint_.h.
14408         * lib/stdio.in.h: Renamed from lib/stdio_.h.
14409         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
14410         stdio_.h.
14411         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
14412         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
14413         stdlib_.h.
14414         * lib/string.in.h: Renamed from lib/string_.h.
14415         * modules/string (Files, Makefile.am): Use string.in.h instead of
14416         string_.h.
14417         * doc/gnulib-tool.texi (Initial import): Update.
14418         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
14419         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
14420         of sys_select_.h. Add dependency.
14421         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
14422         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
14423         of sys_socket_.h.
14424         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
14425         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
14426         sys_stat_.h.
14427         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
14428         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
14429         sys_time_.h.
14430         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
14431         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
14432         sysexits_.h.
14433         * lib/time.in.h: Renamed from lib/time_.h.
14434         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
14435         * lib/unistd.in.h: Renamed from lib/unistd_.h.
14436         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
14437         unistd_.h.
14438         * lib/wchar.in.h: Renamed from lib/wchar_.h.
14439         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
14440         wchar_.h.
14441         * lib/wctype.in.h: Renamed from lib/wctype_.h.
14442         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
14443         wctype_.h.
14444         * build-aux/bootstrap (slurp): Update.
14445         * lib/.cppi-disable: Update.
14446
14447 2007-09-30  Bruno Haible  <bruno@clisp.org>
14448
14449         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
14450         Needed on BeOS.
14451
14452 2007-09-30  Bruno Haible  <bruno@clisp.org>
14453
14454         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
14455
14456 2007-09-29  Bruno Haible  <bruno@clisp.org>
14457
14458         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
14459
14460 2007-09-29  Bruno Haible  <bruno@clisp.org>
14461
14462         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
14463         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
14464         * build-aux/install-reloc: Compile also areadlink.c.
14465         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
14466
14467 2007-09-29  Bruno Haible  <bruno@clisp.org>
14468
14469         * gnulib-tool (func_emit_initmacro_done): Indentation.
14470
14471 2007-09-29  Bruno Haible  <bruno@clisp.org>
14472
14473         * README: Add CVS checkout update instructions.
14474         Info from Bob Proulx <bob@proulx.com>.
14475
14476 2007-09-28  Eric Blake  <ebb9@byu.net>
14477
14478         Provide move-if-change.
14479         * build-aux/move-if-change: New file, based on best practice
14480         rather than any canonical upstream location.
14481
14482 2007-09-28  Jim Meyering  <jim@meyering.net>
14483
14484         Fix canonicalize loop-detection corner case.
14485         Do not attempt to stat the symlink values stored via seen_triple.
14486         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
14487         on linux-2.6.18, (but not 2.6.22).
14488         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
14489         triple_compare.  The former compares dev,ino,filename, while the latter
14490         would actually stat dirname(filename) when dev and ino were equal.
14491         * lib/hash-triple.c: Install <string.h>.
14492         (STREQ): Define.
14493         (triple_compare_ino_str): New function.
14494         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
14495
14496 2007-09-28  Eric Blake  <ebb9@byu.net>
14497
14498         Enforce that AC_REPLACE_FUNCS files exist.
14499         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
14500         override check for typos.
14501
14502         Fix test-closein on Solaris 10.
14503         * tests/test-closein.c (main): Don't assume stdin can be inherited
14504         closed on all systems.
14505         * tests/test-closein.sh: Likewise.
14506         Reported by Piotr Tarnowski.
14507
14508 2007-09-28  Jim Meyering  <jim@meyering.net>
14509
14510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
14511
14512 2007-09-27  Jim Meyering  <jim@meyering.net>
14513
14514         canonicalize: Avoid a false-positive cycle failure.
14515         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
14516         Sort.  Remove cycle-check.
14517         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
14518         not cycle-check.h.
14519         (seen_triple): New function.
14520         (canonicalize_filename_mode): Use it instead of cycle-check.
14521         * tests/test-canonicalize.c: Add a test for this bug.
14522         * tests/test-canonicalize.sh: Set up and run the test.
14523
14524         New module, file-set, from coreutils.
14525         * modules/file-set: Define it.
14526         * lib/file-set.c, lib/file-set.h: Implement.
14527
14528         New module, hash-triple, from coreutils.
14529         * modules/hash-triple: Define it.
14530         * lib/hash-triple.c, lib/hash-triple.h: Implement.
14531
14532 2007-09-25  Eric Blake  <ebb9@byu.net>
14533
14534         Fix strerror on Interix.
14535         * lib/string_.h (strerror): Declare replacement.
14536         * doc/functions/strerror.texi (strerror): Document the Interix
14537         shortcoming.
14538         * modules/string (Makefile.am): Support new hooks.
14539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
14540         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
14541         gl_FUNC_STRERROR_SEPARATE.
14542         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
14543         * lib/strerror.c (rpl_strerror): Provide replacement.
14544         * modules/strerror (Depends-on): Add string.
14545         (configure.ac): Detect use of module.
14546         * tests/test-strerror.c: New file.
14547         * modules/strerror-tests: New test module.
14548         * modules/argp (Depends-on): Add strerror.
14549         * modules/error (Depends-on): Likewise.
14550         Reported by Martin Koeppe.
14551
14552 2007-09-24  Bruno Haible  <bruno@clisp.org>
14553
14554         * README: Update git instructions.
14555
14556 2007-09-24  Eric Blake  <ebb9@byu.net>
14557
14558         Revert fpending breakage from 2007-09-08.
14559         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
14560         __fpending.c.
14561
14562 2007-09-24  Jim Meyering  <jim@meyering.net>
14563
14564         filenamecat.c: Add a test.
14565         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
14566         showing how the function works when DIR is the empty string.
14567
14568 2007-09-21  Simon Josefsson  <simon@josefsson.org>
14569
14570         * tests/test-canonicalize.sh: Turn on executable bit.
14571
14572 2007-09-19  Eric Blake  <ebb9@byu.net>
14573
14574         * README: Update CVS instructions.
14575
14576 2007-09-18  Bruno Haible  <bruno@clisp.org>
14577
14578         * modules/areadlink: New file.
14579         * lib/areadlink.h (areadlink): New declaration.
14580         * lib/areadlink.c: New file, based on lib/xreadlink.c.
14581
14582 2007-09-17  Jim Meyering  <jim@meyering.net>
14583
14584         * lib/savewd.c (ESTALE) [!defined]: Define.
14585         Reported to be required on Interix by Martin Koeppe.
14586
14587 2007-09-17  Bruno Haible  <bruno@clisp.org>
14588
14589         * gnulib-tool (func_version): Use $version.
14590
14591 2007-09-16  Bruno Haible  <bruno@clisp.org>
14592
14593         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
14594         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
14595         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
14596         Reported by Greg Schafer <gschafer@zip.com.au>.
14597
14598 2007-09-15  Bruno Haible  <bruno@clisp.org>
14599
14600         * gnulib-tool (sed): Try a little harder to make bash understand the
14601         alias.
14602         Reported by Bruce Korb <bruce.korb@gmail.com>.
14603
14604 2007-09-13  Eric Blake  <ebb9@byu.net>
14605
14606         * ChangeLog: Remove conflict markers.
14607
14608 2007-09-13  Simon Josefsson  <simon@josefsson.org>
14609
14610         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
14611         Reported by Bruno Haible <bruno@clisp.org>.
14612
14613 2007-09-12  Bruno Haible  <bruno@clisp.org>
14614
14615         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
14616         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
14617         is not defined.
14618
14619 2007-09-12  Eric Blake  <ebb9@byu.net>
14620
14621         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
14622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
14623         Autoconf definition.
14624         * modules/euidaccess (Depends-on): Add extensions, for
14625         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
14626         * modules/fnmatch (Depends-on): Likewise.
14627         * modules/getaddrinfo (Depends-on): Likewise.
14628         * modules/getdelim (Depends-on): Likewise.
14629         * modules/getline (Depends-on): Likewise.
14630         * modules/getsubopt (Depends-on): Likewise.
14631         * modules/gettext (Depends-on): Likewise.
14632         * modules/group-member (Depends-on): Likewise.
14633         * modules/mbchar (Depends-on): Likewise.
14634         * modules/memmem (Depends-on): Likewise.
14635         * modules/mempcpy (Depends-on): Likewise.
14636         * modules/memrchr (Depends-on): Likewise.
14637         * modules/pagealign_alloc (Depends-on): Likewise.
14638         * modules/readutmp (Depends-on): Likewise.
14639         * modules/stpcpy (Depends-on): Likewise.
14640         * modules/stpncpy (Depends-on): Likewise.
14641         * modules/strchrnul (Depends-on): Likewise.
14642         * modules/strndup (Depends-on): Likewise.
14643         * modules/strsep (Depends-on): Likewise.
14644         * modules/strverscmp (Depends-on): Likewise.
14645         * modules/vasprintf (Depends-on): Likewise.
14646         * modules/wcwidth (Depends-on): Likewise.
14647         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
14648         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
14649         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
14650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
14651         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14653         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
14654         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14655         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
14656         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
14659         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
14660         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14661         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
14662         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14664         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
14665         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14666         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
14667         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
14668         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
14669         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
14670         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
14671         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
14672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14673         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
14674         so that lock.m4 can be used in gettext without extensions module.
14675
14676 2007-09-11  Bruno Haible  <bruno@clisp.org>
14677
14678         * m4/isc-posix.m4: Remove file.
14679         Suggested by Eric Blake.
14680
14681 2007-09-11  Eric Blake  <ebb9@byu.net>
14682
14683         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
14684
14685 2007-09-10  Bruno Haible  <bruno@clisp.org>
14686
14687         * posix-modules: Fix typo in error message.
14688         Reported by Matt <mkraai@beckman.com>.
14689
14690 2007-09-09  Bruno Haible  <bruno@clisp.org>
14691
14692         * doc/functions/getdelim.texi: Update list of platforms lacking the
14693         function.
14694         * doc/functions/getline.texi: Likewise.
14695
14696 2007-09-09  Jim Meyering  <jim@meyering.net>
14697
14698         * lib/hash.c (hash_initialize): Detect calloc failure.
14699         Reported by Bruno Haible.
14700
14701 2007-09-09  Bruno Haible  <bruno@clisp.org>
14702
14703         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
14704         malloc or realloc fails.
14705
14706 2007-09-09  Bruno Haible  <bruno@clisp.org>
14707
14708         * modules/getcwd (Depends-on): Add malloc-posix.
14709         * modules/glob (Depends-on): Likewise.
14710         * modules/putenv (Depends-on): Likewise.
14711         * modules/strdup (Depends-on): Likewise.
14712         * modules/getdelim (Depends-on): Add realloc-posix.
14713         * modules/read-file (Depends-on): Likewise.
14714
14715 2007-09-09  Bruno Haible  <bruno@clisp.org>
14716
14717         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
14718         (gl_FUNC_MALLOC_POSIX): Require it.
14719         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
14720         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
14721         * modules/realloc (Files): Add m4/malloc.m4.
14722         * modules/calloc (Files): Likewise.
14723
14724 2007-09-09  Bruno Haible  <bruno@clisp.org>
14725
14726         * modules/malloc-posix: New file.
14727         * modules/malloc (Depends-on): Add malloc-posix.
14728         * lib/malloc.c: Include errno.h.
14729         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
14730         and a POSIX-compatible malloc into a single function. Set ENOMEM
14731         when returning NULL.
14732         * m4/malloc.m4: New file.
14733         * doc/functions/malloc.texi: Mention the malloc-posix module.
14734         * lib/stdlib_.h (malloc): New declaration.
14735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14736         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
14737         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
14738         and HAVE_MALLOC_POSIX.
14739
14740 2007-09-09  Bruno Haible  <bruno@clisp.org>
14741
14742         * modules/realloc-posix: New file.
14743         * modules/realloc (Depends-on): Add realloc-posix.
14744         * lib/realloc.c: Include errno.h.
14745         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
14746         and a POSIX-compatible realloc into a single function. Set ENOMEM
14747         when returning NULL.
14748         * m4/realloc.m4: New file.
14749         * doc/functions/realloc.texi: Mention the realloc-posix module.
14750         * lib/stdlib_.h (realloc): New declaration.
14751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14752         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
14753         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
14754         and HAVE_REALLOC_POSIX.
14755
14756 2007-09-09  Bruno Haible  <bruno@clisp.org>
14757
14758         * modules/calloc-posix: New file.
14759         * modules/calloc (Depends-on): Add calloc-posix.
14760         * lib/calloc.c: Include errno.h.
14761         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
14762         and a POSIX-compatible calloc into a single function. Set ENOMEM
14763         when returning NULL.
14764         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
14765         * doc/functions/calloc.texi: Mention the calloc-posix module.
14766         * lib/stdlib_.h (calloc): New declaration.
14767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14768         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
14769         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
14770         and HAVE_CALLOC_POSIX.
14771
14772 2007-09-09  Bruno Haible  <bruno@clisp.org>
14773
14774         Allow for modules to show an arbitrary notice.
14775         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
14776         * gnulib-tool: New option --extract-notice.
14777         (func_usage): Document it.
14778         (sed_extract_prog): Update.
14779         (func_get_notice): New function.
14780         (func_modules_notice): New function.
14781         (func_import, func_create_testdir): Invoke it.
14782         Suggested by Jim Meyering.
14783
14784 2007-09-09  Bruno Haible  <bruno@clisp.org>
14785
14786         * gnulib-tool: New options --verbose, --quiet.
14787         (func_usage): Document them.
14788         (verbose): New variable.
14789         (func_execute_command): New function.
14790         (func_import): Don't show the module list and the file list if
14791         $verbose < 0.
14792         (func_create_testdir): Likewise. Use func_execute_command.
14793         (func_create_megatestdir): Use func_execute_command.
14794
14795 2007-09-08  Bruno Haible  <bruno@clisp.org>
14796
14797         * gnulib-tool (func_import): Prefer rsync over wget when available,
14798         for fetching the PO files.
14799
14800 2007-09-08  Bruno Haible  <bruno@clisp.org>
14801
14802         * posix-modules: New file. Portions copied from gnulib-tool.
14803         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
14804
14805 2007-09-08  Jim Meyering  <jim@meyering.net>
14806
14807         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
14808         * lib/fpending.h: Rename from __fpending.h.
14809         * lib/fpending.c: Rename from __fpending.c.
14810         Include "fpending.h", not "__fpending.h".
14811         * lib/__fpending.h, lib/__fpending.c: Remove files.
14812         * modules/fpending (Files): Reflect new file names.
14813         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
14814
14815 2007-09-08  Bruno Haible  <bruno@clisp.org>
14816
14817         * m4/inttypes-h.m4: Remove stub file.
14818
14819 2007-09-07  Simon Josefsson  <simon@josefsson.org>
14820
14821         * doc/headers/stdint.texi: Discuss #include_next issue.
14822
14823 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
14824
14825         * build-aux/bootstrap: Remove obsolete comment about wget --help.
14826
14827 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14828
14829         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
14830         in variable name.
14831
14832 2007-09-03  Jim Meyering  <jim@meyering.net>
14833
14834         New module: git-version-gen.
14835         * modules/git-version-gen: New file.
14836
14837         Import changes from coreutils for bootstrap script.
14838
14839         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
14840
14841         bootstrap: uses rsync to download the .po files
14842         * build-aux/bootstrap (po_download_command_format): New global.
14843         (download_po_files): Use rsync.
14844         (update_po_files): Don't remove .po files after download,
14845         so future rsync runs can take advantage of the copies.
14846
14847         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
14848
14849         Solve the unnecessary-.po-file-regeneration problem once and for all.
14850         * build-aux/bootstrap (download_po_files): New function, renamed from
14851         get_translations.  Now, downloads, but doesn't update LINGUAS.
14852         (update_po_files): New function.
14853
14854         bootstrap: Ignore more.
14855         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
14856         uniwidth to e.g., lib/.gitignore.
14857         (slurp): Handle the sys_stat_.h -> sys mapping, too.
14858
14859         * build-aux/bootstrap: New setting: vc_ignore.
14860         (insert_sorted_if_absent): Create $file if absent.
14861         Adapt to new, possibly empty, list: $vc_ignore.
14862
14863         bootstrap: generate more ignorable names
14864         * build-aux/bootstrap (slurp): When generating ignorable names,
14865         also map .sin to .sed, .gperf to .c, and .y to .c.
14866
14867 2007-09-03  Jim Meyering  <jim@meyering.net>
14868
14869         * build-aux/git-version-gen: New file, from coreutils.  For details, see
14870         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
14871
14872 2007-09-02  Bruno Haible  <bruno@clisp.org>
14873
14874         Fix mis-recognition of 'mcs' on QNX 6.
14875         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
14876         output contains the string "Mono".
14877         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
14878         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
14879
14880 2007-09-01  Bruno Haible  <bruno@clisp.org>
14881
14882         Fix collision between uniwidth/* and linebreak modules.
14883         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
14884         u32_width): Remove declarations.
14885         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
14886         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
14887         streq3, streq2, streq1, streq0): Remove functions.
14888         (STREQ): Remove macro.
14889         (is_cjk_encoding): Remove function.
14890         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
14891         (uc_width, u8_width, u16_width, u32_width): Remove functions.
14892         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
14893         * NEWS: Document the change.
14894
14895 2007-09-01  Bruno Haible  <bruno@clisp.org>
14896
14897         * lib/streq.h: Add double-inclusion guard.
14898
14899 2007-09-01  Karl Berry  <karl@gnu.org>
14900
14901         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
14902
14903 2007-08-28  Jim Meyering  <jim@meyering.net>
14904
14905         Rename mreadlink_with_size to areadlink_with_size.
14906         * NEWS: Document the change.
14907         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
14908         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
14909         * lib/mreadlink.h: Rename this to...
14910         * lib/areadlink.h: ...this.
14911         * modules/mreadlink-with-size: Rename this to...
14912         * modules/areadlink-with-size: ...this.
14913         * lib/canonicalize.c: Reflect the renaming.
14914         * modules/canonicalize: Likewise.
14915
14916 2007-08-26  Bruno Haible  <bruno@clisp.org>
14917
14918         * gnulib-tool (func_import): When deciding which files to remove,
14919         consider also dangling symbolic links.
14920         Reported by Eric Blake.
14921
14922 2007-08-26  Bruno Haible  <bruno@clisp.org>
14923
14924         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
14925
14926 2007-08-23  Simon Josefsson  <simon@josefsson.org>
14927
14928         * lib/readline.c: Don't include getline.h, the prototype is now
14929         found in stdio.h.
14930
14931 2007-08-23  Jim Meyering  <jim@meyering.net>
14932
14933         Getdelim touchup.
14934         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
14935         around the funlockfile call, since funlockfile never sets errno.
14936         Don't set errno upon failed realloc.
14937
14938 2007-08-22  Eric Blake  <ebb9@byu.net>
14939
14940         Getline touchups.
14941         * lib/getdelim.c (getdelim): Revert regression that required *n to
14942         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
14943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
14944         getdelim, rather than whether implementation is missing.
14945         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
14946         * lib/stdio_.h (getline): Also declare if replacement is
14947         required.
14948         * doc/functions/getdelim.texi: New file.
14949         * doc/functions/getline.texi: Likewise.
14950         * doc/gnulib.texi (Function Substitutes): Add new files.
14951         Reported by Bruno Haible.
14952
14953 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
14954
14955         * users.txt: Add Guile.
14956
14957 2007-08-22  Eric Blake  <ebb9@byu.net>
14958
14959         * tests/test-getdelim.c (main): Use remove, not unlink.
14960         * tests/test-getline.c (main): Likewise.
14961
14962         Move getline and getdelim into stdio.h, per POSIX 200x.
14963         * modules/getline (Files): Remove getline.h.
14964         (Depends-on): Add stdio.
14965         (configure.ac): Add module indicator.
14966         * modules/getdelim (Files): Remove getdelim.h.
14967         (Depends-on): Add stdio.
14968         (configure.ac): Add module indicator.
14969         * modules/stdio (Makefile.am): Work with new indicators.
14970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14971         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
14972         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14973         * lib/getdelim.h: Delete.
14974         * lib/getline.h: Delete.
14975         * lib/stdio_.h (getdelim, getline): Declare.
14976         * modules/getdelim-tests: New module.
14977         * modules/getline-tests: Likewise.
14978         * tests/test-getdelim.c: New file.
14979         * tests/test-getline.c: Likewise.
14980         * NEWS: Document the change.
14981         * lib/getline.c: Update choice of header.
14982         * lib/csharpcomp.c: Likewise.
14983         * lib/getpass.c: Likewise.
14984         * lib/javacomp.c: Likewise.
14985         * lib/javaversion.c: Likewise.
14986         * lib/yesno.c: Likewise.
14987         * lib/getdelim.c: Likewise.
14988         (getdelim): Set errno on failure, and avoid memory leak.
14989
14990 2007-08-19  Bruno Haible  <bruno@clisp.org>
14991
14992         * modules/closein (Depends-on): Add freadahead.
14993         * lib/closein.c: Include freadahead.h.
14994         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
14995         is zero.
14996
14997 2007-08-19  Bruno Haible  <bruno@clisp.org>
14998
14999         * modules/freadahead-tests: New file.
15000         * tests/test-freadahead.sh: New file.
15001         * tests/test-freadahead.c: New file.
15002
15003         * modules/freadahead: New file.
15004         * lib/freadahead.h: New file.
15005         * lib/freadahead.c: New file.
15006         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
15007         fbufmode, fpurge, freadable, fwritable.
15008
15009 2007-08-19  Eric Blake  <ebb9@byu.net>
15010
15011         Test yesno in combination with closein.
15012         * lib/yesno.c (yesno): Document use of stdin.
15013         * modules/yesno-tests (Files): New module.
15014         * tests/test-yesno.c (main): New file.
15015         * tests/test-yesno.sh: Likewise.
15016
15017 2007-08-19  Bruno Haible  <bruno@clisp.org>
15018
15019         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
15020         * lib/fseeko.c (rpl_fseeko): Likewise.
15021         * lib/fseterr.c (fseterr): Likewise.
15022
15023 2007-08-19  Bruno Haible  <bruno@clisp.org>
15024
15025         * tests/test-lseek.c (main): Disable a test for BeOS.
15026         * doc/functions/lseek.texi: Document the BeOS bug.
15027
15028 2007-08-19  Bruno Haible  <bruno@clisp.org>
15029             Eric Blake  <ebb9@byu.net>
15030
15031         * lib/lseek.c: Include <sys/stat.h>.
15032         (rpl_lseek): Add workaround code also for Unix platforms.
15033         Needed for BeOS.
15034         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
15035         * doc/functions/lseek.texi: Document BeOS definiency.
15036
15037 2007-08-18  Bruno Haible  <bruno@clisp.org>
15038
15039         * modules/fstrcmp-tests: New file.
15040         * tests/test-fstrcmp.c: New file.
15041
15042 2007-08-18  Bruno Haible  <bruno@clisp.org>
15043
15044         * modules/fstrcmp: New file, from GNU gettext with modifications.
15045         * lib/fstrcmp.h: New file, from GNU gettext.
15046         * lib/fstrcmp.c: New file, from GNU gettext.
15047         * MODULES.html.sh (String handling): Add fstrcmp.
15048
15049 2007-08-18  Bruno Haible  <bruno@clisp.org>
15050
15051         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
15052         'bool'.
15053         (diag, compareseq): Remove const from the ctxt argument.
15054         (USE_HEURISTIC): Undefine at the end.
15055
15056 2007-08-18  Jim Meyering  <jim@meyering.net>
15057
15058         New file: lib/idcache.h
15059         * NEWS: Mention the addition.
15060         * modules/idcache (Files): Add lib/idcache.h
15061         * lib/idcache.c: Include "idcache.h".
15062         Don't include <sys/types.h>.
15063         Add a FIXME comment.
15064         Move file-scoped "static" declarations to the top.
15065         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
15066
15067 2007-08-17  Bruno Haible  <bruno@clisp.org>
15068         and Paul Eggert  <eggert@cs.ucla.edu>
15069
15070         * MODULES.html.sh: Add diffseq.
15071         * modules/diffseq: New file.
15072         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
15073         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
15074
15075 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15076
15077         Import changes from coreutils for bootstrap script.
15078
15079         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
15080
15081         * build-aux/bootstrap (slurp): Work even in environments where
15082         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
15083         current code does not slurp files whose names start with ".", and
15084         this looks like it might be a troublesome area.
15085
15086         2007-07-11  Jim Meyering  <jim@meyering.net>
15087
15088         If there's a GPL vN copyright comment, require that N == 3.
15089
15090         2007-07-08  Jim Meyering  <jim@meyering.net>
15091
15092         Run the coreutils-specific code only if tests/Makefile.am.in exists.
15093         * build-aux/bootstrap (mam_template): Move definition out of loop.
15094
15095         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
15096
15097         * build-aux/bootstrap (symlink_to_dir): Rename function from
15098         symlink_to_gnulib.  Add a directory parameter.  Update all
15099         callers.
15100         (cp_mark_as_generated): Also check for -- and link to -- files in
15101         gl/.
15102
15103         2007-07-08  Jim Meyering  <jim@meyering.net>
15104
15105         Adapt to deeper hierarchy in gnulib.
15106         * build-aux/bootstrap (symlink_to_dir): If the destination
15107         directory doesn't exist, create it. This is required at least for
15108         "lib/uniwidth/cjk.h".
15109
15110         2007-05-15  Jim Meyering  <jim@meyering.net>
15111
15112         * build-aux/bootstrap: Now that generated Makefile.am files
15113         are no longer under version control, they must be created at
15114         bootstrap time.
15115
15116 2007-08-14  Ben Pfaff  <blp@gnu.org>
15117
15118         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
15119
15120 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
15121
15122         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
15123         given the changes below.
15124         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
15125         even on hosts that have padding bits beyond the supported 64.
15126
15127 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15128
15129         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
15130         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
15131         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
15132         depends on it.
15133         (xstrtol_error): Remove.
15134         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
15135         but with a different signature.
15136         (ATTRIBUTE_NORETURN, __attribute__): New macros.
15137         * lib/xstrtol-error.c: Include exitfail.h.
15138         (xstrtol_fatal): New function, with a different signature from the
15139         old xstrtol_error, so that the caller need not worry about passing
15140         in an exit status, or about storage management of the option argument.
15141         (xstrtol_error): Now a static function.  Redo signature to
15142         implement xstrtol_fatal.  Output the correct number of hyphens in
15143         front of the option so that the caller need not worry about
15144         storage management.
15145         (N_): New macro.
15146         (_): Remove; not used now.
15147         * modules/xstrtol: Depend on getopt.
15148         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
15149         of old STRTOL_FATAL_ERROR macro.
15150         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
15151         of test program.
15152         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
15153         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
15154
15155 2007-08-08  Eric Blake  <ebb9@byu.net>
15156
15157         * lib/xstrtol-error.c: Add missing include.
15158
15159         Move xstrtol messages into gnulib domain, when --pobase is used.
15160         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
15161         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
15162         * modules/xstrtol (Files): Distribute new file.
15163         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
15164         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
15165         * tests/test-xstrtol.c: ...into new file.
15166         * tests/test-xstrtoul.c: Also test xstrtoul.
15167         * tests/test-xstrtoimax.c: Also test xstrtoimax.
15168         * tests/test-xstrtoumax.c: Also test xstrtoumax.
15169         * tests/test-xstrtol.sh: Drive the tests.
15170         * tests/test-xstrtoimax.sh: Likewise.
15171         * tests/test-xstrtoumax.sh: Likewise.
15172         * modules/xstrtol-tests: New module.
15173         * modules/xstrtoimax-tests: Likewise.
15174         * modules/xstrtoumax-tests: Likewise.
15175
15176 2007-08-08  Jim Meyering  <jim@meyering.net>
15177
15178         New function: mfile_name_concat.
15179         * lib/filenamecat.c (mfile_name_concat): New function, just like
15180         file_name_concat, but return NULL upon failure rather than exiting
15181         with a diagnostic.
15182         * lib/filenamecat.h: Declare it.
15183
15184 2007-08-07  Bruno Haible  <bruno@clisp.org>
15185
15186         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
15187         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
15188         warning from gcc.
15189         Reported by Eric Blake.
15190
15191 2007-08-07  Simon Josefsson  <simon@josefsson.org>
15192
15193         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
15194         * modules/crypto/arcfour (License): Likewise.
15195         * modules/crypto/des-tests (License): Likewise.
15196         * modules/crypto/gc-arctwo-tests (License): Likewise.
15197         * modules/crypto/gc-des-tests (License): Likewise.
15198         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
15199         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
15200         * modules/crypto/gc-md2-tests (License): Likewise.
15201         * modules/crypto/gc-md4-tests (License): Likewise.
15202         * modules/crypto/gc-md5-tests (License): Likewise.
15203         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
15204         * modules/crypto/gc-rijndael-tests (License): Likewise.
15205         * modules/crypto/gc-sha1-tests (License): Likewise.
15206         * modules/crypto/gc-tests (License): Likewise.
15207         * modules/crypto/hmac-md5 (License): Likewise.
15208         * modules/crypto/hmac-sha1 (License): Likewise.
15209         * modules/crypto/md2-tests (License): Likewise.
15210         * modules/crypto/md4-tests (License): Likewise.
15211         * modules/crypto/md5 (License): Likewise.
15212         * modules/crypto/rijndael (License): Likewise.
15213         * modules/crypto/sha1 (License): Likewise.
15214         * modules/memxor (License): Likewise.
15215
15216 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
15217         and Bruno Haible  <bruno@clisp.org>
15218
15219         * NEWS: Describe interface changes to human, xstrtol.
15220         * lib/human.h: Include <xstrtol.h>.
15221         (human_options): Return enum strtol_error, not int.  Remove
15222         bool arg; take int * instead.
15223         * lib/human.c: Don't include "gettext.h".
15224         (_): Remove; no longer used.
15225         Don't include <xstrtol.h>, since human.h does it.
15226         (human_options): Adjust to abovementioned interface changes.
15227         Do not report error to stderr; that's now the caller's
15228         responsibility.
15229         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
15230         interface change.
15231         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
15232         Str, Argument_type_string.  All uses changed.  Put " argument"
15233         in diagnostics to make them clearer.  Change wording of suffix
15234         message for clarity.
15235         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
15236         Argument_type_string.
15237         (STRTOL_FATAL_WARN): Remove; no longer used.
15238         * modules/human (Depends-on): Remove gettext-h.
15239
15240 2007-08-06  Simon Josefsson  <simon@josefsson.org>
15241
15242         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
15243
15244 2007-07-31  Bruno Haible  <bruno@clisp.org>
15245
15246         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
15247         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
15248         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
15249
15250 2007-07-31  Bruno Haible  <bruno@clisp.org>
15251
15252         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
15253         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
15254
15255 2007-07-30  Bruno Haible  <bruno@clisp.org>
15256
15257         * modules/base64 (License): Use the synonymous term "LGPLv2+".
15258         * modules/c-ctype (License): Likewise.
15259         * modules/c-strcase (License): Likewise.
15260         * modules/check-version (License): Likewise.
15261         * modules/iconv (License): Likewise.
15262         * modules/iconv_open (License): Likewise.
15263         * modules/read-file (License): Likewise.
15264         * modules/striconv (License): Likewise.
15265         * modules/strverscmp (License): Likewise.
15266         * modules/vasprintf (License): Likewise.
15267         * modules/crypto/des (License): Likewise.
15268         * modules/crypto/gc (License): Likewise.
15269         * modules/crypto/gc-arcfour (License): Likewise.
15270         * modules/crypto/gc-arctwo (License): Likewise.
15271         * modules/crypto/gc-des (License): Likewise.
15272         * modules/crypto/gc-hmac-md5 (License): Likewise.
15273         * modules/crypto/gc-hmac-sha1 (License): Likewise.
15274         * modules/crypto/gc-md2 (License): Likewise.
15275         * modules/crypto/gc-md4 (License): Likewise.
15276         * modules/crypto/gc-md5 (License): Likewise.
15277         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
15278         * modules/crypto/gc-random (License): Likewise.
15279         * modules/crypto/gc-rijndael (License): Likewise.
15280         * modules/crypto/gc-sha1 (License): Likewise.
15281         * modules/crypto/md2 (License): Likewise.
15282         * modules/crypto/md4 (License): Likewise.
15283
15284 2007-07-30  Jim Meyering  <jim@meyering.net>
15285
15286         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
15287         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
15288         it has valid stat data.  This bug would cause du not to count the
15289         sizes of inaccessible directories.
15290         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
15291         in <http://bugzilla.redhat.com/250077>.
15292
15293 2007-07-25  Peter O'Gorman  <peter@pogma.com>
15294             Bruno Haible  <bruno@clisp.org>
15295
15296         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
15297         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
15298         #include_next, gives a diagnostic about it, but reports no error in
15299         the exit code.
15300         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
15301
15302 2007-07-24  Ben Pfaff  <blp@gnu.org>
15303
15304         Improve name: "count-one-bits" is better than "popcount".
15305         * MODULES.html.sh: Update name.
15306         * lib/popcount.h: Renamed lib/count-one-bits.h.
15307         (popcount): Renamed count_one_bits.
15308         (popcountl): Renamed count_one_bits_l.
15309         (popcountll): Renamed count_one_bits_ll.
15310         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
15311         * modules/popcount: Renamed module/count-one-bits.
15312         * modules/popcount-tests: Renamed module/count-one-bits-tests.
15313         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
15314
15315 2007-07-23  Ben Pfaff  <blp@gnu.org>
15316
15317         * lib/popcount.h (popcount32): Reduce size of constants, to allow
15318         better code generation, and add U to large constants to avoid
15319         warnings, in non-GCC case.
15320         Suggested by Bruno Haible.
15321
15322 2007-07-23  Ben Pfaff  <blp@gnu.org>
15323
15324         * lib/popcount.h: Use verify_true instead of if...abort.
15325         * modules/popcount: Depend on verify module.
15326         Suggested by Jim Meyering.
15327
15328 2007-07-23  Bruno Haible  <bruno@clisp.org>
15329
15330         * gnulib-tool (func_import): Create a .cvsignore file also when the
15331         directory is not yet in CVS but the toplevel directory is. When
15332         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
15333         Reported by Karl Berry.
15334
15335 2007-07-22  Ben Pfaff  <blp@gnu.org>
15336
15337         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
15338         case.
15339         Suggested by Eric Blake.
15340
15341 2007-07-22  Ben Pfaff  <blp@gnu.org>
15342
15343         New module: popcount.
15344         * MODULES.html.sh: Add popcount.
15345         * modules/popcount: New file.
15346         * modules/popcount-tests: New file.
15347         * tests/test-popcount.c: New file.
15348         * lib/popcount.h: New file.
15349         * m4/popcount.m4: New file.
15350
15351 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15352
15353         * build-aux/announce-gen: Update to GPLv3.
15354
15355         * build-aux/config.guess: Update from config.
15356
15357 2007-07-21  Bruno Haible  <bruno@clisp.org>
15358
15359         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
15360         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
15361
15362 2007-07-20  Jim Meyering  <jim@meyering.net>
15363
15364         * check-module: Diagnose a self-dependency.
15365
15366 2007-07-19  Bruno Haible  <bruno@clisp.org>
15367
15368         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
15369         empty.
15370         Reported by Eric Blake.
15371
15372 2007-07-18  Bruno Haible  <bruno@clisp.org>
15373
15374         * gnulib-tool: New options --po-base, --po-domain.
15375         (func_usage): Document them.
15376         (pobase, po_domain): New variables.
15377         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
15378         DEFAULT_TEXT_DOMAIN.
15379         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
15380         (func_import): Consider pobase and po_domain. Create a po/ directory.
15381         (func_create_testdir): Set pobase and po_domain to empty.
15382         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
15383         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
15384
15385 2007-07-18  Bruno Haible  <bruno@clisp.org>
15386
15387         * gnulib-tool (func_get_automake_snippet): Synthesize also an
15388         EXTRA_DIST augmentation for files in build-aux/.
15389
15390 2007-07-16  Bruno Haible  <bruno@clisp.org>
15391
15392         * modules/lseek (License): Use the synonymous term "LGPLv2+".
15393         * modules/getdelim (License): Likewise.
15394
15395 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15396
15397         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
15398         * modules/d-type (License): Likewise.
15399         * modules/extensions (License): Likewise.
15400         * modules/fnmatch (License): Likewise.
15401         * modules/fseeko (License): Likewise.
15402         * modules/getaddrinfo (License): Likewise.
15403         * modules/getline (License): Likewise.
15404         * modules/getlogin_r (License): Likewise.
15405         * modules/getpass (License): Likewise.
15406         * modules/gettimeofday (License): Likewise.
15407         * modules/glob (License): Likewise.
15408         * modules/inet_ntop (License): Likewise.
15409         * modules/malloc (License): Likewise.
15410         * modules/malloca (License): Likewise.
15411         * modules/memmem (License): Likewise.
15412         * modules/mempcpy (License): Likewise.
15413         * modules/memset (License): Likewise.
15414         * modules/minmax (License): Likewise.
15415         * modules/mktime (License): Likewise.
15416         * modules/netinet_in (License): Likewise.
15417         * modules/pathmax (License): Likewise.
15418         * modules/poll (License): Likewise.
15419         * modules/regex (License): Likewise.
15420         * modules/snprintf (License): Likewise.
15421         * modules/stdbool (License): Likewise.
15422         * modules/stdint (License): Likewise.
15423         * modules/stdio (License): Likewise.
15424         * modules/strcase (License): Likewise.
15425         * modules/strcasestr (License): Likewise.
15426         * modules/strdup (License): Likewise.
15427         * modules/string (License): Likewise.
15428         * modules/strndup (License): Likewise.
15429         * modules/strnlen (License): Likewise.
15430         * modules/strpbrk (License): Likewise.
15431         * modules/strptime (License): Likewise.
15432         * modules/strsep (License): Likewise.
15433         * modules/sys_select (License): Likewise.
15434         * modules/sys_socket (License): Likewise.
15435         * modules/sys_stat (License): Likewise.
15436         * modules/sys_time (License): Likewise.
15437         * modules/time (License): Likewise.
15438         * modules/time_r (License): Likewise.
15439         * modules/timegm (License): Likewise.
15440         * modules/unistd (License): Likewise.
15441         * modules/vsnprintf (License): Likewise.
15442         * modules/wctype (License): Likewise.
15443
15444 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15445
15446         * modules/argz (License): LGPLv2+.
15447
15448 2007-07-15  Karl Berry  <karl@gnu.org>
15449
15450         * doc/gnulib.texi: revise node structure per new fdl.texi.
15451
15452 2007-07-14  Bruno Haible  <bruno@clisp.org>
15453
15454         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
15455         the output file.
15456         * lib/uniname/uninames.h: Regenerated.
15457
15458 2007-07-14  Karl Berry  <karl@gnu.org>
15459
15460         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
15461         omitting sectioning and index commands.
15462
15463 2007-07-13  Bruno Haible  <bruno@clisp.org>
15464
15465         New gnulib-tool option --more-symlinks.
15466         * gnulib-tool (func_usage): Document --more-symlinks.
15467         (do_copyrights): New variable.
15468         Recognize option --more-symlinks.
15469         (func_import): Don't add a copyright notice transform to
15470         sed_transform_lib_file if do_copyrights is empty.
15471
15472 2007-07-13  Bruno Haible  <bruno@clisp.org>
15473
15474         * lib/vasnprintf.c (decimal_point_char): Define also if
15475         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
15476         && !NEED_PRINTF_DIRECTIVE_A.
15477         Reported by Clemens Koller <clemens.koller@anagramm.de> via
15478         Gary V. Vaughan <gary@gnu.org>.
15479
15480 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15481
15482         * lib/inttypes_.h: Undo previous change, since it was fixed
15483         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
15484
15485 2007-07-13  Bruno Haible  <bruno@clisp.org>
15486
15487         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
15488         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
15489
15490 2007-07-13  Jim Meyering  <jim@meyering.net>
15491
15492         df: Don't fail for Tru64's "file-on-file mount".
15493         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
15494         so we fall through and use statfs instead.  Details here:
15495         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
15496         Reported by Albert Chin.
15497
15498 2007-07-13  Bruno Haible  <bruno@clisp.org>
15499
15500         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
15501         * modules/configmake (License): Likewise.
15502         * modules/gettext (License): Likewise.
15503         * modules/gettext-h (License): Likewise.
15504         * modules/include_next (License): Likewise.
15505         * modules/link-warning (License): Likewise.
15506         * modules/localcharset (License): Likewise.
15507         * modules/localename (License): Likewise.
15508         * modules/lock (License): Likewise.
15509         * modules/relocatable-lib-lgpl (License): Likewise.
15510         * modules/size_max (License): Likewise.
15511         * modules/vasnprintf (License): Likewise.
15512         * modules/wchar (License): Likewise.
15513         * modules/xsize (License): Likewise.
15514
15515 2007-07-13  Bruno Haible  <bruno@clisp.org>
15516
15517         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
15518         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
15519
15520 2007-07-12  Bruno Haible  <bruno@clisp.org>
15521
15522         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
15523         in the modules files.
15524
15525 2007-07-11  Karl Berry  <karl@gnu.org>
15526
15527         * MODULES.html.sh (func_module): use
15528          sed -e '\|^'"${includefile}"'$|d'
15529          instead of /.../d, to avoid errors on $includefile's containing /.
15530
15531 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15532
15533         * gnulib-tool (func_import): Avoid duplication of --avoid
15534         statements
15535         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
15536         names to `_' in variable names.
15537
15538 2007-07-10  Eric Blake  <ebb9@byu.net>
15539
15540         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
15541         * NEWS: Document this change.
15542
15543 2007-07-08  Bruno Haible  <bruno@clisp.org>
15544
15545         Update to Unicode 5.0.
15546         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
15547         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
15548         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
15549         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
15550         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
15551         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
15552         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
15553         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
15554         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
15555         U+10A3F, U+1D242..U+1D244.
15556         (nonspacing_table_ind): Update.
15557         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
15558         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
15559
15560 2007-07-08  Bruno Haible  <bruno@clisp.org>
15561
15562         Update to Unicode 5.0.
15563         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
15564         code transform. Extend the name index field of unicode_name_to_code and
15565         unicode_code_to_name from 16 to 24 bits.
15566         * lib/uniname/uniname.c (unicode_character_name,
15567         unicode_name_character): Add the range 0x12xxx to the code transform.
15568         * lib/uniname/uninames.h: Regenerated.
15569         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
15570
15571 2007-07-07  Bruno Haible  <bruno@clisp.org>
15572
15573         * modules/wcwidth-tests: New file.
15574         * tests/test-wcwidth.c: New file.
15575
15576         Work around MacOS X wcwidth() bug.
15577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
15578         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
15579         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
15580         original wcwidth in non-UTF-8 locales.
15581         * modules/wcwidth (Depends-on): Add localcharset, streq,
15582         uniwidth/width.
15583         * doc/functions/wcwidth.texi: Update.
15584
15585 2007-07-07  Bruno Haible  <bruno@clisp.org>
15586
15587         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
15588         (wcwidth): New declaration.
15589         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
15590         macros.
15591         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
15592         here. Prepare for creating <wchar.h> unconditionally.
15593         * modules/wchar (Depends-on): Add link-warning.
15594         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
15595         REPLACE_WCWIDTH, and GL_LINK_WARNING.
15596         * lib/wcwidth.h: Remove file.
15597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
15598         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
15599         * modules/wcwidth (Files): Remove lib/wcwidth.h.
15600         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
15601         (Include): Replace wcwidth.h with <wchar.h>.
15602         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
15603         * lib/mbchar.h: Don't include wcwidth.h.
15604         * lib/mbswidth.c: Likewise.
15605         * NEWS: Mention the change.
15606
15607 2007-07-07  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
15610         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
15611         definition with an external declaration.
15612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
15613         defined as a function. Remove AC_C_INLINE requirement.
15614         * modules/wcwidth (Files): Add lib/wcwidth.c.
15615         (Makefile.am): Remove redundant statement.
15616
15617 2007-07-07  Bruno Haible  <bruno@clisp.org>
15618
15619         * MODULES.html.sh (Unicode string functions): Add the new modules.
15620
15621         * tests/uniwidth/test-u32-strwidth.c: New file.
15622         * modules/uniwidth/u32-strwidth-tests: New file.
15623
15624         * lib/uniwidth/u32-strwidth.c: New file.
15625         * modules/uniwidth/u32-strwidth: New file.
15626
15627         * tests/uniwidth/test-u16-strwidth.c: New file.
15628         * modules/uniwidth/u16-strwidth-tests: New file.
15629
15630         * lib/uniwidth/u16-strwidth.c: New file.
15631         * modules/uniwidth/u16-strwidth: New file.
15632
15633         * tests/uniwidth/test-u8-strwidth.c: New file.
15634         * modules/uniwidth/u8-strwidth-tests: New file.
15635
15636         * lib/uniwidth/u8-strwidth.c: New file.
15637         * modules/uniwidth/u8-strwidth: New file.
15638
15639         * tests/uniwidth/test-u32-width.c: New file.
15640         * modules/uniwidth/u32-width-tests: New file.
15641
15642         * lib/uniwidth/u32-width.c: New file.
15643         * modules/uniwidth/u32-width: New file.
15644
15645         * tests/uniwidth/test-u16-width.c: New file.
15646         * modules/uniwidth/u16-width-tests: New file.
15647
15648         * lib/uniwidth/u16-width.c: New file.
15649         * modules/uniwidth/u16-width: New file.
15650
15651         * tests/uniwidth/test-u8-width.c: New file.
15652         * modules/uniwidth/u8-width-tests: New file.
15653
15654         * lib/uniwidth/u8-width.c: New file.
15655         * modules/uniwidth/u8-width: New file.
15656
15657         * tests/uniwidth/test-uc_width.c: New file.
15658         * modules/uniwidth/width-tests: New file.
15659
15660         * lib/uniwidth/width.c: New file, from GNU libiconv.
15661         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
15662         * modules/uniwidth/width: New file.
15663
15664         * lib/uniwidth.h: New file, from GNU libiconv.
15665         * modules/uniwidth/base: New file.
15666
15667 2007-07-07  Bruno Haible  <bruno@clisp.org>
15668
15669         * lib/uniname.h: New file, from GNU gettext.
15670         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
15671         * lib/uniname/uninames.h: New file, from GNU gettext.
15672         * lib/uniname/uniname.c: New file, from GNU gettext.
15673         * tests/uniname/test-uninames.sh: New file.
15674         * tests/uniname/test-uninames.c: New file, from GNU gettext.
15675         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
15676         * modules/uniname/base: New file.
15677         * modules/uniname/uniname: New file.
15678         * modules/uniname/uniname-tests: New file.
15679         * MODULES.html.sh (Unicode string functions): Add the new modules.
15680
15681 2007-07-06  Bruno Haible  <bruno@clisp.org>
15682
15683         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
15684
15685 2007-07-06  Bruno Haible  <bruno@clisp.org>
15686
15687         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
15688         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
15689         includes <cygwin/sys_time.h> which includes <sys/select.h> which
15690         include <sys/time.h>.
15691         Reported by Eric Blake.
15692
15693 2007-07-06  Eric Blake  <ebb9@byu.net>
15694
15695         Fix testing canonicalize on cygwin.
15696         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
15697         Revert patch from 2007-06-19.
15698         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
15699         canonicalize module is also in use.
15700         * tests/test-canonicalize.c: New file.
15701         * tests/test-canonicalize.sh: Likewise.
15702         * modules/canonicalize-tests: Likewise.
15703
15704 2007-07-06  Jim Meyering  <jim@meyering.net>
15705
15706         * lib/getugroups.c (getugroups): Detect getgrent failure.
15707         Adjust comment to reflect reality: this function may return -1.
15708
15709 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15710
15711         * build-aux/bootstrap (TP_URL,get_translations): Update to use
15712         the new TP address.
15713         (usage): Fix typo
15714         (gnulib_mk): New variable.
15715
15716 2007-07-05  Jim Meyering  <jim@meyering.net>
15717
15718         Don't let endgrent clobber errno, no matter how improbable.
15719         * lib/getugroups.c (getugroups): Save and restore errno around
15720         endgrent call.
15721
15722         Close the group DB even when failing with 2^31 or more members.
15723         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
15724
15725 2007-07-04  Jim Meyering  <jim@meyering.net>
15726
15727         * lib/getugroups.h: New file.
15728         * lib/getugroups.c: Include "getugroups.h".
15729         Remove uses of "register" keyword.
15730         Move local variable, "cp", down into scope where used.
15731         Give "username" parameter the "const" attribute.
15732         * modules/getugroups (Files): Add lib/getugroups.h
15733
15734 2007-07-04  Karl Berry  <karl@gnu.org>
15735
15736         * MODULES.html.sh (func_all_modules): Complete rename of
15737         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
15738
15739 2007-07-02  Bruno Haible  <bruno@clisp.org>
15740
15741         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
15742         mode, when inttypes.h comes from gnulib.
15743         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
15744
15745 2007-07-02  Simon Josefsson  <simon@josefsson.org>
15746
15747         * NEWS: Mention lgpl module name change.
15748
15749         * modules/lgpl-2.1: Renamed from lgpl.
15750
15751         * NEWS: Mention gpl module name change.
15752
15753         * modules/gpl-3.0: New file, based on gpl-2.0.
15754
15755         * modules/gpl-2.0: Renamed from gpl.
15756
15757         * modules/gpl: Fix filename, doc/gpl.texi is now found at
15758         doc/gpl-2.0.texi.
15759
15760 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15761
15762         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
15763         #define __STDC_LIMIT_MACROS temporarily while including
15764         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
15765         Problem reported by Joel E. Denny in
15766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
15767
15768 2007-07-01  Bruno Haible  <bruno@clisp.org>
15769
15770         * lib/unistdio.h: New file.
15771         * lib/unistdio/u-asnprintf.h: New file.
15772         * lib/unistdio/u-asprintf.h: New file.
15773         * lib/unistdio/u-printf-args.c: New file.
15774         * lib/unistdio/u-printf-args.h: New file.
15775         * lib/unistdio/u-printf-parse.h: New file.
15776         * lib/unistdio/u-snprintf.h: New file.
15777         * lib/unistdio/u-sprintf.h: New file.
15778         * lib/unistdio/u-vasprintf.h: New file.
15779         * lib/unistdio/u-vsnprintf.h: New file.
15780         * lib/unistdio/u-vsprintf.h: New file.
15781         * lib/unistdio/ulc-asnprintf.c: New file.
15782         * lib/unistdio/ulc-asprintf.c: New file.
15783         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
15784         * lib/unistdio/ulc-printf-parse.c: New file.
15785         * lib/unistdio/ulc-snprintf.c: New file.
15786         * lib/unistdio/ulc-sprintf.c: New file.
15787         * lib/unistdio/ulc-vasnprintf.c: New file.
15788         * lib/unistdio/ulc-vasprintf.c: New file.
15789         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
15790         * lib/unistdio/ulc-vsnprintf.c: New file.
15791         * lib/unistdio/ulc-vsprintf.c: New file.
15792         * lib/unistdio/u8-asnprintf.c: New file.
15793         * lib/unistdio/u8-asprintf.c: New file.
15794         * lib/unistdio/u8-printf-parse.c: New file.
15795         * lib/unistdio/u8-snprintf.c: New file.
15796         * lib/unistdio/u8-sprintf.c: New file.
15797         * lib/unistdio/u8-vasnprintf.c: New file.
15798         * lib/unistdio/u8-vasprintf.c: New file.
15799         * lib/unistdio/u8-vsnprintf.c: New file.
15800         * lib/unistdio/u8-vsprintf.c: New file.
15801         * lib/unistdio/u8-u8-asnprintf.c: New file.
15802         * lib/unistdio/u8-u8-asprintf.c: New file.
15803         * lib/unistdio/u8-u8-snprintf.c: New file.
15804         * lib/unistdio/u8-u8-sprintf.c: New file.
15805         * lib/unistdio/u8-u8-vasnprintf.c: New file.
15806         * lib/unistdio/u8-u8-vasprintf.c: New file.
15807         * lib/unistdio/u8-u8-vsnprintf.c: New file.
15808         * lib/unistdio/u8-u8-vsprintf.c: New file.
15809         * lib/unistdio/u16-asnprintf.c: New file.
15810         * lib/unistdio/u16-asprintf.c: New file.
15811         * lib/unistdio/u16-printf-parse.c: New file.
15812         * lib/unistdio/u16-snprintf.c: New file.
15813         * lib/unistdio/u16-sprintf.c: New file.
15814         * lib/unistdio/u16-vasnprintf.c: New file.
15815         * lib/unistdio/u16-vasprintf.c: New file.
15816         * lib/unistdio/u16-vsnprintf.c: New file.
15817         * lib/unistdio/u16-vsprintf.c: New file.
15818         * lib/unistdio/u16-u16-asnprintf.c: New file.
15819         * lib/unistdio/u16-u16-asprintf.c: New file.
15820         * lib/unistdio/u16-u16-snprintf.c: New file.
15821         * lib/unistdio/u16-u16-sprintf.c: New file.
15822         * lib/unistdio/u16-u16-vasnprintf.c: New file.
15823         * lib/unistdio/u16-u16-vasprintf.c: New file.
15824         * lib/unistdio/u16-u16-vsnprintf.c: New file.
15825         * lib/unistdio/u16-u16-vsprintf.c: New file.
15826         * lib/unistdio/u32-asnprintf.c: New file.
15827         * lib/unistdio/u32-asprintf.c: New file.
15828         * lib/unistdio/u32-printf-parse.c: New file.
15829         * lib/unistdio/u32-snprintf.c: New file.
15830         * lib/unistdio/u32-sprintf.c: New file.
15831         * lib/unistdio/u32-vasnprintf.c: New file.
15832         * lib/unistdio/u32-vasprintf.c: New file.
15833         * lib/unistdio/u32-vsnprintf.c: New file.
15834         * lib/unistdio/u32-vsprintf.c: New file.
15835         * lib/unistdio/u32-u32-asnprintf.c: New file.
15836         * lib/unistdio/u32-u32-asprintf.c: New file.
15837         * lib/unistdio/u32-u32-snprintf.c: New file.
15838         * lib/unistdio/u32-u32-sprintf.c: New file.
15839         * lib/unistdio/u32-u32-vasnprintf.c: New file.
15840         * lib/unistdio/u32-u32-vasprintf.c: New file.
15841         * lib/unistdio/u32-u32-vsnprintf.c: New file.
15842         * lib/unistdio/u32-u32-vsprintf.c: New file.
15843         * tests/unistdio/test-ulc-asnprintf1.c: New file.
15844         * tests/unistdio/test-ulc-asnprintf1.h: New file.
15845         * tests/unistdio/test-ulc-printf1.h: New file.
15846         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
15847         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
15848         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
15849         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
15850         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
15851         * tests/unistdio/test-ulc-vasprintf1.c: New file.
15852         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
15853         * tests/unistdio/test-ulc-vsprintf1.c: New file.
15854         * tests/unistdio/test-u8-asnprintf1.c: New file.
15855         * tests/unistdio/test-u8-asnprintf1.h: New file.
15856         * tests/unistdio/test-u8-printf1.h: New file.
15857         * tests/unistdio/test-u8-vasnprintf1.c: New file.
15858         * tests/unistdio/test-u8-vasnprintf2.c: New file.
15859         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
15860         * tests/unistdio/test-u8-vasnprintf3.c: New file.
15861         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
15862         * tests/unistdio/test-u8-vasprintf1.c: New file.
15863         * tests/unistdio/test-u8-vsnprintf1.c: New file.
15864         * tests/unistdio/test-u8-vsprintf1.c: New file.
15865         * tests/unistdio/test-u16-asnprintf1.c: New file.
15866         * tests/unistdio/test-u16-asnprintf1.h: New file.
15867         * tests/unistdio/test-u16-printf1.h: New file.
15868         * tests/unistdio/test-u16-vasnprintf1.c: New file.
15869         * tests/unistdio/test-u16-vasnprintf2.c: New file.
15870         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
15871         * tests/unistdio/test-u16-vasnprintf3.c: New file.
15872         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
15873         * tests/unistdio/test-u16-vasprintf1.c: New file.
15874         * tests/unistdio/test-u16-vsnprintf1.c: New file.
15875         * tests/unistdio/test-u16-vsprintf1.c: New file.
15876         * tests/unistdio/test-u32-asnprintf1.c: New file.
15877         * tests/unistdio/test-u32-asnprintf1.h: New file.
15878         * tests/unistdio/test-u32-printf1.h: New file.
15879         * tests/unistdio/test-u32-vasnprintf1.c: New file.
15880         * tests/unistdio/test-u32-vasnprintf2.c: New file.
15881         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
15882         * tests/unistdio/test-u32-vasnprintf3.c: New file.
15883         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
15884         * tests/unistdio/test-u32-vasprintf1.c: New file.
15885         * tests/unistdio/test-u32-vsnprintf1.c: New file.
15886         * tests/unistdio/test-u32-vsprintf1.c: New file.
15887         * modules/unistdio/base: New file.
15888         * modules/unistdio/u-printf-args: New file.
15889         * modules/unistdio/ulc-asnprintf: New file.
15890         * modules/unistdio/ulc-asprintf: New file.
15891         * modules/unistdio/ulc-fprintf: New file.
15892         * modules/unistdio/ulc-printf-parse: New file.
15893         * modules/unistdio/ulc-snprintf: New file.
15894         * modules/unistdio/ulc-sprintf: New file.
15895         * modules/unistdio/ulc-vasnprintf: New file.
15896         * modules/unistdio/ulc-vasprintf: New file.
15897         * modules/unistdio/ulc-vfprintf: New file.
15898         * modules/unistdio/ulc-vsnprintf: New file.
15899         * modules/unistdio/ulc-vsprintf: New file.
15900         * modules/unistdio/u8-asnprintf: New file.
15901         * modules/unistdio/u8-asprintf: New file.
15902         * modules/unistdio/u8-printf-parse: New file.
15903         * modules/unistdio/u8-snprintf: New file.
15904         * modules/unistdio/u8-sprintf: New file.
15905         * modules/unistdio/u8-vasnprintf: New file.
15906         * modules/unistdio/u8-vasprintf: New file.
15907         * modules/unistdio/u8-vsnprintf: New file.
15908         * modules/unistdio/u8-vsprintf: New file.
15909         * modules/unistdio/u8-u8-asnprintf: New file.
15910         * modules/unistdio/u8-u8-asprintf: New file.
15911         * modules/unistdio/u8-u8-snprintf: New file.
15912         * modules/unistdio/u8-u8-sprintf: New file.
15913         * modules/unistdio/u8-u8-vasnprintf: New file.
15914         * modules/unistdio/u8-u8-vasprintf: New file.
15915         * modules/unistdio/u8-u8-vsnprintf: New file.
15916         * modules/unistdio/u8-u8-vsprintf: New file.
15917         * modules/unistdio/u16-asnprintf: New file.
15918         * modules/unistdio/u16-asprintf: New file.
15919         * modules/unistdio/u16-printf-parse: New file.
15920         * modules/unistdio/u16-snprintf: New file.
15921         * modules/unistdio/u16-sprintf: New file.
15922         * modules/unistdio/u16-vasnprintf: New file.
15923         * modules/unistdio/u16-vasprintf: New file.
15924         * modules/unistdio/u16-vsnprintf: New file.
15925         * modules/unistdio/u16-vsprintf: New file.
15926         * modules/unistdio/u16-u16-asnprintf: New file.
15927         * modules/unistdio/u16-u16-asprintf: New file.
15928         * modules/unistdio/u16-u16-snprintf: New file.
15929         * modules/unistdio/u16-u16-sprintf: New file.
15930         * modules/unistdio/u16-u16-vasnprintf: New file.
15931         * modules/unistdio/u16-u16-vasprintf: New file.
15932         * modules/unistdio/u16-u16-vsnprintf: New file.
15933         * modules/unistdio/u16-u16-vsprintf: New file.
15934         * modules/unistdio/u32-asnprintf: New file.
15935         * modules/unistdio/u32-asprintf: New file.
15936         * modules/unistdio/u32-printf-parse: New file.
15937         * modules/unistdio/u32-snprintf: New file.
15938         * modules/unistdio/u32-sprintf: New file.
15939         * modules/unistdio/u32-vasnprintf: New file.
15940         * modules/unistdio/u32-vasprintf: New file.
15941         * modules/unistdio/u32-vsnprintf: New file.
15942         * modules/unistdio/u32-vsprintf: New file.
15943         * modules/unistdio/u32-u32-asnprintf: New file.
15944         * modules/unistdio/u32-u32-asprintf: New file.
15945         * modules/unistdio/u32-u32-snprintf: New file.
15946         * modules/unistdio/u32-u32-sprintf: New file.
15947         * modules/unistdio/u32-u32-vasnprintf: New file.
15948         * modules/unistdio/u32-u32-vasprintf: New file.
15949         * modules/unistdio/u32-u32-vsnprintf: New file.
15950         * modules/unistdio/u32-u32-vsprintf: New file.
15951         * modules/unistdio/ulc-asnprintf-tests: New file.
15952         * modules/unistdio/ulc-vasnprintf-tests: New file.
15953         * modules/unistdio/ulc-vasprintf-tests: New file.
15954         * modules/unistdio/ulc-vsnprintf-tests: New file.
15955         * modules/unistdio/ulc-vsprintf-tests: New file.
15956         * modules/unistdio/u8-asnprintf-tests: New file.
15957         * modules/unistdio/u8-vasnprintf-tests: New file.
15958         * modules/unistdio/u8-vasprintf-tests: New file.
15959         * modules/unistdio/u8-vsnprintf-tests: New file.
15960         * modules/unistdio/u8-vsprintf-tests: New file.
15961         * modules/unistdio/u16-asnprintf-tests: New file.
15962         * modules/unistdio/u16-vasnprintf-tests: New file.
15963         * modules/unistdio/u16-vasprintf-tests: New file.
15964         * modules/unistdio/u16-vsnprintf-tests: New file.
15965         * modules/unistdio/u16-vsprintf-tests: New file.
15966         * modules/unistdio/u32-asnprintf-tests: New file.
15967         * modules/unistdio/u32-vasnprintf-tests: New file.
15968         * modules/unistdio/u32-vasprintf-tests: New file.
15969         * modules/unistdio/u32-vsnprintf-tests: New file.
15970         * modules/unistdio/u32-vsprintf-tests: New file.
15971         * MODULES.html.sh (Unicode string functions): Add the new modules.
15972
15973 2007-07-01  Bruno Haible  <bruno@clisp.org>
15974
15975         * lib/sprintf.c (sprintf): Limit the available length estimation,
15976         to avoid address wraparound.
15977         * lib/vsprintf.c (vsprintf): Likewise.
15978         * modules/sprintf-posix (Dependencies): Add stdint.
15979         * modules/vsprintf-posix (Dependencies): Likewise.
15980
15981 2007-07-01  Bruno Haible  <bruno@clisp.org>
15982
15983         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
15984         Windows PATH as well. Conservative double-quoting. Comments.
15985
15986 2007-07-01  Bruno Haible  <bruno@clisp.org>
15987             Eric Blake  <ebb9@byu.net>
15988             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15989
15990         * gnulib-tool (self_abspathname): Fix algorithm to cope with
15991         empty components in $PATH, denoting '.'.
15992
15993 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15994
15995         * gnulib-tool: Fix indentation.
15996         (func_create_megatestdir): Likewise.
15997         Report by Bruno Haible.
15998
15999 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16000
16001         Sync from Automake.
16002         * build-aux/gnupload: Fix shell portability issues with for loops.
16003         Report by Karl Berry.
16004
16005 2007-06-29  Simon Josefsson  <simon@josefsson.org>
16006
16007         * build-aux/maint.mk (POURL): Use translationproject.org.
16008
16009 2007-06-27  Simon Josefsson  <simon@josefsson.org>
16010             Bruno Haible  <bruno@clisp.org>
16011
16012         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
16013         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
16014         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
16015         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
16016         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
16017
16018 2007-06-27  Bruno Haible  <bruno@clisp.org>
16019
16020         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
16021         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
16022
16023 2007-06-26  Karl Berry  <karl@gnu.org>
16024
16025         * MODULES.html.sh: remove xreadlink-with-size.
16026
16027 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16028
16029         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
16030         method that I hope also handles the double-include problem noted
16031         by Bruno Haible in
16032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
16033
16034 2007-06-23  Bruno Haible  <bruno@clisp.org>
16035
16036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16037         Don't let the 'mostlyclean' target fail if the last subdirectory could
16038         not be removed.
16039         Reported by Karl Berry.
16040
16041 2007-06-23  Bruno Haible  <bruno@clisp.org>
16042
16043         * gnulib-tool (echo): Add a speedier workaround for ksh.
16044         * tests/test-echo.sh: Likewise.
16045
16046 2007-06-23  Bruno Haible  <bruno@clisp.org>
16047
16048         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
16049         * tests/test-echo.sh: Likewise.
16050
16051 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16052
16053         * gnulib-tool (IFS): Initialize early, so we don't set it to
16054         empty later.
16055         (self_abspathname): Rewrite algorithm to set it, reindent.
16056         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
16057         (func_create_megatestdir): Merge some sed scripts.
16058
16059 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
16062         exposed by Sun Studio 11 cc on Solaris 8.
16063
16064 2007-06-22  Bruno Haible  <bruno@clisp.org>
16065
16066         * gnulib-tool (echo): Ensure the echo primitive does not interpret
16067         backslashes.
16068         * tests/test-echo.sh: New file.
16069
16070 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16071
16072         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
16073         simplify `sed_replace_build_aux' scripts, they are portable but
16074         echoing them with `echo' is not.
16075         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
16076
16077 2007-06-21  Karl Berry  <karl@gnu.org>
16078
16079         * config/srclist.txt: guess we can't handle the licenses via
16080         srclist at the moment.
16081
16082 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16083
16084         * MODULES.html.sh: Add include_next.
16085         * modules/include_next: New file.
16086
16087 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16088
16089         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
16090         INCLUDE_NEXT.
16091         (gl_CHECK_NEXT_HEADERS): New macro.
16092         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
16093         the obsolescent gl_ABSOLUTE_HEADER.
16094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16095         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
16096         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
16097         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16098         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16099         * m4/math_h.m4 (gl_MATH_H): Likewise.
16100         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
16101         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16102         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16103         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16104         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16105         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16106         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16111         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
16112         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
16113         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16114         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16115         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16116         * m4/inttypes.m4 (gl_INTTYPES_H): Define
16117         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
16118         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
16119         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
16120         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
16121         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
16122         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
16123         * lib/float_.h: Likewise.
16124         * lib/inttypes_.h: Likewise.
16125         * lib/math_.h: Likewise.
16126         * lib/search_.h: Likewise.
16127         * lib/signal_.h: Likewise.
16128         * lib/stdint_.h: Likewise.
16129         * lib/stdio_.h: Likewise.
16130         * lib/stdlib_.h: Likewise.
16131         * lib/string_.h: Likewise.
16132         * lib/sys_stat_.h: Likewise.
16133         * lib/sys_time_.h: Likewise.
16134         * lib/time_.h: Likewise.
16135         * lib/unistd_.h: Likewise.
16136         * lib/wchar_.h: Likewise.
16137         * lib/wctype_.h: Likewise.
16138         * lib/dirent_.h: Likewise.
16139         * lib/iconv_.h: Likewise.
16140         * lib/locale_.h: Likewise.
16141         * lib/netinet_in_.h: Likewise.
16142         * lib/sys_select_.h: Likewise.
16143         * lib/sys_socket_.h: Likewise.
16144         * lib/sysexits_.h: Likewise.
16145         * modules/fcntl (Depends-on): Depend on include_next, not
16146         absolute_header.
16147         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
16148         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
16149         * modules/fchdir: Likewise.
16150         * modules/float: Likewise.
16151         * modules/iconv_open: Likewise.
16152         * modules/inttypes: Likewise.
16153         * modules/locale: Likewise.
16154         * modules/math: Likewise.
16155         * modules/netinet_in: Likewise.
16156         * modules/search: Likewise.
16157         * modules/signal: Likewise.
16158         * modules/stdint: Likewise.
16159         * modules/stdio: Likewise.
16160         * modules/stdlib: Likewise.
16161         * modules/string: Likewise.
16162         * modules/sys_select: Likewise.
16163         * modules/sys_socket: Likewise.
16164         * modules/sys_stat: Likewise.
16165         * modules/sys_time: Likewise.
16166         * modules/sysexits: Likewise.
16167         * modules/time: Likewise.
16168         * modules/unistd: Likewise.
16169         * modules/wchar: Likewise.
16170         * modules/wctype: Likewise.
16171         * modules/sys_stat: Change maintainer to "all".
16172         * modules/unistd: Likewise.
16173
16174 2007-06-20  Karl Berry  <karl@gnu.org>
16175
16176         * config/srclist.txt: track www changes in license files.
16177
16178 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
16179
16180         * build-aux/bootstrap: Remove stray dot.
16181         Make sure build_aux settings are honored when linking
16182         gnulib_extra_files.
16183
16184 2007-06-19  Eric Blake  <ebb9@byu.net>
16185
16186         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
16187         Allow compilation on cygwin.
16188
16189 2007-06-19  Jim Meyering  <jim@meyering.net>
16190
16191         xreadlink-with-size: Remove module.  No longer used.
16192         Ex-callers now use xreadlink or mreadlink-with-size.
16193         * modules/xreadlink-with-size: Remove module.
16194         * lib/xreadlink-with-size.c: Remove file.
16195         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
16196         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
16197         just before the function definition *is* accurate.
16198
16199         Eliminate one way canonicalize_filename_mode could exit.
16200         * lib/canonicalize.c (canonicalize_filename_mode):
16201         Use mreadlink_with_size, not xreadlink_with_size.
16202
16203 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
16204
16205         Detect porting problems to FreeBSD/arm, which has time_t wider than
16206         long int.  Original problem reported for GNU diff by Xin Li in
16207         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
16208         * modules/getdate (Depends-on): Add intprops, verify.
16209         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
16210         is an integer type no wider than long int.
16211
16212 2007-06-18  Jim Meyering  <jim@meyering.net>
16213
16214         New module: mreadlink-with-size.
16215         * MODULES.html.sh: Add mreadlink-with-size.
16216         * modules/mreadlink-with-size: New module
16217         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
16218         not xreadlink-with-size.
16219         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
16220
16221 2007-06-16  Bruno Haible  <bruno@clisp.org>
16222
16223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
16224         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
16225         Reported by Gary V. Vaughan <gary@gnu.org>.
16226
16227 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16228
16229         Revamp lchown so that it lives in unistd.h where it belongs.
16230         * lib/lchown.h: Remove.
16231         * lib/dirchownmod.c: Don't include lib/lchown.h.
16232         * lib/fchownat.c: Likewise.
16233         * lib/openat.c: Likewise.
16234         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
16235         does not follow symlinks.
16236         (EOPNOTSUPP): Define if not defined.
16237         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
16238         is defined to 0.
16239         (lchown): New decl.
16240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
16241         Do not check for lchown decl.
16242         Set REPLACE_LCHOWN.
16243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
16244         REPLACE_LCHOWN.
16245         * modules/chown: Make it clear it follows symlinks.
16246         * modules/lchown: Make it clear it doesn't follow symlinks.
16247         (Files): Remove lib/lchown.h
16248         (Depends-on): Add unistd.
16249         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
16250         (Include): Include <unistd.h>, not "lchown.h".
16251         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
16252         REPLACE_LCHOWN.
16253
16254 2007-06-15  Jim Meyering  <jim@meyering.net>
16255
16256         Change license (GPL to LGPL) of fsusage and dependents.
16257         * modules/fsusage (License): Change to LGPL.
16258         * modules/full-read (License): Likewise.
16259         * modules/full-write (License): Likewise.
16260         * modules/safe-read (License): Likewise.
16261         * modules/safe-write (License): Likewise.
16262
16263 2007-06-14  Ben Pfaff  <blp@gnu.org>
16264
16265         Missing part of allocsa -> malloca transition.
16266         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
16267         gl_MALLOCA.
16268
16269 2007-06-12  Bruno Haible  <bruno@clisp.org>
16270
16271         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
16272         to ia64, x86_64, i386.
16273         Reported by Eric Blake.
16274
16275 2007-06-12  Bruno Haible  <bruno@clisp.org>
16276
16277         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
16278         cross-compiling to x86_64.
16279
16280 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
16281
16282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
16283         glitch reported by Ralf Wildenhues in
16284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
16285
16286         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
16287         Vin Shelton.
16288
16289 2007-06-11  Bruno Haible  <bruno@clisp.org>
16290
16291         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
16292         replacement string.
16293         Reported by Eric Blake.
16294
16295 2007-06-10  Bruno Haible  <bruno@clisp.org>
16296
16297         Prepare vasnprintf code for use with Unicode strings.
16298         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
16299         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
16300         TYPE_U32_STRING.
16301         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
16302         a_u32_string variants.
16303         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
16304         * lib/printf-args.c: Don't include config.h and the specification
16305         header if PRINTF_FETCHARGS is already defined.
16306         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
16307         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
16308         TYPE_U16_STRING, TYPE_U32_STRING.
16309         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
16310         u16_directive, u16_directives, u32_directive, u32_directives): New
16311         types.
16312         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
16313         New declarations.
16314         * lib/printf-parse.c: Don't include config.h and the specification
16315         header if PRINTF_PARSE is already defined. Eliminate the set of
16316         parameters for WIDE_CHAR_VERSION; the user of this file must provide
16317         them now. Include c-ctype.h.
16318         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
16319         directive and CHAR_T_ONLY_ASCII.
16320         * lib/vasnprintf.c: Don't include config.h and the specification header
16321         if VASNPRINTF is already defined.
16322         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
16323         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
16324         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
16325         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
16326         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
16327         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
16328         code accordingly.
16329         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
16330         pad_ourselves also in this case, with the 'c' and 's' directives, and
16331         with a different notion of "width".
16332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
16333
16334 2007-06-10  Bruno Haible  <bruno@clisp.org>
16335
16336         * modules/unistr/u32-mbsnlen: New file.
16337         * lib/unistr/u32-mbsnlen.c: New file.
16338
16339         * modules/unistr/u16-mbsnlen: New file.
16340         * lib/unistr/u16-mbsnlen.c: New file.
16341
16342         * modules/unistr/u8-mbsnlen: New file.
16343         * lib/unistr/u8-mbsnlen.c: New file.
16344
16345         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
16346         declarations.
16347
16348 2007-06-10  Bruno Haible  <bruno@clisp.org>
16349
16350         * lib/string_.h (mbsnlen): New declaration.
16351         * lib/mbsnlen.c: New file.
16352         * m4/mbsnlen.m4: New file.
16353         * modules/mbsnlen: New file.
16354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
16355         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
16356         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
16357
16358 2007-06-10  Bruno Haible  <bruno@clisp.org>
16359
16360         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
16361
16362 2007-06-10  Bruno Haible  <bruno@clisp.org>
16363
16364         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
16365         * lib/mbuiter.h: Likewise.
16366
16367 2007-06-10  Bruno Haible  <bruno@clisp.org>
16368
16369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
16370         declaration.
16371
16372 2007-06-10  Karl Berry  <karl@gnu.org>
16373
16374         * config/srclist.txt: remove gettext entries, Bruno prefers
16375         to update individually.
16376
16377 2007-06-10  Bruno Haible  <bruno@clisp.org>
16378
16379         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
16380         'maxlen'. Ensure only length + width bytes are allocated, not
16381         length + 1 + width.
16382
16383 2007-06-09  Bruno Haible  <bruno@clisp.org>
16384
16385         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
16386         (CHAR_T): Remove macro.
16387         (VASNPRINTF): Update.
16388
16389 2007-06-09  Bruno Haible  <bruno@clisp.org>
16390
16391         * MODULES.html.sh (Unicode string functions): Add the new modules.
16392
16393         * modules/uniconv/u32-conv-to-enc: New file.
16394         * lib/uniconv/u32-conv-to-enc.c: New file.
16395         * modules/uniconv/u32-conv-to-enc-tests: New file.
16396         * tests/uniconv/test-u32-conv-to-enc.c: New file.
16397
16398         * modules/uniconv/u16-conv-to-enc: New file.
16399         * lib/uniconv/u16-conv-to-enc.c: New file.
16400         * lib/uniconv/u-conv-to-enc.h: New file.
16401         * modules/uniconv/u16-conv-to-enc-tests: New file.
16402         * tests/uniconv/test-u16-conv-to-enc.c: New file.
16403
16404         * modules/uniconv/u8-conv-to-enc: New file.
16405         * lib/uniconv/u8-conv-to-enc.c: New file.
16406         * modules/uniconv/u8-conv-to-enc-tests: New file.
16407         * tests/uniconv/test-u8-conv-to-enc.c: New file.
16408
16409         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
16410         u32_conv_to_encoding): New declarations.
16411
16412 2007-06-09  Bruno Haible  <bruno@clisp.org>
16413
16414         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
16415
16416 2007-06-09  Bruno Haible  <bruno@clisp.org>
16417
16418         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
16419         * modules/malloca: Renamed from modules/allocsa, updated.
16420         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
16421         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
16422         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
16423         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
16424         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
16425         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
16426         * modules/xmalloca: Renamed from modules/xallocsa, updated.
16427         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
16428         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
16429         * modules/c-strcasestr (Depends-on): Update.
16430         * lib/c-strcasestr.c: Update.
16431         * modules/c-strstr (Depends-on): Update.
16432         * lib/c-strstr.c: Update.
16433         * modules/canonicalize-lgpl (Depends-on): Update.
16434         * lib/canonicalize-lgpl.c: Update.
16435         * modules/clean-temp (Depends-on): Update.
16436         * lib/clean-temp.c: Update.
16437         * modules/csharpcomp (Depends-on): Update.
16438         * lib/csharpcomp.c: Update.
16439         * modules/csharpexec (Depends-on): Update.
16440         * lib/csharpexec.c: Update.
16441         * modules/javacomp (Depends-on): Update.
16442         * lib/javacomp.c: Update.
16443         * modules/javaexec (Depends-on): Update.
16444         * lib/javaexec.c: Update.
16445         * modules/mbscasestr (Depends-on): Update.
16446         * lib/mbscasestr.c: Update.
16447         * modules/mbsstr (Depends-on): Update.
16448         * lib/mbsstr.c: Update.
16449         * modules/setenv (Depends-on): Update.
16450         * lib/setenv.c: Update.
16451         * modules/strcasestr (Depends-on): Update.
16452         * lib/strcasestr.c: Update.
16453         * modules/striconveha (Depends-on): Update.
16454         * lib/striconveha.c: Update.
16455         * modules/relocatable-prog-wrapper (Files): Update.
16456         * lib/relocwrapper.c: Update.
16457         * build-aux/install-reloc: Update.
16458         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
16459
16460 2007-06-08  Bruno Haible  <bruno@clisp.org>
16461
16462         Port to uClibc.
16463         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
16464         * lib/fpurge.c (fpurge): Likewise.
16465         * lib/freading.c (freading): Likewise.
16466         * lib/fseeko.c (rpl_fseeko): Likewise.
16467         * lib/fseterr.c (fseterr): Likewise.
16468         * lib/fwriting.c (fwriting): Likewise.
16469         * tests/test-fflush.c (main): Avoid a failure on uClibc.
16470
16471 2007-06-08  Bruno Haible  <bruno@clisp.org>
16472
16473         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
16474         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
16475         * modules/gettext (Files): Add m4/intlmacosx.m4.
16476
16477 2007-06-07  Bruno Haible  <bruno@clisp.org>
16478
16479         * modules/localename-tests: New file.
16480         * tests/test-localename.c: New file.
16481
16482         New module 'localename'.
16483         * lib/localename.h: New file.
16484         * lib/localename.c: New file, from GNU gettext.
16485         * m4/localename.m4: New file.
16486         * modules/localename: New file.
16487
16488 2007-06-07  Bruno Haible  <bruno@clisp.org>
16489
16490         Work around the lack of <wchar.h> on some builds of uClibc.
16491         * doc/headers/wchar.texi: Update.
16492         * lib/wchar_.h: Include <wchar.h> only if it exists.
16493         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
16494         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
16495         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
16496         doesn't exist.
16497         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
16498         * modules/mbfile (Depends-on): Add wchar.
16499         * modules/mbiter (Depends-on): Likewise.
16500         * modules/mbuiter (Depends-on): Likewise.
16501         Reported by Simon Josefsson.
16502
16503 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16504
16505         Work around problem reported by Steven M. Schweda in
16506         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
16507         Tru64 5.1B with the Compaq compiler environment installed declares
16508         an 'isblank' function but does not define it in the C library.
16509         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
16510         * lib/regex_internal.h (isblank): Likewise.
16511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
16512         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16513
16514 2007-06-05  Bruno Haible  <bruno@clisp.org>
16515
16516         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
16517         ia64.
16518         * modules/printf-safe: New file.
16519         * modules/fprintf-posix (Depends-on): Add printf-safe.
16520         * modules/printf-posix (Depends-on): Likewise.
16521         * modules/snprintf-posix (Depends-on): Likewise.
16522         * modules/sprintf-posix (Depends-on): Likewise.
16523         * modules/vasnprintf-posix (Depends-on): Likewise.
16524         * modules/vasprintf-posix (Depends-on): Likewise.
16525         * modules/vfprintf-posix (Depends-on): Likewise.
16526         * modules/vprintf-posix (Depends-on): Likewise.
16527         * modules/vsnprintf-posix (Depends-on): Likewise.
16528         * modules/vsprintf-posix (Depends-on): Likewise.
16529         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
16530         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
16531         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
16532         "no" on i386, x86_64, ia64.
16533         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
16534         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
16535         on i386, x86_64, ia64.
16536         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
16537         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
16538         on i386, x86_64, ia64.
16539         * tests/test-vasnprintf-posix.c: Include float.h.
16540         (LDBL80_WORDS): New macro.
16541         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
16542         on i386, x86_64, ia64.
16543         * tests/test-vasprintf-posix.c: Include float.h.
16544         (LDBL80_WORDS): New macro.
16545         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
16546         on i386, x86_64, ia64.
16547         * tests/test-snprintf-posix.c: Include float.h.
16548         * tests/test-sprintf-posix.c: Likewise.
16549         * tests/test-vsnprintf-posix.c: Likewise.
16550         * tests/test-vsprintf-posix.c: Likewise.
16551
16552 2007-06-05  Bruno Haible  <bruno@clisp.org>
16553
16554         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
16555         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
16556         non-IEEE numbers on i386, x86_64, ia64.
16557         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
16558         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
16559         * tests/test-isnanl.h: Include float.h.
16560         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
16561
16562 2007-06-05  Bruno Haible  <bruno@clisp.org>
16563
16564         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
16565         also the %a / %A. Handle the %a / %A code before this extra handling.
16566
16567 2007-06-05  Bruno Haible  <bruno@clisp.org>
16568
16569         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
16570         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
16571
16572 2007-06-05  Bruno Haible  <bruno@clisp.org>
16573
16574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
16575         typo in variable name.
16576
16577 2007-06-05  Eric Blake  <ebb9@byu.net>
16578
16579         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
16580         Reported by Simon Josefsson.
16581
16582 2007-06-04  Bruno Haible  <bruno@clisp.org>
16583
16584         Avoid test failures on some PowerPC platforms.
16585         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
16586         Define differently for PowerPC.
16587         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
16588         Reported by Gary V. Vaughan <gary@gnu.org>.
16589
16590 2007-06-02  Bruno Haible  <bruno@clisp.org>
16591
16592         Fix test-stdint failure on FreeBSD/ia64.
16593         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
16594         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
16595         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
16596         * doc/headers/stdint.texi: Update.
16597
16598 2007-06-01  Bruno Haible  <bruno@clisp.org>
16599
16600         * tests/test-binary-io.c (main): Pass a third argument to open().
16601         Reported by Gary V. Vaughan <gary@gnu.org>.
16602
16603 2007-06-01  Bruno Haible  <bruno@clisp.org>
16604
16605         * doc/functions/frexpl.texi: Update for mingw.
16606
16607 2007-06-01  Bruno Haible  <bruno@clisp.org>
16608
16609         * tests/test-lseek.c (main): Disable test of errno for invalid third
16610         argument.
16611         * doc/functions/lseek.texi: Update.
16612         Reported by Gary V. Vaughan <gary@gnu.org>.
16613
16614 2007-05-28  Bruno Haible  <bruno@clisp.org>
16615
16616         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
16617
16618 2007-05-31  Eric Blake  <ebb9@byu.net>
16619
16620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
16621         cross compiling.
16622
16623 2007-05-30  Eric Blake  <ebb9@byu.net>
16624         and Bruno Haible  <bruno@clisp.org>
16625
16626         Work around mingw test failures exposed by m4-1.4.9b.
16627         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
16628         * tests/test-unistd.c: Disable uid_t and git_t tests for the
16629         moment.
16630
16631 2007-05-30  Bruno Haible  <bruno@clisp.org>
16632
16633         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
16634         assuming that they are closed. Needed on HP-UX 11.
16635
16636 2007-05-29  Bruno Haible  <bruno@clisp.org>
16637
16638         Fix a problem with #include_next.
16639         * lib/dirent_.h: Split the double-inclusion guard.
16640         * lib/fcntl_.h: Likewise.
16641         * lib/float_.h: Likewise.
16642         * lib/iconv_.h: Likewise.
16643         * lib/inttypes_.h: Likewise.
16644         * lib/locale_.h: Likewise.
16645         * lib/math_.h: Likewise.
16646         * lib/netinet_in_.h: Likewise.
16647         * lib/search_.h: Likewise.
16648         * lib/signal_.h: Likewise.
16649         * lib/stdint_.h: Likewise.
16650         * lib/stdio_.h: Likewise.
16651         * lib/stdlib_.h: Likewise.
16652         * lib/string_.h: Likewise.
16653         * lib/sys_select_.h: Likewise.
16654         * lib/sys_socket_.h: Likewise.
16655         * lib/sys_stat_.h: Likewise.
16656         * lib/sys_time_.h: Likewise.
16657         * lib/sysexits_.h: Likewise.
16658         * lib/time_.h: Likewise.
16659         * lib/unistd_.h: Likewise.
16660         * lib/wchar_.h: Likewise.
16661         * lib/wctype_.h: Likewise.
16662
16663 2007-05-29  Bruno Haible  <bruno@clisp.org>
16664
16665         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
16666         for the moment.
16667
16668 2007-05-29  Bruno Haible  <bruno@clisp.org>
16669
16670         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
16671         invocation.
16672         Reported by Eric Blake.
16673
16674 2007-05-29  Bruno Haible  <bruno@clisp.org>
16675
16676         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
16677         compiling case.
16678
16679 2007-05-29  Eric Blake  <ebb9@byu.net>
16680             Bruno Haible  <bruno@clisp.org>
16681
16682         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
16683         cross compiles.
16684
16685 2007-05-28  Eric Blake  <ebb9@byu.net>
16686
16687         * modules/closein-tests (test_closein_LDADD): Support test on
16688         cygwin with libtool.
16689
16690 2007-05-28  Bruno Haible  <bruno@clisp.org>
16691
16692         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
16693         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16694         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16695         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16696         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16697         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16698         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16699         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16700         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16701
16702 2007-05-28  Eric Blake  <ebb9@byu.net>
16703
16704         Unconditionally include <config.h> in unit tests.
16705         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
16706         * tests/test-allocsa.c, tests/test-arcfour.c,
16707         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
16708         tests/test-array_list.c, tests/test-array_oset.c,
16709         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
16710         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
16711         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
16712         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
16713         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
16714         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
16715         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
16716         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
16717         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
16718         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
16719         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
16720         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
16721         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
16722         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
16723         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
16724         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
16725         test-md5.c, test-memmem.c, test-printf-posix.c,
16726         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
16727         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
16728         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
16729         test-strcasestr.c, test-striconv.c, test-striconveh.c,
16730         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
16731         test-vasnprintf-posix2.c, test-vasnprintf.c,
16732         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
16733         test-vfprintf-posix.c, test-vprintf-posix.c,
16734         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
16735         test-xvasprintf.c: Likewise.
16736
16737 2007-05-28  Bruno Haible  <bruno@clisp.org>
16738
16739         * gnulib-tool (func_import): Remember the --with-tests command-line
16740         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
16741         Reported by Eric Blake.
16742
16743 2007-05-28  Bruno Haible  <bruno@clisp.org>
16744
16745         * modules/ftell-tests: New file.
16746         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
16747         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
16748
16749         * lib/ftell.c: New file.
16750         * modules/ftell: New file.
16751         * m4/ftell.m4: New file.
16752         * doc/functions/ftell.texi: Update.
16753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
16754         REPLACE_FTELL.
16755         * lib/stdio_.h (rpl_ftell): New declaration.
16756         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
16757         REPLACE_FTELL.
16758
16759 2007-05-28  Eric Blake  <ebb9@byu.net>
16760
16761         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
16762
16763 2007-05-28  Bruno Haible  <bruno@clisp.org>
16764
16765         * modules/fseek-tests: New file.
16766         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
16767         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
16768
16769         * lib/fseek.c: New file.
16770         * modules/fseek: New file.
16771         * m4/fseek.m4: New file.
16772         * doc/functions/fseek.texi: Update.
16773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
16774         REPLACE_FSEEK.
16775         * lib/stdio_.h (rpl_fseek): New declaration.
16776         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
16777         REPLACE_FSEEK.
16778
16779 2007-05-28  Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/stdio_.h (fflush): More comments.
16782
16783 2007-05-28  Bruno Haible  <bruno@clisp.org>
16784
16785         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
16786         runtime test.
16787
16788 2007-05-28  Eric Blake  <ebb9@byu.net>
16789
16790         Improve lseek module.
16791         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
16792         * lib/unistd_.h (lseek): Scale back link warning message.
16793         * tests/test-lseek.c: Beef up test.
16794         * tests/test-lseek.sh: Exercise more facets of lseek.
16795         Reported by Bruno Haible.
16796
16797 2007-05-28  Bruno Haible  <bruno@clisp.org>
16798
16799         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
16800         to define.
16801
16802 2007-05-27  Bruno Haible  <bruno@clisp.org>
16803
16804         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
16805
16806 2007-05-27  Bruno Haible  <bruno@clisp.org>
16807
16808         * modules/openmp: New file.
16809         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
16810         Noah Misch.
16811
16812 2007-05-26  Bruno Haible  <bruno@clisp.org>
16813
16814         * modules/chdir-long (Depends-on): Add fchdir.
16815         * modules/chdir-safer (Depends-on): Likewise.
16816         * modules/fts (Depends-on): Likewise.
16817         * modules/fts-lgpl (Depends-on): Likewise.
16818         * modules/openat (Depends-on): Likewise.
16819         * modules/savewd (Depends-on): Likewise.
16820
16821 2007-05-24  Eric Blake  <ebb9@byu.net>
16822
16823         Fix lseek on mingw.
16824         * modules/lseek: New module.
16825         * m4/lseek.m4: New file.
16826         * lib/lseek.c: New file.
16827         * modules/lseek-tests: New file.
16828         * tests/test-lseek.c: New file.
16829         * tests/test-lseek.sh: New file.
16830         * MODULES.html.sh: Document lseek module.
16831         * modules/fflush (Depends-on): Add lseek, fseeko.
16832         * modules/fseeko (Depends-on): Likewise.
16833         * modules/ftello (Depends-on): Likewise.
16834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
16835         broken.
16836         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
16837         broken.
16838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
16839         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
16840         * lib/ftello.c (rpl_ftello): Likewise.
16841         * tests/test-fseeko.c (main): Test this.
16842         * tests/test-fseeko.sh: Likewise.
16843         * tests/test-ftello.c (main): Likewise.
16844         * tests/test-ftello.sh: Likewise.
16845         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
16846         implies replacing fseek.
16847         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
16848         HAVE_FTELLO.
16849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
16850         * modules/unistd (Makefile.am): Likewise.
16851         * lib/unistd_.h (lseek): Declare a replacement.
16852         * doc/functions/lseek.texi (lseek): Document this fix.
16853         * doc/functions/fseek.texi (fseek): Likewise.
16854         * doc/functions/ftell.texi (ftell): Likewise.
16855
16856 2007-05-24  Bruno Haible  <bruno@clisp.org>
16857
16858         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
16859         in the printed representation of a NaN.
16860         * tests/test-vasprintf-posix.c (test_function): Likewise.
16861         * tests/test-snprintf-posix.h (test_function): Likewise.
16862         * tests/test-sprintf-posix.h (test_function): Likewise.
16863         Reported by Eric Blake.
16864
16865 2007-05-23  Eric Blake  <ebb9@byu.net>
16866
16867         Fix fseeko/ftello on cygwin 1.5.24.
16868         * doc/functions/fseeko.texi (fseeko): Document the fix.
16869         * doc/functions/ftello.texi (ftello): Document the fix.
16870         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
16871         * doc/functions/stdout.text (stdout): New file.
16872         * doc/functions/stderr.text (stderr): New file.
16873         * doc/gnulib.texi (Function Substitutes): Use new files.
16874         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
16875         prior to 1.7.0.
16876         * tests/test-ftello.c (main): Likewise for ftello.
16877         * tests/test-fseeko.sh: New file.
16878         * tests/test-ftello.sh: New file.
16879         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
16880         with seekable stdin.
16881         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
16882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
16883         (gl_REPLACE_FSEEKO): New macro.
16884         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
16885         * modules/fseeko (Files): Distribute fseeko.c.
16886         * modules/ftello (Files): Distribute ftello.c.
16887         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
16888         mode.
16889         * lib/ftello.c (rpl_ftello): New file.
16890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
16891         fseeko, ftello.
16892         (gl_STDIN_LARGE_OFFSET): New macro.
16893         * modules/stdio (Makefile.am): Perform the replacement.
16894         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
16895
16896 2007-05-23  Bruno Haible  <bruno@clisp.org>
16897
16898         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
16899         GNULIB_POSIXCHECK is defined.
16900
16901 2007-05-21  Bruno Haible  <bruno@clisp.org>
16902
16903         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
16904         Check also the output for NaN arguments. When cross-compiling, guess
16905         no on IRIX.
16906         * lib/vasnprintf.c: Update comments.
16907         * tests/test-vasnprintf-posix.c (strisnan): New function.
16908         (test_function): Use it.
16909         * tests/test-vasprintf-posix.c (strisnan): New function.
16910         (test_function): Use it.
16911         * tests/test-snprintf-posix.h (strisnan): New function.
16912         (test_function): Use it.
16913         * tests/test-sprintf-posix.h (strisnan): New function.
16914         (test_function): Use it.
16915         Reported by Eric Blake.
16916
16917 2007-05-20  Bruno Haible  <bruno@clisp.org>
16918
16919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
16920         numbers that fails on BeOS.
16921         * doc/functions/frexpl.texi: Update.
16922
16923 2007-05-20  Jim Meyering  <jim@meyering.net>
16924
16925         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
16926         forced upon us by glibc-2.6.
16927
16928 2007-05-20  Bruno Haible  <bruno@clisp.org>
16929
16930         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
16931         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
16932         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
16933         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
16934         NEED_PRINTF_INFINITE.
16935         (is_infinitel): New function.
16936         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
16937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
16938         gl_PREREQ_VASNPRINTF_INFINITE.
16939         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
16940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16941         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
16942         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
16943         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
16944         gl_PREREQ_VASNPRINTF_INFINITE.
16945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16952         * doc/functions/fprintf.texi: Update.
16953         * doc/functions/printf.texi: Update.
16954         * doc/functions/snprintf.texi: Update.
16955         * doc/functions/sprintf.texi: Update.
16956         * doc/functions/vfprintf.texi: Update.
16957         * doc/functions/vprintf.texi: Update.
16958         * doc/functions/vsnprintf.texi: Update.
16959         * doc/functions/vsprintf.texi: Update.
16960
16961 2007-05-20  Bruno Haible  <bruno@clisp.org>
16962
16963         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
16964         was not found in libc.
16965         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16966
16967 2007-05-20  Bruno Haible  <bruno@clisp.org>
16968
16969         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
16970         printed as "-nan" instead of "nan".
16971         * tests/test-vasprintf-posix.c (test_function): Likewise.
16972         * tests/test-snprintf-posix.h (test_function): Likewise.
16973         * tests/test-sprintf-posix.h (test_function): Likewise.
16974         Needed for HP-UX 11.
16975
16976 2007-05-20  Jim Meyering  <jim@meyering.net>
16977
16978         Fix buggy test for the fchownat-deref bug.
16979         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
16980         symlink required for the run-test.  Without it, this test would
16981         always declare that fchownat doesn't work, and client code would
16982         unnecessarily use the replacement function with fixed libc.
16983         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
16984         Reported by Greg Schafer.
16985
16986 2007-05-19  Bruno Haible  <bruno@clisp.org>
16987
16988         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
16989         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
16990         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
16991         Needed for IRIX 6.5 and Solaris 2.5.1.
16992
16993 2007-05-19  Bruno Haible  <bruno@clisp.org>
16994
16995         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
16996         (test_function): Skip tests involving -0.0 on platforms where
16997         -0.0 = 0.0.
16998         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
16999         (test_function): Skip tests involving -0.0 on platforms where
17000         -0.0 = 0.0.
17001         * tests/test-snprintf-posix.h (have_minus_zero): New function.
17002         (test_function): Skip tests involving -0.0 on platforms where
17003         -0.0 = 0.0.
17004         * tests/test-sprintf-posix.h (have_minus_zero): New function.
17005         (test_function): Skip tests involving -0.0 on platforms where
17006         -0.0 = 0.0.
17007         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
17008         tests.
17009         * tests/test-printf-posix.h (test_function): Likewise.
17010         * tests/test-printf-posix.output: Remove all -0.0 related results.
17011         Needed for IRIX 6.5.
17012
17013 2007-05-19  Bruno Haible  <bruno@clisp.org>
17014
17015         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
17016         printed as "nan0x7fffffff" instead of "nan".
17017         * tests/test-vasprintf-posix.c (test_function): Likewise.
17018         * tests/test-snprintf-posix.h (test_function): Likewise.
17019         * tests/test-sprintf-posix.h (test_function): Likewise.
17020         * tests/test-fprintf-posix.h (NaN): Remove macro.
17021         (test_function): Remove all NaN related tests.
17022         * tests/test-printf-posix.h (NaN): Remove macro.
17023         (test_function): Remove all NaN related tests.
17024         * tests/test-printf-posix.output: Remove all NaN related results.
17025         Needed for IRIX 6.5.
17026
17027 2007-05-19  Bruno Haible  <bruno@clisp.org>
17028
17029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
17030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17031
17032 2007-05-19  Bruno Haible  <bruno@clisp.org>
17033
17034         * lib/float_.h: New file.
17035         * m4/float_h.m4: New file.
17036         * modules/float: New file.
17037         * modules/isnanl (Dependencies): Add float.
17038         * modules/isnanl-nolibm (Dependencies): Likewise.
17039         * modules/mathl (Dependencies): Likewise.
17040         * modules/printf-frexpl (Dependencies): Likewise.
17041         * modules/signbit (Dependencies): Likewise.
17042         * modules/vasnprintf (Dependencies): Likewise.
17043         * doc/headers/float.texi: Update.
17044
17045 2007-05-19  Jim Meyering  <jim@meyering.net>
17046
17047         * lib/utimens.c (gl_futimens): Rename from futimens,
17048         now that glibc-2.6 declares futimens.
17049         * lib/utimens.h: Likewise.
17050
17051 2007-05-19  Bruno Haible  <bruno@clisp.org>
17052
17053         Avoid test failures on mingw.
17054         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
17055         * tests/test-printf-posix.sh: Likewise.
17056         * tests/test-vfprintf-posix.sh: Likewise.
17057         * tests/test-vprintf-posix.sh: Likewise.
17058
17059 2007-05-19  Bruno Haible  <bruno@clisp.org>
17060
17061         Fix *printf result for NaN, Inf, -0.0 on mingw.
17062         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
17063         * lib/vasnprintf.c: Include math.h and isnan.h.
17064         (is_infinite_or_zero): New function.
17065         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
17066         values in the %f, %F, %e, %E, %g, %G directives.
17067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
17068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17069         gl_PRINTF_INFINITE and test its result. Invoke
17070         gl_PREREQ_VASNPRINTF_INFINITE.
17071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17072         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17073         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17074         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17075         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17077         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17078         * doc/functions/fprintf.texi: Update.
17079         * doc/functions/printf.texi: Update.
17080         * doc/functions/snprintf.texi: Update.
17081         * doc/functions/sprintf.texi: Update.
17082         * doc/functions/vfprintf.texi: Update.
17083         * doc/functions/vprintf.texi: Update.
17084         * doc/functions/vsnprintf.texi: Update.
17085         * doc/functions/vsprintf.texi: Update.
17086
17087 2007-05-19  Bruno Haible  <bruno@clisp.org>
17088
17089         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
17090         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
17091         Instead of multiplying with 10^k, set extra_zeroes to k.
17092         (scale10_round_long_double): Remove function.
17093
17094 2007-05-18  Bruno Haible  <bruno@clisp.org>
17095
17096         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
17097         introduced on 2007-05-06.
17098
17099 2007-05-18  Bruno Haible  <bruno@clisp.org>
17100
17101         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
17102         %g directives.
17103         * tests/test-vasprintf-posix.c (test_function): Likewise.
17104         * tests/test-snprintf-posix.h (test_function): Likewise.
17105         * tests/test-sprintf-posix.h (test_function): Likewise.
17106
17107 2007-05-18  Bruno Haible  <bruno@clisp.org>
17108
17109         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
17110         (strmatch): New function.
17111         (test_function): Test the %f directive on numbers of various exponents.
17112         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
17113         (strmatch): New function.
17114         (test_function): Test the %f directive on numbers of various exponents.
17115         * tests/test-snprintf-posix.h (strmatch): New function.
17116         (test_function): Test the %f directive on numbers of various exponents.
17117         * tests/test-sprintf-posix.h (strmatch): New function.
17118         (test_function): Test the %f directive on numbers of various exponents.
17119         * tests/test-snprintf-posix.c (SIZEOF): New macro.
17120         * tests/test-sprintf-posix.c (SIZEOF): New macro.
17121         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
17122         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
17123
17124 2007-05-18  Bruno Haible  <bruno@clisp.org>
17125
17126         Add support for 'long double' number output.
17127         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
17128         * lib/vasnprintf.c: Include math.h and float+.h.
17129         (mp_limb_t): New type.
17130         (GMP_LIMB_BITS): New macro.
17131         (mp_twolimb_t): New type.
17132         (GMP_TWOLIMB_BITS): New macro.
17133         (mpn_t): New type.
17134         (multiply, divide, convert_to_decimal, decode_long_double,
17135         scale10_round_long_double, scale10_round_decimal_long_double,
17136         floorlog10l): New functions.
17137         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
17138         for the %f, %F, %e, %E, %g, %G directives.
17139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
17140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17141         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
17142         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
17143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17150         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
17151         * modules/snprintf-posix (Depends-on): Likewise.
17152         * modules/sprintf-posix (Depends-on): Likewise.
17153         * modules/vasnprintf-posix (Depends-on): Likewise.
17154         * modules/vasprintf-posix (Depends-on): Likewise.
17155         * modules/vfprintf-posix (Depends-on): Likewise.
17156         * modules/vsnprintf-posix (Depends-on): Likewise.
17157         * modules/vsprintf-posix (Depends-on): Likewise.
17158         * modules/vasnprintf (Files): Add lib/float+.h.
17159         * doc/functions/fprintf.texi: Update.
17160         * doc/functions/printf.texi: Update.
17161         * doc/functions/snprintf.texi: Update.
17162         * doc/functions/sprintf.texi: Update.
17163         * doc/functions/vfprintf.texi: Update.
17164         * doc/functions/vprintf.texi: Update.
17165         * doc/functions/vsnprintf.texi: Update.
17166         * doc/functions/vsprintf.texi: Update.
17167
17168 2007-05-18  Bruno Haible  <bruno@clisp.org>
17169
17170         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
17171
17172 2007-05-18  Bruno Haible  <bruno@clisp.org>
17173
17174         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
17175         for printing 64-bit integers. Needed for mingw.
17176
17177 2007-05-18  Bruno Haible  <bruno@clisp.org>
17178
17179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
17180         gl_FUNC_FREXPL_WORKS.
17181         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
17182
17183 2007-05-18  Bruno Haible  <bruno@clisp.org>
17184
17185         * modules/frexpl-nolibm-tests: New file.
17186
17187         * modules/frexpl-nolibm: New file.
17188         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
17189
17190 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17191
17192         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
17193         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
17194         GCC 4.2, which otherwise issues a lot of warnings.
17195         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
17196         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
17197         Likewise.
17198         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
17199         * modules/iconv_open (iconv.h): Likewise.
17200         * modules/locale (locale.h): Likewise.
17201         * modules/netinet_in (netinet/in.h): Likewise.
17202         * modules/sys_select (sys_select.h): Likewise.
17203         * modules/sys_socket (sys/socket.h): Likewise.
17204         * modules/sys_stat (sys/stat.h): Likewise.
17205         * modules/sysexits (sysexits.h): Likewise.
17206         * modules/unistd (unistd.h): Likewise.
17207
17208 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17209
17210         * modules/closein-tests (Makefile.am): Distribute
17211         `test-closein.sh'.
17212
17213 2007-05-17  Bruno Haible  <bruno@clisp.org>
17214
17215         * tests/test-printf-posix.output: Renamed from
17216         tests/test-fprintf-posix.out.
17217         * modules/fprintf-posix-tests: Update.
17218         * modules/printf-posix-tests: Update.
17219         * modules/vfprintf-posix-tests: Update.
17220         * modules/vprintf-posix-tests: Update.
17221         * tests/test-fprintf-posix.sh: Update.
17222         * tests/test-printf-posix.sh: Update.
17223         * tests/test-vfprintf-posix.sh: Update.
17224         * tests/test-vprintf-posix.sh: Update.
17225         Reported by Ralf Wildenhues.
17226
17227 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17228
17229         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
17230         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
17231         GCC 4.2, which otherwise issues a lot of warnings.
17232         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
17233         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
17234         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
17235         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
17236         it should no longer be needed.
17237         * lib/string_.h: Likewise.
17238         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
17239         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
17240         * modules/inttypes (inttypes.h): Likewise.
17241         * modules/math (math.h): Likewise.
17242         * modules/search (search.h): Likewise.
17243         * modules/signal (signal.h): Likewise.
17244         * modules/stdint (stdint.h): Likewise.
17245         * modules/stdio (stdio.h): Likewise.
17246         * modules/stdlib (stdlib.h): Likewise.
17247         * modules/string (string.h): Likewise.
17248         * modules/sys_time (sys/time.h): Likewise.
17249         * modules/time (time.h): Likewise.
17250         * modules/wchar (wchar.h): Likewise.
17251         * modules/wctype (wtype.h): Likewise.
17252
17253 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17254
17255         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
17256
17257 2007-05-13  Bruno Haible  <bruno@clisp.org>
17258
17259         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
17260         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17261         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
17262         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17263         (gl_PREREQ_STRTOK_R): Don't require it here.
17264
17265 2007-05-13  Bruno Haible  <bruno@clisp.org>
17266
17267         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
17268         when used in C++ mode.
17269
17270 2007-05-12  Bruno Haible  <bruno@clisp.org>
17271
17272         * lib/linebuffer.h: Tweak doc.
17273         * lib/linebuffer.c: Likewise.
17274
17275 2007-05-12  James Youngman  <jay@gnu.org>
17276
17277         * lib/linebuffer.c (readlinebuffer_delim): New function,
17278         like readlinebuffer, but use a caller-specified delimiter.
17279         (readlinebuffer): Just call readlinebuffer_delim with '\n'
17280         as the delimiter.
17281         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
17282
17283 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17284
17285         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
17286         * modules/openat (Files): Remove openat-die.c.
17287         (Depends-on): Add openat-die.
17288         * modules/openat-die: New module.
17289
17290 2007-05-06  Bruno Haible  <bruno@clisp.org>
17291
17292         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
17293         Update with info about Cygwin.
17294         * doc/functions/fprintf.texi: Update.
17295         * doc/functions/printf.texi: Update.
17296         * doc/functions/snprintf.texi: Update.
17297         * doc/functions/sprintf.texi: Update.
17298         * doc/functions/vfprintf.texi: Update.
17299         * doc/functions/vprintf.texi: Update.
17300         * doc/functions/vsnprintf.texi: Update.
17301         * doc/functions/vsprintf.texi: Update.
17302         Reported by Eric Blake.
17303
17304 2007-05-06  Bruno Haible  <bruno@clisp.org>
17305
17306         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
17307         padding ourselves for the floating-point directives.
17308         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
17309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
17310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
17311         gl_PRINTF_FLAG_ZERO and test its result. Invoke
17312         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
17313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
17315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17320         * tests/test-snprintf-posix.h (test_function): Also check the width
17321         and some flags in the %f directive.
17322         * tests/test-sprintf-posix.h (test_function): Likewise.
17323         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17324         * tests/test-vasprintf-posix.c (test_function): Likewise.
17325         * doc/functions/fprintf.texi: Update.
17326         * doc/functions/printf.texi: Update.
17327         * doc/functions/snprintf.texi: Update.
17328         * doc/functions/sprintf.texi: Update.
17329         * doc/functions/vfprintf.texi: Update.
17330         * doc/functions/vprintf.texi: Update.
17331         * doc/functions/vsnprintf.texi: Update.
17332         * doc/functions/vsprintf.texi: Update.
17333
17334 2007-05-06  Bruno Haible  <bruno@clisp.org>
17335
17336         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
17337         pass the ' flag character to sprintf or snprintf.
17338         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
17339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
17340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
17341         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
17342         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
17343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
17345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17350         * tests/test-snprintf-posix.h (test_function): Also check the grouping
17351         flag.
17352         * tests/test-sprintf-posix.h (test_function): Likewise.
17353         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17354         * tests/test-vasprintf-posix.c (test_function): Likewise.
17355         * doc/functions/fprintf.texi: Update.
17356         * doc/functions/printf.texi: Update.
17357         * doc/functions/snprintf.texi: Update.
17358         * doc/functions/sprintf.texi: Update.
17359         * doc/functions/vfprintf.texi: Update.
17360         * doc/functions/vprintf.texi: Update.
17361         * doc/functions/vsnprintf.texi: Update.
17362         * doc/functions/vsprintf.texi: Update.
17363
17364 2007-05-01  Bruno Haible  <bruno@clisp.org>
17365
17366         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
17367
17368 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
17371         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
17372
17373 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
17374
17375         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
17376         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
17377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
17378
17379 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
17380
17381         * lib/argp-help.c (struct hol_entry): New member `ord'.
17382         (HOL_ENTRY_PTRCMP): Use ord for comparison
17383         (hol_sort): Initialize ord.
17384
17385 2007-05-01  Bruno Haible  <bruno@clisp.org>
17386
17387         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
17388         Reported by Eric Blake.
17389         * doc/gnulib.texi (Function Substitutes): Update.
17390
17391 2007-05-01  Bruno Haible  <bruno@clisp.org>
17392
17393         * doc/functions.texi: Remove file, now redundant through
17394         doc/functions/*.texi.
17395
17396 2007-05-01  Bruno Haible  <bruno@clisp.org>
17397
17398         * modules/argp (Depends-on): Add sleep.
17399
17400 2007-05-01  Bruno Haible  <bruno@clisp.org>
17401
17402         * modules/sleep-tests: New file.
17403         * tests/test-sleep.c: New file.
17404
17405         * modules/sleep: New file.
17406         * lib/sleep.c: New file.
17407         * m4/sleep.m4: New file.
17408         * lib/unistd_.h (sleep): New declaration.
17409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
17410         HAVE_SLEEP.
17411         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
17412         * doc/functions/sleep.texi: Document the sleep module.
17413
17414 2007-05-01  Bruno Haible  <bruno@clisp.org>
17415
17416         * lib/sigprocmask.h: Remove file.
17417         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
17418         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
17419         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
17420         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
17421         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17422         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
17423         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
17424         HAVE_SIGSET_T as a shell variable.
17425         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
17426         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
17427         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
17428         (Depends-on): Add signal. Remove verify.
17429         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
17430         (Include): Mention <signal.h> instead of sigprocmask.h.
17431         * NEWS: Mention the change.
17432         * lib/fatal-signal.c: Don't include sigprocmask.h.
17433
17434 2007-05-01  Bruno Haible  <bruno@clisp.org>
17435
17436         * modules/signal: New file.
17437         * lib/signal_.h: New file.
17438         * m4/signal_h.m4: New file.
17439
17440 2007-05-01  Bruno Haible  <bruno@clisp.org>
17441
17442         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
17443         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
17444         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
17445         HAVE_WCTYPE_CTMP_BUG into wctype.h.
17446
17447 2007-05-01  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
17450         configure time.
17451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
17452         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
17453         * modules/sys_stat (Makefile.am): Substitute their values into
17454         sys/stat.h.
17455
17456 2007-05-01  Bruno Haible  <bruno@clisp.org>
17457
17458         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
17459         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
17460         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
17461
17462 2007-05-01  Bruno Haible  <bruno@clisp.org>
17463
17464         * doc/header/assert.texi: Undo last change: don't mention the gnulib
17465         'assert' module here.
17466
17467 2007-05-01  Bruno Haible  <bruno@clisp.org>
17468
17469         * doc/functions/*.texi: New files.
17470         * doc/functions/google-ranking.txt: New file.
17471         * doc/gnulib.texi (Function Substitutes): New chapter.
17472         (ctime, inet_ntoa): Remove sections.
17473         * doc/ctime.texi: Remove file.
17474         * doc/inet_ntoa.texi: Remove file.
17475         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
17476         dependencies.
17477         (%.info): New rule, specifying a --reference-limit.
17478
17479 2007-05-01  Bruno Haible  <bruno@clisp.org>
17480
17481         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
17482
17483 2007-05-01  Bruno Haible  <bruno@clisp.org>
17484
17485         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
17486         the portability of 'mkdir' to mingw systems.
17487
17488 2007-05-01  Bruno Haible  <bruno@clisp.org>
17489
17490         * doc/headers/google-ranking.txt: New file.
17491
17492 2007-04-30  Eric Blake  <ebb9@byu.net>
17493
17494         Prefer fseeko to fseek.
17495         * modules/getpass (Depends-on): Add fseeko.
17496         * lib/getpass.c (getpass): Use fseeko, not fseek.
17497
17498 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
17499
17500         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
17501         assumes the sorting is stable, while most qsort implementations
17502         are not.  Use argument addresses to ensure they never compare as
17503         equal.
17504
17505         * tests/test-argp-2.sh (usage-indent test): Fix output
17506         (func_compare): Restore diff options
17507         * tests/test-argp.c: Restore #include "progname.h"
17508
17509 2007-04-29  Bruno Haible  <bruno@clisp.org>
17510
17511         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
17512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
17513         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
17514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17515         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
17516         (configure.ac): Define CHECK_SNPRINTF_POSIX.
17517         (TESTS, check_PROGRAMS): Add test-snprintf.
17518         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
17519         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
17520         (TESTS, check_PROGRAMS): Add test-vsnprintf.
17521         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
17522         assertions that fail on HP-UX, OSF/1, or IRIX.
17523         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
17524
17525 2007-04-29  Bruno Haible  <bruno@clisp.org>
17526
17527         * MODULES.html.sh (posix_functions): Remove 'contents'.
17528
17529 2007-04-29  Karl Berry  <karl@gnu.org>
17530
17531         * config/srclist.txt (gendocs_template_min): new entry.
17532
17533 2007-04-29  Bruno Haible  <bruno@clisp.org>
17534
17535         Work around fpurge bug on BSD systems.
17536         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
17537         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
17538         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
17539         fpurge to rpl_fpurge if the system already has this function.
17540         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
17541         the case where the system already has this function. Correct invariants
17542         on BSD systems.
17543         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
17544         BSD systems.
17545
17546 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
17547
17548         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
17549         proposed by Sven Verdoolaege.
17550
17551         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
17552         options.
17553         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
17554         (usage and help tests): Update
17555
17556 2007-04-29  Bruno Haible  <bruno@clisp.org>
17557
17558         * tests/test-fflush.c (main): Use a file of size 17, not 10.
17559         Print more information in case of failure. Disable a test on BeOS.
17560
17561 2007-04-29  Bruno Haible  <bruno@clisp.org>
17562
17563         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
17564         This helps debugging on systems on which no gdb is available.
17565
17566 2007-04-29  Bruno Haible  <bruno@clisp.org>
17567
17568         * lib/freading.h: Improve comments.
17569         * lib/fwriting.h: Likewise.
17570         * tests/test-freading.c (main): Don't check freading immediately after
17571         repositioning. Needed for glibc.
17572
17573 2007-04-29  Bruno Haible  <bruno@clisp.org>
17574
17575         * lib/freading.c (freading): Trivial simplification.
17576
17577 2007-04-28  Bruno Haible  <bruno@clisp.org>
17578
17579         * tests/test-fwriting.c (main): Also test the interaction between
17580         fflush and fwriting.
17581         * modules/fwriting-tests (Depends-on): Add fflush.
17582
17583         * tests/test-freading.c (main): Also test the interaction between
17584         fflush and freading.
17585         * modules/freading-tests (Depends-on): Add fflush.
17586
17587 2007-04-28  Bruno Haible  <bruno@clisp.org>
17588
17589         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
17590         fseeko and ftello.
17591         Suggested by Eric Blake.
17592
17593 2007-04-28  Jim Meyering  <jim@meyering.net>
17594
17595         Avoid false-negative in gl_STDINT_H's C99 conformance test.
17596         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
17597         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
17598
17599 2007-04-27  Eric Blake  <ebb9@byu.net>
17600
17601         * doc/headers/assert.texi (assert.h): Document assert module use.
17602
17603 2007-04-27  Bruno Haible  <bruno@clisp.org>
17604
17605         * doc/headers/*.texi: New files.
17606         * doc/gnulib.texi (Header File Substitutes): New chapter.
17607         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
17608         dependencies.
17609         (standards.info ,standards.html, standards.dvi): Update dependencies.
17610         (mostlyclean, clean): New targets.
17611
17612 2007-04-27  Bruno Haible  <bruno@clisp.org>
17613
17614         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
17615         * modules/sysexits (Files, Makefile.am): Update.
17616
17617         * lib/sys_socket_.h: Renamed from lib/socket_.h.
17618         * modules/sys_socket (Files, Makefile.am): Update.
17619
17620         * lib/sys_stat_.h: Renamed from lib/stat_.h.
17621         * modules/sys_stat (Files, Makefile.am): Update.
17622
17623 2007-04-27  Eric Blake  <ebb9@byu.net>
17624
17625         * lib/freading.h: Improve comments.
17626         * lib/fwriting.h: Likewise.
17627         * lib/fflush.c: Likewise.
17628
17629         Fix closein for mingw.
17630         * modules/closein-tests: Add tests for closein.
17631         * tests/test-closein.c: New file.
17632         * tests/test-closein.sh: Likewise.
17633         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
17634         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
17635
17636 2007-04-27  Bruno Haible  <bruno@clisp.org>
17637
17638         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
17639         version is < 6.
17640         * lib/math_.h [__DECC]: Likewise.
17641         * lib/stdio_.h [__DECC]: Likewise.
17642         * lib/stdlib_.h [__DECC]: Likewise.
17643         * lib/string_.h [__DECC]: Likewise.
17644         * lib/time_.h [__DECC]: Likewise.
17645         * lib/wchar_.h [__DECC]: Likewise.
17646         * lib/wctype_.h [__DECC]: Likewise.
17647
17648 2007-04-27  Bruno Haible  <bruno@clisp.org>
17649
17650         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
17651
17652 2007-04-27  Bruno Haible  <bruno@clisp.org>
17653
17654         * lib/fflush.c: Add comments.
17655         * modules/fpurge-tests (Depends-on): Add fflush.
17656         * modules/freadable-tests (Depends-on): Likewise.
17657         * modules/fwritable-tests (Depends-on): Likewise.
17658
17659 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
17660
17661         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
17662         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
17663         Report by Bruno Haible <bruno@clisp.org>.
17664
17665 2007-04-26  Eric Blake  <ebb9@byu.net>
17666
17667         Fix fflush on mingw.
17668         * modules/fflush (Depends-on): Add freading.
17669         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
17670         but unread data.
17671
17672 2007-04-26  Eric Blake  <ebb9@byu.net>
17673         and Bruno Haible  <bruno@clisp.org>
17674
17675         Implement freading and fwriting.
17676         * lib/freading.c: New file.
17677         * lib/freading.h: Likewise.
17678         * m4/freading.m4: Likewise.
17679         * modules/freading: Likewise.
17680         * modules/freading-tests: Likewise.
17681         * tests/test-freading.c: Likewise.
17682         * lib/fwriting.c: New file.
17683         * lib/fwriting.h: Likewise.
17684         * m4/fwriting.m4: Likewise.
17685         * modules/fwriting: Likewise.
17686         * modules/fwriting-tests: Likewise.
17687         * tests/test-fwriting.c: Likewise.
17688         * MODULES.html.sh (File stream based Input/Output): Mention them.
17689
17690 2007-04-26  Bruno Haible  <bruno@clisp.org>
17691
17692         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
17693         'long' when we assume it.
17694         Suggested by Eric Blake.
17695
17696 2007-04-26  Bruno Haible  <bruno@clisp.org>
17697
17698         Ensure fseeko, ftello are declared on glibc systems.
17699         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
17700         * modules/fseeko (configure.ac-early): Likewise.
17701         * modules/ftello (configure.ac-early): Likewise.
17702         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
17703         AC_FUNC_FSEEKO for this.
17704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
17705         (gl_CHECK_FSEEKO): Remove macro.
17706
17707 2007-04-26  Bruno Haible  <bruno@clisp.org>
17708
17709         * tests/test-fflush.c (main): Also check the ftell result after
17710         fflush and fseek/fseeko.
17711         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
17712         file descriptor position cache in the stream.
17713         * lib/fseeko.c (rpl_fseeko): Likewise.
17714
17715 2007-04-26  Bruno Haible  <bruno@clisp.org>
17716
17717         * modules/fflush-tests (Depends-on): Add fseeko.
17718
17719 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
17720             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17721
17722         * lib/argz_.h: ensure error_t definition is obtained in same
17723         mechanism system argz.h would have.
17724         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
17725         argz facilities are known bad.  Err on the side of caution if
17726         cross-compiling.
17727
17728 2007-04-25  Eric Blake  <ebb9@byu.net>
17729
17730         * lib/fpurge.c (includes): Use stdlib.h for free.
17731         * tests/test-fflush.c (main): Also test fflush-fseeko.
17732
17733 2007-04-25  Bruno Haible  <bruno@clisp.org>
17734
17735         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
17736         * lib/fseeko.c: New file.
17737         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
17738         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
17739         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
17740         gl_FUNC_FSEEKO.
17741         (gl_FUNC_FSEEKO): Invoke it.
17742         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
17743         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
17744         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
17745
17746 2007-04-25  Bruno Haible  <bruno@clisp.org>
17747
17748         * modules/fflush (Depends-on): Add ftello.
17749
17750 2007-04-25  Bruno Haible  <bruno@clisp.org>
17751
17752         * modules/ftello-tests: New file.
17753         * tests/test-ftello.c: New file.
17754
17755         * modules/ftello: New file.
17756         * m4/ftello.m4: New file.
17757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
17758         HAVE_FTELLO.
17759         * lib/stdio_.h (ftello): New declaration.
17760         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
17761         HAVE_FTELLO.
17762
17763 2007-04-25  Bruno Haible  <bruno@clisp.org>
17764
17765         * modules/fseeko-tests: New file.
17766         * tests/test-fseeko.c: New file.
17767
17768         * modules/fseeko: New file.
17769         * m4/fseeko.m4: New file.
17770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
17771         HAVE_FSEEKO.
17772         * lib/stdio_.h (fseeko): New declaration.
17773         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
17774         HAVE_FSEEKO.
17775
17776 2007-04-25  Bruno Haible  <bruno@clisp.org>
17777
17778         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
17779
17780 2007-04-25  Bruno Haible  <bruno@clisp.org>
17781
17782         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
17783         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
17784         * tests/test-unistd.c: Likewise.
17785         * tests/test-fcntl.c: Likewise.
17786
17787 2007-04-23  Eric Blake  <ebb9@byu.net>
17788
17789         * lib/fflush.c: Fix missing include.
17790         Reported by Bruno Haible.
17791
17792 2007-04-23  Bruno Haible  <bruno@clisp.org>
17793
17794         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
17795         Reported by Eric Blake.
17796
17797 2007-04-23  Bruno Haible  <bruno@clisp.org>
17798
17799         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
17800
17801 2007-04-23  Bruno Haible  <bruno@clisp.org>
17802
17803         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
17804
17805 2007-04-23  Bruno Haible  <bruno@clisp.org>
17806
17807         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
17808         Needed on HP-UX 11.
17809
17810 2007-04-16  Eric Blake  <ebb9@byu.net>
17811
17812         Make fflush rely on fpurge.
17813         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
17814         open coding all variants.
17815         * modules/fflush (Depends-on): Add fpurge and unistd.
17816         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
17817         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
17818
17819         Fix --with-tests compilation on cygwin.
17820         * modules/argmatch-tests (Makefile.am): List gnulib library first
17821         in LDADD.
17822         * modules/argp-tests (Makefile.am): Likewise.
17823         * modules/array-list-tests (Makefile.am): Likewise.
17824         * modules/array-oset-tests (Makefile.am): Likewise.
17825         * modules/avltree-list-tests (Makefile.am): Likewise.
17826         * modules/avltree-oset-tests (Makefile.am): Likewise.
17827         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17828         * modules/carray-list-tests (Makefile.am): Likewise.
17829         * modules/dirname-tests (Makefile.am): Likewise.
17830         * modules/frexp-tests (Makefile.am): Likewise.
17831         * modules/isnanl-tests (Makefile.am): Likewise.
17832         * modules/linked-list-tests (Makefile.am): Likewise.
17833         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17834         * modules/lock-tests (Makefile.am): Likewise.
17835         * modules/rbtree-list-tests (Makefile.am): Likewise.
17836         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17837         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17838         * modules/tls-tests (Makefile.am): Likewise.
17839         * modules/tsearch-tests (Makefile.am): Likewise.
17840         * modules/xvasprintf-tests (Makefile.am): Likewise.
17841
17842         Fix fpurge for cygwin.
17843         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
17844         value.
17845         * modules/fpurge-tests (Depends-on): Clean up trash.
17846
17847 2007-04-16  Simon Josefsson  <simon@josefsson.org>
17848
17849         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
17850
17851         * m4/autobuild.m4: Re-indent.
17852
17853 2007-04-13  Bruno Haible  <bruno@clisp.org>
17854
17855         * modules/fpurge-tests: New file.
17856         * tests/test-fpurge.c: New file.
17857
17858         * modules/fpurge: New file.
17859         * lib/fpurge.h: New file.
17860         * lib/fpurge.c: New file.
17861         * m4/fpurge.m4: New file.
17862
17863 2007-04-13  Bruno Haible  <bruno@clisp.org>
17864
17865         * modules/fbufmode-tests: New file.
17866         * tests/test-fbufmode.c: New file.
17867
17868         * modules/fbufmode: New file.
17869         * lib/fbufmode.h: New file.
17870         * lib/fbufmode.c: New file.
17871         * m4/fbufmode.m4: New file.
17872
17873 2007-04-13  Bruno Haible  <bruno@clisp.org>
17874
17875         * modules/fwritable-tests: New file.
17876         * tests/test-fwritable.c: New file.
17877
17878         * modules/fwritable: New file.
17879         * lib/fwritable.h: New file.
17880         * lib/fwritable.c: New file.
17881         * m4/fwritable.m4: New file.
17882
17883 2007-04-13  Bruno Haible  <bruno@clisp.org>
17884
17885         * modules/freadable-tests: New file.
17886         * tests/test-freadable.c: New file.
17887
17888         * modules/freadable: New file.
17889         * lib/freadable.h: New file.
17890         * lib/freadable.c: New file.
17891         * m4/freadable.m4: New file.
17892
17893 2007-04-13  Bruno Haible  <bruno@clisp.org>
17894
17895         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
17896         MOSTLYCLEANFILES.
17897
17898 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
17899
17900         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
17901         gzip bootstrap.conf to avoid dragging in i18n machinery.
17902         (gnulib_tool_option): Use it.
17903
17904 2007-04-13  Bruno Haible  <bruno@clisp.org>
17905
17906         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
17907         %F directives.
17908         * tests/test-vasprintf-posix.c (test_function): Likewise.
17909         * tests/test-snprintf-posix.h (test_function): Likewise.
17910         * tests/test-sprintf-posix.h (test_function): Likewise.
17911         * tests/test-fprintf-posix.h (test_function): Likewise.
17912         * tests/test-printf-posix.h (test_function): Likewise.
17913         * tests/test-fprintf-posix.out: Likewise.
17914
17915 2007-04-13  Bruno Haible  <bruno@clisp.org>
17916
17917         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
17918         * modules/tls-tests (configure.ac): Likewise.
17919         Reported by Arto C. Nirkko <anirkko@insel.ch>.
17920
17921 2007-04-13  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/tls.c (glthread_tls_get): Fix return type.
17924         Patch by Arto C. Nirkko <anirkko@insel.ch>.
17925
17926 2007-04-12  Eric Blake  <ebb9@byu.net>
17927
17928         * modules/gettime (Depends-on): Remove gettime.
17929         Reported by Dmitry V. Levin.
17930
17931 2007-04-12  Bruno Haible  <bruno@clisp.org>
17932
17933         * modules/fflush (Include): Mention <stdio.h>.
17934         * modules/strtoimax (Include): Mention <inttypes.h>.
17935         * modules/strtoumax (Include): Likewise.
17936
17937 2007-04-12  Eric Blake  <ebb9@byu.net>
17938
17939         * .cvsignore: New file.
17940         * .gitignore: Likewise.
17941
17942 2007-04-12  Bruno Haible  <bruno@clisp.org>
17943
17944         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
17945         not before, since $(LDADD) often contains libgnu.a.
17946         * modules/striconv-tests (test_striconv_LDADD): Likewise.
17947         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
17948         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
17949         Needed on Cygwin.
17950
17951 2007-04-12  Eric Blake  <ebb9@byu.net>
17952
17953         Work around glibc's failure to flush stdin on fclose.
17954         * lib/closein.c (close_stdin): Flush stdin before closing.
17955
17956         Work around glibc's failure to reset seekable stdin on exit.
17957         * modules/closein: New module.
17958         * lib/closein.c: New file.
17959         * lib/closein.h: Likewise.
17960         * m4/closein.m4: Likewise.
17961         * MODULES.html.sh (File stream based Input/Output): Document it.
17962
17963 2007-04-12  Simon Josefsson  <simon@josefsson.org>
17964
17965         * gnulib-tool: Rename generated 'autobuild' script to
17966         'do-autobuild' in --create-megatestdir output.
17967
17968         * doc/gnulib.texi (Build robot for gnulib): Fix.
17969
17970 2007-04-12  Simon Josefsson  <simon@josefsson.org>
17971
17972         * modules/sysexits (Depends-on): Add absolute-header.
17973
17974 2007-04-12  Eric Blake  <ebb9@byu.net>
17975
17976         No need to preserve errno on success.
17977         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
17978         Reported by Bruno Haible.
17979
17980 2007-04-12  Simon Josefsson  <simon@josefsson.org>
17981
17982         * MODULES.html.sh (Support for maintaining and releasing
17983         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
17984
17985 2007-04-12  Simon Josefsson  <simon@josefsson.org>
17986
17987         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
17988
17989 2007-04-12  Simon Josefsson  <simon@josefsson.org>
17990
17991         * modules/autobuild: New module.
17992
17993         * m4/autobuild.m4: New file.
17994
17995 2007-04-11  Bruno Haible  <bruno@clisp.org>
17996
17997         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
17998         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
17999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
18000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
18001         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18002         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18003         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
18005         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18006         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
18008         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18009         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
18011         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18012         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
18014         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18015         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
18017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
18020         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18021         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
18023         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
18024         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
18025         Reported by Eric Blake.
18026
18027 2007-04-11  Bruno Haible  <bruno@clisp.org>
18028
18029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
18030
18031 2007-04-10  Bruno Haible  <bruno@clisp.org>
18032
18033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
18034         for NaN and Infinity. Needed on FreeBSD 6.1.
18035         * tests/test-vasnprintf-posix.c (test_function): Undo last change
18036         regarding results for "%010a" of Infinity and NaN.
18037         * tests/test-vasprintf-posix.c (test_function): Likewise.
18038         * tests/test-snprintf-posix.h (test_function): Likewise.
18039         * tests/test-sprintf-posix.h (test_function): Likewise.
18040         * tests/test-fprintf-posix.h (test_function): Likewise.
18041         * tests/test-printf-posix.h (test_function): Likewise.
18042         * tests/test-fprintf-posix.out: Likewise.
18043
18044 2007-04-10  Bruno Haible  <bruno@clisp.org>
18045
18046         * modules/locale-tests: New file.
18047         * tests/test-locale.c: New file.
18048
18049         * modules/locale: New file.
18050         * lib/locale_.h: New file.
18051         * m4/locale_h.m4: New file.
18052
18053 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
18054             Bruno Haible  <bruno@clisp.org>
18055
18056         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
18057         be determined, test for availability of the copysignf, copysign,
18058         copysignl functions.
18059         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
18060         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
18061         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
18062
18063 2007-04-09  Eric Blake  <ebb9@byu.net>
18064
18065         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
18066         * modules/stdio (Makefile.am): Support fflush.
18067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18068         * modules/fflush: New file.
18069         * lib/fflush.c: Likewise.
18070         * m4/fflush.m4: Likewise.
18071         * modules/fflush-tests: New test.
18072         * tests/test-fflush.c: Likewise.
18073         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
18074
18075 2007-04-06  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
18078         (VASNPRINTF): Use signbit for faster determination whether to print a
18079         minus sign.
18080         * modules/vasnprintf (Files): Remove lib/float+.h.
18081         * modules/fprintf-posix (Depends-on): Add signbit.
18082         * modules/snprintf-posix (Depends-on): Likewise.
18083         * modules/sprintf-posix (Depends-on): Likewise.
18084         * modules/vasnprintf-posix (Depends-on): Likewise.
18085         * modules/vasprintf-posix (Depends-on): Likewise.
18086         * modules/vfprintf-posix (Depends-on): Likewise.
18087         * modules/vsnprintf-posix (Depends-on): Likewise.
18088         * modules/vsprintf-posix (Depends-on): Likewise.
18089
18090 2007-04-06  Bruno Haible  <bruno@clisp.org>
18091
18092         * tests/test-frexp.c (main): Test also the sign bit of zero results.
18093         * tests/test-frexpl.c (main): Likewise.
18094         * tests/test-ldexpl.c (main): Likewise.
18095         * modules/frexp-tests (Depends-on): Add signbit.
18096         * modules/frexpl-tests (Depdends-on): Likewise.
18097         * modules/ldexpl-tests (Depdends-on): Likewise.
18098
18099 2007-04-06  Bruno Haible  <bruno@clisp.org>
18100
18101         * modules/signbit-tests: New file.
18102         * tests/test-signbit.c: New file.
18103
18104         * modules/signbit: New file.
18105         * lib/signbitf.c: New file.
18106         * lib/signbitd.c: New file.
18107         * lib/signbitl.c: New file.
18108         * m4/signbit.m4: New file.
18109         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
18110         (signbit): New macro.
18111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
18112         REPLACE_SIGNBIT.
18113         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
18114         REPLACE_FREXPL into math.h.
18115
18116 2007-04-06  Bruno Haible  <bruno@clisp.org>
18117
18118         * modules/isnanf-nolibm-tests: New file.
18119         * tests/test-isnanf.c: New file.
18120
18121         * modules/isnanf-nolibm: New file.
18122         * lib/isnanf.h: New file.
18123         * lib/isnanf.c: New file.
18124         * lib/isnan.c: Consider the USE_FLOAT macro.
18125         * m4/isnanf.m4: New file.
18126
18127 2007-04-06  Bruno Haible  <bruno@clisp.org>
18128
18129         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
18130         (Link): New section.
18131
18132         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
18133
18134 2007-04-06  Bruno Haible  <bruno@clisp.org>
18135
18136         Assume the 'long double' type.
18137         * m4/longdouble.m4: Remove file.
18138         * config/srclist.txt: Don't mention longdouble.m4.
18139         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
18140         * lib/float+.h: Likewise.
18141         * lib/frexp.c: Likewise.
18142         * lib/printf-args.h: Likewise.
18143         * lib/printf-args.c: Likewise.
18144         * lib/printf-frexp.c: Likewise.
18145         * lib/printf-parse.c: Likewise.
18146         * lib/vasnprintf.c: Likewise.
18147         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
18148         * m4/intl.m4: Likewise.
18149         * m4/isnanl.m4: Likewise.
18150         * m4/printf.m4: Likewise.
18151         * m4/printf-frexpl.m4: Likewise.
18152         * m4/vasnprintf.m4: Likewise.
18153         * modules/allocsa (Files): Remove m4/longdouble.m4.
18154         * modules/gettext (Files): Likewise.
18155         * modules/relocatable-prog-wrapper (Files): Likewise.
18156         * modules/vasnprintf (Files): Likewise.
18157         * modules/isnanl (Files): Likewise.
18158         (Include): Simplify.
18159         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
18160         (Include): Simplify.
18161         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
18162         (Include): Simplify.
18163         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
18164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
18165         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
18166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
18167         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
18168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
18169         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
18170         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
18171         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
18172         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
18173         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
18174         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
18175         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
18176         * tests/test-isnanl.c: Likewise.
18177         * tests/test-snprintf-posix.h: Likewise.
18178         * tests/test-sprintf-posix.h: Likewise.
18179         * tests/test-vasnprintf-posix.c: Likewise.
18180         * tests/test-vasnprintf-posix2.c: Likewise.
18181         * tests/test-vasprintf-posix.c: Likewise.
18182
18183 2007-04-06  Bruno Haible  <bruno@clisp.org>
18184
18185         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
18186         * lib/math_.h [__DECC]: Include the overridden include file through
18187         #include_next, outside the double-inclusion guard.
18188         * lib/stdio_.h [__DECC]: Likewise.
18189         * lib/stdlib_.h [__DECC]: Likewise.
18190         * lib/string_.h [__DECC]: Likewise.
18191         * lib/time_.h [__DECC]: Likewise.
18192         * lib/wchar_.h [__DECC]: Likewise.
18193         * lib/wctype_.h [__DECC]: Likewise.
18194         * lib/inttypes_.h [__DECC]: Likewise.
18195         Reported by Albert Chin <china@thewrittenword.com> in
18196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
18197
18198 2007-04-04  Eric Blake  <ebb9@byu.net>
18199
18200         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
18201         1.5.x.
18202
18203 2007-04-04  Bruno Haible  <bruno@clisp.org>
18204
18205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
18206         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
18207
18208 2007-04-04  Bruno Haible  <bruno@clisp.org>
18209
18210         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
18211         results for "%010a" of Infinity and NaN.
18212         * tests/test-vasprintf-posix.c (test_function): Likewise.
18213         * tests/test-snprintf-posix.h (test_function): Likewise.
18214         * tests/test-sprintf-posix.h (test_function): Likewise.
18215         * tests/test-fprintf-posix.h (test_function): Remove these tests.
18216         * tests/test-printf-posix.h (test_function): Likewise.
18217         * tests/test-fprintf-posix.out: Update.
18218         Needed for FreeBSD 6.1.
18219
18220 2007-04-04  Bruno Haible  <bruno@clisp.org>
18221
18222         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
18223         directly used by the gnulib modules nor by gnulib-tool.
18224
18225 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
18226
18227         * DEPENDENCIES: Give overall description of version dependency
18228         desirability.  Use more-typical names for apps.
18229         Add shell, coreutils, diffutils, grep, tar, gzip.
18230
18231 2007-04-04  Simon Josefsson  <simon@josefsson.org>
18232
18233         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
18234
18235 2007-04-04  Karl Berry  <karl@gnu.org>
18236
18237         * MODULES.html.sh (func_module): missing '.
18238
18239 2007-04-03  Bruno Haible  <bruno@clisp.org>
18240
18241         * modules/argmatch-tests (Makefile.am): New variable
18242         test_argmatch_LDADD.
18243         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
18244         * modules/array-list-tests (Makefile.am): New variable
18245         test_array_list_LDADD.
18246         * modules/array-oset-tests (Makefile.am): New variable
18247         test_array_oset_LDADD.
18248         * modules/avltree-list-tests (Makefile.am): New variable
18249         test_avltree_list_LDADD.
18250         * modules/avltree-oset-tests (Makefile.am): New variable
18251         test_avltree_oset_LDADD.
18252         * modules/avltreehash-list-tests (Makefile.am): New variable
18253         test_avltreehash_list_LDADD.
18254         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
18255         test_canonicalize_lgpl_LDADD.
18256         * modules/carray-list-tests (Makefile.am): New variable
18257         test_carray_list_LDADD.
18258         * modules/dirname-tests (Makefile.am): New variable
18259         test_dirname_LDADD.
18260         * modules/linked-list-tests (Makefile.am): New variable
18261         test_linked_list_LDADD.
18262         * modules/linkedhash-list-tests (Makefile.am): New variable
18263         test_linkedhash_list_LDADD.
18264         * modules/rbtree-list-tests (Makefile.am): New variable
18265         test_rbtree_list_LDADD.
18266         * modules/rbtree-oset-tests (Makefile.am): New variable
18267         test_rbtree_oset_LDADD.
18268         * modules/rbtreehash-list-tests (Makefile.am): New variable
18269         test_rbtreehash_list_LDADD.
18270         * modules/xvasprintf-tests (Makefile.am): New variable
18271         test_xvasprintf_LDADD.
18272         Reported by Eric Blake.
18273
18274 2007-04-03  Eric Blake  <ebb9@byu.net>
18275
18276         * DEPENDENCIES: Weaken m4 requirements.
18277
18278 2007-04-03  Bruno Haible  <bruno@clisp.org>
18279
18280         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
18281         * modules/isnanl-tests (configure.ac): Likewise.
18282
18283 2007-04-03  Ben Pfaff  <blp@gnu.org>
18284
18285         * modules/iconv_open: Add $(srcdir)/ to source directory
18286         references in Makefile fragments that call gperf, to fix VPATH
18287         builds.
18288
18289 2007-04-03  Bruno Haible  <bruno@clisp.org>
18290
18291         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
18292         * lib/ldexpl.c: Undo last change.
18293
18294 2007-04-03  Bruno Haible  <bruno@clisp.org>
18295
18296         * modules/printf-frexpl (Depends-on): Undo last change.
18297         (Files): Add m4/ldexpl.m4.
18298
18299 2007-04-03  Bruno Haible  <bruno@clisp.org>
18300
18301         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
18302         * modules/isnanl (Link): New section.
18303
18304         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
18305         * modules/frexp (Link): New section.
18306
18307         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
18308         * modules/frexpl (Link): New section.
18309
18310         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
18311         * modules/ldexpl (Link): New section.
18312
18313 2007-04-03  Bruno Haible  <bruno@clisp.org>
18314
18315         * modules/TEMPLATE-EXTENDED: New file.
18316         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
18317
18318 2007-04-03  Bruno Haible  <bruno@clisp.org>
18319
18320         * DEPENDENCIES: New file.
18321         Suggested by Simon Josefsson.
18322
18323 2007-04-03  Bruno Haible  <bruno@clisp.org>
18324
18325         * doc/gnulib.texi: Escape @.
18326
18327 2007-04-03  James Youngman  <jay@gnu.org>
18328         and Paul Eggert  <eggert@cs.ucla.edu>
18329
18330         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
18331         birthtime on all systems that have birthtime, not just those which
18332         use st_birthtimensec rather than st_birthtim.  Putting zero in
18333         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
18334         that the birth time is not available for files on an NFS mount.
18335
18336 2007-04-03  Simon Josefsson  <simon@josefsson.org>
18337
18338         * modules/memxor: Move back from crypto/, suggested by Bruno.
18339         * modules/crypto/hmac-sha1: Fix memxor dependency.
18340
18341         * modules/crypto/gc: Moved from ../.
18342
18343 2007-04-02  Eric Blake  <ebb9@byu.net>
18344
18345         * lib/ldexpl.c (includes): Avoid libm.
18346
18347         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
18348
18349 2007-04-02  Bruno Haible  <bruno@clisp.org>
18350
18351         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
18352         on IRIX.
18353
18354 2007-04-02  Bruno Haible  <bruno@clisp.org>
18355
18356         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
18357         x86 or x86_64 platforms running MacOS X.
18358         Reported by Ryan Schmidt <@ryandesign.com>.
18359
18360 2007-04-02  Bruno Haible  <bruno@clisp.org>
18361
18362         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
18363         i386.
18364
18365 2007-04-01  Simon Josefsson  <simon@josefsson.org>
18366
18367         * modules/crypto/arcfour: Moved from ../.
18368         * modules/crypto/arcfour-tests: Moved from ../.
18369         * modules/crypto/arctwo: Moved from ../.
18370         * modules/crypto/arctwo-tests: Moved from ../.
18371         * modules/crypto/des: Moved from ../.
18372         * modules/crypto/des-tests: Moved from ../.
18373         * modules/crypto/gc-arcfour: Moved from ../.
18374         * modules/crypto/gc-arcfour-tests: Moved from ../.
18375         * modules/crypto/gc-arctwo: Moved from ../.
18376         * modules/crypto/gc-arctwo-tests: Moved from ../.
18377         * modules/crypto/gc-des: Moved from ../.
18378         * modules/crypto/gc-des-tests: Moved from ../.
18379         * modules/crypto/gc-hmac-md5: Moved from ../.
18380         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
18381         * modules/crypto/gc-hmac-sha1: Moved from ../.
18382         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
18383         * modules/crypto/gc-md2: Moved from ../.
18384         * modules/crypto/gc-md2-tests: Moved from ../.
18385         * modules/crypto/gc-md4: Moved from ../.
18386         * modules/crypto/gc-md4-tests: Moved from ../.
18387         * modules/crypto/gc-md5: Moved from ../.
18388         * modules/crypto/gc-md5-tests: Moved from ../.
18389         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
18390         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
18391         * modules/crypto/gc-random: Moved from ../.
18392         * modules/crypto/gc-rijndael: Moved from ../.
18393         * modules/crypto/gc-rijndael-tests: Moved from ../.
18394         * modules/crypto/gc-sha1: Moved from ../.
18395         * modules/crypto/gc-sha1-tests: Moved from ../.
18396         * modules/crypto/gc-tests: Moved from ../.
18397         * modules/crypto/hmac-md5: Moved from ../.
18398         * modules/crypto/hmac-md5-tests: Moved from ../.
18399         * modules/crypto/hmac-sha1: Moved from ../.
18400         * modules/crypto/hmac-sha1-tests: Moved from ../.
18401         * modules/crypto/md2: Moved from ../.
18402         * modules/crypto/md2-tests: Moved from ../.
18403         * modules/crypto/md4: Moved from ../.
18404         * modules/crypto/md4-tests: Moved from ../.
18405         * modules/crypto/md5: Moved from ../.
18406         * modules/crypto/md5-tests: Moved from ../.
18407         * modules/crypto/memxor: Moved from ../.
18408         * modules/crypto/rijndael: Moved from ../.
18409         * modules/crypto/rijndael-tests: Moved from ../.
18410         * modules/crypto/sha1: Moved from ../.
18411
18412 2007-03-30  James Youngman  <jay@gnu.org>
18413
18414         * tests/test-stat-time.c (prepare_test): use chmod() rather than
18415         rename() to change the ctime of a file (because ctime is unaffected
18416         by rename on jfs2 on AIX 5.1).
18417         (main): Start by doing cleanup, in case a previous run failed leaving
18418         test files behind.
18419
18420 2007-03-31  Bruno Haible  <bruno@clisp.org>
18421
18422         Support old proprietary implementations of iconv.
18423         * modules/iconv_open: New file.
18424         * lib/iconv_.h: New file.
18425         * m4/iconv_h.m4: New file.
18426         * lib/iconv_open.c: New file.
18427         * lib/iconv_open-aix.gperf: New file.
18428         * lib/iconv_open-hpux.gperf: New file.
18429         * lib/iconv_open-irix.gperf: New file.
18430         * lib/iconv_open-osf.gperf: New file.
18431         * m4/iconv_open.m4: New file.
18432         * modules/linebreak (Depends-on): Add iconv_open.
18433         * modules/striconv (Depends-on): Likewise.
18434         * modules/striconveh (Depends-on): Likewise.
18435         * modules/unicodeio (Depends-on): Likewise.
18436         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
18437         (iconv_t)(-1).
18438         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
18439         conversion if cd is (iconv_t)(-1).
18440         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
18441         is not possible.
18442
18443 2007-03-31  Bruno Haible  <bruno@clisp.org>
18444
18445         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
18446         work on Solaris either. Protect also second use of "autodetect_jp".
18447
18448 2007-03-31  Bruno Haible  <bruno@clisp.org>
18449
18450         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
18451         the function is not present.
18452
18453 2007-03-31  Bruno Haible  <bruno@clisp.org>
18454
18455         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
18456         the function is not present.
18457
18458 2007-03-31  Bruno Haible  <bruno@clisp.org>
18459
18460         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
18461         a bug in HP-UX iconv_open().
18462
18463 2007-03-31  Bruno Haible  <bruno@clisp.org>
18464
18465         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
18466         (Mathematics <math.h>): New section, add fpieee.
18467         (Input/output <stdio.h>): Add fseterr.
18468         (Mathematics <math.h>): New section, add printf-frexp.
18469         (Container data structures): Add sublist.
18470         (Core language properties): Add fpucw, inline.
18471         (Functions for greatest-width integer types <inttypes.h>): Add
18472         imaxabs, imaxdiv, inttypes.
18473         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
18474         isnanl-nolibm, ldexp.
18475         (Mathematics <math.h>): New section, add printf-frexpl.
18476         (Support for systems lacking POSIX:2001): Add fprintf-posix,
18477         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
18478         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
18479         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
18480         (Unicode string functions): Add unistr/u*-mbtoucr.
18481         (Java): Add javacomp-script, javaexec-script.
18482         (C#): Add csharpcomp-script, csharpexec-script.
18483         (Support for building libraries and executables): Add havelib,
18484         relocatable-*.
18485         (Support for maintaining and releasing projects): Renamed from
18486         'Support for maintaining and release projects'. Add announce-gen.
18487
18488 2007-03-31  Bruno Haible  <bruno@clisp.org>
18489
18490         * README: Talk primarily about git.
18491         (git and CVS): Renamed from CVS.
18492         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
18493         gnulib is available through git.
18494         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
18495
18496 2007-03-30  Bruno Haible  <bruno@clisp.org>
18497
18498         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
18499         * lib/poll_.h: Likewise.
18500         * lib/stat_.h: Likewise.
18501         * lib/sys_time_.h: Likewise.
18502         * lib/sysexit_.h: Likewise.
18503         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
18504         * lib/stdbool_.h: Likewise.
18505         * lib/byteswap_.h: Add double-inclusion guard.
18506
18507 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
18508
18509         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
18510
18511 2007-03-30  Karl Berry  <karl@gnu.org>
18512
18513         * config/srclist-update: double space after USA in the license
18514         substitution, since that's how it's usually (?) written.
18515
18516 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
18517
18518         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
18519         reported by Bruno Haible.
18520
18521 2007-03-29  Bruno Haible  <bruno@clisp.org>
18522
18523         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
18524         a bug in AIX iconv().
18525
18526 2007-03-29  Bruno Haible  <bruno@clisp.org>
18527
18528         * modules/ldexpl-tests: New file.
18529         * tests/test-ldexpl.c: New file.
18530
18531 2007-03-29  Bruno Haible  <bruno@clisp.org>
18532
18533         * lib/ldexpl.c: Include fpucw.h.
18534         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
18535         multiplication.
18536         * modules/ldexpl (Depends-on): Add fpucw.
18537
18538 2007-03-29  Bruno Haible  <bruno@clisp.org>
18539
18540         * modules/ldexpl: New file.
18541         * m4/ldexpl.m4: New file.
18542         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
18543         set.
18544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
18545         REPLACE_LDEXPL.
18546         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
18547         REPLACE_LDEXPL.
18548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
18549         gl_FUNC_LDEXPL_WORKS.
18550         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
18551         * modules/mathl (Files): Remove lib/ldexpl.c.
18552         (Depends-on): Add ldexpl.
18553
18554 2007-03-29  Bruno Haible  <bruno@clisp.org>
18555
18556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
18557
18558 2007-03-29  Bruno Haible  <bruno@clisp.org>
18559
18560         * tests/test-striconveh.c (main): Don't assume that a direct conversion
18561         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
18562         and possibly also HP-UX.
18563         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
18564         work on AIX, IRIX, HP-UX, OSF/1.
18565         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18566         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18567         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18568         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18569         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
18570         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18571
18572 2007-03-29  Bruno Haible  <bruno@clisp.org>
18573
18574         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
18575
18576 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
18579         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
18580
18581 2007-03-29  Eric Blake  <ebb9@byu.net>
18582
18583         * lib/acl-internal.h: Remove redundant include.
18584         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
18585         Cygwin when a file is locked.
18586
18587 2007-03-29  Bruno Haible  <bruno@clisp.org>
18588
18589         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
18590         file.
18591         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
18592
18593 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
18594
18595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
18596         try to remove a parent directory if the child couldn't be removed
18597         (except for the first rmdir, which could fail because the child
18598         doesn't exist).  Problem reported by Jeff Blaine in
18599         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
18600
18601 2007-03-28  Bruno Haible  <bruno@clisp.org>
18602
18603         * lib/striconveh.c (utf8conv_carefully): New function.
18604         (mem_cd_iconveh_internal): Invoke it.
18605
18606 2007-03-28  Bruno Haible  <bruno@clisp.org>
18607
18608         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
18609         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
18610         input.
18611         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
18612         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
18613         unistr/u8-uctomb.
18614
18615 2007-03-28  Bruno Haible  <bruno@clisp.org>
18616
18617         * modules/unistr/u8-mbtoucr: New file.
18618         * lib/unistr/u8-mbtoucr.c: New file.
18619         * modules/unistr/u16-mbtoucr: New file.
18620         * lib/unistr/u16-mbtoucr.c: New file.
18621         * modules/unistr/u16-mbtoucr: New file.
18622         * lib/unistr/u16-mbtoucr.c: New file.
18623         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
18624
18625 2007-03-27  Simon Josefsson  <simon@josefsson.org>
18626             Bruno Haible  <bruno@clisp.org>
18627
18628         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
18629         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
18630         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
18631
18632         * m4/stdio_h.m4: Add stubs for vasprintf too.
18633
18634         * modules/stdio: Support vasprintf in sed command.
18635
18636         * modules/vasprintf: Depend on stdio for prototypes.  Remove
18637         vasprintf.h.  Add stdio module indicator.
18638
18639         * lib/stdio_.h: Declare asprintf and vasprintf, based on
18640         vasprintf.h.
18641
18642         * lib/vasprintf.h: File removed.
18643
18644         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
18645         * lib/vasprintf.c: Ditto.
18646         * lib/xvasprintf.c: Ditto.
18647         * tests/test-vasprintf-posix.c: Ditto.
18648         * tests/test-vasprintf.c: Ditto.
18649
18650 2007-03-27  Bruno Haible  <bruno@clisp.org>
18651
18652         Make vasnprintf multithread-safe.
18653         * lib/vasnprintf.c (decimal_point_char): New function.
18654         (VASNPRINTF): Use it.
18655         Suggested by Simon Josefsson.
18656
18657 2007-03-27  Eric Blake  <ebb9@byu.net>
18658
18659         Support sub-second birthtime on cygwin.
18660         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
18661         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
18662         (get_stat_birthtime): Also work with st_birthtim.
18663
18664 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
18665
18666         * lib/stat-time.h (USE_BIRTHTIME): Remove.
18667         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
18668         (get_stat_birthtime_ns): Do not try to use "spare" fields.
18669         (get_stat_birthtime_ns): Simplify compile-time tests.
18670         (get_stat_birthtime): Change the API to look like
18671         get_stat_mtime etc., except return a negative tv_nsec on error.
18672         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
18673         Don't check for "spare" fields.
18674         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
18675         or for struct stat.st_birthtime, as these tests aren't used.
18676         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
18677
18678 2007-03-27  Bruno Haible  <bruno@clisp.org>
18679
18680         * lib/stat-time.h: Include <sys/stat.h>.
18681
18682 2007-03-27  James Youngman  <jay@gnu.org>
18683
18684         * lib/stat-time.h (get_stat_birthtime): New function for
18685           retrieving st_birthtime as provided by UFS2 (hence *BSD).
18686         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
18687           and its variants.
18688         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
18689         * modules/stat-time-test: New file.
18690         * tests/test-stat-time.c: New test, devised by Bruno Haible.
18691
18692 2007-03-26  Bruno Haible  <bruno@clisp.org>
18693
18694         Better support of signalling NaNs.
18695         * lib/atanl.c: Include isnanl.h.
18696         (atanl): Perform test for NaN at the beginning of the function and
18697         through a call to isnanl.
18698         * lib/cosl.c: Include isnanl.h.
18699         (cosl): Perform test for NaN at the beginning of the function and
18700         through a call to isnanl.
18701         * lib/ldexpl.c: Include isnanl.h.
18702         (ldexpl): Perform test for NaN through a call to isnanl.
18703         * lib/logl.c: Include isnanl.h.
18704         (logl): Perform test for NaN at the beginning of the function and
18705         through a call to isnanl.
18706         * lib/sinl.c: Include isnanl.h.
18707         (sinl): Perform test for NaN at the beginning of the function and
18708         through a call to isnanl.
18709         * lib/sqrtl.c: Include isnanl.h.
18710         (sqrtl): Perform test for NaN at the beginning of the function and
18711         through a call to isnanl.
18712         * lib/tanl.c: Include isnanl.h.
18713         (tanl): Perform test for NaN at the beginning of the function and
18714         through a call to isnanl.
18715         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
18716         * modules/mathl (Depends-on): Add isnanl.
18717
18718 2007-03-26  Eric Blake  <ebb9@byu.net>
18719
18720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
18721         regression in logic sense of previous patch.
18722
18723 2007-03-26  Bruno Haible  <bruno@clisp.org>
18724
18725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
18726         unportable shell command "if ! ...".
18727         Reported by Ralf Wildenhues.
18728
18729 2007-03-25  Bruno Haible  <bruno@clisp.org>
18730
18731         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
18732         <sysexits.h> file, and only add EX_CONFIG.
18733         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
18734         absolute file name and whether it is sufficient. Substitute also
18735         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
18736         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
18737         ABSOLUTE_SYSEXITS_H into sysexits.h.
18738
18739 2007-03-25  Bruno Haible  <bruno@clisp.org>
18740
18741         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
18742         hints is NULL.
18743
18744 2007-03-25  Bruno Haible  <bruno@clisp.org>
18745
18746         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
18747         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
18748
18749 2007-03-25  Bruno Haible  <bruno@clisp.org>
18750
18751         * lib/vasnprintf.c: Include langinfo.h.
18752         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
18753         multithread-safe.
18754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
18755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
18756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
18762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18763         Reported by Simon Josefsson.
18764
18765 2007-03-25  Bruno Haible  <bruno@clisp.org>
18766
18767         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
18768         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
18769         * modules/vasnprintf (Depends-on): Add stdint.
18770
18771 2007-03-25  Bruno Haible  <bruno@clisp.org>
18772
18773         * modules/fpieee: New file.
18774         * m4/fpieee.m4: New file.
18775         * modules/isnan-nolibm (Depends-on): Add fpieee.
18776         * modules/isnanl-nolibm (Depends-on): Add fpieee.
18777         * modules/isnanl (Depends-on): Add fpieee.
18778
18779 2007-03-25  Bruno Haible  <bruno@clisp.org>
18780
18781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
18782
18783 2007-03-25  Bruno Haible  <bruno@clisp.org>
18784
18785         Avoid test failures on IRIX 6.5.
18786         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
18787         (main): Use it.
18788         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
18789         macros.
18790         (main): Use them.
18791
18792 2007-03-25  Bruno Haible  <bruno@clisp.org>
18793
18794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
18795         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
18796         exists but doesn't work.
18797         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
18798         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
18799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
18800         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
18801
18802 2007-03-25  Bruno Haible  <bruno@clisp.org>
18803
18804         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
18805         returns inf. Needed on IRIX 6.5.
18806
18807 2007-03-25  Bruno Haible  <bruno@clisp.org>
18808
18809         * tests/test-frexpl.c: Include isnanl-nolibm.h.
18810         (main): Use isnanl instead of x != x idiom.
18811         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
18812
18813         * tests/test-frexp.c: Include isnan.h.
18814         (main): Use isnan instead of x != x idiom.
18815         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
18816
18817 2007-03-25  Bruno Haible  <bruno@clisp.org>
18818
18819         * tests/test-frexp.c (NaN): New function/macro.
18820         (main): Use it instead of 0.0 / 0.0.
18821         * tests/test-isnan.c (NaN): New function/macro.
18822         (main): Use it instead of 0.0 / 0.0.
18823         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
18824         (test_function): Use it instead of 0.0 / 0.0.
18825         * tests/test-vasprintf-posix.c (NaN): New function/macro.
18826         (test_function): Use it instead of 0.0 / 0.0.
18827         * tests/test-snprintf-posix.h (NaN): New function/macro.
18828         (test_function): Use it instead of 0.0 / 0.0.
18829         * tests/test-sprintf-posix.h (NaN): New function/macro.
18830         (test_function): Use it instead of 0.0 / 0.0.
18831         * tests/test-fprintf-posix.h (NaN): New function/macro.
18832         (test_function): Use it instead of 0.0 / 0.0.
18833         * tests/test-printf-posix.h (NaN): New function/macro.
18834         (test_function): Use it instead of 0.0 / 0.0.
18835
18836         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
18837
18838 2007-03-25  Bruno Haible  <bruno@clisp.org>
18839
18840         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
18841
18842 2007-03-25  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/regexec.c (merge_state_with_log): Make static.
18845
18846 2007-03-25  Bruno Haible  <bruno@clisp.org>
18847
18848         * lib/trigl.c (kernel_rem_pio2): Make static.
18849
18850 2007-03-25  Bruno Haible  <bruno@clisp.org>
18851
18852         * lib/sincosl.c (sincosl_table): Make static.
18853
18854 2007-03-25  Bruno Haible  <bruno@clisp.org>
18855
18856         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
18857         if the compiler does not support C99.
18858
18859 2007-03-25  Bruno Haible  <bruno@clisp.org>
18860
18861         * modules/time (Makefile.am): Ensure all rule action lines start with a
18862         tab.
18863
18864 2007-03-24  Bruno Haible  <bruno@clisp.org>
18865
18866         * modules/tsearch-tests: New file.
18867         * tests/test-tsearch.sh: New file.
18868         * tests/test-tsearch.c: New file, mostly copied from glibc.
18869
18870         * modules/search-tests: New file.
18871         * tests/test-search.c: New file.
18872
18873         * modules/search: New file.
18874         * lib/search_.h: New file, incorporating lib/tsearch.h.
18875         * m4/search_h.m4: New file.
18876         * lib/tsearch.h: Remove file.
18877         * lib/tsearch.c: Include search.h instead of tsearch.h.
18878         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
18879         HAVE_TSEARCH.
18880         * modules/tsearch (Files): Remove lib/tsearch.h.
18881         (Depends-on): Add search.
18882         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
18883         (Include): Change tsearch.h into search.h.
18884
18885 2007-03-24  Bruno Haible  <bruno@clisp.org>
18886
18887         * modules/fpucw: New file.
18888         * lib/fpucw.h: New file.
18889         * lib/frexp.c: Include fpucw.h.
18890         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
18891         (FUNC): Use them.
18892         * lib/printf-frexp.c: Include fpucw.h.
18893         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
18894         (FUNC): Use them.
18895         * lib/vasnprintf.c: Include fpucw.h.
18896         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
18897         'long double' calculations.
18898         * tests/test-frexpl.c: Include fpucw.h.
18899         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
18900         * tests/test-printf-frexpl.c: Include fpucw.h.
18901         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
18902         * modules/frexpl (Depends-on): Add fpucw.
18903         * modules/printf-frexpl (Depends-on): Likewise.
18904         * modules/fprintf-posix (Depends-on): Likewise.
18905         * modules/snprintf-posix (Depends-on): Likewise.
18906         * modules/sprintf-posix (Depends-on): Likewise.
18907         * modules/vasnprintf-posix (Depends-on): Likewise.
18908         * modules/vasprintf-posix (Depends-on): Likewise.
18909         * modules/vfprintf-posix (Depends-on): Likewise.
18910         * modules/vsnprintf-posix (Depends-on): Likewise.
18911         * modules/vsprintf-posix (Depends-on): Likewise.
18912         * modules/frexpl-tests (Depends-on): Likewise.
18913         * modules/printf-frexpl-tests (Depends-on): Likewise.
18914
18915 2007-03-24  Bruno Haible  <bruno@clisp.org>
18916
18917         * lib/float+.h: New file.
18918         * lib/isnan.c: Include float+.h.
18919         (SIZE): New macro.
18920         (FUNC): Compare only SIZE bytes of the value.
18921         * lib/vasnprintf.c: Include float+.h.
18922         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
18923         SIZEOF_LDBL or SIZEOF_DBL bytes.
18924         * modules/isnan-nolibm (Files): Add lib/float+.h.
18925         * modules/isnanl-nolibm (Files): Add lib/float+.h.
18926         * modules/isnanl (Files): Add lib/float+.h.
18927         * modules/vasnprintf (Files): Add lib/float+.h.
18928
18929 2007-03-24  Bruno Haible  <bruno@clisp.org>
18930
18931         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
18932         include isnanl-nolibm.h.
18933
18934 2007-03-24  Bruno Haible  <bruno@clisp.org>
18935
18936         * tests/test-read-file.c (main): Don't produce spurious output for
18937         expected situations. Make the test fail if it encountered unexpected
18938         results.
18939
18940 2007-03-24  Bruno Haible  <bruno@clisp.org>
18941
18942         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
18943         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
18944
18945 2007-03-24  Bruno Haible  <bruno@clisp.org>
18946
18947         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
18948
18949 2007-03-24  Bruno Haible  <bruno@clisp.org>
18950
18951         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
18952         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
18953
18954         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
18955         * modules/utf8-ucs4: Turn into a symbolic link to module
18956         unistr/u8-mbtouc.
18957
18958         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
18959         utf8-ucs4-unsafe.
18960         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
18961         unistr/u8-mbtouc-unsafe.
18962
18963         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
18964         * modules/utf16-ucs4: Turn into a symbolic link to module
18965         unistr/u16-mbtouc.
18966
18967         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
18968         utf16-ucs4-unsafe.
18969         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
18970         unistr/u16-mbtouc-unsafe.
18971
18972         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
18973         * modules/ucs4-utf8: Turn into a symbolic link to module
18974         unistr/u8-ubtomb.
18975
18976         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
18977         * modules/ucs4-utf16: Turn into a symbolic link to module
18978         unistr/u16-ubtomb.
18979
18980 2007-03-24  Bruno Haible  <bruno@clisp.org>
18981
18982         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
18983         Enable the function only if HAVE_INLINE.
18984         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
18985         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
18986         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
18987         Enable the function only if HAVE_INLINE.
18988         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
18989         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
18990         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
18991         Enable the function only if HAVE_INLINE.
18992         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
18993         Enable the function only if HAVE_INLINE.
18994         * modules/utf8-ucs4: Update.
18995         * modules/utf8-ucs4-unsafe: Update.
18996         * modules/utf16-ucs4: Update.
18997         * modules/utf16-ucs4-unsafe: Update.
18998         * modules/ucs4-utf8: Update.
18999         * modules/ucs4-utf16: Update.
19000
19001 2007-03-24  Bruno Haible  <bruno@clisp.org>
19002
19003         * lib/utf8-ucs4.h: Remove file.
19004         * lib/utf8-ucs4-unsafe.h: Remove file.
19005         * lib/utf16-ucs4.h: Remove file.
19006         * lib/utf16-ucs4-unsafe.h: Remove file.
19007         * lib/ucs4-utf8.h: Remove file.
19008         * lib/ucs4-utf16.h: Remove file.
19009         * lib/unistr.h: Include their previous contents.
19010         * m4/utf-ucs4.m4: Remove file.
19011         * m4/ucs4-utf.m4: Remove file.
19012         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
19013         (Depends-on): Add unistr/base.
19014         (configure.ac): Remove gl_UTF_UCS4.
19015         (Makefile.am): Update.
19016         (Include): Change to unistr.h.
19017         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
19018         (Depends-on): Add unistr/base.
19019         (configure.ac): Remove gl_UTF_UCS4.
19020         (Makefile.am): Update.
19021         (Include): Change to unistr.h.
19022         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
19023         (Depends-on): Add unistr/base.
19024         (configure.ac): Remove gl_UTF_UCS4.
19025         (Makefile.am): Update.
19026         (Include): Change to unistr.h.
19027         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
19028         (Depends-on): Add unistr/base.
19029         (configure.ac): Remove gl_UTF_UCS4.
19030         (Makefile.am): Update.
19031         (Include): Change to unistr.h.
19032         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
19033         (Depends-on): Add unistr/base.
19034         (configure.ac): Remove gl_UCS4_UTF.
19035         (Makefile.am): Update.
19036         (Include): Change to unistr.h.
19037         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
19038         (Depends-on): Add unistr/base.
19039         (configure.ac): Remove gl_UCS4_UTF.
19040         (Makefile.am): Update.
19041         (Include): Change to unistr.h.
19042         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
19043         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
19044         utf8-ucs4-unsafe.h.
19045         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
19046         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
19047         utf16-ucs4-unsafe.h.
19048         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
19049         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
19050         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
19051         * lib/unistr/u8-strchr.c: Likewise.
19052         * lib/unistr/u8-strrchr.c: Likewise.
19053         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
19054         * lib/unistr/u16-strchr.c: Likewise.
19055         * lib/unistr/u16-strrchr.c: Likewise.
19056         * lib/striconveh.c: Update.
19057         * lib/linebreak.c: Update.
19058
19059 2007-03-24  Bruno Haible  <bruno@clisp.org>
19060
19061         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
19062         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
19063
19064 2007-03-22  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
19067
19068 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19069
19070         * MODULES.html.sh (File system functions): New module write-any-file.
19071         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
19072         * m4/write-any-file.m4: New files.
19073
19074 2007-03-23  Eric Blake  <ebb9@byu.net>
19075
19076         * gnulib-tool: Rearrange space-tab sequences, since some editors
19077         like to eat them.
19078
19079 2007-03-23  Eric Blake  <ebb9@byu.net>
19080
19081         * lib/version-etc.c (version_etc_va): Update license wording to
19082         be more concise.  Recommended by Richard Stallman.
19083
19084 2007-03-22  Bruno Haible  <bruno@clisp.org>
19085
19086         * lib/poll.c (MSG_PEEK): New fallback definition.
19087
19088 2007-03-22  Bruno Haible  <bruno@clisp.org>
19089
19090         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
19091         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
19092         (main): Update.
19093         Fixes a compilation error on BeOS.
19094
19095 2007-03-22  Bruno Haible  <bruno@clisp.org>
19096
19097         * modules/frexpl-tests: New file.
19098         * tests/test-frexpl.c: New file.
19099
19100         * modules/frexpl: New file.
19101         * m4/frexpl.m4: New file.
19102         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
19103         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
19104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
19105         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
19106         (Depends-on): Add frexpl. Remove isnanl-nolibm.
19107         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
19108
19109 2007-03-22  Bruno Haible  <bruno@clisp.org>
19110
19111         * lib/frexpl.c: Share code with lib/frexp.c.
19112         * modules/mathl (Files): Add lib/frexp.c.
19113         (Depends-on): Add isnanl-nolibm.
19114
19115 2007-03-22  Bruno Haible  <bruno@clisp.org>
19116
19117         * modules/printf-frexp (Files): Add m4/frexp.m4.
19118         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
19119         only if the found frexp function actually works.
19120
19121 2007-03-22  Bruno Haible  <bruno@clisp.org>
19122
19123         * lib/frexp.c: Remove older implementation that uses divisions.
19124
19125 2007-03-21  Bruno Haible  <bruno@clisp.org>
19126
19127         * modules/frexp-tests: New file.
19128         * tests/test-frexp.c: New file.
19129
19130         * modules/frexp: New file.
19131         * lib/frexp.c: New file.
19132         * m4/frexp.m4: New file.
19133         * lib/math_.h (frexp): New declaration.
19134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
19135         REPLACE_FREXP.
19136         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
19137
19138 2007-03-21  Bruno Haible  <bruno@clisp.org>
19139
19140         * modules/isnanl-tests: New file.
19141         * tests/test-isnanl.c: New file.
19142
19143         * modules/isnanl: New file.
19144         * lib/isnanl.h: New file.
19145         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
19146         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
19147         gl_FUNC_ISNANL_WORKS.
19148         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
19149         New macros.
19150
19151 2007-03-21  Bruno Haible  <bruno@clisp.org>
19152
19153         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
19154         lib/isnanl.h.
19155         (Include): Update.
19156         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
19157         * lib/vasnprintf.c: Update.
19158         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
19159         tests/test-isnanl.h, remove tests/test-isnanl.c.
19160         (Makefile.am): Update.
19161         * tests/test-isnanl-nolibm.c: New file.
19162         * tests/test-isnanl.h: New file.
19163         * tests/test-isnanl.c: Remove file.
19164
19165 2007-03-21  Jim Meyering  <jim@meyering.net>
19166
19167         When trying to open ".", treat ESTALE like EACCES.
19168         * lib/savewd.c (savewd_save): Resort to forking not just upon
19169         failure with EACCES, but also when errno is ESTALE.
19170
19171 2007-03-20  Bruno Haible  <bruno@clisp.org>
19172
19173         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
19174         Needed on AIX 5.1. Reported by Matthew Woehlke.
19175
19176 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         Suggestions by Bruno Haible:
19179         * lib/acl-internal.h: Include "gettext.h" rather than rolling
19180         our own.
19181         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
19182         * modules/acl (Depends-on): Add gettext.
19183
19184 2007-03-19  Bruno Haible  <bruno@clisp.org>
19185
19186         * modules/iconvme: Remove file.
19187         * lib/iconvme.h: Remove file.
19188         * lib/iconvme.c: Remove file.
19189         * m4/iconvme.m4: Remove file.
19190
19191 2007-03-19  Bruno Haible  <bruno@clisp.org>
19192
19193         * doc/relocatable-maint.texi: Break long shell script line.
19194         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
19195
19196 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19197
19198         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
19199         handle file_has_acl.
19200         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
19201         * lib/acl.c: Move header inclusions and related macro defns into
19202         lib/acl-internal.h.
19203         (S_ISLNK): Remove defn, since that's now done for us.
19204         (file_has_acl): Move to lib/file-has-acl.c.
19205         Call acl_trivial if available.  This is the crucial part of the fix.
19206         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
19207         shared within the library.  Rewrite a bit, partly to make it compatible
19208         with the GNU coding style.
19209         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
19210         Remove unnecessary double-quotes.
19211         Don't test for acl_to_text; the build will catch that.
19212         Replace acl_entries if it doesn't exist and it is needed.
19213         Check for -lsec and acl_trivial (as used on Solaris 10).
19214         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
19215         lib/file-has-acl.c.
19216         (Depends-on): Add sys_stat, for S_ISLNK.
19217
19218 2007-03-19  Ben Pfaff  <blp@gnu.org>
19219
19220         * doc/gnulib.texi: Fix typos.
19221         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
19222
19223 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19224
19225         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
19226         If size is zero here, buf must be zero.
19227
19228 2007-03-19  Simon Josefsson  <simon@josefsson.org>
19229
19230         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
19231         <bruno@clisp.org>.
19232
19233 2007-03-18  Bruno Haible  <bruno@clisp.org>
19234
19235         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
19236         Suggested by Eric Blake.
19237
19238 2007-03-18  Ben Pfaff  <blp@gnu.org>
19239
19240         * doc/relocatable.texi: Recommend using as prefix a directory
19241         that does not exist and will never be created.  Based on
19242         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
19243         and others.
19244
19245 2007-03-17  Bruno Haible  <bruno@clisp.org>
19246
19247         * lib/fchownat.c: Include lchown.h.
19248
19249 2007-03-17  Bruno Haible  <bruno@clisp.org>
19250
19251         Fix endless loop when the given allocated size was > INT_MAX.
19252         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
19253         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
19254         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
19255         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
19256         * lib/sprintf.c (sprintf): Likewise.
19257
19258 2007-03-17  Bruno Haible  <bruno@clisp.org>
19259
19260         * tests/test-argp-2.sh (func_compare): Output a context diff.
19261
19262 2007-03-17  Bruno Haible  <bruno@clisp.org>
19263
19264         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
19265         locale's decimal-point character.
19266
19267 2007-03-17  Bruno Haible  <bruno@clisp.org>
19268
19269         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
19270         before comparing it. Needed because on some platforms (e.g. x86) a
19271         'long double' occupies less bytes than sizeof (long double).
19272
19273 2007-03-17  Bruno Haible  <bruno@clisp.org>
19274
19275         * tests/test-crc.c (main): Make printf statements 64-bit clean.
19276         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
19277         * tests/test-getaddrinfo.c (simple): Likewise.
19278         * tests/test-read-file.c (main): Likewise.
19279
19280 2007-03-17  Bruno Haible  <bruno@clisp.org>
19281
19282         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
19283
19284 2007-03-17  Bruno Haible  <bruno@clisp.org>
19285
19286         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
19287         unused variable.
19288
19289 2007-03-17  Bruno Haible  <bruno@clisp.org>
19290
19291         * tests/test-c-strcasecmp.c: Include c-strcase.h.
19292         * tests/test-c-strncasecmp.c: Likewise.
19293
19294 2007-03-17  Bruno Haible  <bruno@clisp.org>
19295
19296         * modules/stdlib (Depends-on): Add unistd.
19297         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
19298         Needed for MacOS X 10.3.
19299
19300 2007-03-17  Bruno Haible  <bruno@clisp.org>
19301
19302         * lib/unistr/u-strdup.h: Include <stdlib.h>.
19303
19304 2007-03-17  Bruno Haible  <bruno@clisp.org>
19305
19306         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
19307
19308 2007-03-17  Bruno Haible  <bruno@clisp.org>
19309
19310         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
19311         to reflect files copied from gnulib (with or without modifications).
19312         Suggested by Jim Meyering.
19313
19314 2007-03-17  Eric Blake  <ebb9@byu.net>
19315
19316         * NEWS: Document stdlib change from 2007-02-18.
19317
19318 2007-03-17  Jim Meyering  <jim@meyering.net>
19319
19320         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
19321         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
19322         someone uses a name containing shell meta-characters.
19323         Reported by Alfred M. Szmidt.
19324
19325         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
19326
19327 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
19328
19329         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
19330         and copy gettext configuration files only if configure.ac contains
19331         a use of AM_GNU_GETTEXT_VERSION.
19332
19333 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
19334
19335         * build-aux/bootstrap (gnulib_name): New variable.
19336         (gnulib_tool_options): Use it.
19337
19338 2007-03-13  Simon Josefsson  <simon@josefsson.org>
19339
19340         * tests/test-des.c: Use new namespace.
19341
19342 2007-03-15  Bruno Haible  <bruno@clisp.org>
19343
19344         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
19345         Reported by James Youngman <jay@gnu.org>.
19346
19347 2007-03-15  Bruno Haible  <bruno@clisp.org>
19348
19349         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
19350         declared prototype. Needed with cc on OSF/1 5.1.
19351
19352 2007-03-15  Bruno Haible  <bruno@clisp.org>
19353
19354         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
19355         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
19356         (struct gl_list_implementation): Add dispose_fn argument to the
19357         'create_empty', 'create' methods.
19358         (struct gl_list_impl_base): Add field 'dispose_fn'.
19359         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
19360         argument.
19361         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
19362         dispose_fn argument.
19363         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
19364         dispose_fn on the dropped values.
19365         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
19366         dispose_fn argument.
19367         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
19368         dropped values.
19369         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
19370         (gl_tree_remove_node): Call dispose_fn on the dropped value.
19371         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
19372         (gl_tree_remove_node): Call dispose_fn on the dropped value.
19373         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
19374         argument.
19375         (gl_tree_list_free): Call dispose_fn on the dropped values.
19376         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
19377         the dropped values.
19378         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19379         Add dispose_fn argument.
19380         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
19381         Call dispose_fn on the dropped values.
19382         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
19383         Add dispose_fn argument.
19384         (gl_sublist_create): Initialize the 'dispose_fn' field.
19385         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
19386         * tests/test-array_list.c (main): Update.
19387         * tests/test-carray_list.c (main): Update.
19388         * tests/test-avltree_list.c (main): Update.
19389         * tests/test-rbtree_list.c (main): Update.
19390         * tests/test-avltreehash_list.c (main): Update.
19391         * tests/test-rbtreehash_list.c (main): Update.
19392         * tests/test-linked_list.c (main): Update.
19393         * tests/test-linkedhash_list.c (main): Update.
19394         * tests/test-array_oset.c (main): Update.
19395
19396 2007-03-15  Bruno Haible  <bruno@clisp.org>
19397
19398         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
19399         (gl_oset_create_empty): Add dispose_fn argument.
19400         (struct gl_oset_implementation): Add dispose_fn argument to
19401         'create_empty' method.
19402         (struct gl_oset_impl_base): Add dispose_fn field.
19403         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
19404         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
19405         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
19406         values.
19407         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
19408         (gl_tree_oset_free): Call dispose_fn on the dropped values.
19409         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
19410         dropped value.
19411         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
19412         dropped value.
19413         * tests/test-array_oset.c (main): Update.
19414         * tests/test-avltree_oset.c (main): Update.
19415         * tests/test-rbtree_oset.c (main): Update.
19416         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
19417
19418 2007-03-13  Bruno Haible  <bruno@clisp.org>
19419
19420         * tests/test-stdbool.c (i): Update after last patch.
19421
19422 2007-03-12  Bruno Haible  <bruno@clisp.org>
19423
19424         * lib/quotearg.c: Include <wctype.h> early, before the definition of
19425         the iswprint macro. Needed on Solaris 2.5.1.
19426
19427 2007-03-12  Bruno Haible  <bruno@clisp.org>
19428
19429         * tests/test-printf-frexp.c (main): Declare x as volatile.
19430
19431 2007-03-12  Simon Josefsson  <simon@josefsson.org>
19432
19433         * doc/gnulib.texi (Build robot for gnulib): New section.
19434
19435 2007-03-12  Jim Meyering  <jim@meyering.net>
19436
19437         * build-aux/bootstrap: New file.
19438         * build-aux/bootstrap.conf: New file, from coreutils.
19439
19440 2007-03-11  Bruno Haible  <bruno@clisp.org>
19441
19442         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
19443
19444 2007-03-12  Simon Josefsson  <simon@josefsson.org>
19445
19446         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
19447         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
19448         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
19449
19450 2007-03-11  Bruno Haible  <bruno@clisp.org>
19451
19452         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
19453         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
19454
19455 2007-03-11  Bruno Haible  <bruno@clisp.org>
19456
19457         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
19458         formula. Needed for SunPRO C 5.0.
19459
19460 2007-03-11  Bruno Haible  <bruno@clisp.org>
19461
19462         * modules/long-options (Depends-on): Add getopt.
19463
19464 2007-03-11  Bruno Haible  <bruno@clisp.org>
19465
19466         * modules/modechange (Depends-on): Add stdbool.
19467
19468 2007-03-11  Bruno Haible  <bruno@clisp.org>
19469
19470         * modules/i-ring (Depends-on): Add stdbool.
19471
19472 2007-03-11  Bruno Haible  <bruno@clisp.org>
19473
19474         * modules/gc-des (Depends-on): Add stdbool.
19475
19476 2007-03-11  Bruno Haible  <bruno@clisp.org>
19477
19478         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
19479
19480 2007-03-11  Bruno Haible  <bruno@clisp.org>
19481
19482         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
19483
19484 2007-03-11  Bruno Haible  <bruno@clisp.org>
19485
19486         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
19487
19488 2007-03-11  Bruno Haible  <bruno@clisp.org>
19489
19490         * lib/vasnprintf.c (sprintf): Undefine.
19491
19492 2007-03-11  Bruno Haible  <bruno@clisp.org>
19493
19494         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
19495         initializers in SunPRO C and Compaq C compilers.
19496
19497 2007-03-11  Bruno Haible  <bruno@clisp.org>
19498
19499         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
19500         decrementing code ANSI C compliant.
19501
19502 2007-03-11  Bruno Haible  <bruno@clisp.org>
19503
19504         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
19505         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
19506
19507 2007-03-11  Bruno Haible  <bruno@clisp.org>
19508
19509         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
19510         <stdbool.h> substitute doesn't pass.
19511
19512 2007-03-11  Bruno Haible  <bruno@clisp.org>
19513
19514         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
19515
19516 2007-03-11  Bruno Haible  <bruno@clisp.org>
19517
19518         * gnulib-tool (func_create_megatestdir): Create also an autobuild
19519         script, for submission to autobuild.josefsson.org.
19520
19521 2007-03-10  Bruno Haible  <bruno@clisp.org>
19522
19523         * modules/canonicalize-lgpl-tests: New file.
19524         * tests/test-canonicalize-lgpl.sh: New file.
19525         * tests/test-canonicalize-lgpl.c: New file.
19526
19527         * modules/c-strcase-tests: New file.
19528         * tests/test-c-strcase.sh: New file.
19529         * tests/test-c-strcasecmp.c: New file.
19530         * tests/test-c-strncasecmp.c: New file.
19531
19532         * modules/atexit-tests: New file.
19533         * tests/test-atexit.sh: New file.
19534         * tests/test-atexit.c: New file.
19535
19536 2007-03-10  Bruno Haible  <bruno@clisp.org>
19537
19538         * tests/test-binary-io.sh: Use temporary filenames that are not so
19539         likely to clash with those of other tests (in a parallel make).
19540         * tests/test-binary-io.c: Likewise.
19541
19542 2007-03-10  Bruno Haible  <bruno@clisp.org>
19543
19544         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
19545         fallback; use #error instead.
19546         Suggested by Simon Josefsson.
19547
19548 2007-03-10  Bruno Haible  <bruno@clisp.org>
19549
19550         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
19551         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
19552         first and the last.
19553
19554 2007-03-10  Bruno Haible  <bruno@clisp.org>
19555
19556         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
19557
19558 2007-03-10  Bruno Haible  <bruno@clisp.org>
19559
19560         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
19561         "make distcheck".
19562         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
19563         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
19564         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
19565
19566 2007-03-10  Bruno Haible  <bruno@clisp.org>
19567
19568         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
19569         variable.
19570         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
19571         variable.
19572
19573 2007-03-09  Eric Blake  <ebb9@byu.net>
19574         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
19575
19576         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
19577         types are not being provided by gnulib.
19578         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
19579         types are supported.
19580
19581 2007-03-10  Bruno Haible  <bruno@clisp.org>
19582
19583         * lib/stdio_.h (__attribute__): New macro.
19584         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
19585         vsprintf): Specify __attribute__ __format__ for GCC.
19586         Suggested by Eric Blake.
19587
19588 2007-03-09  Bruno Haible  <bruno@clisp.org>
19589
19590         * modules/printf-posix-tests: New file.
19591         * tests/test-printf-posix.sh: New file.
19592         * tests/test-printf-posix.c: New file.
19593
19594         * modules/printf-posix: New file.
19595         * lib/printf.c: New file.
19596         * m4/printf-posix-rpl.m4: New file.
19597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
19598         REPLACE_PRINTF.
19599         * lib/stdio_.h (printf): New declaration.
19600         (format, __format__, ____printf____, ____scanf____, ____strftime____,
19601         ____strfmon____): New macros.
19602         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
19603         REPLACE_PRINTF.
19604
19605 2007-03-09  Bruno Haible  <bruno@clisp.org>
19606
19607         * tests/test-vasnprintf-posix2.sh: New file.
19608         * tests/test-vasnprintf-posix2.c: New file.
19609         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
19610         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
19611         (Makefile.am): Activate test-vasnprintf-posix2.sh.
19612
19613         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
19614         a locale dependent decimal point, rather than always '.'.
19615
19616 2007-03-09  Eric Blake  <ebb9@byu.net>
19617
19618         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
19619         spite of platforms like Tandem/NSK that define it to -1.
19620
19621 2007-03-08  Bruno Haible  <bruno@clisp.org>
19622
19623         * modules/vprintf-posix-tests: New file.
19624         * tests/test-vprintf-posix.sh: New file.
19625         * tests/test-vprintf-posix.c: New file.
19626         * tests/test-printf-posix.h: New file.
19627
19628         * modules/vprintf-posix: New file.
19629         * lib/vprintf.c: New file.
19630         * m4/vprintf-posix.m4: New file.
19631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
19632         REPLACE_VPRINTF.
19633         * lib/stdio_.h (vprintf): New declaration.
19634         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
19635         REPLACE_VPRINTF.
19636
19637 2007-03-08  Bruno Haible  <bruno@clisp.org>
19638
19639         * modules/fprintf-posix-tests: New file.
19640         * tests/test-fprintf-posix.sh: New file.
19641         * tests/test-fprintf-posix.c: New file.
19642
19643         * modules/fprintf-posix: New file.
19644         * lib/fprintf.c: New file.
19645         * m4/fprintf-posix.m4: New file.
19646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
19647         REPLACE_FPRINTF.
19648         * lib/stdio_.h (fprintf): New declaration.
19649         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
19650         REPLACE_FPRINTF.
19651
19652 2007-03-08  Bruno Haible  <bruno@clisp.org>
19653
19654         * modules/vfprintf-posix-tests: New file.
19655         * tests/test-vfprintf-posix.sh: New file.
19656         * tests/test-vfprintf-posix.c: New file.
19657         * tests/test-fprintf-posix.h: New file.
19658         * tests/test-fprintf-posix.out: New file.
19659
19660         * modules/vfprintf-posix: New file.
19661         * lib/vfprintf.c: New file.
19662         * m4/vfprintf-posix.m4: New file.
19663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
19664         REPLACE_VFPRINTF.
19665         * lib/stdio_.h (vfprintf): New declaration.
19666         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
19667         REPLACE_VFPRINTF.
19668
19669 2007-03-08  Bruno Haible  <bruno@clisp.org>
19670
19671         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
19672
19673 2007-03-08  Bruno Haible  <bruno@clisp.org>
19674
19675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
19676         instead of 'expr' invocations.
19677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19678         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19682         Suggested by Paul Eggert.
19683
19684 2007-03-08  Bruno Haible  <bruno@clisp.org>
19685
19686         * modules/fseterr-tests: New file.
19687         * tests/test-fseterr.c: New file.
19688
19689         * modules/fseterr: New file.
19690         * lib/fseterr.h: New file.
19691         * lib/fseterr.c: New file.
19692
19693 2007-03-08  Bruno Haible  <bruno@clisp.org>
19694
19695         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
19696         * lib/getopt_.h: Likewise.
19697         * lib/mbswidth.h: Likewise.
19698         * lib/setenv.h: Likewise.
19699         * lib/vasnprintf.h: Likewise.
19700         * lib/vasprintf.h: Likewise.
19701         * lib/verror.h: Likewise.
19702         * lib/xsetenv.h: Likewise.
19703         * lib/xvasprintf.h: Likewise.
19704
19705 2007-03-08  Jim Meyering  <jim@meyering.net>
19706
19707         * users.txt: Add parted.
19708
19709         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
19710
19711 2007-03-07  Bruno Haible  <bruno@clisp.org>
19712
19713         * m4/printf.m4: Make the shell script snippets copy&pastable.
19714
19715 2007-03-02  Bruno Haible  <bruno@clisp.org>
19716
19717         * lib/netinet_in_.h: New file.
19718         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
19719         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
19720         * modules/netinet_in (Files): Add lib/netinet_in_.h.
19721         (Depends-on): Add absolute-header.
19722         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
19723         into netinet/in.h.
19724
19725 2007-03-03  Bruno Haible  <bruno@clisp.org>
19726
19727         * lib/sys_select_.h: New file.
19728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
19729         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
19730         * modules/sys_select (Files): Add lib/sys_select_.h.
19731         (Depends-on): Add absolute-header.
19732         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
19733         into sys/select.h.
19734
19735 2007-03-02  Bruno Haible  <bruno@clisp.org>
19736
19737         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
19738         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
19739         values.
19740         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
19741         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
19742         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
19743         * modules/sys_socket (Depends-on): Add absolute-header.
19744         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
19745         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
19746         (Include): Remove requirement of inclusion of <sys/types.h>.
19747
19748 2007-03-02  Bruno Haible  <bruno@clisp.org>
19749
19750         * lib/byteswap_.h (bswap_32): Fix formula.
19751
19752 2007-03-06  Bruno Haible  <bruno@clisp.org>
19753
19754         * modules/sprintf-posix-tests: New file.
19755         * tests/test-sprintf-posix.c: New file.
19756
19757         * modules/sprintf-posix: New file.
19758         * lib/sprintf.c: New file.
19759         * m4/sprintf-posix.m4: New file.
19760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
19761         REPLACE_SPRINTF.
19762         * lib/stdio_.h (sprintf): New declaration.
19763         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
19764         REPLACE_SPRINTF.
19765
19766 2007-03-06  Bruno Haible  <bruno@clisp.org>
19767
19768         * modules/vsprintf-posix-tests: New file.
19769         * tests/test-vsprintf-posix.c: New file.
19770         * tests/test-sprintf-posix.h: New file.
19771
19772         * modules/vsprintf-posix: New file.
19773         * lib/vsprintf.c: New file.
19774         * m4/vsprintf-posix.m4: New file.
19775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
19776         REPLACE_VSPRINTF.
19777         * lib/stdio_.h (vsprintf): New declaration.
19778         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
19779         REPLACE_VSPRINTF.
19780
19781 2007-03-06  Bruno Haible  <bruno@clisp.org>
19782
19783         * modules/vsnprintf (Depend-on): Remove minmax.
19784
19785 2007-03-06  Bruno Haible  <bruno@clisp.org>
19786
19787         * modules/snprintf-posix-tests: New file.
19788         * tests/test-snprintf-posix.c: New file.
19789
19790         * modules/snprintf-posix: New file.
19791         * m4/snprintf-posix.m4: New file.
19792         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
19793         gl_FUNC_SNPRINTF.
19794         (gl_FUNC_SNPRINTF): Invoke it.
19795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
19796         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
19797         is set.
19798         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
19799
19800 2007-03-06  Bruno Haible  <bruno@clisp.org>
19801
19802         * modules/vsnprintf-posix-tests: New file.
19803         * tests/test-vsnprintf-posix.c: New file.
19804         * tests/test-snprintf-posix.h: New file.
19805
19806         * modules/vsnprintf-posix: New file.
19807         * m4/vsnprintf-posix.m4: New file.
19808         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
19809         gl_FUNC_VSNPRINTF.
19810         (gl_FUNC_VSNPRINTF): Invoke it.
19811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
19812         * lib/stdio_.h (vsnprintf): Define as a replacement if
19813         REPLACE_VSNPRINTF is set.
19814         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
19815
19816 2007-03-06  Bruno Haible  <bruno@clisp.org>
19817
19818         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
19819         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
19820
19821 2007-03-06  Bruno Haible  <bruno@clisp.org>
19822
19823         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
19824         (asinl): Declare also if HAVE_DECL_ASINL is set.
19825         (atanl): Declare also if HAVE_DECL_ATANL is set.
19826         (ceill): Declare also if HAVE_DECL_CEILL is set.
19827         (cosl): Declare also if HAVE_DECL_COSL is set.
19828         (expl): Declare also if HAVE_DECL_EXPL is set.
19829         (floorl): Declare also if HAVE_DECL_FLOORL is set.
19830         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
19831         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
19832         (logl): Declare also if HAVE_DECL_LOGL is set.
19833         (sinl): Declare also if HAVE_DECL_SINL is set.
19834         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
19835         (tanl): Declare also if HAVE_DECL_TANL is set.
19836         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
19837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
19838         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
19839         declaration of frexpl, ldexpl.
19840         * modules/printf-frexpl (Depends-on): Add math.
19841         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
19842
19843 2007-03-05  Bruno Haible  <bruno@clisp.org>
19844
19845         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
19846         frexpl and ldexpl are declared.
19847         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
19848
19849 2007-03-05  Bruno Haible  <bruno@clisp.org>
19850
19851         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
19852         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
19853
19854 2007-03-05  Bruno Haible  <bruno@clisp.org>
19855
19856         * lib/stdio_.h: Include <stddef.h>.
19857
19858 2007-03-05  Bruno Haible  <bruno@clisp.org>
19859
19860         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
19861
19862 2007-03-05  Bruno Haible  <bruno@clisp.org>
19863
19864         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
19865         NetBSD 4, from Ralf Wildenhues.
19866
19867 2007-03-04  Bruno Haible  <bruno@clisp.org>
19868
19869         * lib/vasprintf.h: Update #if logic for the case when the functions
19870         exist but are overridden.
19871
19872 2007-03-04  Bruno Haible  <bruno@clisp.org>
19873
19874         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
19875         implementations: glibc-2.4 and MacOS X 10.3.
19876         * tests/test-vasnprintf-posix.c (test_function): Test also the case
19877         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
19878         * tests/test-vasprintf-posix.c (test_function): Likewise.
19879
19880 2007-03-04  Bruno Haible  <bruno@clisp.org>
19881
19882         * modules/vasprintf-posix-tests: New file.
19883         * tests/test-vasprintf-posix.c: New file.
19884
19885         * modules/vasprintf-posix: New file.
19886         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
19887         defined.
19888         * m4/vasprintf-posix.m4: New file.
19889         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
19890         gl_FUNC_VASPRINTF.
19891         (gl_FUNC_VASPRINTF): Invoke it.
19892         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
19893         here.
19894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
19895
19896 2007-03-04  Bruno Haible  <bruno@clisp.org>
19897
19898         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
19899         REPLACE_GETTIMEOFDAY.
19900         * modules/sys_time (Makefile.am): Likewise.
19901         * m4/sys_time_h.m4: Likewise.
19902         * m4/gettimeofday.m4: Likewise.
19903
19904 2007-03-04  Bruno Haible  <bruno@clisp.org>
19905
19906         * modules/vasnprintf-posix-tests: New file.
19907         * tests/test-vasnprintf-posix.c: New file.
19908
19909         * modules/vasnprintf-posix: New file.
19910         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
19911         printf-frexpl.h.
19912         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
19913         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
19914         REPLACE_VASNPRINTF is defined.
19915         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
19916         gl_FUNC_VASNPRINTF.
19917         (gl_FUNC_VASNPRINTF): Invoke it.
19918         * m4/vasnprintf-posix.m4: New file.
19919         * m4/printf.m4: New file.
19920
19921 2007-03-04  Bruno Haible  <bruno@clisp.org>
19922
19923         Compile progreloc.c only if --enable-relocatable is specified.
19924         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
19925         if --enable-relocatable was specified.
19926         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
19927         lib_SOURCES.
19928
19929 2007-03-04  Jim Meyering  <jim@meyering.net>
19930
19931         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
19932         Use it consistently, rather than enumerating errno constants.
19933
19934 2007-03-04  Bruno Haible  <bruno@clisp.org>
19935
19936         * modules/xvasprintf-tests: New file.
19937         * tests/test-xvasprintf.c: New file.
19938
19939         * modules/vasprintf-tests: New file.
19940         * tests/test-vasprintf.c: New file.
19941
19942         * modules/vasnprintf-tests: New file.
19943         * tests/test-vasnprintf.c: New file.
19944
19945         * modules/vsnprintf-tests: New file.
19946         * tests/test-vsnprintf.c: New file.
19947
19948         * modules/snprintf-tests: New file.
19949         * tests/test-snprintf.c: New file.
19950
19951 2007-03-04  Bruno Haible  <bruno@clisp.org>
19952
19953         Compile relocatable.c only if --enable-relocatable is specified.
19954         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
19955         gl_RELOCATABLE_LIBRARY.
19956         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
19957         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
19958         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
19959         gl_RELOCATABLE_LIBRARY.
19960         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
19961         (Makefile.am): Remove lib_SOURCES.
19962         * modules/relocatable-lib-lgpl (configure.ac): Invoke
19963         gl_RELOCATABLE_LIBRARY.
19964         (Makefile.am): Remove lib_SOURCES.
19965         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
19966         always.
19967         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19968         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
19969
19970 2007-03-04  Bruno Haible  <bruno@clisp.org>
19971
19972         * modules/argmatch-tests: New file.
19973         * tests/test-argmatch.c: New file.
19974
19975         * tests/test-allocsa.c (main): Halve the number of loop runs.
19976
19977         * modules/alloca-opt-tests: New file.
19978         * tests/test-alloca-opt.c: New file.
19979
19980 2007-03-04  Jim Meyering  <jim@meyering.net>
19981
19982         Work around difference between Linux ACLs and Solaris 10 ZFS.
19983         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
19984         for EINVAL.
19985
19986 2007-03-03  Bruno Haible  <bruno@clisp.org>
19987
19988         * modules/relocatable-prog (Depends-on): Add back progreloc's
19989         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
19990
19991 2007-03-03  Bruno Haible  <bruno@clisp.org>
19992
19993         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
19994         * modules/relocatable-lib: New file.
19995
19996 2007-03-03  Bruno Haible  <bruno@clisp.org>
19997
19998         * modules/relocatable-prog: Renamed from modules/relocatable.
19999         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
20000
20001 2007-03-03  Bruno Haible  <bruno@clisp.org>
20002
20003         * modules/relocatable-script (Files): Add doc/relocatable.texi,
20004         m4/relocatable-lib.m4.
20005         (Depends-on): Remove 'relocatable'.
20006         (configure.ac): Add gl_RELOCATABLE_NOP.
20007
20008 2007-03-03  Bruno Haible  <bruno@clisp.org>
20009
20010         * modules/relocatable-prog-wrapper: New file.
20011         * modules/relocatable (Depends-on): Add it. Remove all other
20012         dependencies except progname.
20013         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
20014
20015         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
20016         (gl_FUNC_STRERROR): Nop.
20017         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
20018
20019         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
20020         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
20021
20022         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
20023         (gl_FUNC_READLINK): Update.
20024
20025         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
20026
20027 2007-03-03  Bruno Haible  <bruno@clisp.org>
20028
20029         * lib/xreadlink.c: Include <unistd.h> unconditionally.
20030         * modules/xreadlink (Depends-on): Add unistd.
20031         * modules/xreadlink-with-size (Depends-on): Likewise.
20032
20033 2007-03-03  Bruno Haible  <bruno@clisp.org>
20034
20035         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
20036         extracted from gt_FUNC_SETENV.
20037         (gt_FUNC_SETENV): Remove macro.
20038         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
20039         remove gt_FUNC_SETENV.
20040
20041 2007-03-03  Bruno Haible  <bruno@clisp.org>
20042
20043         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
20044         ENABLE_RELOCATABLE here.
20045         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
20046
20047 2007-03-03  Bruno Haible  <bruno@clisp.org>
20048
20049         * modules/rbtreehash-list-tests (Depends-on): Add progname.
20050         * tests/test-rbtreehash_list.c: Include progname.h.
20051         (main): Call set_program_name.
20052
20053         * modules/rbtree-oset-tests (Depends-on): Add progname.
20054         * tests/test-rbtree_oset.c: Include progname.h.
20055         (main): Call set_program_name.
20056
20057         * modules/rbtree-list-tests (Depends-on): Add progname.
20058         * tests/test-rbtree_list.c: Include progname.h.
20059         (main): Call set_program_name.
20060
20061         * modules/linked-list-tests (Depends-on): Add progname.
20062         * tests/test-linked_list.c: Include progname.h.
20063         (main): Call set_program_name.
20064
20065 2007-03-03  Bruno Haible  <bruno@clisp.org>
20066
20067         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
20068         All uses of __restrict changed to _Restrict_.
20069         * lib/glob_.h (__restrict): Remove macro.
20070
20071 2007-03-02  Bruno Haible  <bruno@clisp.org>
20072
20073         * modules/gettext (configure.ac): Require gettext infrastructure
20074         from version 0.16.1.
20075
20076 2007-03-02  Bruno Haible  <bruno@clisp.org>
20077
20078         * modules/linkedhash-list-tests (Depends-on): Add progname.
20079         * tests/test-linkedhash_list.c: Include progname.h.
20080         (main): Call set_program_name.
20081
20082         * modules/carray-list-tests (Depends-on): Add progname.
20083         * tests/test-carray_list.c: Include progname.h.
20084         (main): Call set_program_name.
20085
20086         * modules/avltreehash-list-tests (Depends-on): Add progname.
20087         * tests/test-avltreehash_list.c: Include progname.h.
20088         (main): Call set_program_name.
20089
20090         * modules/avltree-oset-tests (Depends-on): Add progname.
20091         * tests/test-avltree_oset.c: Include progname.h.
20092         (main): Call set_program_name.
20093
20094         * modules/avltree-list-tests (Depends-on): Add progname.
20095         * tests/test-avltree_list.c: Include progname.h.
20096         (main): Call set_program_name.
20097
20098         * modules/array-oset-tests (Depends-on): Add progname.
20099         * tests/test-array_oset.c: Include progname.h.
20100         (main): Call set_program_name.
20101
20102         * modules/array-list-tests (Depends-on): Add progname.
20103         * tests/test-array_list.c: Include progname.h.
20104         (main): Call set_program_name.
20105
20106         * modules/argp-tests (Depends-on): Add progname.
20107         * tests/test-argp.c: Include argp.h first. Include progname.h.
20108         (main): Call set_program_name.
20109
20110 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
20111
20112         * doc/gnulib-tool.texi (Initial import): Reword description of
20113         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
20114         limited effect even if defined after the first system include.
20115
20116 2007-03-01  Bruno Haible  <bruno@clisp.org>
20117
20118         * build-aux/config.libpath: Update to libtool-1.5.22.
20119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20120
20121 2007-03-01  Bruno Haible  <bruno@clisp.org>
20122
20123         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
20124         foo_CFLAGS.
20125         Reported by Ralf Wildenhues.
20126
20127 2007-03-01  Bruno Haible  <bruno@clisp.org>
20128
20129         * build-aux/install-reloc: Remove object files left over by some
20130         compilers.
20131         Reported by Ralf Wildenhues.
20132
20133 2007-03-01  Bruno Haible  <bruno@clisp.org>
20134
20135         * build-aux/install-reloc: Break long lines.
20136
20137 2007-03-01  Bruno Haible  <bruno@clisp.org>
20138
20139         * doc/relocatable.texi: Document that it may not work on OpenBSD.
20140         Reported by Ralf Wildenhues.
20141
20142 2007-03-01  Bruno Haible  <bruno@clisp.org>
20143
20144         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
20145         include ordering constraints.
20146
20147 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20148
20149         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
20150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
20151         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
20152         as another example.
20153         * lib/time_.h: Fix misspelling.
20154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20155         Require gl_HEADER_TIME_H_DEFAULTS.
20156         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
20157         * m4/time_r.m4 (gl_TIME_R): Likewise.
20158         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
20159
20160 2007-03-01  Bruno Haible  <bruno@clisp.org>
20161
20162         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
20163         * m4/utimens.m4 (gl_UTIMENS): Likewise.
20164
20165 2007-03-01  Jim Meyering  <jim@meyering.net>
20166
20167         * modules/xreadlink (Maintainer): Add my name.
20168         * modules/xreadlink-with-size (Depends-on): Alphabetize.
20169
20170 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
20171             Bruno Haible  <bruno@clisp.org>
20172
20173         * build-aux/install-reloc: Compile also c-ctype.c.
20174         * build-aux/relocatable.sh.in: New file.
20175         * doc/relocatable.texi: New file.
20176         * doc/relocatable-maint.texi: New file.
20177         * doc/gnulib.texi: Include relocatable-maint.texi.
20178         * lib/progreloc.c: Include unistd.h unconditionally.
20179         * lib/relocwrapper.c: Include unistd.h unconditionally.
20180         Include c-ctype.h.
20181         (add_dotbin): Use c_tolower.
20182         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
20183         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
20184         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
20185         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
20186         to m4/relocatable-lib.m4.
20187         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
20188         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
20189         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
20190         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
20191         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
20192         * modules/relocatable: New file.
20193         * modules/relocatable-lib: New file.
20194         * modules/relocatable-script: New file.
20195
20196 2007-02-28  Bruno Haible  <bruno@clisp.org>
20197
20198         Import --enable-relocatable infrastructure.
20199         * build-aux/config.libpath: New file, from GNU gettext.
20200         * build-aux/install-reloc: New file, from GNU gettext.
20201         * build-aux/reloc-ldflags: New file, from GNU gettext.
20202         * lib/relocatable.h: New file, from GNU gettext.
20203         * lib/relocatable.c: New file, from GNU gettext.
20204         * lib/relocwrapper.c: New file, from GNU gettext.
20205         * m4/relocatable.m4: New file, from GNU gettext.
20206
20207 2007-02-28  Bruno Haible  <bruno@clisp.org>
20208
20209         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
20210
20211         * modules/xreadlink: New file, from GNU gettext with modifications.
20212         * lib/xreadlink.c: New file, from GNU gettext.
20213         * lib/xreadlink.h: Add comments.
20214         (xreadlink): New declaration.
20215
20216         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
20217         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
20218         lib/xreadlink-with-size.c.
20219         (configure.ac): Remove gl_XREADLINK invocation.
20220         (Makefile.am): Augment lib_SOURCES.
20221         * m4/xreadlink.m4: Remove file.
20222         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
20223         (xreadlink_with_size): Renamed from xreadink.
20224         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
20225         * modules/canonicalize (Depends-on): Replace xreadlink with
20226         xreadlink-with-size.
20227         * lib/canonicalize.c (canonicalize_filename_mode): Update.
20228
20229 2007-02-25  Jim Meyering  <jim@meyering.net>
20230
20231         * build-aux/announce-gen: When complaining about excess arguments,
20232         list them.
20233
20234 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20235
20236         * README: Document signed integer overflow situation more
20237         accurately.
20238
20239 2007-02-25  Bruno Haible  <bruno@clisp.org>
20240
20241         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
20242         'a' or 'A' conversion.
20243
20244 2007-02-25  Bruno Haible  <bruno@clisp.org>
20245
20246         * modules/filename: Renamed from modules/pathname.
20247         (Files): Replace lib/pathname.h with lib/filename.h. Replace
20248         lib/concatpath.c with lib/concat-filename.c.
20249         (Makefile.am): Update.
20250         (Include): Replace pathname.h with filename.h.
20251         * lib/filename.h: Renamed from lib/pathname.h.
20252         (concatenated_filename): Renamed from concatenated_pathname.
20253         * lib/concat-filename.c: Renamed from lib/concatpath.c.
20254         (concatenated_filename): Renamed from concatenated_pathname.
20255         * lib/findprog.c: Include filename.h instead of pathname.h.
20256         (find_in_path): Update.
20257         * lib/javacomp.c: Include filename.h instead of pathname.h.
20258         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20259         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20260         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20261         is_oldgcj_14_13_usable, is_javac_usable): Update.
20262         * lib/javaexec.c: Include filename.h instead of pathname.h.
20263         (execute_java_class): Update.
20264         * modules/findprog: Update.
20265         * modules/javacomp: Update.
20266         * modules/javaexec: Update.
20267         * MODULES.html.sh (File system functions): Add 'filename', remove
20268         'pathname'.
20269
20270 2007-02-25  Bruno Haible  <bruno@clisp.org>
20271
20272         * modules/printf-frexpl-tests: New file.
20273         * tests/test-printf-frexpl.c: New file.
20274
20275         * modules/printf-frexpl: New file.
20276         * lib/printf-frexpl.h: New file.
20277         * lib/printf-frexpl.c: New file.
20278         * m4/printf-frexpl.m4: New file.
20279
20280 2007-02-25  Bruno Haible  <bruno@clisp.org>
20281
20282         * modules/printf-frexp-tests: New file.
20283         * tests/test-printf-frexp.c: New file.
20284
20285         * modules/printf-frexp: New file.
20286         * lib/printf-frexp.h: New file.
20287         * lib/printf-frexp.c: New file.
20288         * m4/printf-frexp.m4: New file.
20289
20290 2007-02-25  Bruno Haible  <bruno@clisp.org>
20291
20292         Assume automake >= 1.10 for the tests.
20293         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
20294         * modules/arctwo-tests: Likewise.
20295         * modules/argp-tests: Likewise.
20296         * modules/avltree-list-tests: Likewise.
20297         * modules/avltree-oset-tests: Likewise.
20298         * modules/avltreehash-list-tests: Likewise.
20299         * modules/carray-list-tests: Likewise.
20300         * modules/crc-tests: Likewise.
20301         * modules/des-tests: Likewise.
20302         * modules/gc-arcfour-tests: Likewise.
20303         * modules/gc-arctwo-tests: Likewise.
20304         * modules/gc-des-tests: Likewise.
20305         * modules/gc-hmac-md5-tests: Likewise.
20306         * modules/gc-hmac-sha1-tests: Likewise.
20307         * modules/gc-md2-tests: Likewise.
20308         * modules/gc-md4-tests: Likewise.
20309         * modules/gc-md5-tests: Likewise.
20310         * modules/gc-pbkdf2-sha1-tests: Likewise.
20311         * modules/gc-rijndael-tests: Likewise.
20312         * modules/gc-sha1-tests: Likewise.
20313         * modules/gc-tests: Likewise.
20314         * modules/getaddrinfo-tests: Likewise.
20315         * modules/hmac-md5-tests: Likewise.
20316         * modules/hmac-sha1-tests: Likewise.
20317         * modules/linked-list-tests: Likewise.
20318         * modules/linkedhash-list-tests: Likewise.
20319         * modules/lock-tests: Likewise.
20320         * modules/md2-tests: Likewise.
20321         * modules/md4-tests: Likewise.
20322         * modules/md5-tests: Likewise.
20323         * modules/rbtree-list-tests: Likewise.
20324         * modules/rbtree-oset-tests: Likewise.
20325         * modules/rbtreehash-list-tests: Likewise.
20326         * modules/read-file-tests: Likewise.
20327         * modules/rijndael-tests: Likewise.
20328         * modules/stdint-tests: Likewise.
20329         * modules/tls-tests: Likewise.
20330
20331 2007-02-24  Bruno Haible  <bruno@clisp.org>
20332
20333         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
20334         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
20335         function; instead check whether isnan with a double argument links.
20336         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
20337         function; instead check whether isnan with a 'long double' argument
20338         links.
20339         Reported by Eric Blake <ebb9@byu.net>.
20340
20341 2007-02-24  Bruno Haible  <bruno@clisp.org>
20342
20343         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
20344         defined.
20345         * lib/isnanl.c: Remove all code. Just include isnan.c.
20346         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
20347
20348 2007-02-25  Jim Meyering  <jim@meyering.net>
20349
20350         Avoid conflicting types for 'unsetenv' on FreeBSD.
20351         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
20352         conflicting with FreeBSD's (5.0 and 6.1) function declaration
20353         in stdlib.h.
20354
20355 2007-02-24  Bruno Haible  <bruno@clisp.org>
20356
20357         * modules/isnanl-nolibm-tests: New file.
20358         * tests/test-isnanl.c: New file.
20359
20360         * modules/isnanl-nolibm: New file.
20361         * lib/isnanl.h: New file.
20362         * lib/isnanl.c: New file.
20363         * m4/isnanl.m4: New file.
20364
20365 2007-02-24  Bruno Haible  <bruno@clisp.org>
20366
20367         * modules/isnan-nolibm-tests: New file.
20368         * tests/test-isnan.c: New file.
20369
20370         * modules/isnan-nolibm: New file.
20371         * lib/isnan.h: New file.
20372         * lib/isnan.c: New file.
20373         * m4/isnan.m4: New file.
20374
20375 2007-02-24  Bruno Haible  <bruno@clisp.org>
20376
20377         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
20378         assume that an exponent fits in 20 bits.
20379
20380 2007-02-24  Jim Meyering  <jim@meyering.net>
20381
20382         * m4/regex.m4: Update the description of the configure-time option,
20383         --without-included-regex, to state accurately what the defaults are,
20384         and perhaps to give people an idea why using this option is risky.
20385
20386 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
20389         loops on small arguments.  This attempts to avoid the problem
20390         Bruno Haible reported for AIX 4.3.2 in
20391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
20392
20393 2007-02-23  Bruno Haible  <bruno@clisp.org>
20394
20395         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
20396         Needed for help2man.
20397
20398 2007-02-23  Karl Berry  <karl@gnu.org>
20399
20400         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
20401         exists, foo.h should be cvs-ignored, not committed.
20402
20403 2007-02-23  Eric Blake  <ebb9@byu.net>
20404
20405         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
20406         * lib/stat-time.h (includes): Likewise.
20407         * lib/utimecmp.c (includes): Likewise.
20408         * lib/utimens.h (includes): Likewise.
20409         * lib/getdate.y (includes): Also include "timespec.h" for use
20410         internal to the module.
20411         * modules/utimens (Depends-on): Revert yesterday's patch.
20412         * modules/nanosleep (Depends-on): Add missing dependency.
20413
20414 2007-02-22  Bruno Haible  <bruno@clisp.org>
20415
20416         * lib/glob.c: Don't include getlogin_r.h.
20417
20418 2007-02-22  Jim Meyering  <jim@meyering.net>
20419
20420         * modules/utimens (Depends-on): Add timespec, required for
20421         utimens.h's inclusion of timespec.h.
20422
20423 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
20426         long unreadable paths in GNU/Linux.  Problem reported by Andreas
20427         Schwab in
20428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
20429         I'll try to think of a better way to fix the Solaris problem.
20430
20431         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
20432         like glibc; on Solaris 10, it fails with errno == EINVAL.
20433         POSIX says the behavior is unspecified if the first argument is NULL,
20434         so play it safe and never pass NULL to the system getcwd.
20435
20436 2007-02-21  Jim Meyering  <jim@meyering.net>
20437
20438         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
20439         of gettimeofday.  It would conflict with the one now always
20440         provided via sys_time_.h.  Reported by Matthew Woehlke, as
20441         an IRIX 6.5 build failure.
20442
20443 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20444
20445         Minor fixups to port to Solaris 10 with Sun C 5.8.
20446         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
20447         * modules/getcwd (Depends-on): Add dirfd.
20448         * lib/putenv.c (putenv): #undef it.
20449         (rpl_putenv): New decl.
20450         (malloc, free): Include <stdlib.h> rather than prototyping separately.
20451
20452 2007-02-20  Bruno Haible  <bruno@clisp.org>
20453
20454         * modules/stdio-tests: New file.
20455         * tests/test-stdio.c: New file.
20456
20457         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
20458         (Depends-on): Add stdio.
20459         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20460         (Include): Use <stdio.h> instead of vsnprintf.h.
20461         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
20462         HAVE_DECL_VSNPRINTF.
20463         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
20464
20465         * modules/snprintf (Files): Remove lib/snprintf.h.
20466         (Depends-on): Add stdio.
20467         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20468         (Include): Use <stdio.h> instead of snprintf.h.
20469         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
20470         HAVE_DECL_SNPRINTF.
20471         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
20472         * lib/getaddrinfo.c: Likewise.
20473
20474         * modules/stdio: New file.
20475         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
20476         * lib/snprintf.h: Remove file.
20477         * lib/vsnprintf.h: Remove file.
20478         * lib/.cppi-disable: Remove snprintf.h.
20479         * m4/stdio_h.m4: New file.
20480         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
20481
20482 2007-02-20  Jim Meyering  <jim@meyering.net>
20483
20484         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
20485         used by e.g., mingw.  From Bruno Haible.
20486
20487 2007-02-19  Bruno Haible  <bruno@clisp.org>
20488
20489         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
20490         warnings.
20491         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20492
20493 2007-02-19  Bruno Haible  <bruno@clisp.org>
20494
20495         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
20496         from mingw users.
20497
20498 2007-02-19  Bruno Haible  <bruno@clisp.org>
20499
20500         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
20501         warnings.
20502         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
20503
20504 2007-02-19  Jim Meyering  <jim@meyering.net>
20505
20506         Don't use FD after a successful "fdopendir (fd)".
20507         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
20508         Reset it by calling dirfd on the just-obtained DIR*.
20509
20510         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
20511         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
20512
20513 2007-02-18  Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/readlink.c: Include <unistd.h>.
20516         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
20517         HAVE_READLINK.
20518         * modules/readlink (Depends-on): Add unistd.
20519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20520         (Include): Add <unistd.h>.
20521
20522         * lib/getlogin_r.h: Remove file.
20523         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
20524         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
20525         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
20526         HAVE_DECL_GETLOGIN_R.
20527         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
20528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20529         (Include): Use <unistd.h> instead of getlogin_r.h.
20530
20531         * lib/getcwd.h: Remove file.
20532         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
20533         * lib/xgetcwd.c: Likewise.
20534         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
20535         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
20536         * modules/getcwd (Files): Remove lib/getcwd.h.
20537         (Depends-on): Add unistd.
20538         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20539         (Include): Use <unistd.h> instad of getcwd.h.
20540
20541         * lib/ftruncate.c: Include <unistd.h> first.
20542         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
20543         Set HAVE_FTRUNCATE.
20544         * modules/ftruncate (Depends-on): Add unistd.
20545         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20546
20547         * lib/fchdir.c: Include <unistd.h> first.
20548         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
20549         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
20550         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
20551         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20552         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
20553
20554         * lib/dup2.c: Include <unistd.h> first.
20555         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
20556         HAVE_DUP2.
20557         * modules/dup2 (Depends-on): Add unistd.
20558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20559
20560         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
20561         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
20562         REPLACE_CHOWN. Don't define chown as a macro here.
20563         * modules/chown (Depends-on): Add unistd.
20564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20565
20566         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
20567         Add definition for GL_LINK_WARNING.
20568         (chown, dup2): New declarations.
20569         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
20570         link warning.
20571         (ftruncate): New declaration.
20572         (getcwd): New declaration, taken from old getcwd.h.
20573         (getlogin_r): New declaration, taken from old getlogin_r.h.
20574         (readlink): New declaration.
20575         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
20576         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
20577         (gl_PREREQ_UNISTD): Remove macro.
20578         (gl_UNISTD_MODULE_INDICATOR): New macro.
20579         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
20580         many new variables. Don't set UNISTD_H.
20581         * modules/unistd (Description): Change.
20582         (Depends-on): Add link-warning.
20583         (configure.ac): Update.
20584         (Makefile.am): Create unistd.h always. Substitute many new variables
20585         into it.
20586
20587 2007-02-18  Bruno Haible  <bruno@clisp.org>
20588
20589         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
20590         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
20591         HAVE_GETSUBOPT.
20592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
20593         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
20594         * lib/getsubopt.h: Remove file.
20595         * modules/getsubopt (Files): Remove lib/getsubopt.h.
20596         (Depends-on): Add stdlib.
20597         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20598         (Includes): Use <stdlib.h> instead of getsubopt.h.
20599         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
20600         Set HAVE_GETSUBOPT.
20601         * lib/getsubopt.c: Don't include getsubopt.h.
20602
20603 2007-02-18  Bruno Haible  <bruno@clisp.org>
20604
20605         * modules/fchdir (Depends-on): Add dup2.
20606
20607 2007-02-18  Bruno Haible  <bruno@clisp.org>
20608
20609         * lib/stdlib_.h: Handle glibc's special invocation convention
20610         specially.
20611
20612 2007-02-18  Bruno Haible  <bruno@clisp.org>
20613
20614         * modules/stdlib-tests: New file.
20615         * tests/test-stdlib.c: New file.
20616
20617         * modules/mkstemp (Files): Remove lib/mkstemp.h.
20618         (Depends-on): Add stdlib.
20619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20620         (Includes): Use <stdlib.h> instead of mkstemp.h.
20621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
20622         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
20623         * lib/mkstemp.c: Don't include mkstemp.h.
20624         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
20625         * lib/stdlib--.h: Don't include mkstemp.h.
20626
20627         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
20628         (Depends-on): Add stdlib.
20629         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20630         (Includes): Use <stdlib.h> instead of mkdtemp.h.
20631         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
20632         HAVE_MKDTEMP.
20633         * lib/mkdtemp.c: Don't include mkdtemp.h.
20634         * lib/clean-temp.c: Don't include mkdtemp.h.
20635
20636         * modules/exit (Files): Remove lib/exit.h.
20637         (Depends-on): Add stdlib.
20638         (Makefile.am): Remove lib_SOURCES.
20639         (Include): Use <stdlib.h> instead of exit.h.
20640         * lib/argmatch.c: Don't include exit.h.
20641         * lib/execute.c: Likewise.
20642         * lib/pagealign_alloc.c: Likewise.
20643         * lib/pipe.c: Likewise.
20644         * lib/wait-process.c: Likewise.
20645         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
20646         * lib/exitfail.c: Likewise.
20647         * lib/savewd.c: Likewise.
20648         * lib/xsetenv.c: Likewise.
20649
20650         * modules/stdlib: New file.
20651         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
20652         and extra comments about mkstemp().
20653         * lib/exit.h: Remove file.
20654         * lib/mkdtemp.h: Remove file.
20655         * lib/mkstemp.h: Remove file.
20656         * m4/stdlib_h.m4: New file.
20657         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
20658
20659 2007-02-18  Bruno Haible  <bruno@clisp.org>
20660
20661         * modules/math-tests: New file.
20662         * tests/test-math.c: New file.
20663
20664         * modules/math: New file.
20665         * modules/mathl (Files): Remove lib/mathl.h.
20666         (Depends-on): Add math.
20667         (Makefile.am): Don't mention mathl.h.
20668         (Include): Use <math.h> instead of mathl.h.
20669         * lib/math_.h: New file.
20670         * lib/mathl.h: Remove file.
20671         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
20672         mathl.h.
20673         * lib/asinl.c: Likewise.
20674         * lib/atanl.c: Likewise.
20675         * lib/ceill.c: Likewise.
20676         * lib/cosl.c: Likewise.
20677         * lib/expl.c: Likewise.
20678         * lib/floorl.c: Likewise.
20679         * lib/frexpl.c: Likewise.
20680         * lib/ldexpl.c: Likewise.
20681         * lib/logl.c: Likewise.
20682         * lib/sincosl.c: Likewise.
20683         * lib/sinl.c: Likewise.
20684         * lib/sqrtl.c: Likewise.
20685         * lib/tanl.c: Likewise.
20686         * lib/trigl.c: Likewise.
20687         * m4/math_h.m4: New file.
20688         * MODULES.html.sh (Mathematics): Add math.
20689
20690 2007-02-17  Bruno Haible  <bruno@clisp.org>
20691
20692         * modules/wctype-tests: New file.
20693         * tests/test-wctype.c: New file.
20694
20695         * modules/wchar-tests: New file.
20696         * tests/test-wchar.c: New file.
20697
20698         * modules/unistd-tests: New file.
20699         * tests/test-unistd.c: New file.
20700
20701         * modules/time-tests: New file.
20702         * tests/test-time.c: New file.
20703
20704         * modules/sysexits-tests: New file.
20705         * tests/test-sysexits.c: New file.
20706
20707         * modules/sys_time-tests: New file.
20708         * tests/test-sys_time.c: New file.
20709
20710         * modules/sys_stat-tests: New file.
20711         * tests/test-sys_stat.c: New file.
20712
20713         * modules/sys_socket-tests: New file.
20714         * tests/test-sys_socket.c: New file.
20715
20716         * modules/sys_select-tests: New file.
20717         * tests/test-sys_select.c: New file.
20718
20719         * modules/string-tests: New file.
20720         * tests/test-string.c: New file.
20721
20722         * modules/stdbool-tests: New file.
20723         * tests/test-stdbool.c: New file.
20724
20725         * modules/netinet_in-tests: New file.
20726         * tests/test-netinet_in.c: New file.
20727
20728         * modules/inttypes-tests: New file.
20729         * tests/test-inttypes.c: New file.
20730
20731         * modules/fcntl-tests: New file.
20732         * tests/test-fcntl.c: New file.
20733
20734         * modules/byteswap-tests: New file.
20735         * tests/test-byteswap.c: New file.
20736
20737         * modules/arpa_inet-tests: New file.
20738         * tests/test-arpa_inet.c: New file.
20739
20740 2007-02-17  Bruno Haible  <bruno@clisp.org>
20741
20742         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
20743         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
20744         if the corresponding module is not enabled. Emit link warnings if
20745         the function is used nevertheless.
20746         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
20747         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
20748         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
20749         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
20750         * modules/inttypes (Depends-on): Add link-warning.
20751         (Makefile.am): Copy the contents of build-aux/link-warning.h into
20752         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
20753         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
20754         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
20755         * modules/imaxdiv (configure.ac): Likewise.
20756         * modules/strtoimax (configure.ac): Likewise.
20757         * modules/strtoumax (configure.ac): Likewise.
20758
20759 2007-02-17  Bruno Haible  <bruno@clisp.org>
20760
20761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
20762         gl_STRING_MODULE_INDICATOR_DEFAULTS.
20763         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
20764         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
20765
20766 2007-02-17  Bruno Haible  <bruno@clisp.org>
20767
20768         * modules/link-warning: New file.
20769         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
20770         * lib/string_.h (GL_LINK_WARNING): Remove definition.
20771         * modules/string (Depends-on): Add link-warning.
20772         (Makefile.am): Copy the contents of build-aux/link-warning.h into
20773         string.h.
20774         * MODULES.html.sh (Support for building libraries and executables): Add
20775         link-warning.
20776
20777 2007-02-17  Bruno Haible  <bruno@clisp.org>
20778
20779         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
20780         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
20781         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
20782         long lines.
20783
20784 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
20785             Bruno Haible  <bruno@clisp.org>
20786
20787         * modules/tmpfile: New file.
20788         * lib/tmpfile.c: New file.
20789         * m4/tmpfile.m4: New file.
20790         * MODULES.html.sh (func_all_modules): New section "Input/output".
20791
20792 2007-02-15  Bruno Haible  <bruno@clisp.org>
20793
20794         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
20795         (supports_delete_on_close): New function.
20796         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
20797
20798 2007-02-14  Bruno Haible  <bruno@clisp.org>
20799
20800         * modules/mbspcasecmp-tests: New file.
20801         * tests/test-mbspcasecmp.sh: New file.
20802         * tests/test-mbspcasecmp.c: New file.
20803
20804         New module mbspcasecmp.
20805         * modules/mbspcasecmp: New file.
20806         * lib/mbspcasecmp.c: New file.
20807         * lib/string_.h (strncasecmp): Change warning message.
20808         (mbspcasecmp): New declaration.
20809         * m4/mbspcasecmp.m4: New file.
20810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20811         GNULIB_MBSPCASECMP.
20812         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
20813         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
20814
20815 2007-02-14  Bruno Haible  <bruno@clisp.org>
20816
20817         * modules/mbsncasecmp-tests: New file.
20818         * tests/test-mbsncasecmp.sh: New file.
20819         * tests/test-mbsncasecmp.c: New file.
20820
20821         New module mbsncasecmp.
20822         * modules/mbsncasecmp: New file.
20823         * lib/mbsncasecmp.c: New file.
20824         * lib/string_.h (mbsncasecmp): New declaration.
20825         * m4/mbsncasecmp.m4: New file.
20826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
20827         GNULIB_MBSNCASECMP.
20828         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
20829         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
20830
20831 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20832
20833         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
20834         Verify that it doesn't overlap with our flags.
20835         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
20836         do not have the desired effect in multibyte locales; instead, use
20837         mbscasecmp.
20838         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
20839         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
20840         we don't require GNU fnmatch ourselves (if our users require it, they
20841         should do so explicitly).
20842
20843         Fix regex code so it doesn't rely on strcasecmp.
20844         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
20845         Otherwise, include gnulib's langinfo.h.
20846         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
20847         undesirable behavior in non-C locales.  Instead, rely on localecharset.
20848         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
20849         * modules/regex (FILES): Remove m4/codeset.m4.
20850         (Depends-on): Add localcharset.  Remove strcase.
20851
20852 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20853
20854         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
20855         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20856
20857 2007-02-13  Bruno Haible  <bruno@clisp.org>
20858
20859         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
20860         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20861
20862 2007-02-12  Bruno Haible  <bruno@clisp.org>
20863
20864         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
20865         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
20866         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
20867         time warning rather than a link error.
20868
20869 2007-02-12  Bruno Haible  <bruno@clisp.org>
20870
20871         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
20872         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20873         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20874
20875 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20876
20877         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
20878         args, not 2.
20879
20880 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20881
20882         New module 'time', so that apps can include <time.h> as per
20883         POSIX and GNU instead of separate include files like time_r.h
20884         and timegm.h.  This implementation tries out a simpler approach
20885         for replacing decls in standard include files (as compared to
20886         the string module), somewhat as an experiment.
20887
20888         * config/srclist.txt: Comment out mktime.c for now.
20889         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
20890         since it doesn't apply any more.  Use generic wording instead.
20891         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
20892         'time'.
20893         * lib/time_.h, m4/time_h.m4, modules/time: New files.
20894         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
20895         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
20896         Don't include <sys/types.h>; no longer needed since we assume C89.
20897         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
20898         * lib/strftime.c: Likewise.
20899         * lib/time_r.c: Likewise.
20900         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
20901         * lib/nanosleep.c: Include <time.h> first, to check interface.
20902         * lib/strptime.c: Likewise.
20903         * lib/time_r.c: Likewise.
20904         * lib/timegm.c: Likewise.
20905         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
20906         needed.
20907         * lib/timegm.c: Don't include timegm.h; no longer needed.
20908         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
20909         time.h now handles any problems in that area.
20910         (struct timespec, nanosleep): Remove; time.h now arranges for these.
20911         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
20912         that time.h defines struct timespec.
20913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
20914         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
20915         handles that.
20916         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
20917         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
20918         needed.  Set REPLACE_LOCALTIME.
20919         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
20920         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
20921         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
20922         nanosleep; time_h.m4 now does that.  Don't require
20923         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
20924         module handles this now.
20925         * modules/getdate (Depends-on): Remove timespec.  Add time.
20926         * modules/nanosleep (Depends-on): Likewise.
20927         * modules/stat-time (Depends-on): Likewise.
20928         * modules/nanosleep (Include): Include time.h, not timespec.h.
20929         * modules/strptime (Files): Remove lib/strptime.h.
20930         (Depends-on): Add extensions, time.
20931         (Include): Include time.h, not strptime.h.
20932         * modules/time_r (Files): Remove lib/time_r.h.
20933         (Depends-on): Add time.
20934         (Include): Include time.h, not time_r.h.
20935         * modules/timegm: Likewise.
20936         * modules/timespec (Description): Now does timespec-related decls
20937         of our own, instead of struct timespec itself.
20938         (Depends-on): Add time; remove extensions.
20939         (Maintainer): Add self.
20940         * modules/utimecmp (Depends-on): Add time; remove timespec.
20941         * modules/utimens (Depends-on): Likewise.
20942         * modules/xnanosleep (Depends-on): Likewise.
20943
20944 2007-02-11  Bruno Haible  <bruno@clisp.org>
20945
20946         * lib/c-strstr.c: Include allocsa.h.
20947         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
20948         * lib/c-strcasestr.c: Include allocsa.h.
20949         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
20950         * lib/strcasestr.c: Include allocsa.h.
20951         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
20952         * lib/mbsstr.c: Include allocsa.h.
20953         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
20954         allocsa/freesa instead of malloc/free.
20955         * lib/mbscasestr.c: Include allocsa.h.
20956         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
20957         allocsa/freesa instead of malloc/free.
20958         * modules/c-strstr (Depends-on): Add allocsa.
20959         * modules/c-strcasestr (Depends-on): Likewise.
20960         * modules/strcasestr (Depends-on): Likewise.
20961         * modules/mbsstr (Depends-on): Likewise.
20962         * modules/mbscasestr (Depends-on): Likewise.
20963
20964 2007-02-11  Bruno Haible  <bruno@clisp.org>
20965
20966         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
20967
20968         * modules/mbsspn-tests: New file.
20969         * tests/test-mbsspn.sh: New file.
20970         * tests/test-mbsspn.c: New file.
20971
20972 2007-02-11  Bruno Haible  <bruno@clisp.org>
20973
20974         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
20975
20976         * modules/mbspbrk-tests: New file.
20977         * tests/test-mbspbrk.sh: New file.
20978         * tests/test-mbspbrk.c: New file.
20979
20980 2007-02-11  Bruno Haible  <bruno@clisp.org>
20981
20982         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
20983         unneeded cast.
20984
20985         * modules/mbscspn-tests: New file.
20986         * tests/test-mbscspn.sh: New file.
20987         * tests/test-mbscspn.c: New file.
20988
20989 2007-02-11  Bruno Haible  <bruno@clisp.org>
20990
20991         * modules/mbscasecmp-tests: New file.
20992         * tests/test-mbscasecmp.sh: New file.
20993         * tests/test-mbscasecmp.c: New file.
20994
20995 2007-02-11  Bruno Haible  <bruno@clisp.org>
20996
20997         Ensure O(n) worst-case complexity of mbscasestr.
20998         * lib/mbscasestr.c: Include stdbool.h.
20999         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
21000         functions.
21001         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
21002         the bookkeeping indicates that it's worth it.
21003         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
21004
21005         * modules/mbscasestr-tests: New file.
21006         * tests/test-mbscasestr1.c: New file.
21007         * tests/test-mbscasestr2.sh: New file.
21008         * tests/test-mbscasestr2.c: New file.
21009         * tests/test-mbscasestr3.sh: New file.
21010         * tests/test-mbscasestr3.c: New file.
21011         * tests/test-mbscasestr4.sh: New file.
21012         * tests/test-mbscasestr4.c: New file.
21013         * m4/locale-tr.m4: New file.
21014
21015 2007-02-11  Bruno Haible  <bruno@clisp.org>
21016
21017         Ensure O(n) worst-case complexity of mbsstr.
21018         * lib/mbsstr.c: Include stdbool.h.
21019         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
21020         functions.
21021         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
21022         bookkeeping indicates that it's worth it.
21023         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
21024
21025         * modules/mbsstr-tests: New file.
21026         * tests/test-mbsstr1.c: New file.
21027         * tests/test-mbsstr2.sh: New file.
21028         * tests/test-mbsstr2.c: New file.
21029         * tests/test-mbsstr3.sh: New file.
21030         * tests/test-mbsstr3.c: New file.
21031         * m4/locale-fr.m4: New file.
21032
21033 2007-02-11  Bruno Haible  <bruno@clisp.org>
21034
21035         * lib/mbsrchr.c (mbsrchr): Fix bug.
21036
21037         * modules/mbsrchr-tests: New file.
21038         * tests/test-mbsrchr.sh: New file.
21039         * tests/test-mbsrchr.c: New file.
21040
21041 2007-02-11  Bruno Haible  <bruno@clisp.org>
21042
21043         * lib/mbschr.c (mbschr): Fix bug.
21044
21045         * modules/mbschr-tests: New file.
21046         * tests/test-mbschr.sh: New file.
21047         * tests/test-mbschr.c: New file.
21048         * m4/locale-zh.m4: New file.
21049
21050 2007-02-11  Bruno Haible  <bruno@clisp.org>
21051
21052         Support for copying multibyte string iterators.
21053         * lib/mbiter.h: Include <string.h>.
21054         (mbiter_multi_copy): New function.
21055         (mbi_copy): New macro.
21056         * lib/mbuiter.h: Include <string.h>.
21057         (mbuiter_multi_copy): New function.
21058         (mbui_copy): New macro.
21059
21060 2007-02-11  Bruno Haible  <bruno@clisp.org>
21061
21062         New module mbslen.
21063         * modules/mbslen: New file.
21064         * lib/mbslen.c: New file.
21065         * lib/string_.h (mbslen): New declaration.
21066         * m4/mbslen.m4: New file.
21067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21068         GNULIB_MBSLEN.
21069         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
21070         * MODULES.html.sh (Internationalization functions): Add mbslen.
21071
21072 2007-02-11  Bruno Haible  <bruno@clisp.org>
21073
21074         Ensure O(n) worst-case complexity of strcasestr substitute.
21075         * lib/strcasestr.c: Include stdbool.h.
21076         (knuth_morris_pratt): New function.
21077         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
21078         bookkeeping indicates that it's worth it.
21079         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
21080
21081         * modules/strcasestr-tests: New file.
21082         * tests/test-strcasestr.c: New file.
21083
21084 2007-02-11  Bruno Haible  <bruno@clisp.org>
21085
21086         Ensure O(n) worst-case complexity of c_strcasestr.
21087         * lib/c-strcasestr.c: Include stdbool.h, string.h.
21088         (knuth_morris_pratt): New function.
21089         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
21090         the bookkeeping indicates that it's worth it.
21091         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
21092
21093         * modules/c-strcasestr-tests: New file.
21094         * tests/test-c-strcasestr.c: New file.
21095
21096 2007-02-11  Bruno Haible  <bruno@clisp.org>
21097
21098         Ensure O(n) worst-case complexity of c_strstr.
21099         * lib/c-strstr.c: Include stdbool.h, string.h.
21100         (knuth_morris_pratt): New function.
21101         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
21102         bookkeeping indicates that it's worth it.
21103         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
21104
21105         * lib/c-strstr.c: Complete rewrite for maintainability.
21106
21107         * modules/c-strstr-tests: New file.
21108         * tests/test-c-strstr.c: New file.
21109
21110 2007-02-11  Bruno Haible  <bruno@clisp.org>
21111
21112         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
21113         5.2.1 and earlier, whereby \055 was treated just like the range
21114         delimiter '-'.
21115         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21116
21117 2007-02-08  Bruno Haible  <bruno@clisp.org>
21118
21119         * modules/regex (Depends-on): Add stdbool.
21120         Reported by Dalibor Topic <robilad@kaffe.org>.
21121
21122 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
21123
21124         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
21125         Prefer returning from main to exiting from it.
21126         Remove unnecessary parens after sizeof.
21127
21128 2007-02-05  Bruno Haible  <bruno@clisp.org>
21129
21130         New module mbssep.
21131         * modules/mbssep: New file.
21132         * lib/mbssep.c: New file.
21133         * lib/string_.h (strsep): Add a conditional link warning.
21134         (mbssep): New declaration.
21135         * m4/mbssep.m4: New file.
21136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21137         GNULIB_MBSSEP.
21138         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
21139         * MODULES.html.sh (Internationalization functions): Add mbssep.
21140
21141 2007-02-05  Bruno Haible  <bruno@clisp.org>
21142
21143         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
21144         Optimize search in case of 1 delimiter.
21145
21146 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
21147
21148         * lib/acl.h: Include sys/types.h before sys/acl.h.
21149
21150 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
21151
21152         Merge upstream fix for glibc bugzilla #3957:
21153
21154         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
21155
21156         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
21157         bit for RE_HAT_LISTS_NOT_NEWLINE.
21158         (build_charclass_op): Remove bogus comment.
21159
21160 2007-02-05  Simon Josefsson  <simon@josefsson.org>
21161
21162         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
21163
21164 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21165
21166         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
21167         * lib/memmem.c [!defined _LIBC]: Include config.h.
21168
21169 2007-02-04  Bruno Haible  <bruno@clisp.org>
21170
21171         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
21172         warning message.
21173
21174 2007-02-04  Bruno Haible  <bruno@clisp.org>
21175
21176         New module mbstok_r.
21177         * modules/mbstok_r: New file.
21178         * lib/mbstok_r.c: New file.
21179         * lib/string_.h (strtok_r): Change argument names to match the
21180         comments. Add a conditional link warning.
21181         (mbstok_r): New declaration.
21182         * m4/mbstok_r.m4: New file.
21183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21184         GNULIB_MBSTOK_R.
21185         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
21186         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
21187
21188 2007-02-04  Bruno Haible  <bruno@clisp.org>
21189
21190         New module mbsspn.
21191         * modules/mbsspn: New file.
21192         * lib/mbsspn.c: New file.
21193         * lib/string_.h (strspn): Add a conditional link warning.
21194         (mbsspn): New declaration.
21195         * m4/mbsspn.m4: New file.
21196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21197         GNULIB_MBSSPN.
21198         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
21199         * MODULES.html.sh (Internationalization functions): Add mbsspn.
21200
21201 2007-02-04  Bruno Haible  <bruno@clisp.org>
21202
21203         New module mbspbrk.
21204         * modules/mbspbrk: New file.
21205         * lib/mbspbrk.c: New file.
21206         * lib/string_.h (strpbrk): Add a conditional link warning.
21207         (mbspbrk): New declaration.
21208         * m4/mbspbrk.m4: New file.
21209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21210         GNULIB_MBSPBRK.
21211         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
21212         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
21213
21214 2007-02-04  Bruno Haible  <bruno@clisp.org>
21215
21216         New module mbscspn.
21217         * modules/mbscspn: New file.
21218         * lib/mbscspn.c: New file.
21219         * lib/string_.h (strcspn): Add a conditional link warning.
21220         (mbscspn): New declaration.
21221         * m4/mbscspn.m4: New file.
21222         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21223         GNULIB_MBSCSPN.
21224         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
21225         * MODULES.html.sh (Internationalization functions): Add mbscspn.
21226
21227 2007-02-04  Bruno Haible  <bruno@clisp.org>
21228
21229         New module mbscasestr, reduced goal of strcasestr.
21230         * modules/mbscasestr: New file.
21231         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
21232         (mbscasestr): Renamed from strcasestr.
21233         * lib/strcasestr.c: Don't include mbuiter.h.
21234         (strcasestr): Remove support for multibyte locales.
21235         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
21236         Change the conditional link warning.
21237         (mbscasestr): New declaration.
21238         * m4/mbscasestr.m4: New file.
21239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
21240         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
21241         REPLACE_STRCASESTR.
21242         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
21243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21244         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
21245         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
21246         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
21247         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
21248         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
21249         (Depends-on): Remove mbuiter.
21250         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
21251
21252 2007-02-04  Bruno Haible  <bruno@clisp.org>
21253
21254         Simplify handling of strncasecmp.
21255         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
21256         the conditional link warning.
21257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21258         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
21259         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
21260         * modules/strcase (configure.ac): Don't invoke
21261         gl_STRING_MODULE_INDICATOR.
21262         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
21263
21264 2007-02-04  Bruno Haible  <bruno@clisp.org>
21265
21266         New module mbscasecmp, reduced goal of strcasecmp.
21267         * modules/mbscasecmp: New file.
21268         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
21269         (mbscasecmp): Renamed from strcasecmp.
21270         * lib/strcasecmp.c: Don't include mbuiter.h.
21271         (strcasecmp): Remove support for multibyte locales.
21272         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
21273         Change the conditional link warning.
21274         (mbscasecmp): New declaration.
21275         * m4/mbscasecmp.m4: New file.
21276         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
21277         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
21278         REPLACE_STRCASECMP.
21279         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
21280         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21281         GNULIB_MBSCASECMP.
21282         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
21283         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
21284         * modules/strcase (Files): Remove m4/mbrtowc.m4.
21285         (Depends-on): Remove mbuiter.
21286         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
21287
21288 2007-02-04  Bruno Haible  <bruno@clisp.org>
21289
21290         New module mbsstr. Remove module strstr.
21291         * modules/mbsstr: New file.
21292         * modules/strstr: Remove file.
21293         * lib/mbsstr.c: Renamed from lib/strstr.c.
21294         (mbsstr): Renamed from strstr.
21295         * lib/string_.h (strstr): Remove declaration. Change the conditional
21296         link warning.
21297         (mbsstr): New declaration.
21298         * m4/mbsstr.m4: New file.
21299         * m4/strstr.m4: Remove file.
21300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21301         REPLACE_STRSTR.
21302         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
21303         Don't initialize GNULIB_STRSTR.
21304         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
21305         substitute GNULIB_STRSTR and REPLACE_STRSTR.
21306         * MODULES.html.sh (Internationalization functions): Add mbsstr.
21307         (Support for systems lacking ANSI C 89): Remove strstr.
21308
21309 2007-02-04  Bruno Haible  <bruno@clisp.org>
21310
21311         New module mbsrchr.
21312         * modules/mbsrchr: New file.
21313         * lib/mbsrchr.c: New file.
21314         * lib/string_.h (strrchr): Add a conditional link warning.
21315         (mbsrchr): New declaration.
21316         * m4/mbsrchr.m4: New file.
21317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21318         GNULIB_MBSRCHR.
21319         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
21320         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
21321
21322 2007-02-04  Bruno Haible  <bruno@clisp.org>
21323
21324         New module mbschr.
21325         * modules/mbschr: New file.
21326         * lib/mbschr.c: New file.
21327         * lib/string_.h (strchr): Add a conditional link warning.
21328         (mbschr): New declaration.
21329         * m4/mbschr.m4: New file.
21330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21331         GNULIB_MBSCHR.
21332         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
21333         * MODULES.html.sh (Internationalization functions): Add mbschr.
21334
21335 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21336
21337         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
21338
21339         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
21340
21341 2007-02-04  Bruno Haible  <bruno@clisp.org>
21342
21343         New module description section 'configure.ac-early'.
21344         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
21345         (func_get_autoconf_early_snippet): New function.
21346         (func_import, func_create_testdir): Use it. Remove special cases for
21347         modules 'extensions' and 'lock'.
21348         * modules/extensions (configure.ac-early): Require
21349         gl_USE_SYSTEM_EXTENSIONS.
21350         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
21351
21352 2007-02-04  Bruno Haible  <bruno@clisp.org>
21353
21354         Make use of gcj-4.3's -fsource and -ftarget option.
21355         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
21356         and if so try the options -fsource and -ftarget.
21357         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
21358         source_version, ftarget_option, target_version arguments.
21359         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
21360         (is_envjavac_oldgcj_14_14_usable): Renamed from
21361         is_envjavac_gcj_14_14_usable.
21362         (is_envjavac_oldgcj_14_13_usable): Renamed from
21363         is_envjavac_gcj_14_13_usable.
21364         (is_gcj_present): Update.
21365         (is_gcj_43, is_gcj43_usable): New functions.
21366         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
21367         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
21368         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
21369         try the options -fsource and -ftarget.
21370
21371 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21372
21373         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
21374         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
21375         larger value.
21376
21377 2007-02-03  Jim Meyering  <jim@meyering.net>
21378
21379         Give tools a better chance to allocate space for very large buffers.
21380         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
21381
21382         Make pwd and readlink work also when run with an unreadable parent dir
21383         on systems with openat support.
21384         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
21385         provided getcwd function, even when we have openat support.
21386         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
21387
21388 2007-02-02  Bruno Haible  <bruno@clisp.org>
21389
21390         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
21391         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
21392         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
21393         portability problems if one of these functions is only used on specific
21394         platforms.
21395         Reported by Paul Eggert.
21396
21397 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
21398
21399         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
21400         is causing more trouble than it's curing.
21401         * lib/regex_internal.h (__mempcpy): Remove.
21402         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
21403         (and make the code a tad smaller to boot).
21404         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
21405
21406 2007-02-02  Jim Meyering  <jim@meyering.net>
21407
21408         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
21409         section, not in the Makefile.am: one.
21410
21411 2007-02-02  Eric Blake  <ebb9@byu.net>
21412
21413         * lib/strchrnul.c: Always include config.h first.
21414
21415         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
21416         gnulib strstr is not necessary here.
21417
21418 2007-02-02  Simon Josefsson  <simon@josefsson.org>
21419
21420         * m4/socklen.m4: Fix typo.
21421
21422 2007-02-02  Eric Blake  <ebb9@byu.net>
21423
21424         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
21425         * modules/netinet_in (Makefile.am): Likewise.
21426
21427 2007-02-01  Bruno Haible  <bruno@clisp.org>
21428
21429         * lib/string_.h (GL_LINK_WARNING): New macro.
21430         (strcasecmp, strstr, strcasestr): If provided by the system,
21431         conditionally define as a macro that leads to a warning instead of to
21432         an error.
21433         (strncasecmp): Conditionally define as a macro that leads to a warning.
21434
21435 2007-02-01  Karl Berry  <karl@gnu.org>
21436
21437         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
21438
21439 2007-02-01  Bruno Haible  <bruno@clisp.org>
21440
21441         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
21442         renamings.
21443
21444 2007-02-01  Eric Blake  <ebb9@byu.net>
21445
21446         * modules/regex (Depends-on): Revert dependence on mempcpy.
21447         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
21448         module's definition of mempcpy.
21449         Reported by Paul Eggert.
21450
21451 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
21452
21453         * lib/string_.h: If the gnulib module XYZ is not present, undefine
21454         the symbol XYZ before redefining it.  This fixes a problem with
21455         programs that don't use XYZ, when compiled on systems that define
21456         XYZ to something else.
21457
21458 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
21461         occurs when "mkdir -m foo" creates a setgid directory that is (1)
21462         writeable to group or other and (2) is intended to have a special
21463         mode bit that is set or cleared.  In such a case, the directory
21464         should be neither group- nor other-writeable until the special
21465         mode bits are right.
21466
21467 2007-01-31  Eric Blake  <ebb9@byu.net>
21468
21469         * modules/mountlist (Depends-on): Add strstr.
21470
21471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
21472         bug.
21473         * modules/string (Makefile.am): Remove redundant replacement.
21474         * modules/regex (Depends-on): Add mempcpy.
21475
21476 2007-01-31  Bruno Haible  <bruno@clisp.org>
21477
21478         New module description field 'Link'.
21479         * gnulib-tool (func_usage): Document --extract-link-directive.
21480         (sed_extract_prog): Recognize 'Link' directive.
21481         (func_get_link_directive): New function.
21482         (func_import): Show summary of link directives.
21483         Handle --extract-link-directive option.
21484         * modules/acl (Link): New section.
21485         * modules/clock-time (Link): New section.
21486         * modules/euidaccess (Link): New section.
21487         * modules/gettext (Link): New section.
21488         * modules/iconv (Link): New section.
21489         * modules/lock (Link): New section.
21490         * modules/nanosleep (Link): New section.
21491         * modules/readline (Link): New section.
21492
21493 2007-01-27  Bruno Haible  <bruno@clisp.org>
21494
21495         Enforce the use of gnulib modules for unportable <string.h> functions.
21496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
21497         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
21498         (gl_HEADER_STRING_H_BODY): Require it.
21499         * lib/string_.h: If the gnulib module XYZ is not present, redefine
21500         the symbol XYZ to one that gives a link error.
21501         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
21502         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
21503         * modules/mempcpy (configure.ac): Likewise.
21504         * modules/memrchr (configure.ac): Likewise.
21505         * modules/stpcpy (configure.ac): Likewise.
21506         * modules/stpncpy (configure.ac): Likewise.
21507         * modules/strcase (configure.ac): Likewise.
21508         * modules/strcasestr (configure.ac): Likewise.
21509         * modules/strchrnul (configure.ac): Likewise.
21510         * modules/strdup (configure.ac): Likewise.
21511         * modules/strndup (configure.ac): Likewise.
21512         * modules/strnlen (configure.ac): Likewise.
21513         * modules/strpbrk (configure.ac): Likewise.
21514         * modules/strsep (configure.ac): Likewise.
21515         * modules/strstr (configure.ac): Likewise.
21516         * modules/strtok_r (configure.ac): Likewise.
21517
21518 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
21519
21520         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
21521
21522 2007-01-30  Jim Meyering  <jim@meyering.net>
21523
21524         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
21525
21526 2007-01-29  Bruno Haible  <bruno@clisp.org>
21527
21528         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
21529         * lib/execute.c: Likewise.
21530         * lib/pipe.c: Likewise.
21531         * lib/printf-args.h: Likewise.
21532         * lib/printf-args.c: Likewise.
21533         * lib/printf-parse.c: Likewise.
21534         * lib/vasnprintf.c: Likewise.
21535
21536 2007-01-29  Eric Blake  <ebb9@byu.net>
21537
21538         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
21539         declaration.
21540
21541 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         * lib/strptime.h (strptime): Use 'restrict' for args where
21544         POSIX requires this.
21545         * lib/strptime.c (strptime): Likewise.
21546         Change license notice from LGPL to GPL, since gnulib-tool will
21547         change this as needed.
21548         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
21549         defined.
21550         Include "strptime.h" first, to check interface.
21551         Do not #undef _LIBC and _NL_CURRENT.
21552         Do not include <stdlib.h>; no longer needed.
21553         Include "time_r.h" and declare ptime_locale_status
21554         only if _LIBC is not defined.
21555         (__P): Remove unused macro.
21556         (match_string): Bring back glibc version, but use it only if _LIBC
21557         is defined.
21558         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
21559         Remove unnecessary assertion and abort() call.
21560         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
21561         * m4/strptime.m4: Fix serial number comment.
21562         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
21563         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
21564         (Depends-on): Add time_r.
21565
21566 2007-01-29  Bruno Haible  <bruno@clisp.org>
21567
21568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21569         strptime.
21570         * modules/strptime (Depends-on): Add stdbool.
21571         * lib/strptime.h: Include <time.h> always. Add comments.
21572
21573 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21574
21575         * modules/strptime: New file.
21576         * lib/strptime.h: New file.
21577         * lib/strptime.c: New file.
21578         * m4/strptime.m4: New file.
21579
21580 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21581
21582         * MODULES.html.sh: New module mpsort.
21583         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
21584
21585         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
21586         a circularity problem with HP-UX ia64 reported by Bob Proulx in
21587         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
21588         All uses changed.
21589         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
21590         All uses changed.
21591         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
21592         to _Restrict_.
21593         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
21594         the parameter matches the prototype.
21595
21596 2007-01-28  Jim Meyering  <jim@meyering.net>
21597
21598         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
21599         sys/time.h here, reverting that part of the previous patch:
21600         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
21601
21602 2007-01-28  Bruno Haible  <bruno@clisp.org>
21603
21604         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
21605         value of $(SYS_TIME_H).
21606         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
21607         remove it conditionally, too. [added by Jim Meyering]
21608         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
21609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
21610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
21611         GETTIMEOFDAY_REPLACEMENT to 1.
21612
21613 2007-01-28  Bruno Haible  <bruno@clisp.org>
21614
21615         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
21616         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
21617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
21618         Set UNISTD_H instead of UNISTD_H2.
21619         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
21620
21621 2007-01-28  Bruno Haible  <bruno@clisp.org>
21622
21623         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
21624         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
21625
21626 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21627
21628         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
21629         (func_create_testdir): Ensure C locale for `grep' and `tr'
21630         character ranges.
21631         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
21632         ACLOCAL_AMFLAGS parsing state machine.
21633
21634 2007-01-27  Bruno Haible  <bruno@clisp.org>
21635
21636         * modules/unistr/base: Update.
21637
21638 2007-01-27  Bruno Haible  <bruno@clisp.org>
21639
21640         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
21641         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
21642         * modules/unistr/u32-mbtouc-unsafe: Renamed from
21643         modules/unistr/u32-mbtouc.
21644         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
21645         * lib/unistr.h: Update.
21646         * lib/linebreak.c: Update.
21647         * modules/unistr/u32-mbtouc: Renamed from
21648         modules/unistr/u32-mbtouc-safe.
21649         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
21650         * lib/unistr.h: Update.
21651         * lib/unistr/u32-to-u8.c: Update.
21652         * lib/unistr/u32-to-u16.c: Update.
21653
21654 2007-01-27  Bruno Haible  <bruno@clisp.org>
21655
21656         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
21657         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
21658         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
21659         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
21660         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
21661         * modules/unistr/u16-mbtouc-unsafe: Renamed from
21662         modules/unistr/u16-mbtouc.
21663         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
21664         * lib/unistr.h: Update.
21665         * lib/linebreak.c: Update.
21666         * modules/linebreak: Update.
21667         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
21668         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
21669         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
21670         * modules/unistr/u16-mbtouc: Renamed from
21671         modules/unistr/u16-mbtouc-safe.
21672         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
21673         * lib/unistr.h: Update.
21674         * lib/unistr/u16-to-u8.c: Update.
21675         * modules/unistr/u16-to-u8: Update.
21676         * lib/unistr/u16-to-u32.c: Update.
21677         * modules/unistr/u16-to-u32: Update.
21678
21679 2007-01-27  Bruno Haible  <bruno@clisp.org>
21680
21681         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
21682         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
21683         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
21684         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
21685         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
21686         * modules/unistr/u8-mbtouc-unsafe: Renamed from
21687         modules/unistr/u8-mbtouc.
21688         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
21689         * lib/unistr.h: Update.
21690         * lib/striconveh.c: Update.
21691         * modules/striconveh: Update.
21692         * lib/linebreak.c: Update.
21693         * modules/linebreak: Update.
21694         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
21695         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
21696         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
21697         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
21698         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
21699         * lib/unistr.h: Update.
21700         * lib/striconveh.c: Update.
21701         * modules/striconveh: Update.
21702         * lib/unistr/u8-to-u16.c: Update.
21703         * modules/unistr/u8-to-u16: Update.
21704         * lib/unistr/u8-to-u32.c: Update.
21705         * modules/unistr/u8-to-u32: Update.
21706
21707 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21708
21709         Sync from Libtool.
21710         * lib/argz.c: Do not include strings.h nor memory.h, include
21711         string.h unconditionally.  Patch by Simon Josefsson.
21712
21713 2007-01-27  Bruno Haible  <bruno@clisp.org>
21714
21715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
21716         from gl_HEADER_STRING_H_BODY.
21717         (gl_HEADER_STRING_H_BODY): Require it.
21718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
21719         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
21720         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
21721         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
21722         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21723         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
21724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21725         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
21726         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
21727         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21728         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
21729         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
21730         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
21731         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21732         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21733
21734 2007-01-27  Bruno Haible  <bruno@clisp.org>
21735
21736         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
21737         check_PROGRAMS into noinst_PROGRAMS.
21738         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
21739         check_PROGRAMS in this case.
21740         (func_import): Set for_test to false.
21741         (func_create_testdir): Set for_test to true.
21742
21743 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21744             Bruno Haible  <bruno@clisp.org>
21745
21746         * modules/strcasestr (Files): Remove lib/strcasestr.h.
21747         (Depends-on): Add string.
21748         (Includes): Use <string.h> instead of strcasestr.h.
21749         * modules/string (Makefile.am): Also substitute the value of
21750         REPLACE_STRCASESTR.
21751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
21752         assume strcasestr is declared in <string.h> not <strings.h>. Also
21753         set REPLACE_STRCASESTR.
21754         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
21755         REPLACE_STRCASESTR.
21756         * lib/strcasestr.h: Remove file.
21757         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
21758         * lib/string_.h (strcasestr): New declaration.
21759
21760 2007-01-27  Bruno Haible  <bruno@clisp.org>
21761
21762         * lib/string_.h: Use 'extern'.
21763
21764 2007-01-27  Jim Meyering  <jim@meyering.net>
21765
21766         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
21767         of set-but-not-used local, "q".
21768
21769         * lib/mempcpy.c: Include <config.h> before <string.h>.
21770         This fixes a compilation error on HP-UX, due to the system's
21771         "restrict"-using mempcpy prototype.
21772
21773 2007-01-26  Bruno Haible  <bruno@clisp.org>
21774
21775         Small optimization.
21776         * lib/javacomp.c: Include c-strstr.h.
21777          (is_envjavac_gcj): Use c_strstr instead of strstr.
21778         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
21779
21780 2007-01-26  Bruno Haible  <bruno@clisp.org>
21781
21782         * MODULES.html.sh (Unicode string functions): Add the new modules.
21783
21784         * modules/uniconv/u32-strconv-to-locale: New file.
21785         * lib/uniconv/u32-strconv-to-locale.c: New file.
21786
21787         * modules/uniconv/u16-strconv-to-locale: New file.
21788         * lib/uniconv/u16-strconv-to-locale.c: New file.
21789
21790         * modules/uniconv/u8-strconv-to-locale: New file.
21791         * lib/uniconv/u8-strconv-to-locale.c: New file.
21792
21793         * modules/uniconv/u32-strconv-from-locale: New file.
21794         * lib/uniconv/u32-strconv-from-locale.c: New file.
21795
21796         * modules/uniconv/u16-strconv-from-locale: New file.
21797         * lib/uniconv/u16-strconv-from-locale.c: New file.
21798
21799         * modules/uniconv/u8-strconv-from-locale: New file.
21800         * lib/uniconv/u8-strconv-from-locale.c: New file.
21801
21802         * modules/uniconv/u32-strconv-to-enc: New file.
21803         * lib/uniconv/u32-strconv-to-enc.c: New file.
21804         * modules/uniconv/u32-strconv-to-enc-tests: New file.
21805         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
21806
21807         * modules/uniconv/u16-strconv-to-enc: New file.
21808         * lib/uniconv/u16-strconv-to-enc.c: New file.
21809         * lib/uniconv/u-strconv-to-enc.h: New file.
21810         * modules/uniconv/u16-strconv-to-enc-tests: New file.
21811         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
21812
21813         * modules/uniconv/u8-strconv-to-enc: New file.
21814         * lib/uniconv/u8-strconv-to-enc.c: New file.
21815         * modules/uniconv/u8-strconv-to-enc-tests: New file.
21816         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
21817
21818         * modules/uniconv/u32-strconv-from-enc: New file.
21819         * lib/uniconv/u32-strconv-from-enc.c: New file.
21820         * modules/uniconv/u32-strconv-from-enc-tests: New file.
21821         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
21822
21823         * modules/uniconv/u16-strconv-from-enc: New file.
21824         * lib/uniconv/u16-strconv-from-enc.c: New file.
21825         * modules/uniconv/u16-strconv-from-enc-tests: New file.
21826         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
21827
21828         * modules/uniconv/u8-strconv-from-enc: New file.
21829         * lib/uniconv/u8-strconv-from-enc.c: New file.
21830         * lib/uniconv/u-strconv-from-enc.h: New file.
21831         * modules/uniconv/u8-strconv-from-enc-tests: New file.
21832         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
21833
21834         * modules/uniconv/u32-conv-from-enc: New file.
21835         * lib/uniconv/u32-conv-from-enc.c: New file.
21836         * modules/uniconv/u32-conv-from-enc-tests: New file.
21837         * tests/uniconv/test-u32-conv-from-enc.c: New file.
21838
21839         * modules/uniconv/u16-conv-from-enc: New file.
21840         * lib/uniconv/u16-conv-from-enc.c: New file.
21841         * lib/uniconv/u-conv-from-enc.h: New file.
21842         * modules/uniconv/u16-conv-from-enc-tests: New file.
21843         * tests/uniconv/test-u16-conv-from-enc.c: New file.
21844
21845         * modules/uniconv/u8-conv-from-enc: New file.
21846         * lib/uniconv/u8-conv-from-enc.c: New file.
21847         * modules/uniconv/u8-conv-from-enc-tests: New file.
21848         * tests/uniconv/test-u8-conv-from-enc.c: New file.
21849
21850         * modules/uniconv/base: New file.
21851         * lib/uniconv.h: New file.
21852
21853 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21854
21855         * doc/gnulib-tool.texi (Initial import): Update to match current
21856         behavior with strdup module.
21857         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
21858         * lib/memmem.h: Remove; all uses removed.  This is now done
21859         by <string.h>.
21860         * lib/mempcpy.h: Likewise.
21861         * lib/memrchr.h: Likewise.
21862         * lib/stpcpy.h: Likewise.
21863         * lib/stpncpy.h: Likewise.
21864         * lib/strcase.h: Likewise.
21865         * lib/strchrnul.h: Likewise.
21866         * lib/strdup.h: Likewise.
21867         * lib/strndup.h: Likewise.
21868         * lib/strnlen.h: Likewise.
21869         * lib/strpbrk.h: Likewise.
21870         * lib/strsep.h: Likewise.
21871         * lib/strstr.h: Likewise.
21872         * lib/strtok_r.h: Likewise.
21873         * lib/string_.h: New file.
21874         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
21875         Rely on <string.h> instead.
21876         * lib/canon-host.c: Likewise.
21877         * lib/chdir-long.c: Likewise.
21878         * lib/concatpath.c: Likewise.
21879         * lib/exclude.c: Likewise.
21880         * lib/fchdir.c: Likewise.
21881         * lib/getaddrinfo.c: Likewise.
21882         * lib/getcwd.c: Likewise.
21883         * lib/getsubopt.c: Likewise.
21884         * lib/glob.c: Likewise.
21885         * lib/hard-locale.c: Likewise.
21886         * lib/iconvme.c: Likewise.
21887         * lib/javacomp.c: Likewise.
21888         * lib/mempcpy.c: Likewise.
21889         * lib/memrchr.c: Likewise.
21890         * lib/regex_internal.h: Likewise.
21891         * lib/stpncpy.c: Likewise.
21892         * lib/strcasecmp.c: Likewise.
21893         * lib/strchrnul.c: Likewise.
21894         * lib/strdup.c: Likewise.
21895         * lib/striconv.c: Likewise.
21896         * lib/striconveh.c: Likewise.
21897         * lib/striconveha.c: Likewise.
21898         * lib/strncasecmp.c: Likewise.
21899         * lib/strndup.c: Likewise.
21900         * lib/strnlen.c: Likewise.
21901         * lib/strsep.c: Likewise.
21902         * lib/strstr.c: Likewise.
21903         * lib/strtok_r.c: Likewise.
21904         * lib/userspec.c: Likewise.
21905         * lib/w32spawn.h: Likewise.
21906         * lib/xstrndup.c: Likewise.
21907         * lib/mountlist.c (strstr): Remove decl.
21908         * m4/string_h.m4: New file.
21909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
21910         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
21911         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
21912         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
21913         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
21914         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
21915         Set REPLACE_STRCASECMP if necessary.
21916         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
21917         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
21918         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
21919         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
21920         HAVE_DECL_STRDUP if necessary.
21921         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
21922         since gl_FUNC_STRNDUP does that now.
21923         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
21924         Check for decl here...
21925         (gl_PREREQ_STRNLEN): ... not here.
21926         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
21927         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
21928         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
21929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
21930         necessary.
21931         * modules/string: New file.
21932         * modules/memmem (Files): Remove special-purpose include file.
21933         (Depends-on): Add string.
21934         (Include): Include <string.h>, not the removed file.
21935         * modules/mempcpy: Likewise.
21936         * modules/memrchr: Likewise.
21937         * modules/stpcpy: Likewise.
21938         * modules/stpncpy: Likewise.
21939         * modules/strcase: Likewise.
21940         * modules/strchrnul: Likewise.
21941         * modules/strdup: Likewise.
21942         * modules/strndup: Likewise.
21943         * modules/strnlen: Likewise.
21944         * modules/strpbrk: Likewise.
21945         * modules/strsep: Likewise.
21946         * modules/strstr: Likewise.
21947         * modules/strtok_r: Likewise.
21948         * tests/test-dirname.c: Don't include "strdup.h", since
21949         <string.h> now suffices.
21950         * tests/test-memmem.c: Don't include "memmem.h", since
21951         <string.h> now suffices.
21952
21953 2007-01-25  Bruno Haible  <bruno@clisp.org>
21954
21955         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
21956         *resultp is 0.
21957
21958         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
21959         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
21960         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
21961         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
21962
21963         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
21964         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
21965         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
21966         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
21967         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
21968         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
21969
21970 2007-01-24  Bruno Haible  <bruno@clisp.org>
21971
21972         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
21973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
21974         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
21975         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
21976         gl_FUNC_FTS_CORE.
21977         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
21978         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
21979         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21980         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
21981         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
21982         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
21983         gl_FUNC_FCHOWNAT.
21984         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
21985         gl_FUNC_STRFTIME.
21986         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
21987         Reported by Ralf Wildenhues.
21988
21989 2007-01-24  Bruno Haible  <bruno@clisp.org>
21990
21991         Drop AC_REQUIRE calls that are redundant with the module dependencies.
21992         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
21993         gl_GETADDRINFO.
21994         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
21995         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
21996         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
21997
21998 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
21999
22000         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
22001         Don't use 'exit'; just return from 'main'.
22002         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
22003
22004         * lib/fnmatch_.h: Readjust white space and comments to match
22005         glibc, to avoid spurious diffs.
22006
22007 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22008
22009         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
22010         2004-12-01 change by Jakub Jelinek, since this code won't compile
22011         if !LIBC.  Problem reported by Bob Proulx.
22012
22013 2007-01-23  Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/striconveh.c: Include c-strcaseeq.h.
22016         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
22017         * modules/striconveh (Depends-on): Add c-strcaseeq.
22018
22019 2007-01-23  Bruno Haible  <bruno@clisp.org>
22020
22021         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
22022
22023         * modules/c-strcaseeq: New file.
22024         * lib/c-strcaseeq.h: New file.
22025
22026         * modules/streq: New file.
22027         * lib/streq.h: New file.
22028
22029 2007-01-23  Bruno Haible  <bruno@clisp.org>
22030
22031         * modules/striconveha-tests: New file.
22032         * tests/test-striconveha.c: New file.
22033
22034         * lib/striconveha.h: Include <stdbool.h>.
22035         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
22036         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
22037         (mem_iconveha_notranslit): Renamed from mem_iconveha.
22038         (mem_iconveha): New function.
22039         (str_iconveha_notranslit): Renamed from str_iconveha.
22040         (str_iconveha): New function.
22041         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
22042         c-strcase.
22043
22044 2007-01-23  Bruno Haible  <bruno@clisp.org>
22045
22046         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
22047         encodings without forgiving before trying any encoding with handler.
22048         (str_iconveha): Try all encodings without forgiving before trying any
22049         encoding with handler.
22050
22051 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22052
22053         Import the following changes from libc.
22054
22055         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
22056
22057         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
22058
22059         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
22060
22061         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
22062         normal_bracket label.
22063
22064         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
22065
22066         [BZ #361]
22067         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
22068         to normal_bracket after fetching the next character.
22069
22070 2007-01-22  Bruno Haible  <bruno@clisp.org>
22071
22072         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
22073         argument.
22074         * lib/striconveh.c (iconv_carefully_1): New function.
22075         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
22076         argument.
22077         (str_cd_iconveh): Update.
22078         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
22079         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
22080         * tests/test-striconveh.c (MAGIC): New macro.
22081         (new_offsets): New function.
22082         (main): Test call with and without offsets.
22083
22084 2007-01-22  Bruno Haible  <bruno@clisp.org>
22085
22086         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
22087         * modules/sys_select (Makefile.am): Likewise.
22088         * modules/sys_socket (Makefile.am): Likewise.
22089         * modules/sys_time (Makefile.am): Likewise.
22090
22091 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22092
22093         * modules/gettimeofday (License): Change from GPL to LGPL, since
22094         gettimeofday is a library function.
22095
22096 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22097
22098         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
22099
22100 2007-01-21  Bruno Haible  <bruno@clisp.org>
22101
22102         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
22103
22104 2007-01-21  Bruno Haible  <bruno@clisp.org>
22105
22106         * modules/striconveha: New file.
22107         * lib/striconveha.h: New file.
22108         * lib/striconveha.c: New file.
22109         * MODULES.html.sh (Internationalization functions): Add striconveha.
22110         * lib/striconv.c (str_iconv): Optimize the case of an empty input
22111         string.
22112         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
22113
22114 2007-01-21  Bruno Haible  <bruno@clisp.org>
22115
22116         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
22117         * lib/striconveh.c (str_iconveh): Likewise.
22118
22119 2007-01-21  Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/striconveh.h (mem_iconveh): New declaration.
22122         * lib/striconveh.c (mem_iconveh): New function.
22123         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
22124
22125 2007-01-21  Bruno Haible  <bruno@clisp.org>
22126
22127         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
22128
22129         * lib/striconveh.h (mem_cd_iconveh): Change specification.
22130         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
22131         original result buffer.
22132         (str_cd_iconveh): Update.
22133         * tests/test-striconveh.c (main): Update.
22134
22135         * lib/striconv.h (mem_cd_iconv): Change specification.
22136         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
22137         result buffer.
22138         (str_cd_iconv): Update.
22139         * tests/test-striconv.c (main): Update.
22140
22141 2007-01-21  Bruno Haible  <bruno@clisp.org>
22142
22143         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
22144
22145 2007-01-20  Jim Meyering  <jim@meyering.net>
22146
22147         * lib/userspec.c (parse_with_separator): If a user or group string
22148         starts with "+", skip the corresponding name-to-ID look-up, since
22149         such a look-up must fail: user and group names may not include "+".
22150
22151 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22152
22153         * lib/poll.c: Include sys/time.h and time.h unconditionally,
22154         since we now assume the sys_time module.
22155         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
22156         check for sys/time.h; no longer needed.
22157         * modules/poll (Depends-on): Depend on sys_time.
22158
22159 2007-01-18  Bruno Haible  <bruno@clisp.org>
22160
22161         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
22162         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
22163
22164         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
22165         gettimeofday.
22166
22167         * tests/test-gettimeofday.c: Include <time.h>.
22168         (dummy): Remove variable.
22169
22170         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
22171         gl_HEADER_SYS_TIME_H.
22172         (gl_HEADER_SYS_TIME_H): New macro.
22173
22174         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
22175         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
22176         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
22177         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
22178         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
22179         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
22180         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
22181         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
22182         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
22183         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
22184         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
22185
22186         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
22187         last change; it caused a compilation error when cross-compiling to
22188         Cygwin.
22189
22190 2007-01-18  Jim Meyering  <jim@meyering.net>
22191
22192         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
22193         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
22194         than the race-prone "test -d sys || mkdir sys".
22195         (configure.ac): Use AC_PROG_MKDIR_P.
22196         * modules/sys_select: Likewise.
22197         * modules/sys_socket: Likewise.
22198         * modules/sys_time: Likewise.
22199
22200 2007-01-18  Eric Blake  <ebb9@byu.net>
22201
22202         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
22203         replace gettimeofday.
22204         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
22205         name, to avoid infinite recursion.
22206
22207 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
22208
22209         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
22210         module sys_time.
22211         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
22212         assume timespec.h defines struct timeval.
22213         * lib/settime.c: Likewise.
22214         * lib/utimens.c: Likewise.
22215         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
22216         since we now assume the gettimeofday module.
22217         * lib/tempname.c (__gen_tempname): Likewise.
22218         * lib/gettimeofday.h: Remove.
22219         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
22220         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
22221         Include <time.h>, for 'time()'.
22222         (localtime_buffer_addr): Also use this workaround if
22223         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
22224         to simplify the uses.  All uses changed.
22225         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
22226         that #undef is inside {}, and 'const' follows type name consistently.
22227         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
22228         (gettimeofday): Do not use the maximum possible value for
22229         tv->tv_usec, since that might break usages other than ls.c.
22230         Instead, we'll leave ls.c alone.  This undoes today's patch
22231         by Bruno.  Add a compile-time warning for 1s-clock resolution;
22232         we've never observed the problem but might as well keep the
22233         canary.
22234         * lib/nanosleep.c: Include timespec.h first, for interface check.
22235         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
22236         now assume the sys_time module.
22237         * lib/tempname.c: Likewise.
22238         * lib/timespec.h: Likewise.
22239         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
22240         needed.
22241         * lib/strftime.c: Likewise.
22242         * lib/timespec.h: Likewise.
22243         * lib/posixtm.c: Include posixtm.h first, for interface check.
22244         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
22245         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
22246         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
22247         * lib/sys_time_.h: New file.
22248         * lib/timespec.h (struct timespec): Use long int, not long.
22249         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
22250         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
22251         Remove obsolescent call to AC_HEADER_TIME.
22252         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22254         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
22255         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
22256         Likewise.
22257         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22258         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
22259         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
22260         into the sys_time module.  Check for gettimeofday just once.
22261         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
22262         for gettimeofday signature to just check the signature.  Merely
22263         compile it, since linking doesn't test signature.  Improve test for
22264         whether gettimeofday.o is actually needed.
22265         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
22266         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
22267         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
22268         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
22269         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
22270         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
22271         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
22272         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
22273         than worrying about sys/time.h.
22274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22275         Don't bother worrying about TIME_WITH_SYS_TIME.
22276         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
22277         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
22278         * m4/sys_time_h.m4: New file.
22279         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
22280         Don't include sys/time.h.  Return from main rather than exiting.
22281         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
22282         all uses changed.
22283         * modules/gethrxtime (Depends-on): Add sys_time.
22284         * modules/gettime (Depends-on): Likewise.
22285         * modules/gettimeofday (Depends-on): Likewise.
22286         * modules/nanosleep (Depends-on): Likewise.
22287         * modules/settime (Depends-on): Likewise.
22288         * modules/tempname (Depends-on): Likewise.
22289         * modules/utimens (Depends-on): Likewise.
22290         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
22291         (Include:) Change back to <sys/time.h>.
22292         (Maintainer:) Add self.
22293         * modules/sys_time: New file.
22294         * modules/tempname (Depends-on): Add gettimeofday.
22295         * tests/test-gettimeofday.c: Include <sys/time.h>
22296         rather than gettimeofday.h.
22297
22298 2007-01-17  Bruno Haible  <bruno@clisp.org>
22299
22300         * gnulib-tool (func_get_license): Revert last patch. Instead, let
22301         the license default to GPL.
22302         (func_create_testdir): Don't complain if a module is LGPL and its
22303         tests module depends on GPLed modules.
22304
22305 2007-01-17  Bruno Haible  <bruno@clisp.org>
22306
22307         * lib/gettimeofday.c (gettimeofday): Add code for the case
22308         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
22309         maximum possible value for tv->tv_usec, rather than the minimum one.
22310
22311 2005-10-08  Martin Lambers  <marlam@marlam.de>
22312 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22313 2007-01-16  Bruno Haible  <bruno@clisp.org>
22314
22315         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
22316         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
22317         gl_FUNC_GETTIMEOFDAY.
22318         (Include): Add gettimeofday.h.
22319         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
22320         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
22321         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
22322         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
22323         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
22324         * lib/gettimeofday.h: New file.
22325         * lib/gettimeofday.c: Include <sys/timeb.h>.
22326         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
22327         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
22328         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
22329         fall back on time().
22330
22331         * tests/test-gettimeofday.c: New file.
22332         * modules/gettimeofday-tests: New file.
22333
22334 2007-01-16  Eric Blake  <ebb9@byu.net>
22335
22336         * modules/fnmatch (Depends-on): Depend on wchar.
22337         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
22338         * m4/fnmatch.m4: Likewise.
22339         * modules/mbchar (Makefile.am): Assume <wchar.h>.
22340         * m4/mbchar.m4: Likewise.
22341         * modules/mbswidth (Depends-on): Depend on wchar.
22342         * lib/mbswidth.c: Assume <wchar.h>.
22343         * m4/mbswidth.m4: Likewise.
22344         * modules/quotearg (Depends-on): Depend on wchar.
22345         * lib/quotearg.c: Assume <wchar.h>.
22346         * m4/quotearg.m4: Likewise.
22347         * modules/regex (Depends-on): Depend on wchar.
22348         * lib/regex_internal.h: Assume <wchar.h>.
22349         * m4/regex.m4: Likewise.
22350         * modules/stdint (Depends-on): Depend on wchar.
22351         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
22352         * m4/stdint.m4: Likewise.
22353         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
22354         * modules/strftime (Depends-on): Depend on wchar.
22355         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
22356         * modules/strtol (Depends-on): Depend on wchar.
22357         * lib/strtol.c: Assume <wchar.h>.
22358         * modules/wcwidth (Depends-on): Depend on wchar.
22359         * lib/wcwidth.h: Assume <wchar.h>.
22360         * m4/wcwidth.m4: Likewise.
22361
22362 2007-01-16  Bruno Haible  <bruno@clisp.org>
22363
22364         * modules/csharpexec-script: New, created from...
22365         * modules/csharpexec: ... this.
22366
22367 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
22368
22369         * modules/javaexec-script: New, created from...
22370         * modules/javaexec: ... this.
22371
22372 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22373
22374         * modules/poll (Dependencies): Add sys_select.
22375
22376 2007-01-15  Jim Meyering  <jim@meyering.net>
22377
22378         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
22379         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
22380         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
22381         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
22382
22383 2007-01-15  Bruno Haible  <bruno@clisp.org>
22384
22385         * modules/striconveh: New file.
22386         * lib/striconveh.h: New file.
22387         * lib/striconveh.c: New file.
22388         * MODULES.html.sh (Internationalization functions): Add striconveh.
22389
22390         * modules/striconveh-tests: New file.
22391         * tests/test-striconveh.c: New file.
22392
22393 2007-01-15  Bruno Haible  <bruno@clisp.org>
22394
22395         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
22396         not from GNU libiconv or GNU libc.
22397
22398 2007-01-15  Bruno Haible  <bruno@clisp.org>
22399
22400         * doc/gnulib-intro.texi (Copyright): Explain the different license
22401         terms for module descriptions, autoconf macros, tests, documentation.
22402
22403 2007-01-14  Bruno Haible  <bruno@clisp.org>
22404
22405         * modules/striconv-tests: New file.
22406         * tests/test-striconv.c: New file.
22407
22408 2007-01-14  Bruno Haible  <bruno@clisp.org>
22409
22410         * modules/iconv-tests: New file.
22411         * tests/test-iconv.c: New file.
22412
22413 2007-01-14  Bruno Haible  <bruno@clisp.org>
22414
22415         * gnulib-tool (func_get_license): For test modules, use the license of
22416         the main module.
22417
22418 2007-01-14  Bruno Haible  <bruno@clisp.org>
22419
22420         * modules/iconv (Include): Clarify that <iconv.h> can only be included
22421         if iconv is found to exist.
22422
22423 2007-01-14  Bruno Haible  <bruno@clisp.org>
22424
22425         * modules/c-ctype-tests: New file.
22426         * tests/test-c-ctype.c: New file.
22427
22428 2007-01-14  Bruno Haible  <bruno@clisp.org>
22429
22430         * modules/binary-io-tests: New file.
22431         * tests/test-binary-io.sh: New file.
22432         * tests/test-binary-io.c: New file.
22433
22434 2007-01-14  Bruno Haible  <bruno@clisp.org>
22435
22436         * modules/array-oset-tests: New file.
22437         * tests/test-array_oset.c: New file.
22438
22439 2007-01-14  Bruno Haible  <bruno@clisp.org>
22440
22441         * modules/array-list-tests: New file.
22442         * tests/test-array_list.c: New file.
22443
22444 2007-01-14  Bruno Haible  <bruno@clisp.org>
22445
22446         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
22447         and make.
22448         Reported by Simon Josefsson in
22449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
22450
22451 2007-01-14  Bruno Haible  <bruno@clisp.org>
22452
22453         * modules/allocsa-tests: New file.
22454         * tests/test-allocsa.c: New file.
22455
22456 2007-01-14  Bruno Haible  <bruno@clisp.org>
22457
22458         * modules/fchdir (Depends-on): Add absolute-header.
22459         * modules/unistd (Depends-on): Likewise.
22460
22461 2006-12-30  Bruno Haible  <bruno@clisp.org>
22462
22463         * modules/fchdir: New file.
22464         * modules/unistd (Files): Add lib/unistd_.h.
22465         (Makefile.am): Generate unistd.h from unistd_.h.
22466         * lib/fchdir.c: New file.
22467         * lib/dirent_.h: New file.
22468         * lib/unistd_.h: New file.
22469         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
22470         * m4/fchdir.m4: New file.
22471         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
22472         (gl_HEADER_UNISTD): Invoke it.
22473         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
22474         function.
22475         * lib/backupfile.c (opendir, closedir): Undefine.
22476         * lib/chown.c (open, close): Undefine.
22477         * lib/clean-temp.c (open, close): Undefine.
22478         * lib/copy-file.c (open, close): Undefine.
22479         * lib/execute.c (open, close): Undefine.
22480         * lib/fsusage.c (open, close): Undefine.
22481         * lib/gc-gnulib.c (open, close): Undefine.
22482         * lib/getcwd.c (opendir, closedir): Undefine.
22483         * lib/glob.c (opendir, closedir): Undefine.
22484         * lib/javacomp.c (open, close): Undefine.
22485         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
22486         * lib/openat-proc.c (open, close): Undefine.
22487         * lib/pagealign_alloc.c (open, close): Undefine.
22488         * lib/pipe.c (open, close): Undefine.
22489         * lib/progreloc.c (open, close): Undefine.
22490         * lib/savedir.c (opendir, closedir): Undefine.
22491         * lib/utime.c (open, close): Undefine.
22492         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
22493
22494 2007-01-10  Bruno Haible  <bruno@clisp.org>
22495
22496         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
22497
22498 2007-01-12  Eric Blake  <ebb9@byu.net>
22499
22500         Provide a robust <wchar.h>.  Further simplifications are now
22501         possible in other modules, but not included here.
22502         * modules/wchar: New module.
22503         * m4/wchar.m4: New file.
22504         * lib/wchar_.h: Likewise.
22505         * modules/mbchar (Depends-on): Depend on wchar, as the first use
22506         of the new module.
22507         * MODULES.html.sh (Extended multibyte and wide character utilities):
22508         New section.
22509
22510 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
22511
22512         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
22513         to a reasonable default for memory allocation.
22514         (xreadlink): Don't allocate a huge buffer, to work around a buggy
22515         file system that reports garbage st_size values for symlinks.
22516         Problem reported by Liyang Hu.
22517
22518 2007-01-11  Simon Josefsson  <simon@josefsson.org>
22519
22520         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
22521         Emacs .#* auto-save files).
22522
22523 2007-01-11  Bruno Haible  <bruno@clisp.org>
22524
22525         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
22526         directory.
22527
22528 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22529
22530         Use @...@ consistently in lib/wctype_.h.
22531         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
22532         on it being set to 1 or 0.
22533         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
22534         go back to AC_SUBSTing it.
22535         * modules/wctype (Makefile.am): Undo previous change.
22536
22537 2007-01-10  Eric Blake  <ebb9@byu.net>
22538
22539         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
22540         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
22541         * modules/wctype (Makefile.am): Likewise.
22542         Reported by Chris McGuire.
22543
22544 2007-01-10  Jim Meyering  <jim@meyering.net>
22545
22546         fts.c: a small readability/maintainability improvement
22547         * lib/fts.c (fts_read): Make this code slightly more readable and
22548         maintainable by hoisting the "sp->fts_cur = p" assignments to
22549         immediately follow the statements that set P.  Derived from
22550         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
22551
22552 2007-01-10  Eric Blake  <ebb9@byu.net>
22553
22554         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
22555         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
22556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22557         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22558         Reported by Chris McGuire.
22559
22560 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22561
22562         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
22563         in sed script.
22564
22565 2007-01-09  Bruno Haible  <bruno@clisp.org>
22566
22567         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
22568         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
22569         variables.
22570         (func_module): Use them.
22571
22572 2007-01-09  Bruno Haible  <bruno@clisp.org>
22573
22574         * modules/unistr/base: New file.
22575         * lib/unistr.h: New file.
22576
22577         * modules/unistr/u8-to-u16: New file.
22578         * lib/unistr/u8-to-u16.c: New file.
22579
22580         * modules/unistr/u8-to-u32: New file.
22581         * lib/unistr/u8-to-u32.c: New file.
22582
22583         * modules/unistr/u16-to-u8: New file.
22584         * lib/unistr/u16-to-u8.c: New file.
22585
22586         * modules/unistr/u16-to-u32: New file.
22587         * lib/unistr/u16-to-u32.c: New file.
22588
22589         * modules/unistr/u32-to-u8: New file.
22590         * lib/unistr/u32-to-u8.c: New file.
22591
22592         * modules/unistr/u32-to-u16: New file.
22593         * lib/unistr/u32-to-u16.c: New file.
22594
22595         * modules/unistr/u8-check: New file.
22596         * modules/unistr/u16-check: New file.
22597         * modules/unistr/u32-check: New file.
22598         * lib/unistr/u8-check.c: New file.
22599         * lib/unistr/u16-check.c: New file.
22600         * lib/unistr/u32-check.c: New file.
22601
22602         * modules/unistr/u8-chr: New file.
22603         * modules/unistr/u16-chr: New file.
22604         * modules/unistr/u32-chr: New file.
22605         * lib/unistr/u8-chr.c: New file.
22606         * lib/unistr/u16-chr.c: New file.
22607         * lib/unistr/u32-chr.c: New file.
22608
22609         * modules/unistr/u8-cmp: New file.
22610         * modules/unistr/u16-cmp: New file.
22611         * modules/unistr/u32-cmp: New file.
22612         * lib/unistr/u8-cmp.c: New file.
22613         * lib/unistr/u16-cmp.c: New file.
22614         * lib/unistr/u32-cmp.c: New file.
22615
22616         * modules/unistr/u8-cpy: New file.
22617         * modules/unistr/u16-cpy: New file.
22618         * modules/unistr/u32-cpy: New file.
22619         * lib/unistr/u8-cpy.c: New file.
22620         * lib/unistr/u16-cpy.c: New file.
22621         * lib/unistr/u32-cpy.c: New file.
22622         * lib/unistr/u-cpy.h: New file.
22623
22624         * modules/unistr/u8-cpy-alloc: New file.
22625         * modules/unistr/u16-cpy-alloc: New file.
22626         * modules/unistr/u32-cpy-alloc: New file.
22627         * lib/unistr/u8-cpy-alloc.c: New file.
22628         * lib/unistr/u16-cpy-alloc.c: New file.
22629         * lib/unistr/u32-cpy-alloc.c: New file.
22630         * lib/unistr/u-cpy-alloc.h: New file.
22631
22632         * modules/unistr/u8-endswith: New file.
22633         * modules/unistr/u16-endswith: New file.
22634         * modules/unistr/u32-endswith: New file.
22635         * lib/unistr/u8-endswith.c: New file.
22636         * lib/unistr/u16-endswith.c: New file.
22637         * lib/unistr/u32-endswith.c: New file.
22638         * lib/unistr/u-endswith.h: New file.
22639
22640         * modules/unistr/u8-mblen: New file.
22641         * modules/unistr/u16-mblen: New file.
22642         * modules/unistr/u32-mblen: New file.
22643         * lib/unistr/u8-mblen.c: New file.
22644         * lib/unistr/u16-mblen.c: New file.
22645         * lib/unistr/u32-mblen.c: New file.
22646
22647         * modules/unistr/u8-mbtouc: New file.
22648         * modules/unistr/u16-mbtouc: New file.
22649         * modules/unistr/u32-mbtouc: New file.
22650         * lib/unistr/u8-mbtouc.c: New file.
22651         * lib/unistr/u16-mbtouc.c: New file.
22652         * lib/unistr/u32-mbtouc.c: New file.
22653
22654         * modules/unistr/u8-mbtouc-safe: New file.
22655         * modules/unistr/u16-mbtouc-safe: New file.
22656         * modules/unistr/u32-mbtouc-safe: New file.
22657         * lib/unistr/u8-mbtouc-safe.c: New file.
22658         * lib/unistr/u16-mbtouc-safe.c: New file.
22659         * lib/unistr/u32-mbtouc-safe.c: New file.
22660
22661         * modules/unistr/u8-move: New file.
22662         * modules/unistr/u16-move: New file.
22663         * modules/unistr/u32-move: New file.
22664         * lib/unistr/u8-move.c: New file.
22665         * lib/unistr/u16-move.c: New file.
22666         * lib/unistr/u32-move.c: New file.
22667         * lib/unistr/u-move.h: New file.
22668
22669         * modules/unistr/u8-next: New file.
22670         * modules/unistr/u16-next: New file.
22671         * modules/unistr/u32-next: New file.
22672         * lib/unistr/u8-next.c: New file.
22673         * lib/unistr/u16-next.c: New file.
22674         * lib/unistr/u32-next.c: New file.
22675
22676         * modules/unistr/u8-prev: New file.
22677         * modules/unistr/u16-prev: New file.
22678         * modules/unistr/u32-prev: New file.
22679         * lib/unistr/u8-prev.c: New file.
22680         * lib/unistr/u16-prev.c: New file.
22681         * lib/unistr/u32-prev.c: New file.
22682
22683         * modules/unistr/u8-set: New file.
22684         * modules/unistr/u16-set: New file.
22685         * modules/unistr/u32-set: New file.
22686         * lib/unistr/u8-set.c: New file.
22687         * lib/unistr/u16-set.c: New file.
22688         * lib/unistr/u32-set.c: New file.
22689         * lib/unistr/u-set.h: New file.
22690
22691         * modules/unistr/u8-startswith: New file.
22692         * modules/unistr/u16-startswith: New file.
22693         * modules/unistr/u32-startswith: New file.
22694         * lib/unistr/u8-startswith.c: New file.
22695         * lib/unistr/u16-startswith.c: New file.
22696         * lib/unistr/u32-startswith.c: New file.
22697         * lib/unistr/u-startswith.h: New file.
22698
22699         * modules/unistr/u8-stpcpy: New file.
22700         * modules/unistr/u16-stpcpy: New file.
22701         * modules/unistr/u32-stpcpy: New file.
22702         * lib/unistr/u8-stpcpy.c: New file.
22703         * lib/unistr/u16-stpcpy.c: New file.
22704         * lib/unistr/u32-stpcpy.c: New file.
22705         * lib/unistr/u-stpcpy.h: New file.
22706
22707         * modules/unistr/u8-stpncpy: New file.
22708         * modules/unistr/u16-stpncpy: New file.
22709         * modules/unistr/u32-stpncpy: New file.
22710         * lib/unistr/u8-stpncpy.c: New file.
22711         * lib/unistr/u16-stpncpy.c: New file.
22712         * lib/unistr/u32-stpncpy.c: New file.
22713         * lib/unistr/u-stpncpy.h: New file.
22714
22715         * modules/unistr/u8-strcat: New file.
22716         * modules/unistr/u16-strcat: New file.
22717         * modules/unistr/u32-strcat: New file.
22718         * lib/unistr/u8-strcat.c: New file.
22719         * lib/unistr/u16-strcat.c: New file.
22720         * lib/unistr/u32-strcat.c: New file.
22721         * lib/unistr/u-strcat.h: New file.
22722
22723         * modules/unistr/u8-strchr: New file.
22724         * modules/unistr/u16-strchr: New file.
22725         * modules/unistr/u32-strchr: New file.
22726         * lib/unistr/u8-strchr.c: New file.
22727         * lib/unistr/u16-strchr.c: New file.
22728         * lib/unistr/u32-strchr.c: New file.
22729
22730         * modules/unistr/u8-strcmp: New file.
22731         * modules/unistr/u16-strcmp: New file.
22732         * modules/unistr/u32-strcmp: New file.
22733         * lib/unistr/u8-strcmp.c: New file.
22734         * lib/unistr/u16-strcmp.c: New file.
22735         * lib/unistr/u32-strcmp.c: New file.
22736
22737         * modules/unistr/u8-strcpy: New file.
22738         * modules/unistr/u16-strcpy: New file.
22739         * modules/unistr/u32-strcpy: New file.
22740         * lib/unistr/u8-strcpy.c: New file.
22741         * lib/unistr/u16-strcpy.c: New file.
22742         * lib/unistr/u32-strcpy.c: New file.
22743         * lib/unistr/u-strcpy.h: New file.
22744
22745         * modules/unistr/u8-strcspn: New file.
22746         * modules/unistr/u16-strcspn: New file.
22747         * modules/unistr/u32-strcspn: New file.
22748         * lib/unistr/u8-strcspn.c: New file.
22749         * lib/unistr/u16-strcspn.c: New file.
22750         * lib/unistr/u32-strcspn.c: New file.
22751         * lib/unistr/u-strcspn.h: New file.
22752
22753         * modules/unistr/u8-strdup: New file.
22754         * modules/unistr/u16-strdup: New file.
22755         * modules/unistr/u32-strdup: New file.
22756         * lib/unistr/u8-strdup.c: New file.
22757         * lib/unistr/u16-strdup.c: New file.
22758         * lib/unistr/u32-strdup.c: New file.
22759         * lib/unistr/u-strdup.h: New file.
22760
22761         * modules/unistr/u8-strlen: New file.
22762         * modules/unistr/u16-strlen: New file.
22763         * modules/unistr/u32-strlen: New file.
22764         * lib/unistr/u8-strlen.c: New file.
22765         * lib/unistr/u16-strlen.c: New file.
22766         * lib/unistr/u32-strlen.c: New file.
22767         * lib/unistr/u-strlen.h: New file.
22768
22769         * modules/unistr/u8-strmblen: New file.
22770         * modules/unistr/u16-strmblen: New file.
22771         * modules/unistr/u32-strmblen: New file.
22772         * lib/unistr/u8-strmblen.c: New file.
22773         * lib/unistr/u16-strmblen.c: New file.
22774         * lib/unistr/u32-strmblen.c: New file.
22775
22776         * modules/unistr/u8-strmbtouc: New file.
22777         * modules/unistr/u16-strmbtouc: New file.
22778         * modules/unistr/u32-strmbtouc: New file.
22779         * lib/unistr/u8-strmbtouc.c: New file.
22780         * lib/unistr/u16-strmbtouc.c: New file.
22781         * lib/unistr/u32-strmbtouc.c: New file.
22782
22783         * modules/unistr/u8-strncat: New file.
22784         * modules/unistr/u16-strncat: New file.
22785         * modules/unistr/u32-strncat: New file.
22786         * lib/unistr/u8-strncat.c: New file.
22787         * lib/unistr/u16-strncat.c: New file.
22788         * lib/unistr/u32-strncat.c: New file.
22789         * lib/unistr/u-strncat.h: New file.
22790
22791         * modules/unistr/u8-strncmp: New file.
22792         * modules/unistr/u16-strncmp: New file.
22793         * modules/unistr/u32-strncmp: New file.
22794         * lib/unistr/u8-strncmp.c: New file.
22795         * lib/unistr/u16-strncmp.c: New file.
22796         * lib/unistr/u32-strncmp.c: New file.
22797
22798         * modules/unistr/u8-strncpy: New file.
22799         * modules/unistr/u16-strncpy: New file.
22800         * modules/unistr/u32-strncpy: New file.
22801         * lib/unistr/u8-strncpy.c: New file.
22802         * lib/unistr/u16-strncpy.c: New file.
22803         * lib/unistr/u32-strncpy.c: New file.
22804         * lib/unistr/u-strncpy.h: New file.
22805
22806         * modules/unistr/u8-strnlen: New file.
22807         * modules/unistr/u16-strnlen: New file.
22808         * modules/unistr/u32-strnlen: New file.
22809         * lib/unistr/u8-strnlen.c: New file.
22810         * lib/unistr/u16-strnlen.c: New file.
22811         * lib/unistr/u32-strnlen.c: New file.
22812         * lib/unistr/u-strnlen.h: New file.
22813
22814         * modules/unistr/u8-strpbrk: New file.
22815         * modules/unistr/u16-strpbrk: New file.
22816         * modules/unistr/u32-strpbrk: New file.
22817         * lib/unistr/u8-strpbrk.c: New file.
22818         * lib/unistr/u16-strpbrk.c: New file.
22819         * lib/unistr/u32-strpbrk.c: New file.
22820         * lib/unistr/u-strpbrk.h: New file.
22821
22822         * modules/unistr/u8-strrchr: New file.
22823         * modules/unistr/u16-strrchr: New file.
22824         * modules/unistr/u32-strrchr: New file.
22825         * lib/unistr/u8-strrchr.c: New file.
22826         * lib/unistr/u16-strrchr.c: New file.
22827         * lib/unistr/u32-strrchr.c: New file.
22828
22829         * modules/unistr/u8-strspn: New file.
22830         * modules/unistr/u16-strspn: New file.
22831         * modules/unistr/u32-strspn: New file.
22832         * lib/unistr/u8-strspn.c: New file.
22833         * lib/unistr/u16-strspn.c: New file.
22834         * lib/unistr/u32-strspn.c: New file.
22835         * lib/unistr/u-strspn.h: New file.
22836
22837         * modules/unistr/u8-strstr: New file.
22838         * modules/unistr/u16-strstr: New file.
22839         * modules/unistr/u32-strstr: New file.
22840         * lib/unistr/u8-strstr.c: New file.
22841         * lib/unistr/u16-strstr.c: New file.
22842         * lib/unistr/u32-strstr.c: New file.
22843         * lib/unistr/u-strstr.h: New file.
22844
22845         * modules/unistr/u8-strtok: New file.
22846         * modules/unistr/u16-strtok: New file.
22847         * modules/unistr/u32-strtok: New file.
22848         * lib/unistr/u8-strtok.c: New file.
22849         * lib/unistr/u16-strtok.c: New file.
22850         * lib/unistr/u32-strtok.c: New file.
22851         * lib/unistr/u-strtok.h: New file.
22852
22853         * modules/unistr/u8-uctomb: New file.
22854         * modules/unistr/u16-uctomb: New file.
22855         * modules/unistr/u32-uctomb: New file.
22856         * lib/unistr/u8-uctomb.c: New file.
22857         * lib/unistr/u16-uctomb.c: New file.
22858         * lib/unistr/u32-uctomb.c: New file.
22859
22860         * MODULES.html.sh (Unicode string functions): Add the new modules.
22861
22862 2007-01-08  Bruno Haible  <bruno@clisp.org>
22863
22864         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
22865         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
22866         subdirectories.
22867
22868 2007-01-08  Karl Berry  <karl@gnu.org>
22869
22870         * doc/error.texi: mention that main() fns must set program_name
22871         when progname is used.
22872
22873 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
22874
22875         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
22876         WCTYPE_H is empty, for the benefit of builds from non-distclean
22877         directories.  Problem reported by Eric Blake in
22878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
22879
22880 2007-01-08  Bruno Haible  <bruno@clisp.org>
22881
22882         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
22883         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
22884         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
22885         PROVIDE_CANONICALIZE_FILENAME_MODE.
22886         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
22887
22888 2007-01-08  Bruno Haible  <bruno@clisp.org>
22889
22890         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
22891         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
22892         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
22893         * lib/fts.c: Likewise.
22894         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
22895
22896 2006-12-25  Bruno Haible  <bruno@clisp.org>
22897
22898         * modules/utf8-ucs4-safe: New file.
22899         * lib/utf8-ucs4-safe.h: New file.
22900         * lib/unistr/utf8-ucs4-safe.c: New file.
22901
22902         * modules/utf16-ucs4-safe: New file.
22903         * lib/utf16-ucs4-safe.h: New file.
22904         * lib/unistr/utf16-ucs4-safe.c: New file.
22905
22906         * MODULES.html.sh (Unicode string functions): Add the new modules.
22907
22908 2007-01-08  Bruno Haible  <bruno@clisp.org>
22909
22910         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
22911         (Depends-on): Add unitypes.
22912         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
22913         (u8_mbtouc_aux): Move out to separate file.
22914         (u8_mbtouc): Use ucs4_t, uint8_t types.
22915         * lib/unistr/utf8-ucs4.c: New file.
22916
22917         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
22918         (Depends-on): Add unitypes.
22919         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
22920         (u16_mbtouc_aux): Move out to separate file.
22921         (u16_mbtouc): Use ucs4_t, uint16_t types.
22922         * lib/unistr/utf16-ucs4.c: New file.
22923
22924         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
22925         (Depends-on): Add unitypes.
22926         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
22927         (u8_uctomb_aux): Move out to separate file.
22928         (u8_uctomb): Use ucs4_t, uint8_t types.
22929         * lib/unistr/ucs4-utf8.c: New file.
22930
22931         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
22932         (Depends-on): Add unitypes.
22933         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
22934         (u16_uctomb_aux): Move out to separate file.
22935         (u16_uctomb): Use ucs4_t, uint16_t types.
22936         * lib/unistr/ucs4-utf16.c: New file.
22937
22938 2006-12-25  Bruno Haible  <bruno@clisp.org>
22939
22940         * modules/unitypes: New file.
22941         * lib/unitypes.h: New file.
22942         * MODULES.html.sh (func_all_modules): New section "Unicode string
22943         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
22944         this section. Add unitypes.
22945
22946 2007-01-08  Bruno Haible  <bruno@clisp.org>
22947
22948         Avoid variable names that conflict with those from libtool.
22949         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
22950         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
22951         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
22952         library_names_spec to acl_library_names_spec, hardcode_* to
22953         acl_hardcode_*.
22954         Reported by Ralf Wildenhues.
22955
22956 2007-01-08  Bruno Haible  <bruno@clisp.org>
22957
22958         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
22959         definition.
22960         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
22961         definition.
22962         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
22963         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
22964         definition.
22965         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
22966         definition.
22967         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
22968         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
22969         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
22970         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
22971         definition.
22972         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
22973         definition.
22974         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
22975         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
22976         GC_USE_<algorithm>.
22977         * lib/gc-libgcrypt.c: Likewise.
22978         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
22979         * modules/gc-arctwo (configure.ac): Likewise.
22980         * modules/gc-des (configure.ac): Likewise.
22981         * modules/gc-hmac-md5 (configure.ac): Likewise.
22982         * modules/gc-hmac-sha1 (configure.ac): Likewise.
22983         * modules/gc-md2 (configure.ac): Likewise.
22984         * modules/gc-md4 (configure.ac): Likewise.
22985         * modules/gc-md5 (configure.ac): Likewise.
22986         * modules/gc-random (configure.ac): Likewise.
22987         * modules/gc-rijndael (configure.ac): Likewise.
22988         * modules/gc-sha1 (configure.ac): Likewise.
22989
22990 2007-01-08  Bruno Haible  <bruno@clisp.org>
22991
22992         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
22993         macro definition.
22994         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
22995         definition.
22996         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
22997         definition.
22998         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
22999         * modules/fcntl-safer (configure.ac): Likewise.
23000         * modules/fopen-safer (configure.ac): Likewise.
23001         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
23002         GNULIB_FWRITEERROR macro definition.
23003
23004 2007-01-08  Bruno Haible  <bruno@clisp.org>
23005
23006         * m4/gnulib-common.m4: New file.
23007         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
23008         (func_get_filelist): Add m4/gnulib-common.m4.
23009
23010 2007-01-08  Bruno Haible  <bruno@clisp.org>
23011
23012         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
23013         command.
23014
23015 2007-01-08  Jim Meyering  <jim@meyering.net>
23016
23017         Use a more robust test for a "can't happen" condition.
23018         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
23019         narrowed the st_size value.  Presuming the "can't happen" condition
23020         is true, that narrowing could conceivably convert an invalid st_size
23021         value into a valid one.  Instead, use a change based on Matthew
23022         Woehlke's original patch.
23023
23024         Slight readability improvement: use an assert-like macro
23025         in place of literal "abort ()" uses.
23026         * lib/fts.c (fts_assert): Define.
23027         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
23028         Use this macro instead of a bare 'abort'.
23029
23030 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
23031
23032         Don't worry about using IRIX 5.3's wctype.h broken definitions;
23033         simply work around them.
23034         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
23035         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
23036         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
23037         declaring.
23038         Don't bother to define as macros, since the standard doesn't require it.
23039         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
23040         longer worry about IRIX 5.3.
23041         (HAVE_WCTYPE_CTMP_BUG): Remove.
23042
23043 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23044
23045         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
23046         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
23047         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23048         Problems reported by Georg Schwarz for IRIX 5.3.
23049
23050         * gnulib-tool (autoconf_minversion): Take the maximum version number
23051         found, not the minimum.  Problem reported by James Youngman.
23052
23053 2007-01-03  Karl Berry  <karl@gnu.org>
23054
23055         * doc/error.texi: new file, explaining interaction with progname.
23056         * doc/gnulib.texi: include it.  Update copyright.
23057
23058 2007-01-03  Simon Josefsson  <simon@josefsson.org>
23059
23060         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
23061         AC_CANONICAL_HOST, to improve autobuild outputs.
23062
23063 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
23064             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23065
23066         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
23067         sockets, server sockets, and other file descriptors.  Count errors
23068         to compute the return value.  Reorder the code a bit to be easier
23069         to follow.  Don't set event bits that were not requested (except
23070         POLLERR and POLLHUP).
23071
23072 2007-01-01  Bruno Haible  <bruno@clisp.org>
23073
23074         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
23075
23076 2007-01-03  Jim Meyering  <jim@meyering.net>
23077
23078         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
23079
23080 2007-01-02  Bruno Haible  <bruno@clisp.org>
23081
23082         * modules/settime (Include): Require timespec.h.
23083         * modules/nanosleep (Include): Likewise.
23084
23085 2007-01-01  Bruno Haible  <bruno@clisp.org>
23086
23087         * gnulib-tool (func_emit_copyright_notice): Bump year.
23088         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
23089
23090 2007-01-01  Bruno Haible  <bruno@clisp.org>
23091
23092         Improve support for OpenBSD.
23093         * build-aux/config.rpath (libname_spec): Export.
23094         (library_names_spec): New variable. Export.
23095         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
23096         library_names_spec from the config.rpath output. Locate shared library
23097         through the name pattern in library_names_spec.
23098
23099 2007-01-01  Eric Blake  <ebb9@byu.net>
23100
23101         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
23102
23103 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
23104
23105         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
23106         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
23107         assume the C locale, and avoid an "eval" that could cause trouble.
23108         Problem with SORT reported by Bob Proulx.
23109
23110         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
23111         Define.  Trivial patch from Henning Nielsen Lund, originally
23112         sent to bug-grep@gnu.org today.
23113
23114 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23115
23116         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
23117         struct stat.  Problem reported by Henning Nielsen Lund.
23118         * lib/acl.c: Include acl.h first, to check interface.  Don't
23119         bother to include sys/types.h and sys/stat.h again.
23120
23121 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23122
23123         Import the following change from libc; problem reported by
23124         Sven Verdoolaege.
23125
23126         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
23127
23128         [BZ #1373]
23129         * lib/argp.h: Remove __NTH for __argp_usage inline function.
23130
23131 2006-12-28  Jim Meyering  <jim@meyering.net>
23132
23133         * build-aux/announce-gen: Do not assume that the package
23134         builds any of tar.gz, tar.bz2, and .xdelta files.
23135         Suggestion from Simon Josefsson.
23136
23137 2006-12-28  Simon Josefsson  <simon@josefsson.org>
23138
23139         * modules/announce-gen: New file.
23140
23141 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23142
23143         * lib/mbchar.h: Just include <wctype.h>; the wctype module
23144         handles its gotchas now.
23145         * lib/mbswidth.c: Likewise.
23146         * lib/wcwidth.h: Likewise.
23147         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
23148         and iswcntrl; the wctype module does this stuff now.
23149         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23151         * modules/mbchar (Depends-on): Add wctype.
23152         * modules/mbswidth (Depends-on): Likewise.
23153         * modules/wcwidth (Depends-on): Likewise.
23154
23155 2006-12-27  Eric Blake  <ebb9@byu.net>
23156
23157         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
23158         module uses more than what <wctype.h> is required to provide.
23159
23160 2006-12-26  Eric Blake  <ebb9@byu.net>
23161
23162         * gnulib-tool (sed_extract_prog): Avoid space-tab.
23163
23164 2006-12-26  Eric Blake  <ebb9@byu.net>
23165
23166         * modules/absolute-header: New module.
23167         * modules/fcntl (Depends-on): Depend on it.
23168         * modules/inttypes (Depends-on): Likewise.
23169         * modules/stdint (Depends-on): Likewise.
23170         * modules/sys_stat (Depends-on): Likewise.
23171         * modules/wctype (Depends-on): Likewise.
23172         * MODULES.html.sh (Support for building libraries and
23173         executables): Document it.
23174
23175 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23176
23177         * gnulib-tool (SED): Remove, undoing previous change.
23178         The problem was that it broke coreutils on Solaris, because
23179         "sed --posix" leaked into a makefile.
23180         (sed): New alias, if 'alias' and GNU sed.
23181
23182 2006-12-24  Jim Meyering  <jim@meyering.net>
23183
23184         Work around an fchownat bug in glibc-2.4:
23185         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
23186         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
23187         in spite of the -P option.
23188         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
23189         New macros.
23190         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
23191         * modules/openat (Files): Add lib/fchownat.c.
23192         * lib/openat.c (fchownat): Don't define here.  Move to...
23193         * lib/fchownat.c: ...this new file.
23194
23195 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23196
23197         Fix bug reported by Bruno Haible in
23198         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
23199         where quotearg.c didn't compile on Mac OS X 10.2 because it
23200         lacks <wchar.h> and wint_t.
23201         * lib/wctype_.h (__wctype_wint_t): New type.
23202         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
23203         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
23204         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
23205         Arg is now of type __wctype_wint_t, not wint_t.
23206         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
23207         substitute HAVE_WINT_T.
23208         * modules/wctype (Files): Add m4/wint_t.m4.
23209         (wctype.h): Substitute HAVE_WINT_T.
23210
23211 2006-12-23  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
23214
23215 2006-12-23  Bruno Haible  <bruno@clisp.org>
23216
23217         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
23218         S_ISLNK.
23219         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
23220         mingw.
23221
23222 2006-12-22  Bruno Haible  <bruno@clisp.org>
23223
23224         * lib/copy-file.c: Include acl.h.
23225         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
23226         Close the file descriptors only after being done with copy_acl.
23227         * modules/copy-file (Depends-on): Add acl.
23228
23229 2006-12-22  Bruno Haible  <bruno@clisp.org>
23230
23231         * gnulib-tool (SED): New variable.
23232         Use $SED instead of sed everywhere.
23233
23234 2006-12-22  Bruno Haible  <bruno@clisp.org>
23235
23236         * modules/no-c++: New file.
23237         * m4/no-c++.m4: New file.
23238         * MODULES.html.sh (Support for building libraries and executables):
23239         Add no-c++.
23240
23241 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23242
23243         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
23244         Include <limits.h>, and use its INT_MAX to rewrite the
23245         j loop so that it does not overflow 'int'.  Problem reported by
23246         Ralf Wildenhues in
23247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
23248         Play it safe by shifting left by 1 rather than multiplying by 2,
23249         as GCC is less likely to optimize this away when the value
23250         is signed (when it assumes overflow leads to undefined behavior).
23251         Also, don't assume time_t uses two's complement.
23252
23253 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23254
23255         * MODULES.html.sh: New module wctype.
23256         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
23257         * lib/fnmatch.c: Don't bother to include <wchar.h> before
23258         <wctype.h>, since the new wctype module should fix this.
23259         * lib/quotearg.c: Include <wctype.h> unconditionally, since
23260         the wctype module should arrange for it.
23261         * lib/regex_internal.h: Likewise.
23262         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
23263         since the wctype module should handle this now.
23264         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
23265         * modules/fnmatch (Depends-on): Add wctype.
23266         * modules/quotearg (Depends-on): Likewise.
23267         * modules/regex (Depends-on): Likewise.
23268
23269 2006-12-19  Bruno Haible  <bruno@clisp.org>
23270
23271         * lib/strdup.h [C++]: Wrap definitions in extern "C".
23272         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
23273
23274 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23275
23276         * modules/savewd (Depends-on): Fix dependency on fcntl.
23277
23278 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23279
23280         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
23281         conforms to C99, rather than relying on the user's environment
23282         setting of STDINT_H.
23283
23284 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23285         and Eric Blake  <ebb9@byu.net>
23286
23287         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
23288         This is more consistent with the other defines here.
23289         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
23290         Port to z/OS.  Problem reported by Paul Gilmartin.
23291         Change local vars to use gl_ prefix rather than ac_.
23292         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
23293         with other defines.
23294         * modules/double-slash-root: New module.
23295         * modules/dirname (Files): Remove m4/double-slash-root.m4.
23296         (Depends-on): Add double-slash-root.
23297         * MODULES.html.sh (File system functions): Mention new module.
23298
23299 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
23300
23301         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
23302         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
23303         This is for the benefit of gzip, which doesn't do i18n.
23304
23305 2006-12-12  Jim Meyering  <jim@meyering.net>
23306
23307         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
23308         Reported by Andreas Schwab <schwab@suse.de>.
23309
23310 2006-12-12  Bruno Haible  <bruno@clisp.org>
23311
23312         Merge these changes.
23313         2006-09-05  Bruno Haible  <bruno@clisp.org>
23314         * lib/iconvme.c (iconv_string): No need to save and restore errno when
23315         iconv_alloc succeeded.
23316         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
23317         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
23318         test for " && dest " at the end - dest is always != NULL there. Call
23319         iconv with 4xNULL arguments initially, to reset the state. Call iconv
23320         with 2xNULL arguments, also to flush the state storage. Handle the
23321         IRIX iconv behaviour. Realloc the final result, to throw away unused
23322         memory.
23323
23324 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
23325
23326         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
23327         and fchmodat unconditionally, since glibc 2.4 has them.
23328         Problem reported by Arkadiusz Miskiewicz.
23329
23330 2006-12-10  Bruno Haible  <bruno@clisp.org>
23331
23332         * gnulib-tool (func_import): Show the include files only for those
23333         modules that are copied and specified.
23334         Reported by Karl Berry.
23335
23336 2006-12-08  Jim Meyering  <jim@meyering.net>
23337
23338         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
23339         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
23340
23341         * build-aux/announce-gen: Add two new options, both optional:
23342         --bootstrap-tools=TOOL_LIST
23343               a comma-separated list of tools, e.g.,
23344               autoconf,automake,bison,gnulib
23345         --gnulib-snapshot-date=DATE
23346               if gnulib is in the bootstrap tool list,
23347               then report this as the snapshot date.
23348               If not specified, use the current date/time.
23349               If you specify a date here, be sure it's UTC.
23350
23351 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23352
23353         * tests/test-argp-2.sh: Fix test to match actual output.
23354         (func_compare): Fix sed script to be portable.
23355
23356 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
23357
23358         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
23359         workaround for this case.  It is not autoconfigured now; offhand
23360         it's hard to see how to autoconfigure it.
23361
23362 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
23363
23364         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
23365         a directory that is about to be chowned.  Such a directory's
23366         initial file permissions should permit the owner only and this
23367         should not be changed until after the chown, since the group and
23368         other bits would be incorrect if they granted permission before
23369         the chown.
23370
23371         Fix porting problem for iswctype reported by Georg Schwarz in:
23372         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
23373         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
23374         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
23375         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
23376         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23377
23378 2006-12-03  Jim Meyering  <jim@meyering.net>
23379
23380         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
23381         p->fts_statp may not yet be defined.
23382         (fts_read): Instead, set it in the caller, once p->fts_statp is
23383         sure to be defined, and corresponds to a top-level directory.
23384         This bug made du -x fail.  Here's the coreutils test case:
23385         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
23386         Reported by Mike Frysinger.
23387
23388 2006-12-01  Jim Meyering  <jim@meyering.net>
23389
23390         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
23391         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
23392         Reported by Simon Josefsson.
23393
23394 2006-11-30  Jim Meyering  <jim@meyering.net>
23395
23396         * m4/warning.m4: Use the all-permissive copyright notice
23397         recommended by RMS (rather than LGPL).
23398         * m4/vararrays.m4: Likewise.
23399         * m4/flexmember.m4: Likewise.
23400
23401 2006-11-29  Bruno Haible  <bruno@clisp.org>
23402
23403         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23404         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
23405         using +=.
23406         Reported by Simon Josefsson <simon@josefsson.org>.
23407
23408 2006-11-28  James Youngman <jay@gnu.org>
23409
23410         * README: Advise users that they might find the bug-gnulib@gnu.org
23411         and autotools-announce@gnu.org mailing lists useful.
23412
23413 2006-11-28  Bruno Haible  <bruno@clisp.org>
23414
23415         * m4/ptrdiff_max.m4: Remove file.
23416
23417 2006-11-21  Bruno Haible  <bruno@clisp.org>
23418
23419         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
23420         _AC_COMPUTE_INT.
23421         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
23422         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
23423         _AC_COMPUTE_INT.
23424         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
23425         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
23426         _AC_COMPUTE_INT.
23427         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
23428
23429 2006-11-28  Jim Meyering  <jim@meyering.net>
23430
23431         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
23432         warning from "gcc -Wshadow" about shadowing the builtin.
23433
23434 2006-11-27  Bruno Haible  <bruno@clisp.org>
23435
23436         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
23437         _AC_COMPUTE_INT.
23438         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
23439
23440 2006-11-27  Bruno Haible  <bruno@clisp.org>
23441             Paul Eggert  <eggert@cs.ucla.edu>
23442
23443         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
23444
23445 2006-11-26  Bruno Haible  <bruno@clisp.org>
23446
23447         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
23448         noinst_LTLIBRARIES.
23449
23450 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
23451             Bruno Haible  <bruno@clisp.org>
23452
23453         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
23454         if compiling with "gcc -ansi".
23455
23456 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23457
23458         Fix some incompatibilities with gcc -ansi -pedantic.
23459         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
23460         if compiling pedantically with GCC, unless it's C99 or later.
23461         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
23462         it mishandles gcc -ansi -pedantic as well.
23463         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
23464         if gcc -pedantic.
23465         * lib/regexec.c (check_node_accept_bytes): Don't use auto
23466         initializers for struct if -pedantic, unless it's C99 or later.
23467
23468 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
23469
23470         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
23471         Don't close an fd more than once. Identical atimes indicate
23472         success, not failure.
23473
23474 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
23475
23476         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
23477
23478 2006-11-23  Jim Meyering  <jim@meyering.net>
23479
23480         * build-aux/announce-gen: New file.  From coreutils.
23481
23482 2006-11-22  Jim Meyering  <jim@meyering.net>
23483
23484         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
23485         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
23486         (fts_read): Use a temporary to narrow the overused st_size member
23487         before using it in a switch statement.  Reported by Matthew Woehlke.
23488
23489         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
23490         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23491
23492 2006-11-20  Bruno Haible  <bruno@clisp.org>
23493
23494         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
23495         changequote instead of pairs of brackets.
23496         Reported by Andreas Schwab <schwab@suse.de>.
23497
23498 2006-11-21  Jim Meyering  <jim@meyering.net>
23499
23500         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
23501         so as to remain compatible with older compilers.
23502         Patch from Michael Deutschmann.
23503
23504 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23505
23506         * MODULES.html.sh (File system functions): Add openat.
23507
23508         * lib/openat.h (rpl_fstatat): New macro, if
23509         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
23510         (fstatat): Define to rpl_fstatat under the same conditions,
23511         unless COMPILING_FSTATAT.
23512         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
23513         seems to have the bug.
23514         * lib/fstatat.c: New file.
23515         * modules/openat (Files): Add it.
23516
23517 2006-11-20  Bruno Haible  <bruno@clisp.org>
23518
23519         * Makefile: New file.
23520
23521 2006-11-20  Jim Meyering  <jim@meyering.net>
23522
23523         The beginnings of syntax-related checks for gnulib.
23524         * lib/Makefile: New file.
23525         * lib/t-idcache: New script.  Ensure that the two halves of
23526         idcache.c stay in sync.
23527
23528         * lib/idcache.c: Adjust comments in user- and group- portions to
23529         be more accurate, and to be consistent with one another.
23530
23531 2006-11-20  Jim Meyering  <jim@meyering.net>
23532
23533         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
23534         continue using the flexible array member (thus, this module performs
23535         half as many malloc calls), with the addition that...
23536         (getgroup, getuser): Consistently record a non-match via an empty
23537         "name" string, and map an empty string match to a NULL return value.
23538         * modules/idcache (Depends-on): Re-add flexmember.
23539
23540         * lib/idcache.c (getuser): Remove all uses of the register keyword.
23541         (getuidbyname, getgroup, getgidbyname): Likewise.
23542
23543         Use cleaner syntax: NULL rather than 0.
23544         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
23545
23546 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23547
23548         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
23549         It mishandled the case where the group was missing.
23550         Problem reported by Greg Schafer.
23551         * modules/idcache: Likewise.
23552
23553 2006-11-18  Jim Meyering  <jim@meyering.net>
23554
23555         * check-module (%exempt_header): Add exception for some
23556         conditionally-included headers.
23557
23558         * modules/i-ring (Depends-on): Add verify.
23559         (License): Change to LGPL.
23560
23561 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23562
23563         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
23564         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
23565         and inttostr.h.  Use snprintf rather than uinttostr, so that
23566         LGPLed code doesn't depend on GPLed.
23567
23568 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23569
23570         * modules/inline (License): Change from GPL to LGPL.
23571
23572 2006-11-17  Jim Meyering  <jim@meyering.net>
23573
23574         * modules/d-type (License): Switch to LGPL.
23575
23576 2006-11-15  Bruno Haible  <bruno@clisp.org>
23577
23578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
23579
23580 2006-11-15  Eric Blake  <ebb9@byu.net>
23581
23582         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
23583         the module dependency.
23584
23585 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23586             Bruno Haible  <bruno@clisp.org>
23587
23588         * gnulib-tool (func_create_testdir): Add license consistency check.
23589
23590 2006-11-15  Eric Blake  <ebb9@byu.net>
23591
23592         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
23593         random "(cached)" in configure output.
23594
23595 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23596
23597         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
23598         test for conforming inttypes.h is both announced and cached.
23599
23600         * MODULES.html.sh (seen_modules, seen_files): New variables.
23601         (func_module): Rewrite to use a few less gnulib-tool and sed
23602         invocations.  Avoid a couple of quadratic algorithms for ...
23603         (missed_modules, missed_files): ... these, with ...
23604         (func_append, func_tmpdir): ... these new functions, from
23605         gnulib-tool.  Analogously, install traps for cleanup.
23606
23607         * tests/test-gc.c (main): Remove unused variables.
23608         * tests/test-read-file.c: Include stdlib.h, for 'free'.
23609
23610 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
23611
23612         * modules/inttostr (License): Change to LGPL.
23613
23614 2006-11-14  Eric Blake  <ebb9@byu.net>
23615
23616         * modules/tempname (License): Change to LGPL.
23617
23618 2006-11-14  Eric Blake  <ebb9@byu.net>
23619
23620         * doc/functions.texi (Function Portability): *printf functions on
23621         Cygwin now understand all POSIX size specifiers.
23622
23623 2006-11-14  Bruno Haible  <bruno@clisp.org>
23624
23625         * modules/c-ctype (License): Change to LGPL.
23626
23627 2006-11-12  Bruno Haible  <bruno@clisp.org>
23628
23629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23630         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
23631         for GNOME libraries, for which the include files are installed in
23632         subdirectories of $prefix/include.
23633
23634 2006-11-12  Bruno Haible  <bruno@clisp.org>
23635
23636         * m4/lib-link.m4: Require at least autoconf-2.54.
23637         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
23638         name to underscores for the --with option.
23639
23640 2006-11-13  Bruno Haible  <bruno@clisp.org>
23641
23642         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
23643         the tests directory.
23644         Reported by Ralf Wildenhues.
23645
23646 2006-11-13  Bruno Haible  <bruno@clisp.org>
23647
23648         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
23649         (func_emit_initmacro_end): Undo the override here.
23650         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
23651         Works around the famous automake error in coreutils.
23652
23653 2006-11-13  Eric Blake  <ebb9@byu.net>
23654
23655         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
23656         element, not its node.
23657
23658 2006-11-12  Bruno Haible  <bruno@clisp.org>
23659
23660         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
23661         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
23662
23663 2006-11-12  Bruno Haible  <bruno@clisp.org>
23664
23665         * gnulib-tool: New option --local-symlink.
23666         (func_usage): Document it.
23667         (lsymbolic): New variable.
23668         (func_import, func_create_testdir): If --symlink was not specified,
23669         test whether --local-symlink was specified and the file comes from
23670         the local_gnulib_dir.
23671
23672 2006-11-12  Bruno Haible  <bruno@clisp.org>
23673
23674         * gnulib-tool (func_ln): New function.
23675         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
23676
23677 2006-11-12  Bruno Haible  <bruno@clisp.org>
23678
23679         Finish support for source files in subdirectories.
23680         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
23681         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
23682         AUTOMAKE_OPTIONS.
23683         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
23684
23685 2006-11-12  Bruno Haible  <bruno@clisp.org>
23686
23687         * gnulib-tool (func_get_automake_snippet): Synthesize also an
23688         EXTRA_lib_SOURCES augmentation.
23689         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
23690
23691 2006-11-12  Jim Meyering  <jim@meyering.net>
23692
23693         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
23694         file descriptors.  This also averts a failure on systems with
23695         native openat support when a traversed directory lacks "x" access.
23696         * lib/fts_.h: Include "i-ring.h"
23697         (struct FTS) [fts_fd_ring]: New member.
23698         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
23699         (FCHDIR): Add parentheses.
23700         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
23701         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
23702         When descending, rather than simply closing the previous
23703         fts_cwd_fd value, push that file descriptor onto the ring.
23704         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
23705         (fts_open): Initialize the new fd_ring member.
23706         (fts_close): Clear the ring.
23707         (fts_safe_changedir): When possible, use our new fd_ring to skip
23708         the diropen and fstat and dev/ino comparison that would normally
23709         accompany a virtual `chdir ("..")'.
23710
23711         * modules/fts (Depends-on): Add i-ring.
23712         * modules/i-ring: New module.
23713         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
23714         * m4/i-ring.m4: New file.
23715
23716 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23717
23718         * gnulib-tool (func_create_testdir): Fix replacement of
23719         `build-aux' in configure.ac.  Run autotools in gltests
23720         subdirectory.
23721         (func_create_testdir, func_create_megatestdir, test): There is
23722         no need for '--force' in most autotool invocations in a new
23723         tree.  Actually fail the whole test if any of the tools, or the
23724         configure or make stages fail.
23725
23726         Sync from Automake.
23727         * build-aux/gnupload: Revert last change.  Add pointer to upload
23728         instructions of the GNU Maintenance Instructions.
23729         Suggestion by Karl Berry.
23730
23731 2006-11-10  Jim Meyering  <jim@meyering.net>
23732
23733         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
23734
23735 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23736
23737         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
23738         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
23739         (bind_textdomain_codeset) [! ENABLE_NLS]:
23740         Evaluate all the arguments.  That way, callers get compatible behavior
23741         if the arguments have side effects.  Also, it avoids some GCC
23742         diagnostics in some cases; Joel E. Denny reported problems when Bison
23743         was configured with --enable-gcc-warnigs.
23744
23745 2006-11-10  Jim Meyering  <jim@meyering.net>
23746
23747         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
23748         relevant options in CFLAGS (like -O, -fno-inline) are taken into
23749         account.
23750
23751 2006-11-10  Jim Meyering  <jim@meyering.net>
23752
23753         * modules/inline: New file/module.
23754         * modules/xalloc (Files): Remove m4/inline.m4.
23755         (Depends-on): Add inline, instead.
23756         * modules/oset: Likewise.
23757         * modules/list: Likewise.
23758
23759 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23760
23761         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
23762         Problem reported by Matthew Woehlke.
23763
23764 2006-11-09  Bruno Haible  <bruno@clisp.org>
23765
23766         * lib/tempname.c (gen_tempname): Remove variant that invokes
23767         __gen_tempname.
23768         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
23769         __gen_tempname.
23770
23771 2006-11-08  Bruno Haible  <bruno@clisp.org>
23772
23773         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
23774         to 'yes' instead of 'cross-compiling'.
23775
23776 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         * lib/quotearg.h (quotearg_free): New decl.
23779         * lib/quotearg.c (quotearg_free): New function.
23780         (slot0, nslots, slotvec0, slotvec):
23781         Now file-scope so that quotearg_free can get at them.
23782
23783 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23784
23785         Sync from Automake.
23786         * build-aux/gnupload: Add missing 'gnu' to example URL.
23787         Report by Karl Berry.
23788
23789 2006-11-08  Bruno Haible  <bruno@clisp.org>
23790
23791         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
23792         Suggested by Paul Eggert.
23793
23794 2006-11-08  Jim Meyering  <jim@meyering.net>
23795
23796         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
23797         It's already included if !_LIBC.
23798         (fts_safe_changedir): Add a comment.
23799
23800 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23801
23802         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
23803         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
23804         Matthew Woehlke.
23805
23806         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
23807         definitions up, to avoid colliding with change below.
23808         (static_inline) [HAVE_INLINE]: New macro.
23809         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
23810         Provide extern decls when !HAVE_INLINE.  Do not define unless
23811         static_inline is defined, either by us or by xmalloc.c.  Use
23812         static_inline rather than static inline.
23813         (XCALLOC): Optimize sizeof(T) = 1 case.
23814         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
23815
23816 2006-11-07  Bruno Haible  <bruno@clisp.org>
23817
23818         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
23819         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
23820         AC_C_INLINE.
23821         * modules/xalloc (Files): Add m4/inline.m4.
23822
23823 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23824
23825         * README: Fix typo.
23826         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
23827         (Miscellanous Notes): ...from this.
23828
23829 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23830
23831         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23832         Mention that offsetof should be used instead of sizeof.
23833         From Bruno Haible.
23834
23835 2006-11-07  Bruno Haible  <bruno@clisp.org>
23836
23837         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
23838
23839 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23840
23841         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
23842         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
23843         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
23844         (gl_tree_add_before, gl_tree_add_after):
23845         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
23846         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
23847         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
23848         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
23849         (gl_linked_add_after, gl_linked_add_at): Likewise.
23850         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
23851         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
23852         (gl_tree_add_before, gl_tree_add_after): Likewise.
23853         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
23854         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
23855         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23856
23857 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23858
23859         * lib/gl_oset.h: Use C comment style, not C++ comment style.
23860
23861 2006-11-06  Bruno Haible  <bruno@clisp.org>
23862
23863         * m4/inline.m4: New file.
23864         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
23865         * modules/list (Files): Add m4/inline.m4.
23866         * modules/oset (Files): Likewise.
23867
23868 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23869
23870         * lib/idcache.c: Include <stddef.h>, for offsetof.
23871         (struct userid.name): Change from char * to a flexible array member.
23872         All uses changed.
23873         * modules/idcache (Depends-on): Add flexmember.
23874
23875         * MODULES.html.sh (Core language properties): New module flexmember.
23876         * modules/flexmember, m4/flexmember.m4: New files.
23877
23878         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
23879         inline functions that are identical with the old xnmalloc_inline,
23880         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
23881         that we can avoid some unnecessary integer multiplications and
23882         divisions in the common case where the element size is known at
23883         compile time.
23884         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
23885         needed.
23886         (xnboundedmalloc): Remove.
23887         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
23888         arguments, for consistency with rest of this header.
23889         (xcharalloc): Rewrite using XNMALLOC.
23890         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
23891         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
23892         versions have been moved to lib/xalloc.h and renamed to be the
23893         non-*_inline versions.
23894         (xmalloc, xrealloc): Implement without reference to the xnmalloc
23895         and xnrealloc functions, since those functions are now inline and
23896         now call us.
23897         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
23898         renaming described above.
23899         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
23900         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
23901         captures the dependency in AC_C_INLINE.
23902
23903         New module canonicalize-lgpl, proposed by Charles Wilson in
23904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
23905         with a few small changes afterwards.
23906         * MODULES.html.sh (File system functions): New module
23907         canonicalize-lgpl.
23908         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
23909         and canonicalize_file_name.
23910         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
23911         * modules/canonicalize-lgpl: New files.
23912
23913 2006-11-05  Bruno Haible  <bruno@clisp.org>
23914
23915         * gnulib-tool (func_import, func_create_testdir): Create directories
23916         also for files in subdirectories of lib/.
23917
23918 2006-11-05  Bruno Haible  <bruno@clisp.org>
23919
23920         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
23921         ANSI C compliant.
23922
23923 2006-11-03  Bruno Haible  <bruno@clisp.org>
23924
23925         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
23926         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
23927         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
23928         (xnboundedmalloc): New inline function.
23929         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
23930         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
23931         xmalloc.
23932         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
23933         xmalloc.
23934         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
23935         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
23936         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
23937         xmalloc.
23938         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
23939         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
23940         xmalloc.
23941         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
23942         gl_tree_add_after): Use XMALLOC instead of xmalloc.
23943         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
23944         xmalloc.
23945         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
23946         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
23947         gl_tree_add_after): Use XMALLOC instead of xmalloc.
23948         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
23949         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
23950         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
23951         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
23952
23953 2006-11-03  Bruno Haible  <bruno@clisp.org>
23954
23955         * lib/c-ctype.h [C++]: Define functions without name mangling.
23956         * lib/fwriteerror.h [C++]: Likewise.
23957         * lib/gcd.h [C++]: Likewise.
23958         * lib/linebreak.h [C++]: Likewise.
23959
23960 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23961
23962         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
23963         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
23964         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
23965         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23966         Check for functions and headers just once.
23967         Check for declaration of canonicalize_file_name.
23968         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
23969
23970 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23971
23972         * gnulib-tool (func_import): Fix typo in actioncmd.
23973
23974 2006-11-02  Bruno Haible  <bruno@clisp.org>
23975
23976         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
23977         newline sequence in the Makefile.am snippet as a space, like "make"
23978         does.
23979         Reported by Roger Persson <perrog@gmail.com>.
23980
23981 2006-11-01  Bruno Haible  <bruno@clisp.org>
23982
23983         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
23984         already declared in <string.h>.
23985         * lib/strcase.h (strncasecmp): Don't declare it if yes.
23986
23987 2006-11-01  Bruno Haible  <bruno@clisp.org>
23988
23989         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
23990         * lib/strcase.h: Include <string.h>.
23991         (strcasecmp): Define to rpl_strcasecmp here.
23992
23993 2006-11-01  Bruno Haible  <bruno@clisp.org>
23994
23995         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
23996
23997 2006-11-01  Eric Blake  <ebb9@byu.net>
23998
23999         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
24000
24001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
24002
24003 2006-10-29  Bruno Haible  <bruno@clisp.org>
24004
24005         Make it compile in C++ mode.
24006         * lib/full-write.c (full_rw): Add a cast.
24007
24008 2006-11-01  Bruno Haible  <bruno@clisp.org>
24009
24010         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
24011         be POSIX compliant.
24012         Reported by Roger Persson <perrog@gmail.com>.
24013
24014 2006-11-01  Eric Blake  <ebb9@byu.net>
24015
24016         * lib/getopt_.h: Fix comments.
24017
24018 2006-10-31  Eric Blake  <ebb9@byu.net>
24019
24020         * modules/tmpdir (Depends-on): Add sys_stat.
24021         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
24022         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
24023         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
24024         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
24025         tempname.
24026
24027 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         Avoid some C++ diagnostics reported by Bruno Haible.
24030         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
24031         xmalloc.
24032         (quotearg_alloc): Use xcharalloc rather than xmalloc.
24033         (struct slotvec): Move to top level.
24034         (quotearg_n_options): Rewrite to avoid xmalloc.
24035         * lib/xalloc.h (xcharalloc): New function.
24036         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
24037         [defined __cplusplus]: Add function template that provides result
24038         type propagation.  This part of the change is from Bruno Haible.
24039
24040 2006-10-29  Bruno Haible  <bruno@clisp.org>
24041
24042         Make it compile in C++ mode.
24043         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
24044         * lib/strnlen1.c (strnlen1): Cast memchr result.
24045         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
24046         * lib/clean-temp.c (string_equals, string_hash): Add casts.
24047         (create_temp_dir): Rename local variable 'template'.
24048         (compile_csharp_using_sscli): Add cast.
24049         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
24050         * lib/findprog.c (find_in_path): Likewise.
24051         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
24052         * lib/wait-process.c (register_slave_subprocess): Likewise.
24053
24054 2006-10-22  Bruno Haible  <bruno@clisp.org>
24055
24056         * modules/tsearch: New file.
24057         * lib/tsearch.h: New file.
24058         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
24059         * m4/tsearch.m4: New file.
24060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
24061
24062 2006-10-29  Eric Blake  <ebb9@byu.net>
24063
24064         * lib/arcfour.c: Assume config.h.
24065         * lib/arctwo.c: Likewise.
24066         * lib/base64.c: Likewise.
24067         * lib/check-version.c: Likewise.
24068         * lib/crc.c: Likewise.
24069         * lib/des.c: Likewise.
24070         * lib/gc-gnulib.c: Likewise.
24071         * lib/gc-libgcrypt.c: Likewise.
24072         * lib/gc-pbkdf2-sha1.c: Likewise.
24073         * lib/getaddrinfo.c: Likewise.
24074         * lib/getdelim.c: Likewise.
24075         * lib/getline.c: Likewise.
24076         * lib/hmac-md5.c: Likewise.
24077         * lib/hmac-sha1.c: Likewise.
24078         * lib/iconvme.c: Likewise.
24079         * lib/md2.c: Likewise.
24080         * lib/md4.c: Likewise.
24081         * lib/memxor.c: Likewise.
24082         * lib/read-file.c: Likewise.
24083         * lib/readline.c: Likewise.
24084         * lib/rijndael-alg-fst.c: Likewise.
24085         * lib/rijndael-api-fst.c: Likewise.
24086         * lib/xgetdomainname.c: Likewise.
24087
24088 2006-10-28  Eric Blake  <ebb9@byu.net>
24089
24090         * lib/xstrndup.c: Assume config.h.
24091
24092 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24093
24094         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
24095         stat-macros.h is now for our own macros, whereas stat_h is for
24096         macros in the <sys/stat.h> name space.
24097         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
24098         (STAT_MACROS_H): Remove.
24099         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
24100         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
24101         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
24102         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
24103         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
24104         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
24105         Move these macros to ...
24106         * lib/stat_.h: here.  Don't include stat-macros.h.
24107         * lib/canonicalize.c: Don't include stat-macros.h.
24108         * lib/chown.c: Likewise.
24109         * lib/euidaccess.c: Likewise.
24110         * lib/file-type.c: Likewise.
24111         * lib/filemode.c: Likewise.
24112         * lib/glob.c: Likewise.
24113         * lib/isapipe.c: Likewise.
24114         * lib/lchown.c: Likewise.
24115         * lib/lstat.c: Likewise.
24116         * lib/mkdir-p.c: Likewise.
24117         * lib/rmdir.c: Likewise.
24118         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
24119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
24120         unless mkdir isn't declared, to speed up 'configure'.
24121         Always create sys/stat.h, since it's unlikely any real sys/stat.h
24122         would define all the S_* symbols.
24123         * modules/canonicalize (Depends-on):
24124         Depend on sys_stat, not stat-macros.
24125         * modules/chown: Likewise.
24126         * modules/euidaccess: Likewise.
24127         * modules/filemode: Likewise.
24128         * modules/file-type: Likewise.
24129         * modules/glob: Likewise.
24130         * modules/isapipe: Likewise.
24131         * modules/lchown: Likewise.
24132         * modules/lstat: Likewise.
24133         * modules/mkancesdirs: Likewise.
24134         * modules/rmdir: Likewise.
24135         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
24136         * modules/modechange: Likewise.
24137         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
24138         (configure.ac): Remove gl_STAT_MACROS.
24139         * modules/sys_stat (Depends-on): Remove stat-macros.
24140
24141 2006-10-27  Bruno Haible  <bruno@clisp.org>
24142
24143         * m4/signed.m4: Remove file.
24144         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
24145         invocation.
24146         * modules/vasnprintf (Files): Remove m4/signed.m4.
24147
24148 2006-10-27  Bruno Haible  <bruno@clisp.org>
24149
24150         Update to GNU gettext 0.16.
24151         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
24152         m4/inttypes-h.m4, m4/signed.m4.
24153         * m4/gettext.m4: Update to GNU gettext 0.16.
24154         * m4/intl.m4: New file, from GNU gettext.
24155         * m4/intldir.m4: New file, from GNU gettext.
24156         * config/srclist.txt: Update
24157
24158 2006-10-27  Eric Blake  <ebb9@byu.net>
24159
24160         * MODULES.html.sh: Document tempname.
24161         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
24162         dependencies.
24163         (Files): Move lib/tempname.c...
24164         * modules/tempname: ...to this new module.
24165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
24166         (gl_PREREQ_TEMPNAME): Move...
24167         * m4/tempname.m4: ...to this new file.
24168         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
24169         * modules/sys_stat (Depends-on): Add stat-macros.
24170         * lib/stat_.h (includes): Pick up stat macros.
24171         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
24172         if stat macros are broken.
24173         * lib/tempname.c (includes): No need to include "stat-macros.h".
24174         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
24175         (direxists, __path_search) [!_LIBC]: Don't compile these in
24176         gnulib; the tmpdir module covers that.
24177         * lib/tempname.h: New file.
24178
24179 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24180
24181         * COPYING: Explain how gnulib-tool converts licence headers.
24182         Almost all wording by Eric Blake.
24183
24184 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
24185
24186         * lib/mbchar.h (is_basic_table): Make read-only.
24187         * lib/mbchar.c (is_basic_table): Likewise.
24188         Reported by John Darrington.
24189
24190 2006-10-25  Bruno Haible  <bruno@clisp.org>
24191
24192         * lib/progname.h (set_program_name): Undefine before defining.
24193
24194 2006-10-25  Bruno Haible  <bruno@clisp.org>
24195
24196         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
24197         false for non-gcc C++ compilers.
24198         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24199
24200 2006-10-24  Bruno Haible  <bruno@clisp.org>
24201
24202         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
24203         iconv implementations like Irix iconv.
24204
24205 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
24206
24207         * modules/vararrays: New file.
24208         * m4/vararrays.m4: New file, taken from diffutils.
24209         * MODULES.html.sh: New module vararrays.
24210
24211 2006-10-24  Karl Berry  <karl@gnu.org>
24212
24213         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
24214         Don't call GNU Unix.
24215
24216 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24217
24218         * users.txt: Add Libtool.
24219
24220         Sync from Libtool:
24221
24222         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
24223
24224         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
24225         to gnulib's policy of including config.h unconditionally.
24226
24227 2006-10-24  Bruno Haible  <bruno@clisp.org>
24228
24229         * modules/wcwidth (Files): Add m4/wint_t.m4.
24230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
24231         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
24232
24233 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
24234
24235         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
24236         to pacify GCC with some -W flags enabled.  Problem reported by
24237         Bruno Haible.
24238
24239 2006-10-24  Jim Meyering  <jim@meyering.net>
24240
24241         * MODULES.html.sh: Remove uinttostr.  It's not a module.
24242         Reported by Karl Berry.
24243
24244 2006-10-23  Bruno Haible  <bruno@clisp.org>
24245
24246         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
24247
24248 2006-10-24  Bruno Haible  <bruno@clisp.org>
24249
24250         * lib/gl_list.h: Use C comment style, not C++ comment style.
24251
24252 2006-10-23  Eric Blake  <ebb9@byu.net>
24253
24254         * lib/getaddrinfo.c (includes): Add missing include.
24255
24256 2006-10-23  Bruno Haible  <bruno@clisp.org>
24257             Paul Eggert  <eggert@cs.ucla.edu>
24258
24259         Ability to rename obstack_free.
24260         * lib/obstack.h (__obstack_free): New macro. Declare instead of
24261         obstack_free.
24262         (obstack_free): Invoke the __obstack_free macro.
24263         * lib/obstack.c (obstack_free): Use __obstack_free macro.
24264
24265 2006-10-23  Bruno Haible  <bruno@clisp.org>
24266             Paul Eggert  <eggert@cs.ucla.edu>
24267
24268         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
24269         __argc, __argv from the declaration. (They are defined as macros on
24270         mingw.)
24271
24272 2006-10-22  Bruno Haible  <bruno@clisp.org>
24273
24274         * doc/gnulib-intro.texi: New file.
24275         * doc/gnulib.texi: Include it.
24276
24277 2006-10-21  Bruno Haible  <bruno@clisp.org>
24278
24279         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
24280         "Introduction", "Miscellanous Notes", "Particular Modules".
24281
24282 2006-10-21  Bruno Haible  <bruno@clisp.org>
24283
24284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24285         Change mostlyclean-local rule to avoid sh syntax error from bash
24286         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
24287
24288 2006-10-23  Jim Meyering  <jim@meyering.net>
24289
24290         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
24291         in place of snprintf.
24292
24293         * modules/inttostr (Files): Add lib/uinttostr.c.
24294         * lib/uinttostr.c (inttostr): New file/function.
24295         * lib/inttostr.h (uinttostr): Declare.
24296         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
24297         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
24298         Add uinttostr.
24299         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
24300
24301 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
24302
24303         * lib/canonicalize.c (ELOOP): Define if not already defined.
24304         Problem reported by Bruno Haible in
24305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
24306
24307 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
24308
24309         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
24310         Problem reported by Perry Smith and Ville Laurikari.
24311
24312         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
24313         uses.
24314
24315 2006-10-19  Bruno Haible  <bruno@clisp.org>
24316
24317         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
24318         for mingw.
24319
24320 2006-10-19  Bruno Haible  <bruno@clisp.org>
24321
24322         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
24323         Needed for mingw.
24324
24325 2006-10-19  Bruno Haible  <bruno@clisp.org>
24326
24327         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
24328
24329 2006-10-19  Bruno Haible  <bruno@clisp.org>
24330
24331         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
24332         it.
24333
24334 2006-10-19  Bruno Haible  <bruno@clisp.org>
24335
24336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
24337         invocation.
24338
24339 2006-10-19  Bruno Haible  <bruno@clisp.org>
24340
24341         * gnulib-tool (func_create_testdir): Don't include ftruncate and
24342         mountlist by default.
24343
24344 2006-10-16  Bruno Haible  <bruno@clisp.org>
24345
24346         * lib/c-strstr.c: Include c-strstr.h.
24347
24348 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
24349
24350         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
24351         in a slash.
24352
24353 2006-10-18  Bruno Haible  <bruno@clisp.org>
24354
24355         * lib/lock.h [C++]: Wrap definitions in extern "C".
24356
24357 2006-10-18  Bruno Haible  <bruno@clisp.org>
24358
24359         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
24360         gl_LIBOBJS list.
24361
24362 2006-10-18  Bruno Haible  <bruno@clisp.org>
24363
24364         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
24365
24366 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
24367
24368         * lib/xstrtol.h: Include gettext.h.
24369         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
24370         Problem reported by Eric Blake.
24371         * modules/xstrtol (Depends-on): Add gettext-h.
24372
24373 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
24374
24375         * lib/strftime.c (advance): New macro.
24376         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
24377         incomplete type, so you can't add 0 to it.  Problem and patch
24378         reported by Eelco Dolstra for dietlibc.
24379
24380 2006-10-18  Jim Meyering  <jim@meyering.net>
24381
24382         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
24383         type for a local, and rename it: s/up/user_proc/.
24384
24385 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
24386
24387         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
24388         READ_UTMP_USER_PROCESS.
24389         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
24390
24391 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
24392
24393         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
24394         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
24395
24396 2006-10-17  Eric Blake  <ebb9@byu.net>
24397
24398         * lib/sigprocmask.c (sigprocmask): Fix typo.
24399
24400         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
24401
24402         * modules/clean-temp (Makefile.am): Don't add to make output...
24403         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
24404         config.h.
24405
24406 2006-10-17  Bruno Haible  <bruno@clisp.org>
24407
24408         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
24409         differently if DEFAULT_TEXT_DOMAIN is set.
24410
24411 2006-10-16  Bruno Haible  <bruno@clisp.org>
24412
24413         * lib/clean-temp.c: Include fwriteerror.h.
24414
24415 2006-10-16  Bruno Haible  <bruno@clisp.org>
24416
24417         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
24418
24419 2006-10-16  Bruno Haible  <bruno@clisp.org>
24420
24421         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
24422         * lib/sigprocmask.h: Include <sys/types.h>.
24423         (sigset_t): Use the system's definition if present.
24424
24425 2006-10-17  Eric Blake  <ebb9@byu.net>
24426
24427         * lib/xvasprintf.c (includes): Assume config.h.
24428         * lib/xasprintf.c (includes): Likewise.
24429
24430 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24431
24432         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
24433         at least as wide as intmax_t.
24434
24435 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
24436
24437         (Imported from Automake.)
24438         * build-aux/gnupload: Update to version 1.1 of directive file.
24439
24440 2006-10-16  Eric Blake  <ebb9@byu.net>
24441
24442         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
24443         match Automake 1.10a.
24444
24445 2006-10-14  Bruno Haible  <bruno@clisp.org>
24446
24447         * modules/sigprocmask: New file.
24448         * lib/sigprocmask.h: New file.
24449         * lib/sigprocmask.c: New file.
24450         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
24451         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
24452         request sigprocmask.o.
24453         (gl_PREREQ_SIGPROCMASK): New macro.
24454         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
24455         (Depends-on): Add sigprocmask.
24456         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
24457         gt_SIGNALBLOCKING. Test for 'raise' only once.
24458         * lib/fatal-signal.c: Include sigprocmask.h.
24459         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
24460         unblock_fatal_signals): Define always.
24461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24462         sigprocmask.
24463
24464 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24465
24466         Sync from Automake.
24467         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
24468         which incorrectly sets the mode of an existing destination
24469         directory.  In some cases the unpatched install-sh could do the
24470         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
24471         system.  We hope this is rare in practice, but it's clearly worth
24472         fixing.  Problem reported by Alex Unleashed in
24473         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
24474         Also, don't bother to check for -m bugs unless we're using -m;
24475         suggested by Stepan Kasal.
24476
24477 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24478
24479         Sync from Automake.
24480         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
24481         `-c' flag, so they appear at the same position as in %FASTDEP%
24482         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
24483         which ignores unknown options only after the first non-option.
24484         Bug report against M4 by Nelson H. F. Beebe.
24485
24486 2006-10-13  Jim Meyering  <jim@meyering.net>
24487
24488         Fix a bug in yesterday's change.
24489         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
24490         p->fts_statp->st_dev would be used uninitialized.
24491         Ensures that we always call fts_stat on the very first entry.
24492         Miklos Szeredi reported that find -xdev stopped working.
24493
24494 2006-10-12  Bruno Haible  <bruno@clisp.org>
24495
24496         * gnulib-tool (func_get_automake_snippet): Append an automatically
24497         computed EXTRA_DIST augmentation.
24498         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
24499         * modules/alloca-opt (Makefile.am): Likewise.
24500         * modules/allocsa (Makefile.am): Likewise.
24501         * modules/arcfour (Makefile.am): Likewise.
24502         * modules/arctwo (Makefile.am): Likewise.
24503         * modules/argmatch (Makefile.am): Likewise.
24504         * modules/argz (Makefile.am): Likewise.
24505         * modules/atexit (Makefile.am): Likewise.
24506         * modules/backupfile (Makefile.am): Likewise.
24507         * modules/byteswap (Makefile.am): Likewise.
24508         * modules/c-strtod (Makefile.am): Likewise.
24509         * modules/c-strtold (Makefile.am): Likewise.
24510         * modules/calloc (Makefile.am): Likewise.
24511         * modules/canon-host (Makefile.am): Likewise.
24512         * modules/canonicalize (Makefile.am): Likewise.
24513         * modules/chdir-long (Makefile.am): Likewise.
24514         * modules/chdir-safer (Makefile.am): Likewise.
24515         * modules/check-version (Makefile.am): Likewise.
24516         * modules/chown (Makefile.am): Likewise.
24517         * modules/cloexec (Makefile.am): Likewise.
24518         * modules/close-stream (Makefile.am): Likewise.
24519         * modules/closeout (Makefile.am): Likewise.
24520         * modules/crc (Makefile.am): Likewise.
24521         * modules/csharpexec (Makefile.am): Likewise.
24522         * modules/cycle-check (Makefile.am): Likewise.
24523         * modules/des (Makefile.am): Likewise.
24524         * modules/dev-ino (Makefile.am): Likewise.
24525         * modules/dirfd (Makefile.am): Likewise.
24526         * modules/dirname (Makefile.am): Likewise.
24527         * modules/dup2 (Makefile.am): Likewise.
24528         * modules/eealloc (Makefile.am): Likewise.
24529         * modules/error (Makefile.am): Likewise.
24530         * modules/euidaccess (Makefile.am): Likewise.
24531         * modules/exclude (Makefile.am): Likewise.
24532         * modules/exitfail (Makefile.am): Likewise.
24533         * modules/fcntl-safer (Makefile.am): Likewise.
24534         * modules/fcntl (Makefile.am): Likewise.
24535         * modules/file-type (Makefile.am): Likewise.
24536         * modules/fileblocks (Makefile.am): Likewise.
24537         * modules/filemode (Makefile.am): Likewise.
24538         * modules/filenamecat (Makefile.am): Likewise.
24539         * modules/fnmatch (Makefile.am): Likewise.
24540         * modules/fopen-safer (Makefile.am): Likewise.
24541         * modules/fpending (Makefile.am): Likewise.
24542         * modules/fprintftime (Makefile.am): Likewise.
24543         * modules/free (Makefile.am): Likewise.
24544         * modules/fsusage (Makefile.am): Likewise.
24545         * modules/ftruncate (Makefile.am): Likewise.
24546         * modules/fts (Makefile.am): Likewise.
24547         * modules/gc-arcfour (Makefile.am): Likewise.
24548         * modules/gc-des (Makefile.am): Likewise.
24549         * modules/gc-hmac-md5 (Makefile.am): Likewise.
24550         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
24551         * modules/gc-md4 (Makefile.am): Likewise.
24552         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
24553         * modules/gc-sha1 (Makefile.am): Likewise.
24554         * modules/gc (Makefile.am): Likewise.
24555         * modules/getaddrinfo (Makefile.am): Likewise.
24556         * modules/getcwd (Makefile.am): Likewise.
24557         * modules/getdelim (Makefile.am): Likewise.
24558         * modules/getdomainname (Makefile.am): Likewise.
24559         * modules/getgroups (Makefile.am): Likewise.
24560         * modules/gethostname (Makefile.am): Likewise.
24561         * modules/gethrxtime (Makefile.am): Likewise.
24562         * modules/getline (Makefile.am): Likewise.
24563         * modules/getloadavg (Makefile.am): Likewise.
24564         * modules/getlogin_r (Makefile.am): Likewise.
24565         * modules/getndelim2 (Makefile.am): Likewise.
24566         * modules/getopt (Makefile.am): Likewise.
24567         * modules/getpagesize (Makefile.am): Likewise.
24568         * modules/getpass-gnu (Makefile.am): Likewise.
24569         * modules/getpass (Makefile.am): Likewise.
24570         * modules/getsubopt (Makefile.am): Likewise.
24571         * modules/gettime (Makefile.am): Likewise.
24572         * modules/gettimeofday (Makefile.am): Likewise.
24573         * modules/getugroups (Makefile.am): Likewise.
24574         * modules/getusershell (Makefile.am): Likewise.
24575         * modules/glob (Makefile.am): Likewise.
24576         * modules/group-member (Makefile.am): Likewise.
24577         * modules/hard-locale (Makefile.am): Likewise.
24578         * modules/hash (Makefile.am): Likewise.
24579         * modules/hmac-md5 (Makefile.am): Likewise.
24580         * modules/hmac-sha1 (Makefile.am): Likewise.
24581         * modules/human (Makefile.am): Likewise.
24582         * modules/idcache (Makefile.am): Likewise.
24583         * modules/imaxabs (Makefile.am): Likewise.
24584         * modules/imaxdiv (Makefile.am): Likewise.
24585         * modules/inet_ntop (Makefile.am): Likewise.
24586         * modules/inet_pton (Makefile.am): Likewise.
24587         * modules/intprops (Makefile.am): Likewise.
24588         * modules/inttostr (Makefile.am): Likewise.
24589         * modules/inttypes (Makefile.am): Likewise.
24590         * modules/isapipe (Makefile.am): Likewise.
24591         * modules/javaversion (Makefile.am): Likewise.
24592         * modules/lchmod (Makefile.am): Likewise.
24593         * modules/lchown (Makefile.am): Likewise.
24594         * modules/localcharset (Makefile.am): Likewise.
24595         * modules/long-options (Makefile.am): Likewise.
24596         * modules/lstat (Makefile.am): Likewise.
24597         * modules/malloc (Makefile.am): Likewise.
24598         * modules/mathl (Makefile.am): Likewise.
24599         * modules/mbchar (Makefile.am): Likewise.
24600         * modules/md2 (Makefile.am): Likewise.
24601         * modules/md4 (Makefile.am): Likewise.
24602         * modules/md5 (Makefile.am): Likewise.
24603         * modules/memcasecmp (Makefile.am): Likewise.
24604         * modules/memchr (Makefile.am): Likewise.
24605         * modules/memcmp (Makefile.am): Likewise.
24606         * modules/memcoll (Makefile.am): Likewise.
24607         * modules/memcpy (Makefile.am): Likewise.
24608         * modules/memmem (Makefile.am): Likewise.
24609         * modules/memmove (Makefile.am): Likewise.
24610         * modules/mempcpy (Makefile.am): Likewise.
24611         * modules/memrchr (Makefile.am): Likewise.
24612         * modules/memset (Makefile.am): Likewise.
24613         * modules/memxor (Makefile.am): Likewise.
24614         * modules/mkancesdirs (Makefile.am): Likewise.
24615         * modules/mkdir-p (Makefile.am): Likewise.
24616         * modules/mkdir (Makefile.am): Likewise.
24617         * modules/mkdtemp (Makefile.am): Likewise.
24618         * modules/mkstemp (Makefile.am): Likewise.
24619         * modules/mktime (Makefile.am): Likewise.
24620         * modules/modechange (Makefile.am): Likewise.
24621         * modules/mountlist (Makefile.am): Likewise.
24622         * modules/nanosleep (Makefile.am): Likewise.
24623         * modules/obstack (Makefile.am): Likewise.
24624         * modules/openat (Makefile.am): Likewise.
24625         * modules/pagealign_alloc (Makefile.am): Likewise.
24626         * modules/pathmax (Makefile.am): Likewise.
24627         * modules/physmem (Makefile.am): Likewise.
24628         * modules/poll (Makefile.am): Likewise.
24629         * modules/posixtm (Makefile.am): Likewise.
24630         * modules/posixver (Makefile.am): Likewise.
24631         * modules/putenv (Makefile.am): Likewise.
24632         * modules/quote (Makefile.am): Likewise.
24633         * modules/quotearg (Makefile.am): Likewise.
24634         * modules/raise (Makefile.am): Likewise.
24635         * modules/read-file (Makefile.am): Likewise.
24636         * modules/readline (Makefile.am): Likewise.
24637         * modules/readlink (Makefile.am): Likewise.
24638         * modules/readtokens (Makefile.am): Likewise.
24639         * modules/readutmp (Makefile.am): Likewise.
24640         * modules/realloc (Makefile.am): Likewise.
24641         * modules/regex (Makefile.am): Likewise.
24642         * modules/rename-dest-slash (Makefile.am): Likewise.
24643         * modules/rename (Makefile.am): Likewise.
24644         * modules/rijndael (Makefile.am): Likewise.
24645         * modules/rmdir (Makefile.am): Likewise.
24646         * modules/rpmatch (Makefile.am): Likewise.
24647         * modules/safe-read (Makefile.am): Likewise.
24648         * modules/safe-write (Makefile.am): Likewise.
24649         * modules/same-inode (Makefile.am): Likewise.
24650         * modules/same (Makefile.am): Likewise.
24651         * modules/save-cwd (Makefile.am): Likewise.
24652         * modules/savedir (Makefile.am): Likewise.
24653         * modules/setenv (Makefile.am): Likewise.
24654         * modules/settime (Makefile.am): Likewise.
24655         * modules/sha1 (Makefile.am): Likewise.
24656         * modules/sig2str (Makefile.am): Likewise.
24657         * modules/snprintf (Makefile.am): Likewise.
24658         * modules/stat-macros (Makefile.am): Likewise.
24659         * modules/stat-time (Makefile.am): Likewise.
24660         * modules/stdbool (Makefile.am): Likewise.
24661         * modules/stdint (Makefile.am): Likewise.
24662         * modules/stdlib-safer (Makefile.am): Likewise.
24663         * modules/stpcpy (Makefile.am): Likewise.
24664         * modules/stpncpy (Makefile.am): Likewise.
24665         * modules/strcase (Makefile.am): Likewise.
24666         * modules/strcasestr (Makefile.am): Likewise.
24667         * modules/strchrnul (Makefile.am): Likewise.
24668         * modules/strcspn (Makefile.am): Likewise.
24669         * modules/strdup (Makefile.am): Likewise.
24670         * modules/strerror (Makefile.am): Likewise.
24671         * modules/strftime (Makefile.am): Likewise.
24672         * modules/strndup (Makefile.am): Likewise.
24673         * modules/strnlen (Makefile.am): Likewise.
24674         * modules/strpbrk (Makefile.am): Likewise.
24675         * modules/strsep (Makefile.am): Likewise.
24676         * modules/strstr (Makefile.am): Likewise.
24677         * modules/strtod (Makefile.am): Likewise.
24678         * modules/strtoimax (Makefile.am): Likewise.
24679         * modules/strtok_r (Makefile.am): Likewise.
24680         * modules/strtol (Makefile.am): Likewise.
24681         * modules/strtoll (Makefile.am): Likewise.
24682         * modules/strtoul (Makefile.am): Likewise.
24683         * modules/strtoull (Makefile.am): Likewise.
24684         * modules/strtoumax (Makefile.am): Likewise.
24685         * modules/strverscmp (Makefile.am): Likewise.
24686         * modules/sys_socket (Makefile.am): Likewise.
24687         * modules/sys_stat (Makefile.am): Likewise.
24688         * modules/sysexits (Makefile.am): Likewise.
24689         * modules/time_r (Makefile.am): Likewise.
24690         * modules/timegm (Makefile.am): Likewise.
24691         * modules/timespec (Makefile.am): Likewise.
24692         * modules/tmpfile-safer (Makefile.am): Likewise.
24693         * modules/trim (Makefile.am): Likewise.
24694         * modules/unistd-safer (Makefile.am): Likewise.
24695         * modules/unlinkdir (Makefile.am): Likewise.
24696         * modules/unlocked-io (Makefile.am): Likewise.
24697         * modules/userspec (Makefile.am): Likewise.
24698         * modules/utime (Makefile.am): Likewise.
24699         * modules/utimecmp (Makefile.am): Likewise.
24700         * modules/utimens (Makefile.am): Likewise.
24701         * modules/vasnprintf (Makefile.am): Likewise.
24702         * modules/vasprintf (Makefile.am): Likewise.
24703         * modules/vsnprintf (Makefile.am): Likewise.
24704         * modules/xalloc (Makefile.am): Likewise.
24705         * modules/xgetcwd (Makefile.am): Likewise.
24706         * modules/xnanosleep (Makefile.am): Likewise.
24707         * modules/xreadlink (Makefile.am): Likewise.
24708         * modules/xstrtod (Makefile.am): Likewise.
24709         * modules/xstrtol (Makefile.am): Likewise.
24710         * modules/xstrtold (Makefile.am): Likewise.
24711         * modules/yesno (Makefile.am): Likewise.
24712         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
24713
24714 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
24715
24716         * modules/error (Makefile.am): Distribute files through
24717         EXTRA_DIST, not lib_SOURCES.
24718
24719 2006-10-12  Eric Blake  <ebb9@byu.net>
24720
24721         * modules/error (Makefile.am): Distribute files in /lib.
24722         * modules/obstack (Makefile.am): Likewise.
24723
24724 2006-10-12  Bruno Haible  <bruno@clisp.org>
24725
24726         * modules/acl (Makefile.am): Distribute all files in lib/ through
24727         EXTRA_DIST.
24728         * modules/arcfour (Makefile.am): Likewise.
24729         * modules/arctwo (Makefile.am): Likewise.
24730         * modules/argmatch (Makefile.am): Likewise.
24731         * modules/argz (Makefile.am): Likewise.
24732         * modules/atexit (Makefile.am): Likewise.
24733         * modules/backupfile (Makefile.am): Likewise.
24734         * modules/c-strtod (Makefile.am): Likewise.
24735         * modules/c-strtold (Makefile.am): Likewise.
24736         * modules/calloc (Makefile.am): Likewise.
24737         * modules/canon-host (Makefile.am): Likewise.
24738         * modules/canonicalize (Makefile.am): Likewise.
24739         * modules/chdir-long (Makefile.am): Likewise.
24740         * modules/chdir-safer (Makefile.am): Likewise.
24741         * modules/check-version (Makefile.am): Likewise.
24742         * modules/chown (Makefile.am): Likewise.
24743         * modules/cloexec (Makefile.am): Likewise.
24744         * modules/close-stream (Makefile.am): Likewise.
24745         * modules/closeout (Makefile.am): Likewise.
24746         * modules/crc (Makefile.am): Likewise.
24747         * modules/cycle-check (Makefile.am): Likewise.
24748         * modules/des (Makefile.am): Likewise.
24749         * modules/dirfd (Makefile.am): Likewise.
24750         * modules/dirname (Makefile.am): Likewise.
24751         * modules/dup2 (Makefile.am): Likewise.
24752         * modules/euidaccess (Makefile.am): Likewise.
24753         * modules/exclude (Makefile.am): Likewise.
24754         * modules/exitfail (Makefile.am): Likewise.
24755         * modules/fcntl-safer (Makefile.am): Likewise.
24756         * modules/file-type (Makefile.am): Likewise.
24757         * modules/fileblocks (Makefile.am): Likewise.
24758         * modules/filemode (Makefile.am): Likewise.
24759         * modules/filenamecat (Makefile.am): Likewise.
24760         * modules/fnmatch (Makefile.am): Likewise.
24761         * modules/fopen-safer (Makefile.am): Likewise.
24762         * modules/fpending (Makefile.am): Likewise.
24763         * modules/fprintftime (Makefile.am): Likewise.
24764         * modules/free (Makefile.am): Likewise.
24765         * modules/fsusage (Makefile.am): Likewise.
24766         * modules/ftruncate (Makefile.am): Likewise.
24767         * modules/fts (Makefile.am): Likewise.
24768         * modules/gc (Makefile.am): Likewise.
24769         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
24770         * modules/getaddrinfo (Makefile.am): Likewise.
24771         * modules/getcwd (Makefile.am): Likewise.
24772         * modules/getdelim (Makefile.am): Likewise.
24773         * modules/getdomainname (Makefile.am): Likewise.
24774         * modules/getgroups (Makefile.am): Likewise.
24775         * modules/gethostname (Makefile.am): Likewise.
24776         * modules/gethrxtime (Makefile.am): Likewise.
24777         * modules/getline (Makefile.am): Likewise.
24778         * modules/getloadavg (Makefile.am): Likewise.
24779         * modules/getlogin_r (Makefile.am): Likewise.
24780         * modules/getopt (Makefile.am): Likewise.
24781         * modules/getpass (Makefile.am): Likewise.
24782         * modules/getpass-gnu (Makefile.am): Likewise.
24783         * modules/getsubopt (Makefile.am): Likewise.
24784         * modules/gettime (Makefile.am): Likewise.
24785         * modules/gettimeofday (Makefile.am): Likewise.
24786         * modules/getugroups (Makefile.am): Likewise.
24787         * modules/getusershell (Makefile.am): Likewise.
24788         * modules/glob (Makefile.am): Likewise.
24789         * modules/group-member (Makefile.am): Likewise.
24790         * modules/hard-locale (Makefile.am): Likewise.
24791         * modules/hash (Makefile.am): Likewise.
24792         * modules/hmac-md5 (Makefile.am): Likewise.
24793         * modules/hmac-sha1 (Makefile.am): Likewise.
24794         * modules/human (Makefile.am): Likewise.
24795         * modules/idcache (Makefile.am): Likewise.
24796         * modules/imaxabs (Makefile.am): Likewise.
24797         * modules/imaxdiv (Makefile.am): Likewise.
24798         * modules/inet_ntop (Makefile.am): Likewise.
24799         * modules/inet_pton (Makefile.am): Likewise.
24800         * modules/inttostr (Makefile.am): Likewise.
24801         * modules/isapipe (Makefile.am): Likewise.
24802         * modules/lchown (Makefile.am): Likewise.
24803         * modules/long-options (Makefile.am): Likewise.
24804         * modules/lstat (Makefile.am): Likewise.
24805         * modules/malloc (Makefile.am): Likewise.
24806         * modules/mathl (Makefile.am): Likewise.
24807         * modules/mbchar (Makefile.am): Likewise.
24808         * modules/md2 (Makefile.am): Likewise.
24809         * modules/md4 (Makefile.am): Likewise.
24810         * modules/md5 (Makefile.am): Likewise.
24811         * modules/memcasecmp (Makefile.am): Likewise.
24812         * modules/memchr (Makefile.am): Likewise.
24813         * modules/memcmp (Makefile.am): Likewise.
24814         * modules/memcoll (Makefile.am): Likewise.
24815         * modules/memcpy (Makefile.am): Likewise.
24816         * modules/memmem (Makefile.am): Likewise.
24817         * modules/memmove (Makefile.am): Likewise.
24818         * modules/mempcpy (Makefile.am): Likewise.
24819         * modules/memrchr (Makefile.am): Likewise.
24820         * modules/memset (Makefile.am): Likewise.
24821         * modules/memxor (Makefile.am): Likewise.
24822         * modules/mkancesdirs (Makefile.am): Likewise.
24823         * modules/mkdir (Makefile.am): Likewise.
24824         * modules/mkdir-p (Makefile.am): Likewise.
24825         * modules/mkdtemp (Makefile.am): Likewise.
24826         * modules/mkstemp (Makefile.am): Likewise.
24827         * modules/mktime (Makefile.am): Likewise.
24828         * modules/modechange (Makefile.am): Likewise.
24829         * modules/mountlist (Makefile.am): Likewise.
24830         * modules/nanosleep (Makefile.am): Likewise.
24831         * modules/openat (Makefile.am): Likewise.
24832         * modules/pagealign_alloc (Makefile.am): Likewise.
24833         * modules/physmem (Makefile.am): Likewise.
24834         * modules/poll (Makefile.am): Likewise.
24835         * modules/posixtm (Makefile.am): Likewise.
24836         * modules/posixver (Makefile.am): Likewise.
24837         * modules/putenv (Makefile.am): Likewise.
24838         * modules/quote (Makefile.am): Likewise.
24839         * modules/quotearg (Makefile.am): Likewise.
24840         * modules/raise (Makefile.am): Likewise.
24841         * modules/read-file (Makefile.am): Likewise.
24842         * modules/readline (Makefile.am): Likewise.
24843         * modules/readlink (Makefile.am): Likewise.
24844         * modules/readtokens (Makefile.am): Likewise.
24845         * modules/readutmp (Makefile.am): Likewise.
24846         * modules/realloc (Makefile.am): Likewise.
24847         * modules/regex (Makefile.am): Likewise.
24848         * modules/rename (Makefile.am): Likewise.
24849         * modules/rename-dest-slash (Makefile.am): Likewise.
24850         * modules/rijndael (Makefile.am): Likewise.
24851         * modules/rmdir (Makefile.am): Likewise.
24852         * modules/rpmatch (Makefile.am): Likewise.
24853         * modules/safe-read (Makefile.am): Likewise.
24854         * modules/safe-write (Makefile.am): Likewise.
24855         * modules/same (Makefile.am): Likewise.
24856         * modules/save-cwd (Makefile.am): Likewise.
24857         * modules/savedir (Makefile.am): Likewise.
24858         * modules/setenv (Makefile.am): Likewise.
24859         * modules/settime (Makefile.am): Likewise.
24860         * modules/sha1 (Makefile.am): Likewise.
24861         * modules/sig2str (Makefile.am): Likewise.
24862         * modules/snprintf (Makefile.am): Likewise.
24863         * modules/stdlib-safer (Makefile.am): Likewise.
24864         * modules/stpcpy (Makefile.am): Likewise.
24865         * modules/stpncpy (Makefile.am): Likewise.
24866         * modules/strcase (Makefile.am): Likewise.
24867         * modules/strcasestr (Makefile.am): Likewise.
24868         * modules/strchrnul (Makefile.am): Likewise.
24869         * modules/strcspn (Makefile.am): Likewise.
24870         * modules/strdup (Makefile.am): Likewise.
24871         * modules/strerror (Makefile.am): Likewise.
24872         * modules/strftime (Makefile.am): Likewise.
24873         * modules/strndup (Makefile.am): Likewise.
24874         * modules/strnlen (Makefile.am): Likewise.
24875         * modules/strpbrk (Makefile.am): Likewise.
24876         * modules/strsep (Makefile.am): Likewise.
24877         * modules/strstr (Makefile.am): Likewise.
24878         * modules/strtod (Makefile.am): Likewise.
24879         * modules/strtoimax (Makefile.am): Likewise.
24880         * modules/strtok_r (Makefile.am): Likewise.
24881         * modules/strtol (Makefile.am): Likewise.
24882         * modules/strtoll (Makefile.am): Likewise.
24883         * modules/strtoul (Makefile.am): Likewise.
24884         * modules/strtoull (Makefile.am): Likewise.
24885         * modules/strtoumax (Makefile.am): Likewise.
24886         * modules/strverscmp (Makefile.am): Likewise.
24887         * modules/time_r (Makefile.am): Likewise.
24888         * modules/timegm (Makefile.am): Likewise.
24889         * modules/tmpfile-safer (Makefile.am): Likewise.
24890         * modules/unistd-safer (Makefile.am): Likewise.
24891         * modules/unlinkdir (Makefile.am): Likewise.
24892         * modules/userspec (Makefile.am): Likewise.
24893         * modules/utime (Makefile.am): Likewise.
24894         * modules/utimecmp (Makefile.am): Likewise.
24895         * modules/utimens (Makefile.am): Likewise.
24896         * modules/vasnprintf (Makefile.am): Likewise.
24897         * modules/vasprintf (Makefile.am): Likewise.
24898         * modules/vsnprintf (Makefile.am): Likewise.
24899         * modules/xalloc (Makefile.am): Likewise.
24900         * modules/xgetcwd (Makefile.am): Likewise.
24901         * modules/xnanosleep (Makefile.am): Likewise.
24902         * modules/xreadlink (Makefile.am): Likewise.
24903         * modules/xstrtod (Makefile.am): Likewise.
24904         * modules/xstrtol (Makefile.am): Likewise.
24905         * modules/xstrtold (Makefile.am): Likewise.
24906         * modules/yesno (Makefile.am): Likewise.
24907
24908 2006-10-12  Jim Meyering  <jim@meyering.net>
24909
24910         * m4/getloadavg.m4: Revert the change below.
24911
24912         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
24913         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
24914         fail with a symlink, which is what coreutils' ./bootstrap now
24915         creates by default.
24916
24917 2006-10-12  Bruno Haible  <bruno@clisp.org>
24918
24919         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
24920         mingw.
24921         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
24922         MSVC and mingw explicitly.
24923
24924 2006-10-11  Simon Josefsson  <jas@extundo.com>
24925             Bruno Haible  <bruno@clisp.org>
24926
24927         Add support for multiple gnulib-tool invocations in the scope of a
24928         single configure.ac file.
24929         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
24930         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
24931         with the same contents as the _LIBADD variable.
24932         (func_emit_initmacro_start, func_emit_initmacro_end,
24933         func_emit_initmacro_done): New functions.
24934         (func_import, func_create_testdir): Invoke them. Allow the identifiers
24935         gl_LIBOBJS and gl_LTLIBOBJS.
24936
24937 2006-10-11  Bruno Haible  <bruno@clisp.org>
24938
24939         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
24940         (func_create_testdir): Don't create po/Makefile.am, don't invoke
24941         autoreconf. Instead, invoke autopoint explicitly but move back the
24942         *.m4 files from gnulib.
24943
24944 2006-10-11  Bruno Haible  <bruno@clisp.org>
24945
24946         * gnulib-tool (func_usage): Make module names after --create-testdir
24947         optional.
24948         (func_create_testdir): If no module was specified, use nearly all
24949         modules.
24950
24951 2006-10-12  Jim Meyering  <jim@meyering.net>
24952
24953         Big performance improvement for fts-based tools that use FTS_NOSTAT.
24954         Avoid spurious inode-mismatch problems on non-POSIX file systems.
24955         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
24956         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
24957         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
24958         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
24959         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
24960         (fts_set_stat_required): New function.
24961         (fts_open): Defer the calls to fts_stat, if possible or requested.
24962         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
24963         into fts_stat itself.
24964         (fts_read): Perform any required (deferred) fts_stat call.
24965         (fts_build): Likewise, for the directory we're about to open and read.
24966         In the readdir loop, carefully decide whether each entry will require
24967         an eventual call to fts_stat, using dirent.d_type info if available.
24968         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
24969         a command line argument into this function.  Update all callers.
24970         Map a return value of FTS_DOT to FTS_D for a command line argument.
24971         * modules/fts (Depends-on): Add d-type.  Alphabetize.
24972         Thanks to Miklos Szeredi for his tenacity and for the initial
24973         bug report about "find" failing on a FUSE-based file system.
24974
24975         * lib/fts.c (fts_open): Use consistent indentation.
24976
24977 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
24978
24979         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
24980         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
24981         reported by Jim Meyering.  All uses of cache variables renamed
24982         to match Autoconf's.
24983         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
24984         the other one.
24985
24986         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24987         Fix misspelling in diagnostic.
24988
24989 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24990
24991         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
24992         defined.  Problem reported by Matthew Woehlke.
24993
24994         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
24995         Add support for Tandem NonStop R series.
24996         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
24997         Use new macro.
24998
24999         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
25000         (has_trailing_slash): Omit size arg; all callers changed.
25001         Omit 'inline', since it doesn't help performance and we'd
25002         need to configure it.
25003         Don't count //, ///, etc. as having a trailing slash.
25004         As a side effect, this removes a C99ism reported by Matthew Woehlke.
25005         (rpl_rename_dest_slash): On failure, use rename's errno rather
25006         than (in some cases) an incorrect or junk errno.
25007         Simplify code by removing need to compute length; this does
25008         cause it to make two passes instead of one over the file name,
25009         but it's worth it.
25010
25011         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
25012         change, since Autoconf's version may no longer be appropriate now
25013         that we are using CVS Autoconf's version.  Add support for Tandem.
25014
25015 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25016             Bruno Haible  <bruno@clisp.org>
25017
25018         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
25019         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
25020         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
25021         gl_AC_TYPE_LONG_LONG.
25022
25023         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
25024         instead of HAVE_LONG_LONG.
25025         * lib/printf-args.c (printf_fetchargs): Likewise.
25026         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25027         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25028         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
25029         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
25030         gl_AC_TYPE_LONG_LONG.
25031
25032 2006-10-11  Bruno Haible  <bruno@clisp.org>
25033
25034         * m4/longlong.m4: Add comments.
25035         * m4/ulonglong.m4: Likewise.
25036
25037 2006-10-10  Bruno Haible  <bruno@clisp.org>
25038
25039         Make it possible to #define stpcpy, strdup to aliases.
25040         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
25041         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
25042
25043 2006-10-10  Bruno Haible  <bruno@clisp.org>
25044
25045         Make it possible to #define gcd to an alias.
25046         * lib/gcd.c: Include config.h.
25047
25048 2006-10-10  Bruno Haible  <bruno@clisp.org>
25049
25050         Make it possible to #define c_isascii to an alias.
25051         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
25052         defined. Undefine the macros before defining them, to avoid gcc
25053         warnings.
25054         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
25055         define NO_C_CTYPE_MACROS early.
25056
25057 2006-10-10  Bruno Haible  <bruno@clisp.org>
25058
25059         Make it possible to #define set_program_name to an alias.
25060         * lib/progname.c: Don't undefine set_program_name; instead, undefine
25061         ENABLE_RELOCATABLE early.
25062
25063 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25064
25065         Port to Tandem NSK OSS, which has 64-bit signed int but at most
25066         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
25067         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
25068         More generally, don't assume that 64-bit signed int is available
25069         if unsigned int is, and vice versa.
25070         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
25071         unsigned symbols, not on their signed counterparts.
25072         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
25073         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
25074         (UINT64_C, UINTMAX_C):
25075         Likewise.
25076         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
25077         unsigned counterparts.
25078         (Have_long_long, Unsigned): New macros.
25079         (Int): Renamed from INT.
25080         (strtoimax): Use the new macros.
25081         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
25082         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
25083         * modules/inttypes (inttypes.h): Substitute
25084         HAVE_UNSIGNED_LONG_LONG_INT.
25085         * modules/stdint (stdint.h): Likewise.
25086         (Files): Add m4/ulonglong.m4.
25087
25088 2006-10-10  Bruno Haible  <bruno@clisp.org>
25089
25090         Fix a gcc -Wshadow warning.
25091         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
25092         to 'bucket'.
25093         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
25094         gl_linked_indexof_from_to): Likewise.
25095         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
25096         Likewise.
25097         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
25098         Likewise.
25099         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
25100         Reported by Eric Blake.
25101
25102 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
25103
25104         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
25105         for NetBSD.  Problem reported by Bruno Haible.
25106
25107 2006-10-09  Jim Meyering  <jim@meyering.net>
25108
25109         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
25110         Patch from Bruno Haible.
25111
25112 2006-10-09  Jim Meyering  <jim@meyering.net>
25113
25114         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
25115         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
25116         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
25117
25118 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         Don't include <config.h> twice; this doesn't work in some cases,
25121         e.g., when config.h has "#define intmax_t long long int" and
25122         we include <config.h>, <inttypes.h>, <config.h> in that order.
25123         Problem reported by Matthew Woehlke in:
25124         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
25125         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
25126         * lib/fts-cycle.c: Don't include config.h.
25127         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
25128         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
25129         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
25130         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
25131         inttypes.h.
25132         * lib/xstrtoumax.c: Likewise.
25133         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
25134         __strtol and the like, so that this module is more like its siblings.
25135         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
25136         Remove; no longer needed now that we assume gnulib inttypes.h.
25137
25138 2006-10-08  Bruno Haible  <bruno@clisp.org>
25139
25140         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
25141         option.
25142
25143 2006-10-07  Jim Meyering  <jim@meyering.net>
25144
25145         * modules/inttypes (inttypes.h): Revert what seems to have been
25146         an inadvertent part of today's change: use "|", not "/" in the
25147         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
25148
25149 2006-10-07  Bruno Haible  <bruno@clisp.org>
25150
25151         * modules/sublist: New file.
25152
25153 2006-10-07  Bruno Haible  <bruno@clisp.org>
25154
25155         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
25156         * modules/argz (argz.h): Likewise.
25157         * modules/arpa_inet (arpa/inet.h): Likewise.
25158         * modules/byteswap (byteswap.h): Likewise.
25159         * modules/configmake (configmake.h): Likewise.
25160         * modules/fcntl (fcntl.h): Likewise.
25161         * modules/fnmatch (fnmatch.h): Likewise.
25162         * modules/getopt (getopt.h): Likewise.
25163         * modules/glob (glob.h): Likewise.
25164         * modules/inttypes (inttypes.h): Likewise.
25165         * modules/netinet_in (netinet/in.h): Likewise.
25166         * modules/poll (poll.h): Likewise.
25167         * modules/stdbool (stdbool.h): Likewise.
25168         * modules/stdint (stdint.h): Likewise.
25169         * modules/sys_select (sys/select.h): Likewise.
25170         * modules/sys_socket (sys/socket.h): Likewise.
25171         * modules/sys_stat (sys/stat.h): Likewise.
25172         * modules/sysexits (sysexits.h): Likewise.
25173         * modules/unistd (unistd.h): Likewise.
25174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25175         Add a "DO NOT EDIT" comment to the generated file.
25176         (func_import): Likewise for gnulib-comp.m4.
25177
25178 2006-10-07  Bruno Haible  <bruno@clisp.org>
25179
25180         * lib/gl_sublist.h: New file.
25181         * lib/gl_sublist.c: New file.
25182
25183 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25184
25185         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
25186         name (relative to the original working directory) and the file
25187         name component (relative to the temporary working directory).  All
25188         callers changed.
25189         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
25190         * lib/mkdir-p.c (make_dir_parents): Likewise.
25191         * lib/mkdir-p.h (make_dir_parents): Likewise.
25192
25193 2006-10-06  Eric Blake  <ebb9@byu.net>
25194
25195         Define several macros for use by the clean-temp module.
25196         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
25197         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
25198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
25199
25200         * lib/clean-temp.h (close_stream_temp): New declaration.
25201         * lib/clean-temp.c (includes): Pull in headers according to what
25202         other modules are in use.
25203         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
25204
25205 2006-10-06  Bruno Haible  <bruno@clisp.org>
25206
25207         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
25208         instead of fopen, fwriteerror.
25209
25210 2006-10-06  Bruno Haible  <bruno@clisp.org>
25211
25212         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
25213         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
25214         int.
25215         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
25216         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
25217         Return an error indicator.
25218         Suggested by Eric Blake.
25219
25220 2006-10-06  Bruno Haible  <bruno@clisp.org>
25221
25222         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
25223         Reported by Eric Blake.
25224
25225 2006-10-06  Bruno Haible  <bruno@clisp.org>
25226
25227         * modules/closeout (Description): Mention stderr too.
25228
25229 2006-10-06  Bruno Haible  <bruno@clisp.org>
25230         and Paul Eggert  <eggert@cs.ucla.edu>
25231
25232         * lib/closeout.c (close_stdout): Also close stderr.
25233         * lib/closeout.h: Update comment.
25234
25235 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25236
25237         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
25238         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
25239         * lib/dirchownmod.c: Include lchown.h.
25240         * lib/lchown.c: Don't include files that lchown.h now includes.
25241         Don't declare chown, since lchown.h now does that.
25242         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
25243         (lchown): Define to rpl_chown if lchown is declared but
25244         does not exist.  Declare using a prototype if lchown is not
25245         declared.  Add a copyright notice.
25246         * lib/mkstemp.h: Include <unistd.h>.
25247         * lib/openat.c: Include lchown.h.
25248
25249         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
25250         we now test for that separately.
25251         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
25252         rather than O_NOFOLLOW, when testing whether it's possible to
25253         avoid a race condition reliably.
25254         * lib/savewd.c (savewd_chdir): Likewise.
25255
25256         Remove macros that are no longer needed now that stdint.h is
25257         reliable.
25258         * lib/fsusage.c (UINTMAX_MAX): Remove.
25259         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
25260         * lib/utimecmp.c (SIZE_MAX): Remove.
25261
25262         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
25263
25264         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
25265         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
25266         O_NOATIME works.
25267
25268 2006-10-05  Bruno Haible  <bruno@clisp.org>
25269
25270         * lib/gl_list.h (gl_sortedlist_search_from_to,
25271         gl_sortedlist_indexof_from_to): New declarations.
25272         (gl_list_implementation): New fields sortedlist_search_from_to,
25273         sortedlist_indexof_from_to.
25274         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
25275         inline functions.
25276         * lib/gl_list.c (gl_sortedlist_search_from_to,
25277         gl_sortedlist_indexof_from_to): New functions.
25278         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
25279         function.
25280         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
25281         (gl_array_sortedlist_search_from_to): New function.
25282         (gl_array_list_implementation): Update.
25283         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
25284         function.
25285         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
25286         (gl_carray_sortedlist_search_from_to): New function.
25287         (gl_carray_list_implementation): Update.
25288         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
25289         gl_linked_sortedlist_indexof_from_to): New functions.
25290         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25291         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25292         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
25293         gl_tree_sortedlist_indexof_from_to): New functions.
25294         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25295         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25296         Update.
25297         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25298         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
25299         Update.
25300
25301 2006-10-05  Bruno Haible  <bruno@clisp.org>
25302
25303         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
25304         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
25305         (struct gl_list_implementation): Add fields search_from_to,
25306         indexof_from_to. Remove fields search, indexof.
25307         (gl_list_search): Use the search_from_to method.
25308         (gl_list_search_from, gl_list_search_from_to): New functions.
25309         (gl_list_indexof): Use the indexof_from_to method.
25310         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
25311         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
25312         (gl_list_search_from, gl_list_search_from_to): New functions.
25313         (gl_list_indexof): Use the indexof_from_to method.
25314         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
25315         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
25316         gl_array_indexof. Add start_index, end_index arguments.
25317         (gl_array_search_from_to): Renamed from gl_array_search. Add
25318         start_index, end_index arguments.
25319         (gl_array_remove, gl_array_list_implementation): Update.
25320         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
25321         gl_carray_indexof. Add start_index, end_index arguments.
25322         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
25323         start_index, end_index arguments.
25324         (gl_carray_remove, gl_carray_list_implementation): Update.
25325         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
25326         gl_linked_search. Add start_index, end_index arguments.
25327         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
25328         start_index, end_index arguments.
25329         (gl_linked_remove): Update.
25330         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25331         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25332         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
25333         field to 'size_t'.
25334         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
25335         gl_tree_search. Add start_index, end_index arguments.
25336         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
25337         start_index, end_index arguments.
25338         (gl_tree_remove): Update.
25339         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25340         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25341         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
25342         function.
25343         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
25344         gl_tree_search. Add start_index, end_index arguments.
25345         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
25346         start_index, end_index arguments.
25347         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25348         Update.
25349         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25350
25351 2006-10-05  Bruno Haible  <bruno@clisp.org>
25352
25353         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
25354
25355         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
25356         fwriteerror_temp): New declarations.
25357         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
25358         (descriptors): New variable.
25359         (cleanup): First, close the descriptors.
25360         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
25361         fclose_temp, fwriteerror_temp): New functions.
25362
25363 2006-10-04  Jim Meyering  <jim@meyering.net>
25364
25365         * lib/fts.c (fts_open): Tiny comment change.
25366
25367 2006-10-04  Bruno Haible  <bruno@clisp.org>
25368
25369         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
25370         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
25371         gl_LOCK_BODY.
25372         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
25373         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
25374         gl_LOCK_EARLY_BODY.
25375         (gl_LOCK): Require gl_LOCK_BODY.
25376
25377 2006-10-04  Bruno Haible  <bruno@clisp.org>
25378
25379         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
25380         (gl_oset_search_atleast): New declaration.
25381         (struct gl_oset_implementation): Add field 'search_atleast'.
25382         (gl_oset_search_atleast): New inline function.
25383         * lib/gl_oset.c (gl_oset_search_atleast): New function.
25384         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
25385         (gl_array_oset_implementation): Update.
25386         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
25387         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
25388         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
25389
25390 2006-10-04  Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
25393
25394 2006-10-03  Bruno Haible  <bruno@clisp.org>
25395
25396         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
25397         from gl_avltreehash_list_implementation.
25398
25399 2006-10-03  Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/gl_oset.c (gl_oset_add): Fix return type.
25402
25403 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
25404
25405         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
25406
25407 2006-10-02  Eric Blake  <ebb9@byu.net>
25408
25409         * modules/strnlen (Depends-on): Add extensions.
25410
25411 2006-10-02  Eric Blake  <ebb9@byu.net>
25412
25413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
25414         definition in 2.60+.
25415
25416 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
25417
25418         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
25419         checks.
25420
25421 2006-10-02  Bruno Haible  <bruno@clisp.org>
25422
25423         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
25424         to the AUTOMAKE_OPTIONS.
25425         Reported by Jim Meyering.
25426
25427 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         Work around bug in Solaris 10 /proc file system:
25430         /proc/self/fd/NNN/.. isn't the parent directory of
25431         the directory whose file descriptor is NNN.  This needs to
25432         be worked around at run time, not compile time, since a
25433         program might be built on Solaris 8, where things work, and
25434         run on Solaris 10.
25435         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
25436         to use the following interface instead:
25437         (OPENAT_BUFFER_SIZE): New macro.
25438         (openat_proc_name): New function.
25439         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
25440         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
25441         Likewise.
25442         * lib/openat-proc.c: New file.
25443         * modules/openat (Files): Add lib/openat-proc.c.
25444         (Depends-on): Add same-inode, stdbool.
25445         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
25446
25447 2006-09-29  Bruno Haible  <bruno@clisp.org>
25448
25449         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
25450         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
25451         argument. Set stdout_closed before testing for ferror, not after.
25452         (fwriteerror, fwriteerror_no_ebadf): New functions.
25453
25454 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25455
25456         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
25457
25458 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
25459
25460         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
25461         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
25462
25463 2006-09-28  Jim Meyering  <jim@meyering.net>
25464
25465         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
25466         Include <unistd.h>.
25467
25468 2006-09-28  Bruno Haible  <bruno@clisp.org>
25469
25470         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
25471         * modules/linkedhash-list (Depends-on): Likewise.
25472         * modules/rbtreehash-list (Depends-on): Likewise.
25473
25474 2006-09-28  Bruno Haible  <bruno@clisp.org>
25475
25476         * lib/strndup.h: Simplify the redefinition of strndup.
25477         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
25478         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
25479
25480 2006-09-28  Bruno Haible  <bruno@clisp.org>
25481
25482         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
25483         * lib/gl_linkedhash_list.c: Likewise.
25484         * lib/gl_rbtreehash_list.c: Likewise.
25485
25486 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25487
25488         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
25489         getaddrinfo.
25490
25491         * lib/__fpending.h: Don't include <stdio_ext.h> unless
25492         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
25493         it causes <stdio_ext.h> to cause a compile-time error.
25494         Problem reported by Nelson H. F. Beebe.
25495         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
25496         of HAVE_DECL___PENDING.
25497
25498         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
25499         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
25500         declaration.
25501
25502 2006-09-27  Jim Meyering  <jim@meyering.net>
25503
25504         This file could end up with a definition for a function
25505         named __strndup, rather than rpl_strndup on a system with
25506         incomplete weak_alias support.
25507         * lib/strndup.c (strndup): Rename from __strndup.
25508         Remove #defines that used to map __strndup to strndup.
25509         Don't use K&R prototypes.
25510         Remove LIBC-related code, since this file is not sync'd with glibc.
25511         * lib/strndup.h: Revamp, accordingly.
25512         * m4/strndup.m4: Modernize.
25513
25514 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25515
25516         * modules/savewd (Depends-on): Add 'raise'.
25517         * lib/savewd.c: Include <signal.h>, for 'raise'.
25518
25519 2006-09-26  Jim Meyering  <jim@meyering.net>
25520
25521         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
25522         when we detect Darwin 8.7.0's acl_get_file bug.
25523         Rearrange to perform the new (below) run-test while $LIBS
25524         contains any acl-related library.  Set USE_ACL at the end.
25525         (gl_ACL_GET_FILE): New function.
25526
25527 2006-09-26  Eric Blake  <ebb9@byu.net>
25528
25529         * lib/verror.c: Include <config.h> unconditionally.
25530
25531 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25532
25533         * modules/clock-time (Maintainer): Add self.
25534         * modules/getlogin_r (Depends-on): Add extensions.
25535
25536 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25537
25538         * modules/clock-time: New module.
25539         * modules/nanosleep (Depends-on): Add clock-time.
25540         * modules/gethrxtime (Depends-on): Likewise.
25541         * modules/gettime (Depends-on): Likewise.
25542         * modules/settime (Depends-on): Likewise.
25543
25544         * modules/fts-lgpl: Depend on openat.
25545         * modules/mkancesdirs: Depend on savewd.
25546         * modules/mkdir-p: Likewise.
25547
25548 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25549
25550         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
25551
25552         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
25553         `gl_have_arbitrary_file_name_length_limit' to
25554         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
25555         actually works between configure runs.
25556
25557 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25558             Bruno Haible  <bruno@clisp.org>
25559
25560         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
25561
25562 2006-09-25  Jim Meyering  <jim@meyering.net>
25563
25564         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
25565         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
25566
25567 2006-09-25  Eric Blake  <ebb9@byu.net>
25568
25569         * gnulib-tool (func_import, func_create_testdir): Fix typos in
25570         exec's in 2006-09-18 patch when shuffling fds.
25571
25572 2006-09-25  Bruno Haible  <bruno@clisp.org>
25573
25574         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
25575         Reported by Jim Meyering.
25576
25577 2006-09-24  Jim Meyering  <jim@meyering.net>
25578
25579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
25580         compare a pointer against a literal "0".  That caused failures with
25581         at least HP-UX's hpcc.
25582
25583 2006-09-22  Simon Josefsson  <jas@extundo.com>
25584
25585         * modules/gc-sha1:
25586         * modules/gc-md4:
25587         * modules/gc-hmac-sha1:
25588         * modules/gc-hmac-md5:
25589         * modules/gc-des:
25590         * modules/gc-arcfour: Distribute more files.
25591
25592 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25593
25594         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
25595         (gl_linked_iterator_from_to): Initialize struct completely.
25596         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
25597         (gl_tree_iterator_from_to): Likewise
25598         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
25599         * lib/gl_array_list.c [lint] (gl_array_iterator)
25600         (gl_array_iterator_from_to): Likewise.
25601         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
25602         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
25603         (gl_carray_iterator_from_to): Likewise.
25604
25605         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
25606         * lib/md4.c (md4_process_block): Remove unused variable.
25607         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
25608         parentheses for clarity.
25609
25610 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25611
25612         * modules/bison-i18n (Depends-on): Add gettext.
25613
25614 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25615
25616         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
25617         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25618         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
25619         also add missing comma that caused broken test.
25620         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
25621         stdlib.h, for `abort'.
25622         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
25623         variables.
25624         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
25625         include unistd.h if present, for `rmdir'.
25626         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
25627         variables.
25628         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
25629         in the process include standard headers for prototypes.
25630         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
25631         gets declared on GNU/Linux.
25632         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
25633         unistd.h, for `rmdir'.
25634         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
25635
25636         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
25637         always true.
25638         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
25639
25640         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
25641
25642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25643
25644         * gnulib-tool (func_version): Create output all at once.  This
25645         may help avoid triggering unnecessary SIGPIPEs, and at any
25646         rate it doesn't hurt.
25647
25648 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25649             Bruno Haible  <bruno@clisp.org>
25650
25651         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
25652         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25653         * m4/signed.m4 (bh_C_SIGNED): Likewise.
25654
25655         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
25656         (gl_FUNC_VASPRINTF): Invoke it.
25657
25658 2006-09-22  Bruno Haible  <bruno@clisp.org>
25659
25660         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
25661         getloadavg.c as first argument.
25662
25663 2006-09-22  Bruno Haible  <bruno@clisp.org>
25664
25665         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
25666         at the beginning of the gl_INIT macro.
25667         * modules/getloadavg (configure.ac): Pass $gl_source_base to
25668         gl_GETLOADAVG.
25669
25670 2006-09-22  Bruno Haible  <bruno@clisp.org>
25671
25672         * gnulib-tool (func_create_megatestdir): Don't include the config-h
25673         module.
25674         Suggested by Ralf Wildenhues.
25675
25676 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25677
25678         Import this patch from libc:
25679
25680         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
25681
25682         * lib/regex_internal.c (re_string_reconstruct): Handle
25683         offset < pstr->valid_raw_len && pstr->offsets_needed case.
25684         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
25685         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
25686         re_string_context_at.
25687
25688         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
25689         now requires it.
25690         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
25691         gl_REGEX now does it for us.
25692         (gl_REGEX): Add test taken from
25693         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
25694
25695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
25696         Check that large offsets work.  Modernize Autoconf usages.
25697         Prefer "yes" to mean a good thing rather than a bad.
25698         Don't put "#define mkstemp" in config.h, as this might interfere
25699         with standard system headers that "#define mkstemp mkstemp64".
25700
25701         * modules/mkstemp (Depends-on): Add extensions, so that
25702         mkstemp is visible on some platforms.
25703         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
25704         (Include): Change to "mkstemp.h" from <stdlib.h>.
25705         (Files): Add mkstemp.h.
25706
25707         * lib/mkstemp.h: New file, since some standard headers
25708         #define mkstemp.
25709         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
25710         Include "mkstemp.h".
25711         Make the _LIBC code resemble glibc original more,
25712         e.g., use K&R style.
25713         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
25714         (mkstemp): Remove, since mkstemp.h does this for us.
25715         * lib/stdlib--.h: Include mkstemp.h.
25716
25717         Import this patch from libc:
25718
25719         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
25720
25721         * lib/tempname.c (__gen_tempname): Change attempts_min
25722         into a macro.  Use preprocessor to decide how to initialize
25723         attempts [Coverity CID 67].
25724
25725 2006-09-20  Bruno Haible  <bruno@clisp.org>
25726
25727         * lib/mkdtemp.c: Import from libc.
25728         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
25729                 * sysdeps/posix/tempname.c (__gen_tempname): Change
25730                 attempts_min into a macro.  Use preprocessor to decide how to
25731                 initialize attempts [Coverity CID 67].
25732         2001-11-27  Paul Eggert  <eggert@twinsun.com>
25733                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
25734                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
25735
25736 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25737
25738         * gnulib-tool (func_exit): New function, to allow to pass the
25739         exit status portably through the trap.  Use everywhere.
25740         (--help, --version): Signal a write error.
25741         (trap): catch SIGPIPE, for write errors.
25742         Exit at the end of the trap, with the correct exit status.
25743
25744 2006-09-19  Karl Berry  <karl@gnu.org>
25745
25746         * doc/gnulib.texi: note about the license texinfo files.
25747
25748 2006-09-19  Eric Blake  <ebb9@byu.net>
25749
25750         * gnulib-tool: Avoid space-tab.
25751
25752 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
25753
25754         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
25755         that prevented coreutils 6.1 from building.  Problem reported
25756         by Petter Reinholdtsen.
25757
25758 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
25759
25760         * gnulib-tool (avoidlist): Fix typo that broke options like
25761         --avoid=lock that are used by coreutils bootstrap.
25762
25763 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
25764
25765         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
25766         more systematically.
25767
25768 2006-09-18  Jim Meyering  <jim@meyering.net>
25769
25770         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
25771
25772 2006-09-18  Bruno Haible  <bruno@clisp.org>
25773
25774         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
25775
25776 2006-09-18  Bruno Haible  <bruno@clisp.org>
25777
25778         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
25779         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
25780         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
25781         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
25782         * m4/gettext.m4: Require autoconf >= 2.52.
25783         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
25784         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
25785         of gl_cv_header_inttypes_h.
25786
25787 2006-09-18  Bruno Haible  <bruno@clisp.org>
25788
25789         * lib/javaversion.c: Include configmake.h.
25790
25791 2006-09-18  Bruno Haible  <bruno@clisp.org>
25792
25793         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
25794         avoid that the while loops be executed in a subshell.
25795
25796 2006-09-18  Bruno Haible  <bruno@clisp.org>
25797
25798         * MODULES.html.sh (func_module): Break long lines.
25799         Suggested by Bruce Korb <bkorb@gnu.org>.
25800
25801 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25802
25803         Speed up by a factor of 1.12.
25804         * gnulib-tool (nl): New variable.
25805         (func_import): Rewrite include directive extraction to only read each
25806         directive once.
25807
25808 2006-09-17  Bruno Haible  <bruno@clisp.org>
25809
25810         * modules/javaversion (Makefile.am): Remove DEFS setting.
25811         (Depends-on): Add configmake, for PKGDATADIR definition.
25812
25813 2006-09-17  Bruno Haible  <bruno@clisp.org>
25814
25815         * gnulib-tool (func_create_testdir): Rewrite all files at once.
25816
25817 2006-09-17  Bruno Haible  <bruno@clisp.org>
25818
25819         * gnulib-tool (func_append): New function, stolen from libtool.m4.
25820         (func_modules_transitive_closure, func_modules_add_dummy,
25821         func_modules_to_filelist, func_import, func_create_testdir,
25822         func_create_megatestdir, ...): Use it wherever possible.
25823         Suggested by Ralf Wildenhues.
25824
25825 2006-09-16  Karl Berry  <karl@gnu.org>
25826
25827         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
25828         to avoid sectioning errors.
25829         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
25830         [ifinfo]: blank line after @center-ed titles.
25831         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
25832         Spell FSF address consistently with others.
25833         (These changes approved by rms.)
25834
25835 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25836
25837         Speed up by a factor of 1.61.
25838         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
25839         already checked module names again.
25840
25841 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25842
25843         Speed up by a factor of 1.13.
25844         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
25845         for new_files, and the input to func_add_or_update.
25846
25847 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25848
25849         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
25850         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
25851
25852 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25853
25854         * modules/mkancesdirs (Depends-on): Add fcntl.
25855         * modules/savewd: New file.
25856         * MODULES.html.sh (File system functions): Add savewd.
25857
25858         * modules/configmake (Makefile.am): Add support for the
25859         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
25860
25861 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25862
25863         * m4/savewd.m4: New file.
25864
25865 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25866
25867         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
25868         (dirchownmod): New arg FD.  All callers changed.
25869         Use FD rather than opening the directory ourself, as opening is
25870         now the caller's responsibility.
25871         * lib/dirchownmod.h: Likewise.
25872         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
25873         hosts that require <sys/types.h> before <sys/stat.h>.  Include
25874         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
25875         (test_dir): Remove.
25876         (mkancesdirs): Return length of prefix of FILE that has already
25877         been made, or -2 if there is a child doing the work.  Redo
25878         algorithm so that it is O(N) rather than O(N**2).  Optimize away
25879         ".", and treat ".." specially since it might stray back into
25880         already-created areas.  Use a subprocess if necessary.  New arg
25881         WD; all users changed.  MAKE_DIR function should now return 1
25882         if it creates a directory that is not readable.  Return -2 if
25883         a child process is spun off.
25884         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
25885         Adjust signature to match code.
25886         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
25887         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
25888         all users changed.
25889         * lib/savewd.c, lib/savewd.h: New files.
25890
25891 2006-09-15  Jim Meyering  <jim@meyering.net>
25892
25893         * modules/rename-dest-slash: New module.
25894         * MODULES.html.sh (posix_compat): Add it here.
25895
25896         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
25897
25898 2006-09-15  Jim Meyering  <jim@meyering.net>
25899
25900         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
25901         file.
25902
25903         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
25904
25905 2006-09-15  Jim Meyering  <jim@meyering.net>
25906
25907         * lib/rename-dest-slash.c (has_trailing_slash): Use
25908         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
25909         (rpl_rename_dest_slash): Perform the cheaper trailing slash
25910         test before testing whether SRC is a directory.
25911         Suggestions from Bruno Haible.
25912
25913         Avoid a warning about an unused variable.
25914         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
25915         into the #ifdef block where it's used.
25916
25917         * lib/rename-dest-slash.c: New file.
25918
25919 2006-09-14  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/allocsa.c: Include <config.h> unconditionally.
25922         * lib/asnprintf.c: Likewise.
25923         * lib/asprintf.c: Likewise.
25924         * lib/c-strcasecmp.c: Likewise.
25925         * lib/c-strcasestr.c: Likewise.
25926         * lib/c-strncasecmp.c: Likewise.
25927         * lib/c-strstr.c: Likewise.
25928         * lib/classpath.c: Likewise.
25929         * lib/clean-temp.c: Likewise.
25930         * lib/concatpath.c: Likewise.
25931         * lib/copy-file.c: Likewise.
25932         * lib/csharpcomp.c: Likewise.
25933         * lib/csharpexec.c: Likewise.
25934         * lib/execute.c: Likewise.
25935         * lib/fatal-signal.c: Likewise.
25936         * lib/findprog.c: Likewise.
25937         * lib/fwriteerror.c: Likewise.
25938         * lib/gl_array_list.c: Likewise.
25939         * lib/gl_array_oset.c: Likewise.
25940         * lib/gl_avltree_list.c: Likewise.
25941         * lib/gl_avltree_oset.c: Likewise.
25942         * lib/gl_avltreehash_list.c: Likewise.
25943         * lib/gl_carray_list.c: Likewise.
25944         * lib/gl_linked_list.c: Likewise.
25945         * lib/gl_linkedhash_list.c: Likewise.
25946         * lib/gl_list.c: Likewise.
25947         * lib/gl_oset.c: Likewise.
25948         * lib/gl_rbtree_list.c: Likewise.
25949         * lib/gl_rbtree_oset.c: Likewise.
25950         * lib/gl_rbtreehash_list.c: Likewise.
25951         * lib/imaxabs.c: Likewise.
25952         * lib/imaxdiv.c: Likewise.
25953         * lib/javacomp.c: Likewise.
25954         * lib/javaexec.c: Likewise.
25955         * lib/javaversion.c: Likewise.
25956         * lib/linebreak.c: Likewise.
25957         * lib/localcharset.c: Likewise.
25958         * lib/lock.c: Likewise.
25959         * lib/mbchar.c: Likewise.
25960         * lib/mbswidth.c: Likewise.
25961         * lib/mkdtemp.c: Likewise.
25962         * lib/pipe.c: Likewise.
25963         * lib/printf-args.c: Likewise.
25964         * lib/printf-parse.c: Likewise.
25965         * lib/progname.c: Likewise.
25966         * lib/progreloc.c: Likewise.
25967         * lib/readlink.c: Likewise.
25968         * lib/sh-quote.c: Likewise.
25969         * lib/stpcpy.c: Likewise.
25970         * lib/stpncpy.c: Likewise.
25971         * lib/strcasecmp.c: Likewise.
25972         * lib/strcasestr.c: Likewise.
25973         * lib/strcspn.c: Likewise.
25974         * lib/striconv.c: Likewise.
25975         * lib/strncasecmp.c: Likewise.
25976         * lib/strnlen1.c: Likewise.
25977         * lib/strstr.c: Likewise.
25978         * lib/strtok_r.c: Likewise.
25979         * lib/tls.c: Likewise.
25980         * lib/tmpdir.c: Likewise.
25981         * lib/unicodeio.c: Likewise.
25982         * lib/unsetenv.c: Likewise.
25983         * lib/vasnprintf.c: Likewise.
25984         * lib/vasprintf.c: Likewise.
25985         * lib/wait-process.c: Likewise.
25986         * lib/xallocsa.c: Likewise.
25987         * lib/xsetenv.c: Likewise.
25988         * lib/xstriconv.c: Likewise.
25989
25990 2006-09-13  Simon Josefsson  <jas@extundo.com>
25991
25992         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
25993         that internally, suggested by Ralf Wildenhues
25994         <Ralf.Wildenhues@gmx.de>.
25995
25996 2006-09-13  Simon Josefsson  <jas@extundo.com>
25997
25998         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
25999         @LIBOBJS@.
26000         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26001
26002 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26003
26004         * lib/_fpending.c: Include <config.h> unconditionally, since we no
26005         longer worry about uses that don't define HAVE_CONFIG_H.
26006         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
26007         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
26008         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
26009         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
26010         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
26011         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
26012         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
26013         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
26014         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
26015         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
26016         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
26017         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
26018         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
26019         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
26020         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
26021         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
26022         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
26023         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
26024         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
26025         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
26026         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
26027         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
26028         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
26029         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
26030         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
26031         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
26032         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
26033         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
26034         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
26035         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
26036         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
26037         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
26038         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
26039         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
26040         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
26041         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
26042         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
26043         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
26044         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
26045         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
26046         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
26047         Likewise.
26048
26049 2006-09-13  Eric Blake  <ebb9@byu.net>
26050
26051         * lib/getopt.c: Fix typo in last commit.
26052
26053 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26054
26055         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
26056         dgettext.
26057
26058 2006-09-12  Jim Meyering  <jim@meyering.net>
26059
26060         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
26061         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
26062         Reported by Nelson H. F. Beebe.
26063
26064 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26065
26066         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
26067         program_invocation_name and program_invocation_short_name are
26068         initialized.
26069         * lib/argp-namefrob.h: Move declarations of program_invocation_name
26070         and program_invocation_short_name to argp.h, so they are visible
26071         to user programs.
26072         * lib/argp.h: Likewise
26073
26074 2006-09-10  Bruno Haible  <bruno@clisp.org>
26075
26076         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
26077         m4/inttypes_h.m4, m4/uintmax_t.m4.
26078
26079 2006-09-10  Bruno Haible  <bruno@clisp.org>
26080
26081         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
26082         gl_AC_TYPE_UINTMAX_T.
26083
26084 2006-09-10  Bruno Haible  <bruno@clisp.org>
26085
26086         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
26087
26088 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26089
26090         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
26091         convention.  Text proposed by Bruno Haible.
26092         (struct argp_option): Document the use of N_() wrappers.
26093
26094         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
26095         '\v', and translate the two parts separately, instead of feeding
26096         the whole string to gettext.  This allows to exclude
26097         '\v' from the strings visible to the translator by writing doc
26098         strings as N_("..") "\v" N_("..").
26099
26100 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
26101
26102         * config/srclist.txt: Undo latest change; the bug was fixed.
26103
26104 2006-09-09  Bruno Haible  <bruno@clisp.org>
26105
26106         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
26107         assignments if building a library without libtool.
26108         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
26109         in func_emit_lib_Makefile_am.
26110         (func_import): When building a static library libfoo.a, arrange to
26111         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
26112         (func_create_testdir): Likewise.
26113         * modules/gc (configure.ac, Makefile.am): If building statically,
26114         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
26115         * modules/iconvme (configure.ac, Makefile.am): Likewise.
26116         * modules/striconv (configure.ac, Makefile.am): Likewise.
26117         Based on a suggestion by Ralf Wildenhues.
26118
26119 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26120
26121         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26122         Check for unistd.h too, since Autoconf doesn't assume POSIX.
26123         Also:
26124
26125         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26126         Add year_2050_test to catch glibc bug 2821
26127         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
26128
26129         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
26130         Prefer #ifdef to #if.
26131
26132         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26133         Return from 'main' instead of calling 'exit'.
26134
26135 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26136
26137         * lib/mktime.c (guess_time_tm): Fix bug where mktime
26138         returned the maximum time_t value rather than (time_t) -1.
26139         Problem originally reported by William Bardwell
26140         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
26141
26142         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
26143         Moved to here ...
26144         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
26145         ... from here.
26146
26147 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26148
26149         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
26150         2821 is fixed.
26151
26152 2006-09-08  Jim Meyering  <jim@meyering.net>
26153
26154         Don't make generated files read-only.  That would bother too many
26155         people.  However, do retain the ability to work when targets are
26156         read-only: remove the destination and temporary files before writing
26157         them (when generated via sed or echo), or by using the -f option for
26158         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
26159         * modules/alloca-opt, modules/argz, modules/arpa_inet:
26160         * modules/byteswap, modules/configmake, modules/fcntl:
26161         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
26162         * modules/localcharset, modules/netinet_in, modules/poll:
26163         * modules/stdbool, modules/stdint, modules/sys_select:
26164         * modules/sys_socket, modules/sys_stat, modules/sysexits:
26165
26166 2006-09-08  Jim Meyering  <jim@meyering.net>
26167
26168         Avoid new build failure on FreeBSD 6.0.
26169         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
26170         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
26171         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
26172
26173 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26174
26175         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
26176
26177 2006-09-07  Jim Meyering  <jim@meyering.net>
26178
26179         Fix global typo in last change: use chmod u-w, not chmod u-x.
26180         Spotted by Paul Eggert and Bruce Korb.
26181         * modules/alloca-opt, modules/argz, modules/arpa_inet:
26182         * modules/byteswap, modules/configmake, modules/fcntl:
26183         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
26184         * modules/localcharset, modules/netinet_in, modules/poll:
26185         * modules/stdbool, modules/stdint, modules/sys_select:
26186         * modules/sys_socket, modules/sys_stat, modules/sysexits:
26187
26188 2006-09-06  Jim Meyering  <jim@meyering.net>
26189
26190         Make generated files be read-only.
26191         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
26192         Ensure that each generated file is now read-only.
26193         * modules/argz: Likewise.
26194         * modules/arpa_inet: Likewise.
26195         * modules/byteswap: Likewise.
26196         * modules/configmake: Likewise.
26197         * modules/fcntl: Likewise.
26198         * modules/fnmatch: Likewise.
26199         * modules/getopt: Likewise.
26200         * modules/glob: Likewise.
26201         * modules/inttypes: Likewise.
26202         * modules/netinet_in: Likewise.
26203         * modules/poll: Likewise.
26204         * modules/stdbool: Likewise.
26205         * modules/stdint: Likewise.
26206         * modules/sys_select: Likewise.
26207         * modules/sys_socket: Likewise.
26208         * modules/sys_stat: Likewise.
26209         * modules/sysexits: Likewise.
26210         * modules/localcharset: Same as above, but continue using temporary
26211         file named "t-$@" (why different?) rather than the "$@-t" used
26212         everywhere else.
26213
26214         * modules/sysexits (Makefile.am): Replace literal occurrences
26215         of "sysexit.h" more readable, and more consistent, "$@".
26216
26217 2006-09-06  Bruno Haible  <bruno@clisp.org>
26218
26219         * modules/striconv: New file.
26220         * modules/xstriconv: New file.
26221         * MODULES.html.sh (Internationalization functions): Add striconv,
26222         xstriconv.
26223
26224 2006-09-06  Bruno Haible  <bruno@clisp.org>
26225
26226         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
26227         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
26228         not using libtool correctly.
26229
26230 2006-09-06  Bruno Haible  <bruno@clisp.org>
26231
26232         * lib/striconv.h: New file.
26233         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
26234         iconvstring.c.
26235         * lib/xstriconv.h: New file.
26236         * lib/xstriconv.c: New file.
26237
26238 2006-09-06  Bruno Haible  <bruno@clisp.org>
26239
26240         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26241         lib_..._LDFLAGS.
26242
26243 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26244
26245         * lib/argz_.h: Sync from Libtool.
26246
26247         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
26248                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26249
26250         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
26251
26252 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
26253
26254         * modules/trim: New file.
26255
26256 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
26257
26258         * lib/trim.h: New file.
26259         * lib/trim.c: New file.
26260
26261 2006-09-05  Bruno Haible  <bruno@clisp.org>
26262
26263         * MODULES.html.sh (String handling): Add trim.
26264
26265 2006-09-04  Karl Berry  <karl@gnu.org>
26266
26267         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
26268         until next release.
26269
26270 2006-09-03  Bruno Haible  <bruno@clisp.org>
26271
26272         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
26273         correctly.
26274
26275 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26276
26277         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
26278         not gl_GETLOADAVG.  Omit unneeded semicolons.
26279         Problems reported by Ralf Wildenhues in
26280         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
26281         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
26282         at the end, which is the usual gnulib style.
26283
26284         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
26285         of doing all the work ourselves.
26286         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
26287         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
26288
26289 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26290
26291         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
26292         Problem reported by Ralf Wildenhues in
26293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
26294
26295         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
26296         HAVE_STRUCT_STATFS_F_FSTYPENAME.
26297
26298 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26299
26300         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
26301         yesterday's patch by changing test -n to test -z.
26302
26303 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26304
26305         * modules/getloadavg (Files): Add m4/getloadavg.m4.
26306         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
26307         the former is now obsolescent.
26308
26309         * modules/chdir-long (Depends-on): Add fcntl.
26310
26311 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26312
26313         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
26314         obsolescent, and programs should use gnulib instead.
26315         * m4/getloadavg.m4: New file, with contents taken from Autoconf
26316         but with prefixes changed.
26317
26318 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26319
26320         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
26321         or stdbool.h, because they might not exist while configuring.
26322
26323         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
26324         Don't include unistd.h or limits.h; not needed, since chdir-long.h
26325         does that for us.
26326         (O_DIRECTORY): Remove.
26327
26328 2006-08-31  Eric Blake  <ebb9@byu.net>
26329
26330         * gnulib-tool: Don't let emacs change spaces to TAB.
26331
26332 2006-08-31  Bruno Haible  <bruno@clisp.org>
26333
26334         * gnulib-tool: When calling func_import more than once, do it in a
26335         subshell.
26336         Reported by Eric Blake <ebb9@byu.net>.
26337
26338 2006-08-31  Bruno Haible  <bruno@clisp.org>
26339
26340         * gnulib-tool (nl): Remove variable.
26341         (sed_transform_lib_file): Use more robust test for config-h module.
26342         (func_import): Fix typo in 2006-08-25 patch.
26343
26344 2006-08-31  Bruno Haible  <bruno@clisp.org>
26345
26346         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
26347         specified, augment Makefile.am variables instead of assigning them.
26348
26349 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26350
26351         Work around a bug in both the Linux and SunOS 64-bit kernels:
26352         nanosleep mishandles sleeps for longer than 2**31 seconds.
26353         Problem reported by Frank v Waveren in
26354         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
26355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
26356         Check for nanosleep bug.
26357         (LIB_NANOSLEEP): Append clock_gettime library if needed.
26358
26359 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26360
26361         Work around a bug in both the Linux and SunOS 64-bit kernels:
26362         nanosleep mishandles sleeps for longer than 2**31 seconds.
26363         Problem reported by Frank v Waveren in
26364         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
26365         * lib/nanosleep.c (BILLION): New constant.
26366         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
26367         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
26368         implementation.
26369
26370 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26371
26372         * modules/nanosleep (Depends-on): Add gettime.
26373
26374 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26375         and Simon Josefsson  <jas@extundo.com>
26376         and Oskar Liljeblad  <oskar@osk.mine.nu>
26377
26378         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
26379         * gnulib-tool (func_import): New license type 'unmodifiable license
26380         text'.
26381         * modules/fdl: Use it.  Longer description.
26382         * module/gpl, module/lgpl: New files.
26383
26384 2006-08-30  Jim Meyering  <jim@meyering.net>
26385
26386         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
26387         shadowing the parameter.
26388
26389 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26390
26391         Sync from Libtool:
26392
26393         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26394
26395         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
26396         sharing with gnulib.  Report by Eric Blake.
26397
26398 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26399
26400         * modules/isapipe: New file.
26401         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
26402
26403 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26404
26405         * modules/configmake (Makefile.am): Add a comment, and omit
26406         the CONFIGMAKE_ prefix from generated macro names.  Suggested
26407         by Bruno Haible.
26408
26409 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26410
26411         * m4/isapipe.m4: New file.
26412
26413 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26414
26415         * lib/isapipe.c, lib/isapipe.h: New files.
26416
26417 2006-08-29  Jim Meyering  <jim@meyering.net>
26418
26419         * modules/configmake (Makefile.am): Make configmake.h depend on
26420         Makefile.  Otherwise, a stale configmake.h could hang around.
26421
26422 2006-08-29  Eric Blake  <ebb9@byu.net>
26423
26424         * lib/error.c (error_at_line, print_errno_message): Match libc, after
26425         resolution of upstream bug 3044.
26426
26427 2006-08-29  Bruno Haible  <bruno@clisp.org>
26428
26429         * modules/localcharset (Depends-on): Add configmake.
26430         (Makefile.am): Remove setting of LIBDIR through DEFS.
26431
26432 2006-08-29  Bruno Haible  <bruno@clisp.org>
26433
26434         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
26435         defined.
26436
26437 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
26438
26439         * modules/fcntl: New file.
26440         * modules/chdir-safer (Depends-on): Add fcntl.
26441         * modules/fts: Likewise.
26442         * modules/mkdir-p: Likewise.
26443
26444         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
26445         This undoes the most recent change, since we're now addressing the
26446         problem in a different way.
26447
26448         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
26449         into output, since the output might be called Makefile.am even
26450         if $makefile_name is something different.
26451         (func_import): Use $makefile_am rather than
26452         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
26453         empty.
26454
26455         * modules/inttypes (Files): Add m4/inttypes-h.m4.
26456
26457 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
26458
26459         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
26460         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
26461         recent change to stdint.m4, since we're now addressing the problem in a
26462         different way.
26463
26464 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
26465
26466         * m4/fcntl_h.m4: New file.
26467
26468 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
26469
26470         * lib/fcntl_.h: New file.
26471         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
26472         the fcntl module.
26473         * lib/dirchownmod.c: Likewise.
26474         * lib/fts.c: Likewise.
26475
26476         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
26477         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
26478         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
26479         just before including <inttypes.h>, to avoid circular inclusion.
26480
26481 2006-08-28  Jim Meyering  <jim@meyering.net>
26482
26483         * doc/visibility.texi: Actually read and correct the grammar of the
26484         sentence affected by yesterday's change.
26485
26486 2006-08-28  Eric Blake  <ebb9@byu.net>
26487
26488         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
26489         needs wrapper.
26490
26491 2006-08-28  Eric Blake  <ebb9@byu.net>
26492
26493         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
26494
26495 2006-08-28  Eric Blake  <ebb9@byu.net>
26496
26497         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
26498
26499 2006-08-28  Bruno Haible  <bruno@clisp.org>
26500
26501         * modules/c-strstr: New file, from GNU gettext.
26502         * MODULES.html.sh (String handling): Add c-strstr.
26503
26504 2006-08-28  Bruno Haible  <bruno@clisp.org>
26505
26506         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
26507         macros.
26508         Reported by Eric Blake.
26509
26510 2006-08-28  Bruno Haible  <bruno@clisp.org>
26511
26512         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
26513         (VASNPRINTF): Return a string of length > INT_MAX without failing.
26514         * lib/vasprintf.c: Include errno.h, limits.h.
26515         (EOVERFLOW): New fallback definition.
26516         (vasprintf): Test here whether the string length is > INT_MAX.
26517         * lib/vsnprintf.c: Include errno.h, limits.h.
26518         (EOVERFLOW): New fallback definition.
26519         (vsnprintf): Fix bug when generated string was too long for the buffer.
26520         Test here whether the string length is > INT_MAX.
26521
26522 2006-08-28  Bruno Haible  <bruno@clisp.org>
26523
26524         * lib/inttypes_.h (SCNX*): Remove definitions.
26525         Reported by Eric Blake.
26526
26527 2006-08-28  Bruno Haible  <bruno@clisp.org>
26528
26529         * lib/c-strstr.h: New file, from GNU gettext.
26530         * lib/c-strstr.c: New file, from GNU gettext.
26531
26532 2006-08-28  Bruno Haible  <bruno@clisp.org>
26533
26534         * gnulib-tool: Reorder some statements.
26535
26536 2006-08-28  Bruno Haible  <bruno@clisp.org>
26537
26538         * gnulib-tool: New option --makefile-name.
26539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
26540         $makefile_name.
26541         (func_import): Write $makefile_name to the cache file, and read it from
26542         there unless explicitly specified. Use $makefile_name as file name
26543         instead of Makefile.am. Adjust the recommendations accordingly.
26544
26545 2006-08-28  Bruno Haible  <bruno@clisp.org>
26546
26547         * gnulib-tool (func_verify_module): Check against misapplying patch.
26548
26549 2006-08-28  Bruno Haible  <bruno@clisp.org>
26550
26551         * gnulib-tool (func_relativize, func_relconcat): New functions.
26552         Give an error if --local-dir is given with --update.
26553         Remove trailing slashes from $local_gnulib_dir.
26554         (func_import): Store the relativized $local_gnulib_dir in
26555         gnulib-cache.m4, and read it from there if not specified explicitly.
26556
26557 2006-08-28  Bruno Haible  <bruno@clisp.org>
26558
26559         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
26560         is the current directory. Respect also $local_gnulib_dir.
26561
26562 2006-08-28  Bruno Haible  <bruno@clisp.org>
26563             Simon Josefsson  <jas@extundo.com>
26564
26565         BeOS portability.
26566         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
26567
26568 2006-08-27  Jim Meyering  <jim@meyering.net>
26569
26570         * doc/visibility.texi: Remove duplicate word: "pointer".
26571
26572 2006-08-26  Bruno Haible  <bruno@clisp.org>
26573
26574         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
26575         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
26576         (Makefile.am): Create inttypes.h from inttypes_.h.
26577         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
26578
26579         * modules/imaxabs: New file.
26580
26581         * modules/imaxdiv: New file.
26582
26583 2006-08-26  Bruno Haible  <bruno@clisp.org>
26584
26585         * m4/inttypes.m4: New file.
26586         * m4/_inttypes_h.m4: Remove file.
26587         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
26588         PRI_MACROS_BROKEN.
26589         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
26590
26591         * m4/imaxabs.m4: New file.
26592
26593         * m4/imaxdiv.m4: New file.
26594
26595 2006-08-26  Bruno Haible  <bruno@clisp.org>
26596
26597         * lib/inttypes_.h: New file.
26598         * lib/inttypes.h: Remove file.
26599         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
26600
26601         * lib/imaxabs.c: New file.
26602
26603         * lib/imaxdiv.c: New file.
26604
26605 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26606
26607         New config-h module, so that "make" output needn't be cluttered
26608         by -DHAVE_CONFIG_H.
26609         * MODULES.html.sh (Support for building libraries and executables):
26610         Add config-h.
26611         * modules/config-h: New file.
26612         * gnulib-tool (nl, sed_transform_lib_file): New vars.
26613         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
26614         the config-h module is used.
26615
26616         New configmake module, so that "make" output needn't be cluttered
26617         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
26618         * MODULES.html.sh (Support for building libraries and executables):
26619         Add configmake.
26620         * modules/configmake: New file.
26621
26622 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26623
26624         * m4/config-h.m4: New file.
26625
26626 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26627
26628         * config/srclist.txt: Add elisp-comp.
26629
26630 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26631
26632         * MODULES.html.sh (Support for building libraries and executables):
26633         Add elisp-comp.
26634         * build-aux/elisp-comp: New file.
26635         * modules/elisp-comp: New file.
26636
26637 2006-08-24  Bruno Haible  <bruno@clisp.org>
26638
26639         * gnulib-tool (func_create_testdir): Use non-default values of
26640         sourcebase and m4base.
26641
26642 2006-08-24  Bruno Haible  <bruno@clisp.org>
26643
26644         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
26645         HTML structure.
26646
26647 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26648
26649         * modules/openat (Depends-on): Add lchown.
26650
26651 2006-08-23  Bruno Haible  <bruno@clisp.org>
26652
26653         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
26654         of gl_LOCK_EARLY instead of gl_LOCK.
26655
26656 2006-08-23  Bruno Haible  <bruno@clisp.org>
26657
26658         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
26659         on OSF/1 to no.
26660         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
26661
26662 2006-08-23  Bruno Haible  <bruno@clisp.org>
26663
26664         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
26665         as unusable.
26666
26667         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
26668         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
26669         (gl_LOCK): New macro.
26670
26671 2006-08-22  Simon Josefsson  <jas@extundo.com>
26672
26673         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
26674         to md5 module.
26675
26676 2006-08-22  Simon Josefsson  <jas@extundo.com>
26677
26678         * MODULES.html.sh: Add "Support for maintaining and release
26679         projects".
26680
26681         * build-aux/gnupload: New file, from coreutils.
26682
26683 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         Avoid the need for AC_LIBSOURCES in m4 macros.
26686         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
26687         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
26688         * modules/check-version (EXTRA_DIST): Add check-version.h.
26689         * modules/crc (EXTRA_DIST): Add crc.h.
26690         * modules/des (EXTRA_DIST): Add des.h.
26691         * modules/gc (EXTRA_DIST): Add gc.h.
26692         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
26693         * modules/getline (EXTRA_DIST): Add getline.h.
26694         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
26695         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
26696         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
26697         * modules/md2 (EXTRA_DIST): Add md2.h.
26698         * modules/md4 (EXTRA_DIST): Add md4.h.
26699         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
26700         * modules/read-file (EXTRA_DIST): Add read-file.h.
26701         * modules/readline (EXTRA_DIST): Add readline.h.
26702         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
26703         rijndael-api-fst.h.
26704
26705 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
26706
26707         * m4/rijndael.m4 (gl_ARCFOUR):
26708         * m4/arctwo.m4 (gl_ARCTWO):
26709         * m4/check-version.m4 (gl_CHECK_VERSION):
26710         * m4/crc.m4 (gl_CRC):
26711         * m4/des.m4 (gl_DES):
26712         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
26713         * m4/gc.m4 (gl_GC):
26714         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
26715         * m4/getline.m4 (gl_FUNC_GETLINE):
26716         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
26717         * m4/hmac-md5.m4 (gl_HMAC_MD5):
26718         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
26719         * m4/md2.m4 (gl_MD2):
26720         * m4/md4.m4 (gl_MD4):
26721         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
26722         * m4/read-file.m4 (gl_FUNC_READ_FILE):
26723         * m4/readline.m4 (gl_FUNC_READLINE):
26724         * m4/rijndael.m4 (gl_RIJNDAEL):
26725         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
26726         to get the necessary .h files and whatnot.
26727
26728 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
26729
26730         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
26731         gnulib rather than the other way around.
26732         * config/srclistvars.sh (COREUTILS): Remove.
26733
26734 2006-08-22  Jim Meyering  <jim@meyering.net>
26735
26736         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
26737
26738         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
26739
26740 2006-08-22  Eric Blake  <ebb9@byu.net>
26741
26742         * modules/regexprops-generic: New file.
26743         * MODULES.html.sh (Support for building documentation): List it.
26744
26745 2006-08-22  Eric Blake  <ebb9@byu.net>
26746
26747         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
26748         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26749         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
26750         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26751
26752 2006-08-22  Bruno Haible  <bruno@clisp.org>
26753
26754         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
26755         and lib_LTLIBRARIES like the other lib_* variables.
26756
26757 2006-08-22  Bruno Haible  <bruno@clisp.org>
26758
26759         * build-aux/x-to-1.in: New file, from GNU gettext.
26760
26761 2006-08-22  Bruno Haible  <bruno@clisp.org>
26762
26763         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
26764         <utmpx.h> exists.
26765
26766 2006-08-22  Bruno Haible  <bruno@clisp.org>
26767
26768         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
26769         <utmpx.h> exists.
26770
26771 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
26772
26773         BeOS portability.
26774         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
26775         exist.
26776         Problem reported by Bruno Haible.
26777
26778 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
26779
26780         Avoid the need for AC_LIBSOURCES in m4 macros.
26781         * modules/acl (EXTRA_DIST): Add acl.h.
26782         * modules/argmatch (Files): Add m4/argmatch.m4.
26783         (configure.ac): Add gl_ARGMATCH.
26784         (EXTRA_DIST): Renamed from lib_SOURCES, for
26785         consistency with the other modules.  Remove argmatch.c.
26786         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
26787         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
26788         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
26789         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
26790         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
26791         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
26792         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
26793         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
26794         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
26795         * modules/closeout (EXTRA_DIST): Add closeout.h.
26796         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
26797         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
26798         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
26799         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
26800         dirname.h; remove basename.c and stripslash.c.
26801         * modules/exclude (EXTRA_DIST): Add exclude.h.
26802         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
26803         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
26804         * modules/file-type (EXTRA_DIST): Add file-type.h.
26805         * modules/filemode (EXTRA_DIST): Add filemode.h.
26806         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
26807         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
26808         * modules/fpending (EXTRA_DIST): Add __fpending.h.
26809         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
26810         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
26811         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
26812         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
26813         * modules/getdate (EXTRA_DIST): Add getdate.c.
26814         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
26815         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
26816         * modules/getpass (EXTRA_DIST): Add getpass.h.
26817         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
26818         * modules/group-member (EXTRA_DIST): Add group-member.h.
26819         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
26820         * modules/hash (EXTRA_DIST): Add hash.h.
26821         * modules/human (EXTRA_DIST): Add human.h.
26822         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
26823         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
26824         * modules/lchown (EXTRA_DIST): Add lchown.h.
26825         * modules/long-options (EXTRA_DIST): Add long-options.h.
26826         * modules/lstat (EXTRA_DIST): Add lstat.h.
26827         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
26828         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
26829         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
26830         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
26831         * modules/memxor (EXTRA_DIST): Add memxor.h.
26832         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
26833         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
26834         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
26835         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
26836         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
26837         * modules/physmem (EXTRA_DIST): Add physmem.h.
26838         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
26839         * modules/posixver (EXTRA_DIST): Add posixver.h.
26840         * modules/quote (EXTRA_DIST): Add quote.h.
26841         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
26842         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
26843         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
26844         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
26845         regex_internal.h regexec.c.
26846         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
26847         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
26848         * modules/same (EXTRA_DIST): Add same.h.
26849         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
26850         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
26851         * modules/savedir (EXTRA_DIST): Add savedir.h.
26852         * modules/sha1 (EXTRA_DIST): Add sha1.h.
26853         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
26854         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
26855         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
26856         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
26857         * modules/strdup (EXTRA_DIST): Add strdup.h.
26858         * modules/strftime (EXTRA_DIST): Add strftime.h.
26859         * modules/strndup (EXTRA_DIST): Add strndup.h.
26860         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
26861         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
26862         * modules/time_r (EXTRA_DIST): Add time_r.h.
26863         * modules/timespec (EXTRA_DIST): Add timespec.h.
26864         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
26865         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
26866         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
26867         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
26868         * modules/userspec (EXTRA_DIST): Add userspec.h.
26869         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
26870         * modules/utimens (EXTRA_DIST): Add utimens.h.
26871         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
26872         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
26873         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
26874         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
26875         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
26876         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
26877         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
26878         * modules/yesno (EXTRA_DIST): Add yesno.h.
26879
26880 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
26881
26882         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
26883
26884         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
26885         * m4/dev-ino.m4, same-inode.m4: Remove.
26886
26887         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
26888         * m4/acl.m4 (AC_FUNC_ACL):
26889         * m4/backupfile.m4 (gl_BACKUPFILE):
26890         * m4/c-strtod.m4 (gl_C99_STRTOLD):
26891         * m4/canon-host.m4 (gl_CANON_HOST):
26892         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26893         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
26894         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
26895         * m4/cloexec.m4 (gl_CLOEXEC):
26896         * m4/close-stream.m4 (gl_CLOSE_STREAM):
26897         * m4/closeout.m4 (gl_CLOSEOUT):
26898         * m4/dirfd.m4 (gl_FUNC_DIRFD):
26899         * m4/dirname.m4 (gl_DIRNAME):
26900         * m4/exclude.m4 (gl_EXCLUDE):
26901         * m4/exitfail.m4 (gl_EXITFAIL):
26902         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
26903         * m4/file-type.m4 (gl_FILE_TYPE):
26904         * m4/filemode.m4 (gl_FILEMODE):
26905         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
26906         * m4/fpending.m4 (gl_FUNC_FPENDING):
26907         * m4/fprintftime.m4 (gl_FPRINTFTIME):
26908         * m4/fts.m4 (gl_FUNC_FTS):
26909         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
26910         * m4/getdate.m4 (gl_GETDATE):
26911         * m4/gethrxtime.m4 (gl_GETHRXTIME):
26912         * m4/getpagesize.m4 (gl_GETPAGESIZE):
26913         * m4/getpass.m4 (gl_FUNC_GETPASS):
26914         * m4/gettime.m4 (gl_GETTIME):
26915         * m4/getugroups.m4 (gl_GETUGROUPS):
26916         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
26917         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
26918         * m4/hard-locale.m4 (gl_HARD_LOCALE):
26919         * m4/hash.m4 (gl_HASH):
26920         * m4/idcache.m4 (gl_IDCACHE):
26921         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
26922         * m4/lchown.m4 (gl_FUNC_LCHOWN):
26923         * m4/long-options.m4 (gl_LONG_OPTIONS):
26924         * m4/lstat.m4 (gl_FUNC_LSTAT):
26925         * m4/md5.m4 (gl_MD5):
26926         * m4/memcasecmp.m4 (gl_MEMCASECMP):
26927         * m4/memcoll.m4 (gl_MEMCOLL):
26928         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
26929         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
26930         * m4/memxor.m4 (gl_MEMXOR):
26931         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
26932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
26933         * m4/modechange.m4 (gl_MODECHANGE):
26934         * m4/mountlist.m4 (gl_MOUNTLIST):
26935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
26936         * m4/openat.m4 (gl_FUNC_OPENAT):
26937         * m4/pathmax.m4 (gl_PATHMAX):
26938         * m4/physmem.m4 (gl_PHYSMEM):
26939         * m4/posixtm.m4 (gl_POSIXTM):
26940         * m4/posixver.m4 (gl_POSIXVER):
26941         * m4/quote.m4 (gl_QUOTE):
26942         * m4/quotearg.m4 (gl_QUOTEARG):
26943         * m4/readtokens.m4 (gl_READTOKENS):
26944         * m4/readutmp.m4 (gl_READUTMP):
26945         * m4/regex.m4 (gl_REGEX):
26946         * m4/safe-read.m4 (gl_SAFE_READ):
26947         * m4/safe-write.m4 (gl_SAFE_WRITE):
26948         * m4/same.m4 (gl_SAME):
26949         * m4/save-cwd.m4 (gl_SAVE_CWD):
26950         * m4/savedir.m4 (gl_SAVEDIR):
26951         * m4/settime.m4 (gl_SETTIME):
26952         * m4/sha1.m4 (gl_SHA1):
26953         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
26954         * m4/stat-macros.m4 (gl_STAT_MACROS):
26955         * m4/stat-time.m4 (gl_STAT_TIME):
26956         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
26957         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
26958         * m4/strdup.m4 (gl_FUNC_STRDUP):
26959         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
26960         * m4/strndup.m4 (gl_FUNC_STRNDUP):
26961         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
26962         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
26963         * m4/time_r.m4 (gl_TIME_R):
26964         * m4/timespec.m4 (gl_TIMESPEC):
26965         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
26966         * m4/unlinkdir.m4 (gl_UNLINKDIR):
26967         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
26968         * m4/userspec.m4 (gl_USERSPEC):
26969         * m4/utimecmp.m4 (gl_UTIMECMP):
26970         * m4/utimens.m4 (gl_UTIMENS):
26971         * m4/xalloc.m4 (gl_XALLOC):
26972         * m4/xgetcwd.m4 (gl_XGETCWD):
26973         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
26974         * m4/xreadlink.m4 (gl_XREADLINK):
26975         * m4/xstrtod.m4 (gl_XSTRTOD):
26976         * m4/yesno.m4 (gl_YESNO):
26977         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
26978         to get the necessary .h files and whatnot.
26979
26980 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
26981             Bruno Haible  <bruno@clisp.org>
26982
26983         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
26984         /bin/sh understanding of '!' conditional negation.
26985
26986 2006-08-21  Jim Meyering  <jim@meyering.net>
26987
26988         * modules/openat (Depends-on): Really alphabetize.
26989
26990         * modules/acl (Depends-on): Add error and quote.
26991
26992         * check-module (find_included_lib_files): Add at-func.c to the
26993         ok-to-include-more-than-once white list.
26994
26995         * modules/openat (Depends-on): Add lstat.  Alphabetize.
26996
26997 2006-08-21  Bruno Haible  <bruno@clisp.org>
26998
26999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27000         Emit a pkgdata_DATA variable only if some snippets add contents to it.
27001         Reported by Martin Lambers <marlam@marlam.de>.
27002
27003 2006-08-21  Bruno Haible  <bruno@clisp.org>
27004
27005         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
27006         specify an installation location, don't emit a noinst_LIBRARIES or
27007         noinst_LTLIBRARIES assignment.
27008
27009 2006-08-21  Bruno Haible  <bruno@clisp.org>
27010
27011         BeOS portability.
27012         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
27013         BeOS has mbrtowc() but no <wctype.h>.
27014
27015 2006-08-21  Bruno Haible  <bruno@clisp.org>
27016
27017         BeOS portability.
27018         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
27019         exist.
27020
27021 2006-08-21  Bruno Haible  <bruno@clisp.org>
27022
27023         BeOS portability.
27024         * lib/mbchar.h: Include <wctype.h> only if it exists.
27025
27026 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27027
27028         Remove files that are no longer needed by their respective modules.
27029         * m4/obstack.m4: Remove.
27030         * m4/strerror_r.m4: Remove.
27031         * m4/uint32_t.m4: Remove.
27032         * m4/uintptr_t.m4: Remove.
27033         * m4/ullong_max.m4: Remove.
27034         * m4/xstrtoimax.m4: Remove.
27035         * m4/xstrtoumax.m4: Remove.
27036
27037         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
27038         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
27039         dependencies now capture this.
27040
27041         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
27042         Do not use AC_LIBSOURCES, since gnulib modules now do this.
27043         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
27044         * m4/human.m4 (gl_HUMAN): Likewise.
27045         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
27046         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
27047
27048         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
27049
27050         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
27051         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
27052         stdint.
27053         * m4/human.m4 (gl_HUMAN): Likewise.
27054         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
27055         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
27056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
27057         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
27058         * m4/xstrtol (gl_XSTRTOL): Likewise.
27059
27060         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
27061         AC_TYPE_LONG_LONG_INT.
27062         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
27063         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
27064         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
27065         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
27066
27067         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
27068         on stdbool.
27069
27070         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
27071         (gl_PREREQ_XSTRTOUL): Remove.
27072
27073         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
27074
27075         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
27076         mode.
27077
27078 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27079
27080         Add and change modules to make it easier for coreutils to use
27081         gnulib-tool.
27082         * modules/backupfile (Files): Remove m4/d-ino.m4.
27083         (Depends-on): Add d-ino.
27084         * modules/cycle-check (Depends-on): Add stdint.
27085         (lib_SOURCES): Add cycle-check.h.
27086         * modules/d-ino: New module.
27087         * modules/d-type: New module.
27088         * modules/error (Files): Remove m4/strerror_r.m4.
27089         * modules/filemode (Files): Add m4/st_dm_mode.m4.
27090         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
27091         m4/inttypes_h.m4, m4/uintmax_t.m4.
27092         (Depends-on): Add stdint.
27093         (lib_SOURCES): Add fsusage.h.
27094         * modules/getcwd (Files): Remove d-ino.m4.
27095         (Depends-on): Add d-ino.
27096         * modules/getndelim2 (Depends-on): Add stdint.
27097         * modules/glob (Files): Remove m4/d-type.m4.
27098         (Depends-on): Add d-type.
27099         * modules/host-os: New module.
27100         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
27101         m4/inttypes_h.m4, m4/uintmax_t.m4.
27102         * Depends-on: Add stdint.
27103         (lib_SOURCES): Add human.h.
27104         * modules/inttostr (Files): Remove m4/intmax_t.m4,
27105         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
27106         m4/uintmax_t.m4, m4/ulonglong.m4.
27107         (Depends-on): Add stdint.
27108         (EXTRA_DIST): Add inttostr.h.
27109         * modules/lchmod: New module.
27110         * modules/link-follow: New module.
27111         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
27112         (Depends-on): Add lchmod.
27113         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
27114         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
27115         (Depends-on): Add stdint.
27116         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
27117         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
27118         (Depends-on): Add stdint.
27119         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
27120         * modules/perl: New module.
27121         * modules/regex (Depends-on): Add stdint.
27122         * modules/rmdir-errno: New module.
27123         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
27124         m4/intmax_t.m4.
27125         (Depends-on): Add stdint.
27126         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
27127         m4/uintmax_t.m4.
27128         (Depends-on): Add stdint.
27129         * modules/unlink-busy: New module.
27130         * modules/utimecmp (Depends-on): Add stdint.
27131         * modules/uptime: New module.
27132         * modules/winsz-ioctl: New module.
27133         * modules/winsz-termios: New module.
27134         * modules/xnanosleep (Depends-on): Add nanosleep.
27135         * modules/ullong_max: Remove.
27136         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
27137         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
27138         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
27139         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
27140         (Depends-on): Add inttypes.
27141         (lib_SOURCES): Add xstrtol.h.
27142         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
27143         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
27144         * MODULES.html.sh: Move 'assert' into the assert section.
27145         Move 'dummy' into the linking section.
27146         Remove ullong_max.
27147         Add section for compatibility checks for POSIX:2001 functions,
27148         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
27149         winsz-ioctl, and winsz-termios into it.
27150         Add lchmod.
27151         Add top-level Misc section and put host-os, perl, and uptime
27152         into it.
27153
27154 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27155
27156         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
27157         now assume the stdint module.  Do not include inttypes.h.
27158         * lib/fsusage.h: Likewise.
27159         * lib/getndelim2.c: Likewise.
27160         * lib/human.h: Likewise.
27161         * lib/inttostr.h: Likewise.
27162         * lib/obstack.c: Likewise.
27163         * lib/regex_internal.h: Likewise.
27164         * lib/tempname.c: Likewise.
27165         * lib/utimecmp.c: Likewise.
27166         * lib/xstrtol.h: Likewise.
27167
27168         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
27169
27170         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
27171         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
27172         * lib/xtime.h: Likewise.
27173
27174 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27175
27176         * modules/openat (Files): Add lib/fchmodat.c.
27177         Fixes problem reported by Jay Youngman.
27178
27179 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27180
27181         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
27182         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
27183
27184 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27185             Bruno Haible  <bruno@clisp.org>
27186
27187         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
27188         and is a script that invokes bison. Tighten the code. Add comments.
27189
27190 2006-08-18  Jim Meyering  <jim@meyering.net>
27191
27192         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
27193         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
27194         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
27195         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
27196
27197 2006-08-18  Bruno Haible  <bruno@clisp.org>
27198
27199         * modules/bison-i18n: New file.
27200         * MODULES.html.sh (Internationalization functions): Add it.
27201
27202 2006-08-18  Bruno Haible  <bruno@clisp.org>
27203
27204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
27205         sys/statvfs.h. When getmntinfo was found, check its declaration and
27206         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
27207
27208 2006-08-18  Bruno Haible  <bruno@clisp.org>
27209
27210         * m4/bison-i18n.m4: New file, from bison.
27211
27212 2006-08-18  Bruno Haible  <bruno@clisp.org>
27213
27214         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
27215         (ME_DUMMY): Treat "kernfs" as a dummy.
27216         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
27217
27218 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27219
27220         Update from coreutils.
27221
27222         2006-08-15  Jim Meyering  <jim@meyering.net>
27223
27224         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
27225
27226         2006-01-17  Jim Meyering  <jim@meyering.net>
27227
27228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
27229
27230         2006-01-11  Jim Meyering  <jim@meyering.net>
27231
27232         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
27233         Check for the lchmod function.
27234
27235 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27236
27237         Update from coreutils.
27238
27239         * lib/__fpending.h: Add copyright notice.
27240         * lib/fprintftime.h: Likewise.
27241         * lib/savedir.c: Use (C) in copyright notice.
27242         * lib/savedir.h: Likewise.
27243
27244         2006-08-15  Jim Meyering  <jim@meyering.net>
27245
27246         * lib/at-func.c: New file, with the logic of all emulated at-functions.
27247         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
27248         in support of the EXPECTED_ERRNO macro.
27249         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
27250         definitions.  Instead, define the appropriate symbols and include
27251         "at-func.c".
27252         * lib/mkdirat.c (mkdirat): Likewise.
27253         * lib/fchmodat.c (fchmodat): Likewise.
27254         (ENOSYS): Remove definition.
27255         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
27256         it.  Don't include "unistd--.h" -- it wasn't ever used.
27257
27258         2006-01-17  Jim Meyering  <jim@meyering.net>
27259
27260         Rewrite fts.c not to change the current working directory,
27261         by using openat, fstatat, fdopendir, etc..
27262
27263         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
27264         (HAVE_OPENAT_SUPPORT): Define.
27265         [_LIBC] (fchdir): Don't undef or define; no longer used.
27266         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
27267         Now, this `function' always succeeds, and consumes its file descriptor
27268         parameter -- so callers must not close such FDs.  Update callers.
27269         (diropen_fd, opendirat, cwd_advance_fd): New functions.
27270         (diropen): Add parameter, SP.  Adjust all callers.
27271         Implement using diropen_fd, rather than open.
27272         (fts_open): Initialize new member, fts_cwd_fd.
27273         Remove fts_rft-setting code.
27274         (fts_close): Close fts_cwd_fd, if necessary.
27275         (__opendir2): Define in terms of opendir or opendirat,
27276         depending on whether the FST_NOCHDIR flag is set.
27277         (fts_build): Since fts_safe_changedir consumes its FD, and since
27278         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
27279         and close the dup'd file descriptor upon failure.
27280         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
27281         (fts_safe_changedir): Tweak semantics to reflect that this function
27282         now calls cwd_advance_fd and hence consumes its FD argument.
27283         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
27284         [struct FTS] (fts_rft): Remove now-unused member.
27285         [struct FTS] (fts_cycle.state): Improve comment.
27286
27287         * lib/openat.c (openat_needs_fchdir): New function.
27288         * lib/openat.h (openat_needs_fchdir): Declare it.
27289
27290 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27291
27292         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
27293         Problem and fix reported by Pádraig Brady in
27294         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
27295
27296 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27297
27298         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
27299
27300 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27301
27302         * lib/memcoll.c (memcoll): Optimize for the common case where the
27303         arguments are bytewise equal.
27304
27305 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27306
27307         * doc/regexprops-generic.texi: Add a copyright notice.
27308
27309 2006-08-15  Bruno Haible  <bruno@clisp.org>
27310
27311         * modules/tmpdir (License): Change to LGPL.
27312
27313 2006-08-15  Bruno Haible  <bruno@clisp.org>
27314
27315         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
27316         module.
27317
27318 2006-08-14  Simon Josefsson  <jas@extundo.com>
27319
27320         * config/srclist.txt: Add gnupload.
27321
27322 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
27323
27324         Change copyright notice from LGPL 2 to GPL 2, since that's the
27325         standard form used in the gnulib repository.
27326         * tests/test-lock.c: Likewise.
27327         * tests/test-stdint.c: Likewise.
27328         * tests/test-tls.c: Likewise.
27329
27330         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
27331         prelude-manager.  User shorter URLs for GNU projects, without '?'.
27332         Add copyright notice.
27333
27334         * check-module: Add copyright notice.  Output a copyright
27335         notice if "--version" is specified.
27336         * modules/COPYING: New file.
27337         * tests/test-getaddrinfo.c: Add copyright notice.
27338         * tests/test-verify.c: Likewise.
27339
27340 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
27341
27342         Change copyright notice from LGPL 2 to GPL 2, since that's the
27343         standard form used in the gnulib repository.
27344         * lib/lock.c: LGPL -> GPL.
27345         * lib/lock.h: Likewise.
27346         * lib/strnlen1.c: Likewise.
27347         * lib/strnlen1.h: Likewise.
27348         * lib/tls.c: Likewise.
27349         * lib/tls.h: Likewise.
27350         * lib/tmpdir.c: Likewise.
27351
27352         * lib/TODO: Remove; this belongs only in coreutils.
27353
27354 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
27355
27356         Add copyright notices to long-enough files that lack them, since
27357         otherwise the files aren't clearly free.  Use the same notice that
27358         getdate.texi already uses.
27359         * doc/alloca-opt.texi: Add copyright notice.
27360         * doc/alloca.texi: Likewise.
27361         * doc/ctime.texi: Likewise.
27362         * doc/functions.texi: Likewise.
27363         * doc/gcd.texi: Likewise.
27364         * doc/gnulib-tool.texi: Likewise.
27365         * doc/inet_ntoa.texi: Likewise.
27366         * doc/visibility.texi: Likewise.
27367
27368         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
27369         * doc/quote.texi: Add copyright notice.
27370
27371         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
27372         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
27373         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
27374         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
27375         is now obsolete, and give a pointer to the Sun list.
27376         Add copyright notice.
27377
27378 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
27379
27380         * config/srclistvars.sh: Add copyright notice.
27381
27382 2006-08-14  Eric Blake  <ebb9@byu.net>
27383
27384         Import the following change from libc:
27385
27386         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
27387
27388         Upstream bug 2997.
27389         * lib/misc/error.c: Add space between program name and message if file
27390         name is missing.
27391
27392 2006-08-12  Karl Berry  <karl@gnu.org>
27393
27394         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
27395         remove, these originate in gnulib now.
27396
27397 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27398
27399         * doc/Makefile (standards.info standards.html standards.dvi):
27400         Also depend on make-stds.texi.
27401
27402 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27403
27404         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
27405         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
27406
27407         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
27408         in wchar_t.  Problem reported by Eric Blake.
27409
27410         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
27411         LEN is smaller than SIZE.  Suggested by Bruno Haible.
27412         Also, help the compiler to keep LEN in a register.
27413
27414 2006-08-11  Eric Blake  <ebb9@byu.net>
27415
27416         * users.txt: Sort.  Add tar.
27417
27418 2006-08-11  Bruno Haible  <bruno@clisp.org>
27419
27420         * users.txt: New file.
27421
27422 2006-08-11  Bruno Haible  <bruno@clisp.org>
27423
27424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
27425         before <wchar.h>. Needed for OSF/1 and BSD/OS.
27426
27427 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27428
27429         * modules/snprintf (Depends-on): Remove minmax.
27430         (Maintainer): Add self and Bruno.
27431
27432 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27433
27434         * lib/.cppi-disable: Add snprintf.h, socket_.h.
27435         * lib/snprintf.c: Include <errno.h> and <limits.h>.
27436         (EOVERFLOW): Define if the system does not.
27437         Do not include "minmax.h"; it wasn't used.
27438         (snprintf): Don't assume size_t promotes to an unsigned type.
27439         Fix bug when generated string was too long for the buffer: the
27440         buffer's contents are supposed to be the initial prefix of the
27441         output.  Don't assume vasnprintf returns EOVERFLOW if the size
27442         exceeds INT_MAX; do the check ourselves.
27443
27444         Import the following changes from libc:
27445
27446         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
27447
27448         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
27449         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
27450         set wc to the byte which couldn't be converted.
27451         (re_string_reconstruct): Don't clear valid_raw_len before calling
27452         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
27453         tip_context using re_string_context_at.
27454
27455         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
27456
27457         * lib/posix/regex.h: g++ still cannot handled [restrict].
27458
27459         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
27460
27461         * lib/posix/regex.h: Remove special handling for VMS.
27462
27463 2006-08-10  Jim Meyering  <jim@meyering.net>
27464
27465         * modules/same-inode: New module.
27466         * modules/dev-ino: New module.
27467         * modules/cycle-check: Depend on these modules, rather than simply
27468         including their .h files.
27469         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
27470         required via m4/cycle-check.m4.
27471         * modules/same: Depend on new same-inode module, rather than
27472         including same-inode.h.
27473         * modules/chdir-safer: New file.
27474
27475         * modules/chown (Depends-on): Add stat-macros.
27476
27477 2006-08-10  Jim Meyering  <jim@meyering.net>
27478
27479         * m4/cycle-check.m4: New file.
27480         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
27481         * m4/dev-ino.m4, m4/same-inode.m4: New files.
27482
27483 2006-08-10  Eric Blake  <ebb9@byu.net>
27484
27485         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
27486         in from original proposal.
27487
27488 2006-08-10  Eric Blake  <ebb9@byu.net>
27489         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27490
27491         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
27492         namespace.
27493
27494 2006-08-10  Bruno Haible  <bruno@clisp.org>
27495
27496         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
27497         as well.
27498
27499 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27500
27501         Sync from coreutils.
27502
27503         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
27504
27505         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
27506         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
27507
27508 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27509
27510         * modules/restrict: Remove; no longer needed now that we assume
27511         Autoconf 2.59 or later.
27512         * MODULES.html.sh: Remove 'restrict'.
27513         * modules/argp (Depends-on): Remove 'restrict'.
27514         * modules/base64 (Depends-on): Likewise.
27515         * modules/gc (Depends-on): Likewise.
27516         * modules/getaddrinfo (Depends-on): Likewise.
27517         * modules/glob (Depends-on): Likewise.
27518         * modules/inet_ntop (Depends-on): Likewise.
27519         * modules/inet_pton (Depends-on): Likewise.
27520         * modules/memxor (Depends-on): Likewise.
27521         * modules/regex (Depends-on): Likewise.
27522         * modules/strtok_r (Depends-on): Likewise.
27523         * modules/time_r (Depends-on): Likewise.
27524
27525 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27526
27527         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
27528         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
27529         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
27530         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
27531         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27532         * m4/memxor.m4 (gl_MEMXOR): Likewise.
27533         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
27534         gl_C_RESTRICT replaced by AC_C_RESTRICT.
27535
27536         Merge from coreutils.
27537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
27538         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
27539         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
27540         * m4/time_r.m4 (gl_TIME_R): Likewise.
27541
27542 2006-08-09  Karl Berry  <karl@gnu.org>
27543
27544         * config/srclist.txt: no more gettext-tools, per Bruno.
27545
27546 2006-08-08  Eric Blake  <ebb9@byu.net>
27547
27548         * modules/verror: New module.
27549         * MODULES.html.sh: Document it.
27550
27551 2006-08-08  Eric Blake  <ebb9@byu.net>
27552
27553         * lib/verror.h, lib/verror.c: New files.
27554
27555 2006-08-08  Eric Blake  <ebb9@byu.net>
27556
27557         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
27558         verror_at_line output complies with GNU Coding Standards even when
27559         file is NULL.
27560
27561 2006-08-07  Bruno Haible  <bruno@clisp.org>
27562
27563         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
27564         versions of AIX.
27565         Reported by Ralf Wildenhues.
27566
27567 2006-08-07  Bruno Haible  <bruno@clisp.org>
27568
27569         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
27570         in an AC_DEFUN. Needed so that the autoconf snippets can use
27571         AC_REQUIRE.
27572
27573 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27574
27575         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27576         Initialize pkgdata_DATA.
27577         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
27578         overriding it.
27579
27580 2006-08-06  Eric Blake  <ebb9@byu.net>
27581
27582         * lib/error.h: Fold in some upstream changes from glibc.
27583         * lib/error.c: Likewise.
27584
27585 2006-08-04  Bruno Haible  <bruno@clisp.org>
27586
27587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27588         Make the mostlyclean-local rule depend on mostlyclean-generic.
27589         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
27590
27591 2006-07-31  Bruno Haible  <bruno@clisp.org>
27592
27593         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
27594         <stdlib.h>, <string.h>.
27595
27596 2006-07-30  Bruno Haible  <bruno@clisp.org>
27597
27598         * modules/readlink (License): Change to LGPL.
27599
27600 2006-07-30  Bruno Haible  <bruno@clisp.org>
27601
27602         * modules/javaversion (Makefile.am): Distribute javaversion.java and
27603         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
27604         set PKGDATADIR to point to it.
27605
27606 2006-07-30  Bruno Haible  <bruno@clisp.org>
27607
27608         * modules/csharpexec (configure.ac): Comment out macro invocation.
27609         * modules/javaexec (configure.ac): Likewise.
27610         * modules/javacomp-script (configure.ac): Likewise.
27611
27612         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
27613
27614 2006-07-30  Bruno Haible  <bruno@clisp.org>
27615
27616         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
27617         linked-list.
27618
27619 2006-07-30  Bruno Haible  <bruno@clisp.org>
27620
27621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
27622
27623 2006-07-30  Bruno Haible  <bruno@clisp.org>
27624
27625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27626         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
27627         get removed.
27628
27629 2006-07-29  Bruno Haible  <bruno@clisp.org>
27630
27631         Make it possible for gnulib-tool to work with locally modified or
27632         augmented gnulib repositories.
27633         * gnulib-tool (func_usage): Document --local-dir option.
27634         (local_gnulib_dir): New variable.
27635         Handle --local-dir option.
27636         (func_lookup_file): New function.
27637         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
27638         (func_get_description, func_get_filelist, func_get_description,
27639         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
27640         func_get_automake_snippet, func_get_include_directive,
27641         func_get_license, func_get_maintainer): Use func_lookup_file.
27642         (func_import, func_create_testdir): Use func_lookup_file.
27643
27644 2006-07-29  Bruno Haible  <bruno@clisp.org>
27645
27646         * modules/setenv (Depends-on): Add unistd.
27647
27648 2006-07-29  Bruno Haible  <bruno@clisp.org>
27649
27650         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
27651
27652 2006-07-29  Bruno Haible  <bruno@clisp.org>
27653
27654         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
27655
27656 2006-07-29  Bruno Haible  <bruno@clisp.org>
27657
27658         * gnulib-tool (import, update): If there is no Makefile.am, look at
27659         aclocal.m4, instead of bailing out.
27660
27661 2006-07-29  Bruno Haible  <bruno@clisp.org>
27662
27663         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
27664         Categorize the options by when they are useful.
27665
27666 2006-07-29  Bruno Haible  <bruno@clisp.org>
27667
27668         * gnulib-tool (func_usage): Document option --no-libtool.
27669         Handle option --no-libtool.
27670         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
27671         for changed semantics of $libtool variable.
27672         (func_import): Likewise. If libtool is not used, show this through
27673         an option --no-libtool.
27674         (func_create_testdir): Update.
27675
27676 2006-07-29  Bruno Haible  <bruno@clisp.org>
27677
27678         * gnulib-tool (func_import): Extend error message about missing
27679         --doc-base.
27680
27681 2006-07-29  Bruno Haible  <bruno@clisp.org>
27682
27683         * gnulib-tool (func_import): Don't create the $docbase directory if
27684         there is no file to store there.
27685
27686 2006-07-29  Bruno Haible  <bruno@clisp.org>
27687
27688         * gnulib-tool (autoconf_minversion): If a --dir option is given and
27689         relevant, look for configure.ac there, not in the current directory.
27690         Also use a simple search for AC_PREREQ, not "autoconf --trace".
27691
27692 2006-07-29  Bruno Haible  <bruno@clisp.org>
27693
27694         * gnulib-tool (SORT): New variable.
27695         (func_usage): Undocument --assume-autoconf option.
27696         Remove --assume-autoconf option handling.
27697         (autoconf_minversion): Determine from the contents of configure.ac.
27698         (func_import): Remove autoconf_minversion handling.
27699         Suggested by Eric Blake.
27700
27701 2006-07-29  Bruno Haible  <bruno@clisp.org>
27702
27703         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
27704
27705 2006-07-29  Bruno Haible  <bruno@clisp.org>
27706
27707         * config/srclist.txt (*setenv.[ch]): Remove rules.
27708
27709 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27710
27711         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
27712
27713 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27714
27715         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
27716         arpa/inet.h.
27717
27718 2006-07-28  Simon Josefsson  <jas@extundo.com>
27719
27720         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
27721         * modules/inet_pton (Depends-on): Likewise.
27722
27723 2006-07-28  Simon Josefsson  <jas@extundo.com>
27724
27725         * m4/netinet_in_h.m4: New file.
27726
27727 2006-07-28  Simon Josefsson  <jas@extundo.com>
27728
27729         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
27730         #include's.
27731
27732 2006-07-28  Simon Josefsson  <jas@extundo.com>
27733
27734         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
27735         #include's.
27736
27737 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
27738
27739         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
27740         setgid on directories only if they set these bits.
27741         * lib/modechange.h: Remove obsolete comment about masks.
27742
27743 2006-07-28  Eric Blake  <ebb9@byu.net>
27744
27745         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
27746         macro expansion.
27747
27748 2006-07-28  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
27751
27752 2006-07-28  Bruno Haible  <bruno@clisp.org>
27753
27754         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
27755
27756 2006-07-28  Bruno Haible  <bruno@clisp.org>
27757
27758         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
27759         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
27760         Define fallbacks.
27761         Avoids link error on FreeBSD 4.x.
27762         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27763
27764         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
27765         encoding.
27766         * lib/mbswidth.c (iswcntrl): Likewise.
27767
27768 2006-07-27  Bruno Haible  <bruno@clisp.org>
27769
27770         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
27771         test.
27772
27773 2006-07-27  Bruno Haible  <bruno@clisp.org>
27774
27775         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
27776         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
27777         defined.
27778
27779 2006-07-26  Eric Blake  <ebb9@byu.net>
27780
27781         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
27782
27783 2006-07-26  Eric Blake  <ebb9@byu.net>
27784
27785         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
27786         like mingw that lack mkstemp.
27787         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
27788         avoid compilation warning on mingw.
27789
27790 2006-07-26  Bruno Haible  <bruno@clisp.org>
27791
27792         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
27793         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
27794         INT_FAST*_MIN, INTPTR_MIN.
27795
27796 2006-07-25  Bruno Haible  <bruno@clisp.org>
27797
27798         * modules/version-etc (Depends-on): Add stdarg.
27799
27800 2006-07-25  Bruno Haible  <bruno@clisp.org>
27801
27802         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
27803         complex commands.
27804
27805 2006-07-25  Bruno Haible  <bruno@clisp.org>
27806
27807         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
27808         defined in <stdarg.h> or config.h.
27809
27810 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
27811
27812         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
27813         (gl_STDIO_SAFER): Remove.
27814
27815 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
27816
27817         * MODULES.html.sh (File stream based Input/Output):
27818         Add fopen-safer, tmpfile-safer; remove stdio-safer.
27819         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
27820         * modules/fopen-safer, modules/tmpfile-safer: New files.
27821         * modules/stdio-safer: Remove.
27822
27823 2006-07-24  Bruno Haible  <bruno@clisp.org>
27824
27825         * modules/tmpdir: New file.
27826         * MODULES.html.sh (File system functions): Add it.
27827
27828 2006-07-24  Bruno Haible  <bruno@clisp.org>
27829
27830         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
27831         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
27832
27833 2006-07-24  Bruno Haible  <bruno@clisp.org>
27834
27835         * modules/clean-temp: New file.
27836
27837 2006-07-24  Bruno Haible  <bruno@clisp.org>
27838
27839         * m4/tmpdir.m4: New file, from GNU gettext.
27840
27841 2006-07-24  Bruno Haible  <bruno@clisp.org>
27842
27843         * lib/tmpdir.h: New file, from GNU gettext.
27844         * lib/tmpdir.c: New file, from GNU gettext.
27845
27846 2006-07-24  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/clean-temp.h: New file, from GNU gettext.
27849         * lib/clean-temp.c: New file, from GNU gettext.
27850
27851 2006-07-23  Eric Blake  <ebb9@byu.net>
27852
27853         * modules/stdio-safer (Files): Add tmpfile-safer.c.
27854         (Depends-on): Add binary-io.
27855
27856 2006-07-23  Eric Blake  <ebb9@byu.net>
27857
27858         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
27859
27860 2006-07-23  Eric Blake  <ebb9@byu.net>
27861
27862         * lib/tmpfile-safer.c: New file.
27863         * lib/stdio-safer.h (fopen_safer): Add prototype.
27864         * lib/stdio--.h (tmpfile): Make safer.
27865
27866 2006-07-23  Bruno Haible  <bruno@clisp.org>
27867
27868         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
27869         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
27870         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
27871         gl_linked_remove_at): Use it.
27872
27873 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27874         and Simon Josefsson <jas@extundo.com>
27875
27876         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
27877
27878         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
27879
27880 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
27881
27882         * modules/close-stream: New file.
27883         * modules/closeout (Description): Make it clear that it exits
27884         with a diagnostic on error.
27885         (Depends-on): Add close-stream.  Remove fpending, stdbool.
27886         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
27887
27888 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
27889
27890         * m4/close-stream.m4: New file.
27891
27892 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
27893
27894         * lib/close-stream.c, lib/close-stream.h: New files.
27895
27896 2006-07-22  Bruno Haible  <bruno@clisp.org>
27897
27898         Merge from GNU gettext 0.15.
27899
27900         2006-05-01  Bruno Haible  <bruno@clisp.org>
27901
27902                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
27903
27904         2006-07-22  Bruno Haible  <bruno@clisp.org>
27905
27906                 * modules/javaversion: New file.
27907                 * MODULES.html.sh (Java): Add javaversion.
27908
27909         2006-03-12  Bruno Haible  <bruno@clisp.org>
27910
27911                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
27912
27913         2005-12-04  Bruno Haible  <bruno@clisp.org>
27914
27915                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
27916                 (untested).
27917
27918         2006-06-21  Bruno Haible  <bruno@clisp.org>
27919
27920                 Avoid warnings from recent versions of mcs.
27921                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
27922                 -o, -L, -r any more. Use options documented since mcs-1.0
27923                 instead. Similarly for -g.
27924
27925         2005-12-04  Bruno Haible  <bruno@clisp.org>
27926
27927                 * build-aux/csharpcomp.sh.in: Suffix for resources is
27928                 .resources, not .resource.
27929
27930         2005-07-09  Bruno Haible  <bruno@clisp.org>
27931
27932                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
27933                 add a .dll suffix.
27934                 Reported by Mark Junker <mjscod@gmx.de>.
27935
27936         2006-07-22  Bruno Haible  <bruno@clisp.org>
27937
27938                 * modules/gettext: Upgrade to gettext-0.15.
27939                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
27940                 m4/visibility.m4.
27941                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
27942
27943 2006-07-22  Bruno Haible  <bruno@clisp.org>
27944
27945         Merge from GNU gettext 0.15.
27946
27947         2006-03-25  Bruno Haible  <bruno@clisp.org>
27948
27949                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
27950
27951         2006-07-21  Bruno Haible  <bruno@clisp.org>
27952
27953                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
27954                 "1.1".
27955
27956         2006-05-09  Bruno Haible  <bruno@clisp.org>
27957
27958                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
27959                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
27960                 for the conftestver execution.
27961
27962         2006-05-01  Bruno Haible  <bruno@clisp.org>
27963
27964                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
27965                 optional target-version argument. Verify that the compiler
27966                 groks source of the specified source-version, or add -source
27967                 option as necessary. Verify that the compiler produces
27968                 bytecode in the specified target-version, or add -target and
27969                 -source options as necessary. Make the result of the test
27970                 available as variable CONF_JAVAC. Also log error output in
27971                 config.log.
27972
27973         2006-03-11  Bruno Haible  <bruno@clisp.org>
27974
27975                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
27976
27977         2006-05-09  Bruno Haible  <bruno@clisp.org>
27978
27979                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
27980                 CLASSPATH_SEPARATOR to a semicolon.
27981
27982         2006-03-12  Bruno Haible  <bruno@clisp.org>
27983
27984                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
27985                 available as variable CONF_JAVA, for subsequent autoconf
27986                 tests. Also log error output in config.log.
27987
27988         2006-07-19  Bruno Haible  <bruno@clisp.org>
27989
27990                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
27991                 that getline works on glibc2 systems. Needed to avoid trouble
27992                 in relocatable.c.
27993                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
27994
27995         2005-12-04  Bruno Haible  <bruno@clisp.org>
27996
27997                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
27998                 launcher (untested).
27999
28000         2005-12-04  Bruno Haible  <bruno@clisp.org>
28001
28002                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
28003
28004         2006-07-22  Bruno Haible  <bruno@clisp.org>
28005
28006                 * gettext.m4: Update from GNU gettext-0.15.
28007                 * nls.m4: Likewise.
28008                 * po.m4: Likewise.
28009                 * inttypes-pri.m4: Likewise.
28010                 * inttypes-h.m4: Renamed from inttypes.m4.
28011                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
28012
28013 2006-07-22  Bruno Haible  <bruno@clisp.org>
28014
28015         Merge from GNU gettext 0.15.
28016
28017         2005-07-05  Bruno Haible  <bruno@clisp.org>
28018
28019                 * printf-args.c (printf_fetchargs): Work around broken
28020                 definition of wint_t on mingw.
28021
28022         2005-02-12  Bruno Haible  <bruno@clisp.org>
28023
28024                 * xallocsa.h: Add extern "C" for C++.
28025
28026         2006-05-17  Bruno Haible  <bruno@clisp.org>
28027
28028                 Cygwin portability.
28029                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
28030
28031         2006-04-30  Bruno Haible  <bruno@clisp.org>
28032
28033                 * progreloc.c: Include <mach-o/dyld.h> if available.
28034                 (find_executable): Use _NSGetExecutablePath when possible.
28035
28036         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
28037
28038                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
28039                 function.
28040
28041         2005-12-29  Bruno Haible  <bruno@clisp.org>
28042
28043                 * progreloc.c (set_program_name_and_installdir): Fix
28044                 compilation error.
28045
28046         2005-12-04  Bruno Haible  <bruno@clisp.org>
28047
28048                 Cygwin portability.
28049                 * progreloc.c: Include <windows.h> also on Cygwin.
28050                 (find_executable): Add support for Cygwin.
28051                 (set_program_name_and_installdir): Handle also platforms with
28052                 nonempty EXEEXT.
28053
28054         2006-07-11  Bruno Haible  <bruno@clisp.org>
28055
28056                 * javacomp.c: Fix a comment.
28057                 Reported by Jim Meyering.
28058
28059         2006-04-30  Bruno Haible  <bruno@clisp.org>
28060
28061                 * javacomp.h (compile_java_class): Add source_version,
28062                 target_version arguments.
28063                 * javacomp.c: Rewritten to choose only a compiler that
28064                 respects the specified source_version and target_version.
28065
28066         2006-06-27  Bruno Haible  <bruno@clisp.org>
28067
28068                 Assume correct S_ISDIR macro.
28069                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
28070
28071         2006-07-22  Bruno Haible  <bruno@clisp.org>
28072
28073                 * javaversion.h: New file, from GNU gettext.
28074                 * javaversion.c: New file, from GNU gettext.
28075                 * javaversion.java: New file, from GNU gettext.
28076                 * javaversion.class: New file, from GNU gettext.
28077
28078         2006-05-17  Bruno Haible  <bruno@clisp.org>
28079
28080                 Cygwin portability.
28081                 * javaexec.c (execute_java_class): Test for jview program
28082                 also on Cygwin.
28083
28084         2006-04-09  Bruno Haible  <bruno@clisp.org>
28085
28086                 * fatal-signal.c: Don't include string.h.
28087                 (at_fatal_signal): Use a copying loop instead of memcpy.
28088
28089         2005-12-04  Bruno Haible  <bruno@clisp.org>
28090
28091                 * csharpexec.c: Add support for 'clix' launcher (untested).
28092                 (execute_csharp_using_sscli): New function.
28093                 (execute_csharp_program): Call it.
28094
28095         2006-06-21  Bruno Haible  <bruno@clisp.org>
28096
28097                 Avoid warnings from recent versions of mcs.
28098                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
28099                 -o, -L, -r any more. Use options documented since mcs-1.0
28100                 instead. Similarly for -g.
28101
28102         2005-07-09  Bruno Haible  <bruno@clisp.org>
28103
28104                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
28105                 add a .dll suffix.
28106                 Reported by Mark Junker <mjscod@gmx.de>.
28107
28108         2006-06-17  Bruno Haible  <bruno@clisp.org>
28109
28110                 * config.charset: Update for NetBSD 3.0.
28111
28112         2006-05-17  Bruno Haible  <bruno@clisp.org>
28113
28114                 Cygwin portability.
28115                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
28116
28117         2006-05-16  Bruno Haible  <bruno@clisp.org>
28118
28119                 * localcharset.c [CYGWIN]: Include <windows.h>.
28120                 (get_charset_aliases): For Cygwin, return the same CPxxx
28121                 aliases list as under WIN32.
28122                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
28123                 the environment variables. Fall back to GetACP().
28124
28125         2006-04-05  Bruno Haible  <bruno@clisp.org>
28126
28127                 * config.charset: Update Juan Manuel Guerrero's address.
28128
28129         2005-02-12  Bruno Haible  <bruno@clisp.org>
28130
28131                 * allocsa.h: Add extern "C" for C++.
28132
28133         2005-02-10  Bruno Haible  <bruno@clisp.org>
28134
28135                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
28136                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
28137
28138         2006-07-22  Bruno Haible  <bruno@clisp.org>
28139
28140                 * gettext.h: Update to GNU gettext-0.15.
28141
28142 2006-07-22  Bruno Haible  <bruno@clisp.org>
28143
28144         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
28145         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
28146         lib-prefix.m4, longdouble.m4, ssize_t.m4.
28147
28148 2006-07-21  Eric Blake  <ebb9@byu.net>
28149
28150         * modules/stdlib-safer: New file.
28151         * MODULES.html.sh (File stream based Input/Output): Add
28152         stdlib-safer.
28153
28154 2006-07-21  Eric Blake  <ebb9@byu.net>
28155
28156         * lib/stdlib-safer.h: New file from coreutils, required by
28157         stdlib--.h.
28158
28159 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
28160
28161         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
28162
28163 2006-07-20  Bruno Haible  <bruno@clisp.org>
28164
28165         * gnulib-tool: Recognize new option --assume-autoconf.
28166         (autoconf_minversion): New variable.
28167         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
28168
28169 2006-07-20  Bruno Haible  <bruno@clisp.org>
28170
28171         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
28172
28173 2006-07-19  Derek R. Price  <derek@ximbiot.com>
28174
28175         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
28176         Reindent and repaginate.
28177
28178 2006-07-19  Derek Price  <derek@ximbiot.com>
28179
28180         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
28181         Correct grammar.
28182
28183 2006-07-17  Bruno Haible  <bruno@clisp.org>
28184
28185         * modules/list: New file.
28186         * modules/array-list: New file.
28187         * modules/carray-list, modules/carray-list-tests: New files.
28188         * modules/linked-list, modules/linked-list-tests: New files.
28189         * modules/avltree-list, modules/avltree-list-tests: New files.
28190         * modules/rbtree-list, modules/rbtree-list-tests: New files.
28191         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
28192         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
28193         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
28194         * modules/oset: New file.
28195         * modules/array-oset: New file.
28196         * modules/avltree-oset, modules/avltree-oset-tests: New files.
28197         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
28198         * tests/test-carray_list.c: New file.
28199         * tests/test-linked_list.c: New file.
28200         * tests/test-avltree_list.c: New file.
28201         * tests/test-rbtree_list.c: New file.
28202         * tests/test-linkedhash_list.c: New file.
28203         * tests/test-avltreehash_list.c: New file.
28204         * tests/test-rbtreehash_list.c: New file.
28205         * tests/test-avltree_oset.c: New file.
28206         * tests/test-rbtree_oset.c: New file.
28207         * MODULES.html.sh (Container data structures): New section.
28208
28209 2006-07-17  Bruno Haible  <bruno@clisp.org>
28210
28211         * m4/gl_list.m4: New file.
28212
28213 2006-07-17  Bruno Haible  <bruno@clisp.org>
28214
28215         * lib/gl_list.h: New file.
28216         * lib/gl_list.c: New file.
28217         * lib/gl_array_list.h: New file.
28218         * lib/gl_array_list.c: New file.
28219         * lib/gl_carray_list.h: New file.
28220         * lib/gl_carray_list.c: New file.
28221         * lib/gl_linked_list.h: New file.
28222         * lib/gl_linked_list.c: New file.
28223         * lib/gl_anylinked_list1.h: New file.
28224         * lib/gl_anylinked_list2.h: New file.
28225         * lib/gl_avltree_list.h: New file.
28226         * lib/gl_avltree_list.c: New file.
28227         * lib/gl_anyavltree_list1.h: New file.
28228         * lib/gl_anyavltree_list2.h: New file.
28229         * lib/gl_rbtree_list.h: New file.
28230         * lib/gl_rbtree_list.c: New file.
28231         * lib/gl_anyrbtree_list1.h: New file.
28232         * lib/gl_anyrbtree_list2.h: New file.
28233         * lib/gl_anytree_list1.h: New file.
28234         * lib/gl_anytree_list2.h: New file.
28235         * lib/gl_linkedhash_list.h: New file.
28236         * lib/gl_linkedhash_list.c: New file.
28237         * lib/gl_anyhash_list1.h: New file.
28238         * lib/gl_anyhash_list2.h: New file.
28239         * lib/gl_avltreehash_list.h: New file.
28240         * lib/gl_avltreehash_list.c: New file.
28241         * lib/gl_rbtreehash_list.h: New file.
28242         * lib/gl_rbtreehash_list.c: New file.
28243         * lib/gl_anytreehash_list1.h: New file.
28244         * lib/gl_anytreehash_list2.h: New file.
28245
28246         * lib/gl_oset.h: New file.
28247         * lib/gl_oset.c: New file.
28248         * lib/gl_array_oset.h: New file.
28249         * lib/gl_array_oset.c: New file.
28250         * lib/gl_avltree_oset.h: New file.
28251         * lib/gl_avltree_oset.c: New file.
28252         * lib/gl_rbtree_oset.h: New file.
28253         * lib/gl_rbtree_oset.c: New file.
28254         * lib/gl_anytree_oset.h: New file.
28255
28256 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28257
28258         * m4/mkancesdirs.m4: New file.
28259         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
28260         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
28261         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
28262         it.
28263
28264 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28265
28266         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
28267         * lib/mkancesdirs.h: New files.
28268         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
28269         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
28270         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
28271         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
28272         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
28273         callers changed.  Revamp internals significantly, by not
28274         attempting to create directories that are temporarily more
28275         permissive than the final results.  Do not attempt to use
28276         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
28277         This removes some race conditions, fixes some bugs, and simplifies
28278         things.  Use new dirchownmod function to do owner and mode changes.
28279         * lib/mkdir-p.h: Likewise.
28280         * lib/modechange.c (octal_to_mode): New function.
28281         (struct mode_change): New member mentioned.
28282         (make_node_op_equals): New arg mentioned.  All callers changed.
28283         (mode_compile): Keep track of which mode bits the user has explicitly
28284         mentioned.
28285         (mode_adjust): New arg DIR, so that we implement the X op correctly.
28286         New arg PMODE_BITS, to keep track of which mode bits the user
28287         mentioned; it treats S_ISUID and S_ISGID speciall.
28288         All callers changed.
28289         * lib/modechange.h: Likewise.
28290
28291 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28292
28293         * MODULES.html.sh: Add mkancestors.
28294         * modules/mkancesdirs: New module.
28295         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
28296         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
28297         The chdir-safer and afs files are now orphans; I'll remove them
28298         unless someone speaks up.
28299         Add lib/dirchownmod.c, lib/dirchownmod.h.
28300         (Depends-on): Remove alloca, chown, save-cwd, dirname.
28301         Add lchown, mkancesdirs.
28302         (Maintainer): Add self.
28303
28304 2006-07-15  Karl Berry  <karl@gnu.org>
28305
28306         * gnulib-tool: help message wording/arrangement.
28307
28308 2006-07-14  Simon Josefsson  <jas@extundo.com>
28309
28310         * doc/gnulib.texi (Libtool and Windows): New section.
28311
28312 2006-07-12  Simon Josefsson  <jas@extundo.com>
28313
28314         * modules/gendocs (License): Fix license, approved by Karl.
28315
28316 2006-07-12  Eric Blake  <ebb9@byu.net>
28317
28318         * MODULES.html.sh: Add gendocs.
28319
28320 2006-07-11  Eric Blake  <ebb9@byu.net>
28321
28322         * modules/fdl: New module, to install doc/fdl.texi.
28323         * MODULES.html.sh: Add new section for documentation modules.
28324         * gnulib-tool: Avoid space-tab.
28325         (--doc-base): New option, to manage files from doc.
28326
28327 2006-07-11  Eric Blake  <ebb9@byu.net>
28328
28329         * m4/absolute-header.m4: Fix comments to match recent change.
28330
28331 2006-07-11  Eric Blake  <ebb9@byu.net>
28332
28333         * gnulib-tool: List --doc-base before --tests-base.
28334
28335 2006-07-11  Derek R. Price  <derek@ximbiot.com>
28336
28337         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
28338
28339 2006-07-11  Bruno Haible  <bruno@clisp.org>
28340
28341         * README: Mention where to put documentation.
28342
28343 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28344
28345         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
28346
28347 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
28348
28349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
28350         to stdint.m4.
28351
28352 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
28353
28354         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
28355         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
28356         "no/such/file/stdint.h" when there is no such file, so that
28357         the resulting C code can be parsed by dodgy compilers.
28358         Problems reported by Bob Proulx.
28359
28360 2006-07-10  Derek R. Price  <derek@ximbiot.com>
28361
28362         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
28363         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
28364         macros into the GNU _D_EXACT_NAMLEN.
28365         * lib/savedir.c:  Likewise.
28366         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
28367
28368 2006-07-10  Derek R. Price  <derek@ximbiot.com>
28369         and Paul Eggert  <eggert@cs.ucla.edu>
28370
28371         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
28372         * m4/savedir.m4:
28373         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
28374         macros into the GNU _D_EXACT_NAMLEN.
28375
28376 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28377
28378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
28379         around the absolute name, to work around a problem with the HP-UX
28380         11.23 native C compiler, reported by Bob Proulx.
28381
28382 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28383
28384         * doc/maintain.texi, make-stds.texi: Sync from
28385         <http://savannah.gnu.org/projects/gnustandards>.
28386
28387 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28388
28389         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
28390
28391 2006-07-09  Jim Meyering  <jim@meyering.net>
28392
28393         * m4/glob.m4: Remove a doubled word in a comment.
28394
28395 2006-07-09  Jim Meyering  <jim@meyering.net>
28396
28397         * lib/argp-pv.c: Remove a doubled word in a comment.
28398         * lib/check-version.c (check_version): Likewise.
28399         * lib/javacomp.c (compile_java_class): Likewise.
28400
28401 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28402
28403         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
28404         for the benefit of people using Autoconf 2.60.  If you want to
28405         support older Autoconf versions you can copy m4/onceonly_2_57.m4
28406         (or m4/onceonly.m4, if pre-2.57) manually.
28407
28408 2006-07-08  Jim Meyering  <jim@meyering.net>
28409
28410         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
28411         comment.
28412         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
28413         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
28414         comment.
28415
28416 2006-07-08  Jim Meyering  <jim@meyering.net>
28417
28418         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
28419
28420 2006-07-07  Simon Josefsson  <jas@extundo.com>
28421
28422         * tests/test-crc.c: Change expected crc value, the test vector
28423         were probably computed using the old broken crc.c?
28424
28425 2006-07-06  Simon Josefsson  <jas@extundo.com>
28426
28427         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
28428         now the canonical place for the M4 file).
28429
28430         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
28431         from the sys_socket dependency now.
28432
28433         * modules/inet_pton (Files): Ditto.
28434
28435         * modules/inet_ntop (Files): Ditto.
28436
28437 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28438
28439         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
28440         not gl_PREREQ_GETUSERSHELL.
28441
28442 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28443
28444         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
28445         with only one argument, for Autoconf 2.60.
28446         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
28447         expand to nothing, so add a shell command to avoid syntax error.
28448         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
28449
28450 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28451
28452         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
28453
28454 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28455
28456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
28457         no longer needed.  Check for isblank decl.
28458         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
28459         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
28460         of existence.
28461
28462 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28463
28464         * lib/getloadavg.c: Use __VMS, not VMS.
28465         * lib/getopt.c: Likewise.
28466         * lib/getpagesize.h: Likewise.
28467         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
28468         and probably does not work.
28469
28470 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28471
28472         * lib/.cppi-disable: Add wcwidth.
28473         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
28474         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
28475         (ISGRAPH): Remove.  All uses changed to isgraph.
28476         (FOLD) [!defined _LIBC]: Remove special case.
28477         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
28478         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
28479         HAVE_ISBLANK.
28480         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
28481         case.
28482
28483 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
28484
28485         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
28486         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
28487         brackets.  Other minor changes to suppress some compiler
28488         warnings.
28489
28490 2006-07-06  Derek R. Price  <derek@ximbiot.com>
28491         and Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
28494         of invoking obsolescent AC_HEADER_DIRENT macro.
28495         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28496         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
28497         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28498         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28499         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
28500         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28501         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
28502         * m4/readdir.m4: Remove; no longer needed.
28503
28504 2006-07-06  Derek R. Price  <derek@ximbiot.com>
28505         and Paul Eggert  <eggert@cs.ucla.edu>
28506
28507         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
28508         Don't worry about this obsolete case any more.
28509         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
28510         directories.
28511         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
28512         worry about this obsolete case any more.
28513         * lib/fts.c: Likewise.
28514         * lib/getcwd.c: Likewise.
28515         * lib/glob.h: Likewise.
28516         * lib/savedir.c: Likewise.
28517
28518 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28519
28520         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
28521         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
28522         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
28523         needed.
28524         All uses removed.
28525         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
28526         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
28527         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
28528         needed.
28529         * m4/getdate.m4 (gl_GETDATE): Likewise.
28530         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
28531         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
28532         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28533         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
28534         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
28535         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
28536         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
28537         needed.
28538
28539 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28540
28541         * lib/memcasecmp.c: Include <limits.h>.
28542         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
28543         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
28544         Don't assume isdigit succeeds only on '0' through '9'.
28545
28546 2006-07-05  Eric Blake  <ebb9@byu.net>
28547
28548         * modules/getaddrinfo (Depends-on): Add snprintf.
28549
28550 2006-07-05  Eric Blake  <ebb9@byu.net>
28551
28552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
28553         to avoid 'header present but could not be compiled' on cygwin.
28554
28555 2006-07-05  Eric Blake  <ebb9@byu.net>
28556
28557         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
28558         missing from netdb.h.
28559         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
28560
28561 2006-07-05  Derek R. Price  <derek@ximbiot.com>
28562
28563         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
28564         no longer needed.
28565         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
28566         * m4/getdate.m4 (gl_GETDATE): Likewise.
28567         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
28568         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
28569         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28570         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
28571         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
28572
28573 2006-07-05  Derek R. Price  <derek@ximbiot.com>
28574
28575         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
28576         All uses of is_space replaced by isspace.
28577         * lib/exit.h: Don't talk about STDC_HEADERS.
28578         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
28579         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
28580         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
28581         replaced by isprint etc.
28582         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
28583         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
28584         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
28585         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
28586         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
28587         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
28588
28589 2006-07-05  Bruno Haible  <bruno@clisp.org>
28590
28591         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
28592         the function exists, before testing against AIX.
28593         Reported by Martin Lambers <marlam@marlam.de>.
28594
28595 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28596
28597         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
28598         From Mark D. Baushke.
28599
28600 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28601
28602         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
28603         to the absolute name, not just one, to bypass Sun C 5.8's
28604         "warning: #include of /usr/include/... may be non-portable".
28605
28606 2006-07-04  Eric Blake  <ebb9@byu.net>
28607
28608         * modules/dirname-tests: New test module.
28609         * tests/test-dirname.c: New file, replacing dirname.c
28610         TEST_DIRNAME section that was recently deleted.
28611
28612 2006-07-04  Bruno Haible  <bruno@clisp.org>
28613
28614         Assume ANSI C header files and <ctype.h> functions.
28615         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
28616         (mbsnwidth): Use isprint, iscntrl instead.
28617
28618 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28619
28620         Merge from coreutils.
28621         * MODULES.html.sh: Add xstrtold.
28622         * modules/xstrtold: New file.
28623         * modules/cycle-check (Files): Add lib/same-inode.h.
28624         * modules/dirname (Files): Add m4/double-slash-root.m4.
28625         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
28626         * modules/mkdir-p (Files): Add lib/same-inode.h.
28627         * modules/same (Files): Add lib/same-inode.h.
28628
28629 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28630
28631         * m4/absolute-header.m4: Renamed from full-header-path.m4.
28632         This is to keep the terminology clean; POSIX talks about
28633         "absolute pathnames", not "full pathnames", but the GNU
28634         Coding Standards say to use "path" for something else;
28635         so use "absolute" to keep both sides happy.
28636         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
28637         Set gl_absolute_header, not gl_full_header_path.
28638         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
28639         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
28640         All uses changed.
28641
28642         Merge from coreutils.
28643
28644         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28645
28646         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
28647         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
28648         want to require the building of c-strtod.o.
28649         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
28650         needs -lm directly.
28651         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
28652
28653         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
28654
28655         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
28656         --as-needed option if available.  Problem reported by Albert Chin in
28657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
28658         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
28659         cc merely issues a bunch of annoying warnings for --as-needed
28660         (this problem was reported by Bob Proulx).  Also, try linking with
28661         -lm to detect a bug in binutils 2.16 (this problem was reported
28662         by Ralf Wildenhues).
28663
28664         2006-06-18  Jim Meyering  <jim@meyering.net>
28665
28666         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
28667         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
28668         macro.
28669         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
28670         also check for glibc-2.4's abort-inducing bug.
28671
28672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
28673         Low-probability clean-up should be to use rmdir to get rid of
28674         the just-created directory, not unlink.
28675
28676         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
28677         configure fail, and request a bug report to inform us about it.
28678         Add a comment that, barring reports to the contrary, in 2007 we'll
28679         assume ftruncate is universally available.
28680
28681         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
28682
28683         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
28684
28685         2006-03-12  Jim Meyering  <jim@meyering.net>
28686
28687         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
28688         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
28689         * m4/same.m4 (gl_SAME): Likewise.
28690         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
28691
28692         2006-03-11  Eric Blake  <ebb9@byu.net>
28693
28694         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
28695         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
28696         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
28697         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
28698
28699 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28700
28701         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
28702         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
28703         reported by Mark D. Baushke, one in
28704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
28705
28706         Merge from coreutils.
28707
28708         * lib/.cppi-disable: Add stdint_.h.
28709         * lib/.cvsignore: Add stdint.h.
28710
28711         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28712
28713         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
28714         both double and long double versions.
28715         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
28716         * lib/xstrtold.c: New file.
28717         * lib/xstrtod.h (xstrtold): New decl.
28718
28719         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
28720
28721         * lib/filemode.c (setst): Remove.
28722         (strmode): Rewrite to avoid setst.  This makes the code shorter,
28723         (arguably) clearer, and the generated code is a bit smaller on my
28724         Debian GNU/Linux stable x86 host.
28725
28726         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
28727
28728         * lib/filemode.c: Include "filemode.h" first, to test the interface.
28729         Assume that filemode.h includes sys/types.h and sys/stat.h.
28730         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
28731         (ftypelet): Reorder to put common cases first, for efficiency.
28732         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
28733         to do 'M'.
28734         (strmode): Renamed from mode_string, and now stores 12 bytes instead
28735         of 10, for compatibility with FreeBSD.  All callers changed.
28736         (filemodestring): Now stores 12 bytes instead of 10, and sets file
28737         types that can't be deduced solely from st_mode.  First arg is now a
28738         const pointer.
28739         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
28740         (strmode): Renamed from mode_string.
28741         (filemodestring): New decl.
28742         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
28743         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
28744         needed.
28745         (S_ISPORT, S_ISWHT): New macros, if not already defined.
28746
28747         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28748
28749         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
28750         fsusage.h now does that.  Include fsusage.h first, to test interface.
28751         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
28752         at most one method (the old code could have generated decls that
28753         didn't conform to C89, not that this was ever exercised).
28754         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
28755
28756         2006-03-19  Jim Meyering  <jim@meyering.net>
28757
28758         Work even in a chroot where d_ino values for entries in "/"
28759         don't match the stat.st_ino values for the same names.
28760         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
28761         number, iterate through all entries again, using lstat instead.
28762         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
28763         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
28764
28765         * lib/getcwd.c (__getcwd): Clarify a comment.
28766         Use memcpy in place of a call to strcpy.
28767
28768         2006-03-12  Jim Meyering  <jim@meyering.net>
28769
28770         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
28771         matches that of the current directory (which we're about to chdir ".."
28772         out of), then save the dev-ino of the parent, instead.
28773
28774         * lib/same-inode.h (SAME_INODE): New file/macro.
28775         * lib/chdir-safer.c (SAME_INODE): Remove definition.
28776         Include "same-inode.h", instead.
28777         * lib/same.c: Likewise.
28778         * lib/cycle-check.h: Include "same-inode.h".
28779         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
28780         * lib/cycle-check.c (SAME_INODE): Remove definition.
28781         * lib/root-dev-ino.h: Include "same-inode.h".
28782
28783         2006-03-11  Eric Blake  <ebb9@byu.net>
28784
28785         * lib/same.c (same_name): s/base_name/last_component/
28786         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
28787         * lib/filenamecat.c (file_name_concat): Likewise.
28788
28789         2006-03-11  Eric Blake  <ebb9@byu.net>,
28790                     Paul Eggert  <eggert@cs.ucla.edu>
28791
28792         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
28793         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
28794         drive prefix.
28795         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
28796         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
28797         (last_component): New method.
28798         * lib/dirname.c (dir_len): Determine when drive letters need a
28799         subsequent slash.  Preserve // when it is special.
28800         (dir_name): Don't append dot when drive letter is absolute.
28801         [TEST_DIRNAME]: Move into a full-blown gnulib test.
28802         * lib/basename.c (base_name): New semantics - malloc the result.
28803         Preserve // when it is special.  Preserve relative files that look
28804         like drive letters.
28805         (base_len): Preserve // when it is special.
28806         (last_component): New method, similar to old base_name semantics.
28807         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
28808         base_name.  Strip redundant slashes from ///.
28809
28810 2006-07-03  Jim Meyering  <jim@meyering.net>
28811
28812         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
28813         macro is used before the first cycle_check call.
28814
28815 2006-07-03  Eric Blake  <ebb9@byu.net>
28816
28817         * modules/dirname (Depends-on): Add xstrndup.
28818
28819 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
28820
28821         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
28822         test cases, so that config.log is a bit easier to follow.
28823
28824 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
28825
28826         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
28827         both are 64 bits, since this seems to be the tradition, and this
28828         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
28829         we ever run into a host that prefers long long to long in this
28830         case, we'll need another configure-time test.  Problem reported by
28831         Jim Meyering.
28832
28833 2006-07-02  Eric Blake  <ebb9@byu.net>
28834
28835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
28836
28837 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
28838
28839         * modules/inttypes (Depends-on): No longer depends on stdint.
28840         * modules/stdint (Description): Say more about assumptions.
28841         Say that the fast types might differ.  Say macros are used.
28842         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
28843         (Makefile.am): Revise list of substituted symbols to match
28844         new stdint.m4.
28845         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
28846         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
28847         * tests/test-stdint.c (verify_same_types)
28848         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
28849         the code conforms to C99/C89.
28850         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
28851         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
28852
28853 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
28854
28855         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
28856         but fix a bug, by requiring at least 64 bits.
28857         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28858         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
28859         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
28860         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
28861
28862         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
28863         changes.  Make 2.59 a prerequisite.  Check and substitute for
28864         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
28865         inttypes.h.  Do not use special include files; just use the
28866         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
28867         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
28868         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
28869         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
28870         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
28871         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
28872         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
28873         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
28874         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
28875         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
28876         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
28877         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
28878         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
28879         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
28880         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
28881         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
28882         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
28883         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
28884         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
28885         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
28886         WINT_MAX.  Check for C99 conformance more strictly, by detecting
28887         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
28888         not check for things that C99 does not require, e.g., int8_t.  If
28889         a test isn't needed unless <stdint.h> isn't working, and is
28890         unlikely to be needed for any other reason, then don't do it
28891         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
28892         size_t, since we assume C89 freestanding at least.  Do not check
28893         for sig_atomic_t, wchar_t, or wint_t, since the code now does
28894         the right thing even if the types are not defined.  Instead use:
28895         (gl_STDINT_TYPE_PROPERTIES): New macro.
28896         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
28897         testing whether <sys/types.h> clashes, as Autoconf does this for
28898         us now.  All uses removed.
28899         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
28900         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
28901         (gl_CHECK_TYPE_SAME):
28902         Remove; no longer needed.
28903         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
28904         exists, since we'll return 0 anyway in that case.
28905         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
28906
28907 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
28908
28909         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
28910         possible collision with system files.
28911         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
28912         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
28913         WCHAR_MIN and WCHAR_MAX in this case.
28914         (<stddef.h>): Do not include; no longer needed.
28915         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
28916         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
28917         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
28918         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
28919         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
28920         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
28921         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
28922         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
28923         !defined(__c99))]: Include in this case too, since it's harmless
28924         now.
28925         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
28926         dangerous to do so.
28927         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
28928         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
28929         (_STDINT_MIN, _STDINT_MAX): New macros.
28930         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
28931         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
28932         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
28933         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
28934         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
28935         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
28936         macros, not typedefs; this simplifies things quite a bit.
28937         Use long int for all types narrower than int64_t.
28938         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
28939         Define in terms of long long int or int64_t or long int,
28940         not int64_t or int32_t.  This saves some compile-time testing.
28941         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
28942         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
28943         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
28944         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
28945         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
28946         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
28947         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
28948         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
28949         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
28950         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
28951         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
28952         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
28953         undef any previous version and define our own version, for
28954         simplicity and consistency with the new macros for types.
28955         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
28956         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
28957         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
28958         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
28959         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
28960         @WINT_T_SUFFIX@ to keep things simple here.
28961         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
28962         Simplify by assuming typical 8/16/32/64 host, since we're
28963         already doing that elsewhere anyway.
28964         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
28965         and assume long long int is 64 bits if available.  This
28966         speeds up 'configure'.
28967
28968 2006-07-01  Eric Blake  <ebb9@byu.net>
28969
28970         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
28971         Reported by Andreas Buening.
28972
28973 2006-07-01  Eric Blake  <ebb9@byu.net>
28974
28975         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
28976
28977 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
28978
28979         * lib/getaddrinfo.c: fixed typo
28980
28981 2006-06-29  Jim Meyering  <jim@meyering.net>
28982
28983         * modules/strftime (Maintainer): Add my name, since with the
28984         FPRINTFTIME changes strftime.c has forked from glibc.
28985
28986 2006-06-29  Eric Blake  <ebb9@byu.net>
28987
28988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
28989
28990 2006-06-29  Eric Blake  <ebb9@byu.net>
28991
28992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
28993
28994 2006-06-29  Eric Blake  <ebb9@byu.net>
28995
28996         * lib/stat_.h: New file.
28997
28998 2006-06-29  Eric Blake  <ebb9@byu.net>
28999
29000         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
29001         unused static function.
29002
29003 2006-06-29  Eric Blake  <ebb9@byu.net>
29004
29005         * doc/functions.texi (Function Portability): Document missing lstat
29006         on mingw.
29007
29008 2006-06-29  Eric Blake  <ebb9@byu.net>
29009
29010         * MODULES.html.sh: Add sys_stat.
29011         * modules/sys_stat: New module.
29012         * modules/mkstemp (Depends-on): Add sys_stat.
29013
29014 2006-06-29  Derek R. Price  <derek@ximbiot.com>
29015
29016         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
29017
29018 2006-06-29  Derek R. Price  <derek@ximbiot.com>
29019
29020         * m4/c-bs-a.m4: Removed.
29021
29022 2006-06-29  Derek R. Price  <derek@ximbiot.com>
29023
29024         * lib/strftime.c: Assume strftime() exists.
29025
29026 2006-06-29  Derek Price  <derek@ximbiot.com>
29027
29028         * modules/c-bs-a: Removed - \a is C89.
29029         * MODULES.html.sh: Remove c-bs-a.
29030
29031 2006-06-29  Bruno Haible  <bruno@clisp.org>
29032
29033         * modules/wcwidth (License): Change to LGPL.
29034
29035 2006-06-28  Simon Josefsson  <jas@extundo.com>
29036
29037         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
29038         on _WIN32.
29039
29040         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
29041         getnameinfo.
29042
29043 2006-06-28  Simon Josefsson  <jas@extundo.com>
29044
29045         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
29046
29047 2006-06-28  Simon Josefsson  <jas@extundo.com>
29048
29049         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
29050         functions there.  It will succeed on Windows XP, but on Windows
29051         2000 and (presumably) earlier, it will fail, and use the internal
29052         re-implementation.
29053         (use_win32_p): New function.
29054         (getaddrinfo): Use strtoul on servname, to support numeric ports.
29055         Support AI_NUMERICSERV to disable getservbyname.
29056         (getnameinfo): New function, only supports
29057         NI_NUMERICHOST|NI_NUMERICSERV for now.
29058
29059         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
29060         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
29061         getnameinfo.
29062
29063 2006-06-28  Eric Blake  <ebb9@byu.net>
29064
29065         * modules/wcwidth: New file.
29066         * modules/mbchar (Depends-on): Add wcwidth.
29067         * modules/mbswidth (Depends-on): Add wcwidth.
29068         * MODULES.html.sh: Add wcwidth.
29069
29070 2006-06-28  Eric Blake  <ebb9@byu.net>
29071
29072         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
29073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
29074
29075 2006-06-28  Eric Blake  <ebb9@byu.net>
29076
29077         * lib/xvasprintf.h: Fix comments.
29078
29079 2006-06-28  Eric Blake  <ebb9@byu.net>
29080
29081         * lib/mbchar.h (wcwidth): Include wcwidth.h.
29082         * lib/mbswidth.c (wcwidth): Move from here...
29083         * lib/wcwidth.h: ...to this new file.
29084
29085 2006-06-28  Derek R. Price  <derek@ximbiot.com>
29086
29087         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
29088
29089         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
29090         it's obsolete.
29091         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
29092
29093 2006-06-28  Derek R. Price  <derek@ximbiot.com>
29094
29095         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
29096         Autoconf 2.60 says this stuff was obsolete.
29097
29098 2006-06-28  Bruno Haible  <bruno@clisp.org>
29099
29100         * modules/wcwidth (Files): Add m4/wchar_t.m4.
29101
29102 2006-06-28  Bruno Haible  <bruno@clisp.org>
29103
29104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
29105         gt_TYPE_WCHAR_T.
29106
29107 2006-06-28  Bruno Haible  <bruno@clisp.org>
29108
29109         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
29110         declaration for wcwidth.
29111         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
29112
29113 2006-06-28  Bruno Haible  <bruno@clisp.org>
29114
29115         * lib/mkdtemp.c [MINGW]: Include <io.h>.
29116         (mkdir): Define using _mkdir.
29117
29118 2006-06-28  Bruno Haible  <bruno@clisp.org>
29119
29120         * lib/getaddrinfo.h: Fix POSIX URL.
29121         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
29122         _WIN32.
29123         (use_win32_p): Make static.
29124         (getaddrinfo): Reject service name if it is empty or does not consist
29125         solely of decimal digits, or if its value is > 65535.
29126         (getnameinfo): Remove useless casts.
29127
29128 2006-06-27  Simon Josefsson  <jas@extundo.com>
29129
29130         * modules/sys_select: New file, suggested by Bruno Haible, Paul
29131         Eggert and Martin Lambers.
29132
29133 2006-06-27  Simon Josefsson  <jas@extundo.com>
29134
29135         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
29136         Eggert and Martin Lambers.
29137
29138 2006-06-27  Bruno Haible  <bruno@clisp.org>
29139
29140         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
29141         result to 0, not to empty.
29142         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
29143
29144 2006-06-27  Bruno Haible  <bruno@clisp.org>
29145
29146         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
29147
29148 2006-06-26  Simon Josefsson  <jas@extundo.com>
29149
29150         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
29151         present.
29152
29153 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29154
29155         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
29156         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
29157         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
29158
29159 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
29160
29161         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
29162
29163 2006-06-26  Bruno Haible  <bruno@clisp.org>
29164
29165         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
29166
29167 2006-06-26  Bruno Haible  <bruno@clisp.org>
29168
29169         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
29170
29171 2006-06-26  Bruno Haible  <bruno@clisp.org>
29172
29173         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
29174         SGI C compiler in pre-C99 mode.
29175         Suggested by Mark D. Baushke and Larry Jones.
29176
29177 2006-06-26  Bruno Haible  <bruno@clisp.org>
29178
29179         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
29180         WCHAR_MAX.
29181         Reported by Mark D. Baushke and Larry Jones.
29182
29183 2006-06-26  Bruno Haible  <bruno@clisp.org>
29184
29185         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
29186         in pre-C99 mode.
29187         Suggested by Mark D. Baushke and Larry Jones.
29188
29189 2006-06-23  Simon Josefsson  <jas@extundo.com>
29190             Bruno Haible  <bruno@clisp.org>
29191
29192         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
29193         Emit mostlyclean-local rule.
29194         (func_emit_tests_Makefile_am): Likewise.
29195         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
29196
29197 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
29198
29199         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
29200
29201 2006-06-23  Bruno Haible  <bruno@clisp.org>
29202
29203         * tests/test-stdint.c: Update to match ISO C 99 Technical
29204         Corrigendum 1.
29205
29206 2006-06-23  Bruno Haible  <bruno@clisp.org>
29207
29208         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
29209
29210 2006-06-23  Bruno Haible  <bruno@clisp.org>
29211
29212         * lib/stdint_.h: Treat IRIX like OpenBSD.
29213
29214 2006-06-23  Bruno Haible  <bruno@clisp.org>
29215
29216         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
29217         ISO C 99 Technical Corrigendum 1.
29218
29219 2006-06-22  Simon Josefsson  <jas@extundo.com>
29220
29221         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
29222         MinGW.
29223
29224 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29225
29226         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
29227         needed.  Some compiler complained about some of them.  Problem reported
29228         by Larry Jones in
29229         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
29230
29231 2006-06-21  Simon Josefsson  <jas@extundo.com>
29232
29233         * tests/test-getaddrinfo.c: New file.
29234
29235         * modules/getaddrinfo-tests: New file.
29236
29237         * MODULES.html.sh: Add inet_pton.
29238
29239         * modules/inet_pton: New file.
29240
29241 2006-06-21  Simon Josefsson  <jas@extundo.com>
29242
29243         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
29244         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
29245         of using the (limited) gnulib implementation on Windows XP.
29246
29247         * m4/inet_pton.m4: New file.
29248
29249 2006-06-21  Simon Josefsson  <jas@extundo.com>
29250
29251         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
29252         variable.
29253
29254         * lib/socket_.h: Don't define WINVER.
29255
29256         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
29257         slightly modified to work in gnulib.
29258
29259 2006-06-21  Simon Josefsson  <jas@extundo.com>
29260
29261         * doc/gnulib.texi (Windows sockets): Add.
29262
29263 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29264
29265         * lib/read-file.c (fread_file): Start with buffer allocation of
29266         0 bytes rather than 1 byte; this simplifies the code.
29267         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
29268         code to free buffer and save/restore errno.
29269         (internal_read_file): Remove unused local.
29270
29271 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
29274         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
29275         Problem reported by Denis Excoffier in
29276         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
29277
29278 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29279
29280         * modules/sys_socket, modules/socklen: Include sys/types since
29281         FreeBSD 4.x's sys/socket.h needs it.
29282
29283 2006-06-19  Simon Josefsson  <jas@extundo.com>
29284
29285         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
29286
29287 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
29288
29289         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
29290
29291 2006-06-19  Bruno Haible  <bruno@clisp.org>
29292
29293         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
29294         and FULL_PATH_INTTYPES_H in angle brackets.
29295         Reported by Mark D. Baushke <mdb@gnu.org>.
29296
29297 2006-06-17  Eric Blake  <ebb9@byu.net>
29298
29299         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
29300         errno.
29301
29302 2006-06-17  Bruno Haible  <bruno@clisp.org>
29303
29304         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
29305         <sys/inttypes.h>.
29306
29307 2006-06-17  Bruno Haible  <bruno@clisp.org>
29308
29309         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
29310         whether errno is declared. Assume <errno.h> declares errno.
29311
29312 2006-06-17  Bruno Haible  <bruno@clisp.org>
29313
29314         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
29315
29316 2006-06-17  Bruno Haible  <bruno@clisp.org>
29317
29318         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
29319         problem on Solaris 2.5.1.
29320
29321 2006-06-16  Eric Blake  <ebb9@byu.net>
29322
29323         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
29324         * lib/unicodeio.c [!defined errno]: Likewise.
29325         * lib/strtol.c [!defined errno]: Likewise.
29326         * lib/strtod.c [!defined errno]: Likewise.
29327
29328 2006-06-15  Eric Blake  <ebb9@byu.net>
29329
29330         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
29331
29332 2006-06-15  Eric Blake  <ebb9@byu.net>
29333
29334         * config/srclist.txt (ssize_t.m4): Lose sync.
29335
29336 2006-06-15  Bruno Haible  <bruno@clisp.org>
29337
29338         * modules/stdint (Files): Include m4/full-header-path.m4,
29339         m4/size_max.m4, m4/wchar_t.m4.
29340         (Makefile.am): Many more substitutions.
29341         * modules/stdint-tests: New file.
29342         * tests/test-stdint.c: New file.
29343
29344 2006-06-15  Bruno Haible  <bruno@clisp.org>
29345
29346         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
29347         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
29348         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
29349         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
29350         gl_CHECK_TYPE_SAME): New macros.
29351
29352 2006-06-15  Bruno Haible  <bruno@clisp.org>
29353
29354         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
29355
29356 2006-06-15  Bruno Haible  <bruno@clisp.org>
29357
29358         * lib/stdint_.h: Rewritten to be fully auto-configured.
29359         Fixes bug on HP-UX/IA64.
29360
29361 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
29362
29363         * lib/getdate.y (__attribute__): Don't define if already defined.
29364         Problem reported by Larry Jones.
29365         * lib/utimens.c (__attribute__): Likewise.
29366
29367 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
29368
29369         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
29370         reported by Andreas Schwab.
29371
29372 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29373             Bruno Haible  <bruno@clisp.org>
29374
29375         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
29376         check for the declaration of strnlen and a run test that exposes the
29377         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
29378         rpl_strndup.
29379
29380 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29381             Bruno Haible  <bruno@clisp.org>
29382
29383         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
29384
29385 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29386
29387         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
29388         compile test, for Tru64 4.0D.
29389
29390 2006-05-28  Karl Berry  <karl@gnu.org>
29391
29392         * config/srclist.txt (printf-args.c): lose sync.
29393
29394 2006-05-26  Martin Lambers  <marlam@marlam.de>
29395
29396         * lib/getpass.c: Updates the test for the native W32 API, and adds
29397         missing includes, thus fixing compilation warnings.
29398
29399 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29400
29401         * lib/exclude.c (exclude_fnmatch): New function.
29402         (excluded_file_name): Call exclude_fnmatch.
29403         * lib/exclude.h (excluded_file_name): New prototype
29404
29405 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
29406
29407         * lib/tempname.c (small_open, large_open): New macros.
29408         (__open, __open64) [!_LIBC]: Remove.
29409         (__gen_tempname): Use small_open and large_open instead of __open
29410         and __open64.  This fixes a portability bug on HP-UX 11.11i
29411         reported by Simon Wing-Tang in
29412         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
29413
29414 2006-05-24  Bruno Haible  <bruno@clisp.org>
29415
29416         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
29417         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
29418         Reported by Thorsten Maerz <torte@netztorte.de> via
29419         Aaron Stone <aaron@serendipity.cx>.
29420
29421 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29422
29423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
29424         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
29425         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
29426         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
29427         not really conditional on the cache.
29428         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
29429
29430 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
29433         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
29434         (my_usleep): Don't mishandle maximum value.
29435
29436 2006-05-19  Jim Meyering  <jim@meyering.net>
29437
29438         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
29439
29440 2006-05-17  Bruno Haible  <bruno@clisp.org>
29441
29442         Cygwin portability.
29443         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
29444
29445 2006-05-17  Bruno Haible  <bruno@clisp.org>
29446
29447         * lib/stdint_.h: Fix recognition of Cygwin.
29448
29449 2006-05-15  Bruno Haible  <bruno@clisp.org>
29450
29451         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
29452         on libtool patch by Ralf Wildenhues.
29453
29454 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29455
29456         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
29457         test for C99 conformance; (bool) 0.5 is an integer constant
29458         expression, but (bool) -0.5 is not.  Problem reported by Fedor
29459         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
29460
29461 2006-05-11  Simon Josefsson  <jas@extundo.com>
29462
29463         * m4/xvasprintf.m4: Fix obvious typo.
29464
29465 2006-05-11  Jim Meyering  <jim@meyering.net>
29466
29467         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
29468         James Lemley.
29469
29470 2006-05-10  Simon Josefsson  <jas@extundo.com>
29471
29472         * lib/md4.c: Typo fix, update copyright years.
29473         (K1, K2): Don't use L because it turn computations into 64-bit on
29474         64-bit platforms.
29475
29476 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
29479         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
29480         unwanted sign propagation, e.g., on hosts with 64-bit int.
29481         There still are some problems with reeelly weird theoretical hosts
29482         (e.g., 33-bit int) but it's not worth worrying about now.
29483         * lib/sha1.c (rol): Likewise.
29484         (K1, K2, K3, K4): Remove unnecessary L suffix.
29485
29486 2006-05-10  Bruno Haible  <bruno@clisp.org>
29487
29488         * lib/des.c: Cast to avoid warnings.
29489
29490 2006-05-09  Bruno Haible  <bruno@clisp.org>
29491
29492         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
29493         (Depends-on): Depend also on xsize, stdarg.
29494         (configure.ac): Add gl_XVASPRINTF.
29495
29496 2006-05-09  Bruno Haible  <bruno@clisp.org>
29497
29498         * m4/xvasprintf.m4: New file.
29499
29500 2006-05-09  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
29503         (EOVERFLOW): Define fallback value.
29504         (xstrcat): New function.
29505         (xvasprintf): Recognize the special case of a string concatenation.
29506
29507 2006-05-08  Eric Blake  <ebb9@byu.net>
29508
29509         * gnulib-tool (func_version): Base copyright year on CVS date.
29510         (func_emit_copyright_notice): New function.
29511         (func_emit_lib_Makefile_am): Use it.
29512         (func_emit_tests_Makefile_am): Likewise.
29513         (func_import): Likewise.
29514
29515 2006-05-08  Bruno Haible  <bruno@clisp.org>
29516
29517         * modules/stdarg: New file.
29518         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
29519
29520 2006-05-08  Bruno Haible  <bruno@clisp.org>
29521
29522         * m4/stdarg.m4: New file, from GNU gettext.
29523
29524 2006-05-08  Bruno Haible  <bruno@clisp.org>
29525
29526         * config/srclist.txt (build-aux/config.rpath): different from latest
29527         release.
29528
29529 2006-05-08  Bruno Haible  <bruno@clisp.org>
29530
29531         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
29532
29533 2006-05-05  Jim Meyering  <jim@meyering.net>
29534
29535         * m4/warning.m4: New file, derived from bison's file by the same name.
29536
29537 2006-05-03  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/stdint_.h: Shorter URL.
29540         * lib/inttypes.h: Likewise.
29541
29542 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
29543
29544         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
29545
29546 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
29547
29548         * lib/verify.h: Document the internals better.  Most of this change
29549         was written by Bruno Haible.
29550
29551 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
29552
29553         * doc/verify.texi: New file, partly based on a proposal by
29554         Bruno Haible.
29555
29556 2006-05-02  Bruno Haible  <bruno@clisp.org>
29557
29558         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
29559         test from here...
29560         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
29561
29562 2006-04-29  Bruno Haible  <bruno@clisp.org>
29563
29564         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
29565         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
29566
29567 2006-04-29  Bruno Haible  <bruno@clisp.org>
29568
29569         * gnulib-tool: Make --update option actually work.
29570
29571 2006-04-29  Bruno Haible  <bruno@clisp.org>
29572
29573         * doc/gcd.texi: New file.
29574         * doc/gnulib.texi: Include it.
29575
29576 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29577
29578         * lib/getdate.y (get_date): When adding relative date, start with the
29579         initial time, not with the result of the first mktime call.
29580
29581 2006-04-25  Bruno Haible  <bruno@clisp.org>
29582
29583         * gnulib-tool (func_import): Output the include directives in three
29584         blocks, sorted separately.
29585         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29586
29587 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29588
29589         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
29590         to define main with arguments, for C++.  Reported by Eric Blake.
29591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
29592         Prefer 'int main ()' to 'int main (void)', for C++.
29593         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
29595         for 'main', for C99 and C++.
29596
29597 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29598
29599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
29600         Don't assume that exit status -1 is valid.
29601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29602         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29603         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29604         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
29605         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
29606         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
29607         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
29608         functions can be used without declaring them, or that you can
29609         exit with status -1.
29610         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29611
29612 2006-04-24  Karl Berry  <karl@gnu.org>
29613
29614         * config/srclist.txt (longdouble.m4): sync lost.
29615
29616 2006-04-24  Eric Blake  <ebb9@byu.net>
29617
29618         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
29619
29620 2006-04-24  Bruno Haible  <bruno@clisp.org>
29621
29622         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
29623         poll() implementation in AIX.
29624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29625
29626 2006-04-24  Bruno Haible  <bruno@clisp.org>
29627
29628         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
29629         assigned exactly once.
29630
29631 2006-04-23  Claudio Fontana  <claudio@gnu.org>
29632             Bruno Haible  <bruno@clisp.org>
29633
29634         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
29635         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
29636         for AM_CPPFLAGS.
29637
29638 2006-04-23  Bruno Haible  <bruno@clisp.org>
29639
29640         * modules/copy-file: Depend on unistd.
29641         * modules/execute: Likewise.
29642         * modules/fatal-signal: Likewise.
29643         * modules/findprog: Likewise.
29644         * modules/mkdtemp : Likewise.
29645         * modules/pipe: Likewise.
29646         * modules/wait-process: Likewise.
29647
29648 2006-04-23  Bruno Haible  <bruno@clisp.org>
29649
29650         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
29651         condition was already detected.
29652         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29653
29654 2006-04-23  Bruno Haible  <bruno@clisp.org>
29655
29656         * lib/copy-file.c: Include <unistd.h> unconditionally.
29657         * lib/execute.c: Likewise.
29658         * lib/fatal-signal.c: Likewise.
29659         * lib/findprog.c: Likewise.
29660         * lib/mkdtemp.c: Likewise.
29661         * lib/pipe.h: Likewise.
29662         * lib/pipe.c: Likewise.
29663         * lib/wait-process.h: Likewise.
29664
29665 2006-04-23  Bruno Haible  <bruno@clisp.org>
29666
29667         * gnulib-tool (func_usage): Fix --import description. Document
29668         --update.
29669         (func_import): Create temporary file in a temporary directory, if
29670         --dry-run is specified. Silence errors from 'grep' when there are no
29671         m4 files in $m4dir.
29672         (func_create_testdir): Silence errors from 'grep' when there are no
29673         m4 files in $m4dir.
29674         Reported by Karl Berry <karl@freefriends.org>.
29675
29676 2006-04-20  Bruno Haible  <bruno@clisp.org>
29677
29678         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
29679         one argument, so that the code will be portable to Autoconf 2.60.
29680         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
29681         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
29682         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
29683
29684 2006-04-19  Derek Price  <derek@ximbiot.com>
29685             Eric Blake  <ebb9@byu.net>
29686
29687         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
29688         rather than "/full/path.h".  Update comment to match.  Shorten &
29689         generalize m4_translit call via AS_TR_CPP.
29690
29691 2006-04-19  Derek Price  <derek@ximbiot.com>
29692             Eric Blake  <ebb9@byu.net>
29693
29694         * lib/inttypes.h: Correct grammar in comment.
29695
29696 2006-04-18  Derek Price  <derek@ximbiot.com>
29697             Paul Eggert  <eggert@cs.ucla.edu>
29698
29699         * modules/inttypes: New file.
29700         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
29701
29702 2006-04-18  Derek Price  <derek@ximbiot.com>
29703             Paul Eggert  <eggert@cs.ucla.edu>
29704
29705         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
29706         New files.
29707
29708 2006-04-18  Derek Price  <derek@ximbiot.com>
29709             Paul Eggert  <eggert@cs.ucla.edu>
29710
29711         * lib/inttypes.h: New file.
29712         * lib/strtoimax.c: Assume <inttypes.h>.
29713
29714 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
29715
29716         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
29717         isn't mounted.  Problem reported by Kir Kolyshkin.
29718
29719 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
29720
29721         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
29722         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
29723         Derek R. Price.
29724         * lib/regex.h (RE_DUP_MAX): Update comment to match current
29725         implementation.
29726
29727 2006-04-12  Eric Blake  <ebb9@byu.net>
29728
29729         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
29730         is now done automatically by the corresponding Autoconf macro.
29731
29732 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
29733
29734         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
29735         time_r.h.
29736
29737 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29738
29739         Merge regex changes from libc, removing some of our
29740         POSIX-conformance changes that were rejected and redoing them in a
29741         less-intrusive way.
29742
29743         * lib/regcomp.c (re_compile_internal, init_dfa):
29744         Length arg is now size_t, not Idx.  All uses changed.
29745         (peek_token): Forward decl now says internal_function.
29746         (__re_error_msgid, __re_error_msgid_idx):
29747         Now static rather than extern with attribute_hidden.
29748         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
29749         For some reason libc prefers K&R style defns for external functions.
29750         (regerror) [!defined _LIBC]: Likewise.
29751         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
29752         (seek_collating_symbol_entry, lookup_collation_sequence_value):
29753         (build_range_exp, build_collating_symbol):
29754         Use K&R-style defn.
29755         (re_compile_fastmap): Use '\0' to memset, not 0.
29756         (utf8_sb_map): Make the calculations more obvious.
29757         (init_dfa, parse_bracket_exp, build_charclass_op):
29758         Call calloc and cast result, as glibc does.
29759         (init_word_char, fetch_token, peek_token, peek_token_bracket):
29760         (build_range_exp, build_collating_symbol):
29761         Now internal functions.
29762
29763         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
29764
29765         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
29766         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
29767         Don't depend on VMS; depend on __VMS instead, for POSIX
29768         namespace cleanness.
29769         (regoff_t): Define to ssize_t, not long int.
29770
29771         Remove the REG_ macros named below.  Instead, make the old names
29772         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
29773         __USE_GNU_REGEX.
29774         (REG_BACKSLASH_ESCAPE_IN_LISTS):
29775         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
29776         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
29777         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
29778         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
29779         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
29780         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
29781         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
29782         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
29783         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
29784         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
29785         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
29786         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
29787         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
29788         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
29789         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
29790         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
29791         (REG_NREGS):
29792         Remove.  All uses replaced by the old RE_* names.
29793         (RE_BACKSLASH_ESCAPE_IN_LISTS):
29794         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
29795         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
29796         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
29797         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
29798         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
29799         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
29800         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
29801         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
29802         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
29803         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
29804         Don't bother having these macros be independent of each others'
29805         values, since they no longer exist in the POSIX name space.
29806
29807         Rename the following member names back to their old names,
29808         unless !__USE_GNU_REGEX.  All uses changed back.
29809         (buffer): Renamed from re_buffer.
29810         (allocated): Renamed from re_allocated.
29811         (used): Renamed from re_used.
29812         (syntax): Renamed from re_syntax.
29813         (fastmap): Renamed from re_fastmap.
29814         (translate): Renamed from re_translate.
29815         (can_be_null): Renamed from re_can_be_null.
29816         (regs_allocated): Renamed from re_regs_allocated.
29817         (fastmap_accurate): Renamed from re_fastmap_accurate.
29818         (no_sub): Renamed from re_no_sub.
29819         (not_bol): Renamed from re_not_bol.
29820         (not_eol): Renamed from re_not_eol.
29821         (newline_anchor): Renamed from re_newline_anchor.
29822         (num_regs): Renamed from rm_num_regs.
29823         (start): Renamed from rm_start.
29824         (end): Renamed from rm_end.
29825
29826         (free_state): Move up a bit.
29827
29828         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
29829         #define to be empty.
29830         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
29831         when that is what is intended.
29832         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
29833         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
29834         (MAX): New macro.
29835         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
29836         All uses changed back to re_malloc, etc.  It's now the caller's
29837         responsibility to check for overflow; all callers changed.
29838         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
29839         (re_x2nrealloc): Remove.
29840         (free_state): Remove decl.
29841
29842         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
29843         (re_set_registers, re_exec):
29844         Use K&R-style defn.
29845
29846         2006-01-31  Roland McGrath  <roland@redhat.com>
29847
29848         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
29849         Reported by Mike Frysinger <vapier@gentoo.org>.
29850
29851         2006-01-15  Andreas Jaeger  <aj@suse.de>
29852
29853         [BZ #1950]
29854         * lib/regex_internal.c (re_string_reconstruct): Adjust for
29855         build_wcs_upper_buffer change.
29856         (build_wcs_upper_buffer): Change return type.
29857
29858         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
29859
29860         * lib/regex_internal.h: Include <stdint.h> if available.
29861
29862         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
29863
29864         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
29865
29866         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
29867
29868         * lib/regcomp.c: Adjust for changed secondary hash function.
29869
29870         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
29871
29872         * lib/regex.h: Pretty printing.
29873         Clean up namespace a bit.
29874
29875         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
29876
29877         * lib/regexec.c (update_cur_sifted_state, check_arrival,
29878         check_arrival_add_next_nodes): Avoid using uninitialized variable.
29879
29880         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29881                     Ulrich Drepper  <drepper@redhat.com>
29882
29883         [BZ #1302]
29884         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
29885         changed.
29886         (bitset_word_t): Renamed from bitset_word.  All uses changed.
29887
29888         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
29889
29890         [BZ #281]
29891         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
29892         * lib/regcomp.c: Remove unnecessary uses of
29893         unsigned RE_TRANSLATE_TYPE.
29894         * lib/regex_internal.h: Likewise.
29895         * lib/regex_internal.c: Likewise.
29896         * lib/regexec.c: Likewise.
29897         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
29898
29899         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
29900
29901         * lib/regexec.c (find_recover_state): Remove unnecessary
29902         initialization.
29903         (transit_state_bkref): Make DFA a const pointer.
29904         (get_subexp): Likewise.
29905         (check_arrival): Likewise.
29906         (update_cur_sifted_state): Likewise.
29907         (re_search_internal): Likewise.
29908         (prune_impossible_nodes): Likewise.
29909         (acquire_init_state_context): Likewise.
29910         (proceed_next_node): Likewise.
29911         (set_regs): Likewise.
29912         (free_fail_stack_return): Likewise.
29913         (check_arrival_expand_ecl): Mark DFA parameter as const.
29914         (check_arrival_expand_ecl_sub): Likewise.
29915         (check_subexp_limits): Likewise.
29916         (sub_epsilon_src_nodes):  Likewise.
29917         (add_epsilon_src_nodes):  Likewise.
29918         (merge_state_array): Likewise.
29919         (update_regs): Likewise.
29920         (build_trtable): Likewise.
29921         (sift_states_backward): Mark MCTX parameter as const.
29922         (build_sifted_states): Likewise.
29923         (update_cur_sifted_state): Likewise.
29924         (sift_states_mkref): Likewise.
29925         (check_arrival_expand_ecl): Mark eclosure as const.
29926         (check_dst_limits_calc_pos_1): Likewise.
29927         * lib/regex_internal.h (re_match_context_t): Make dfa a const
29928         pointer.
29929
29930         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
29931
29932         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
29933         (transit_state_sb): Likewise.
29934         (transit_state_mb): Likewise.
29935         (sift_states_iter_mb): Likewise.
29936         (check_arrival_add_next_nodes): Likewise.
29937         (check_node_accept_bytes): Change first parameter to pointer-to-const.
29938         [_LIBC] (re_search_2_stub): Use mempcpy.
29939
29940         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
29941         mbrtowc for very simple UTF-8 case.
29942
29943         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
29944         a pointer-to-const.
29945         (re_acquire_state_context): Likewise.
29946         * lib/regex_internal.h: Adjust prototypes.
29947
29948         * lib/regex.c: Prevent using C++ compilers.
29949
29950         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
29951         (re_acquire_state_context): Likewise.
29952
29953 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29954
29955         * modules/regex (Depends-on): Add ssize_t.
29956
29957 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29958
29959         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
29960         translation table.
29961
29962 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29963
29964         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
29965
29966 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
29967             Bruno Haible  <bruno@clisp.org>
29968
29969         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
29970         <sys/types.h> and <inttypes.h>.
29971
29972 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29973
29974         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
29975         `__error_t_defined', so argp.h will not typedef the former.
29976
29977 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29978
29979         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
29980         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
29981         glibc names.  Even if glibc is changed to conform to POSIX, the
29982         traditional names will be available anyway, since regex depends on
29983         the extensions module.  Also, fix a longstanding typo in the
29984         implementation of Spencer ERE test #75 from grep 2.3.  Problems
29985         reported by Emanuele Giaquinta.  Also, change sense of cached
29986         variable, so that the message makes sense.
29987
29988 2006-03-24  Simon Josefsson  <jas@extundo.com>
29989
29990         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
29991         including some doc fixes.
29992         (base64_encode_alloc): Fix +1 bug on allocation failures.
29993
29994 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29995
29996         * lib/base64.c (base64_encode): Do not read past end of array with
29997         unsanitized input on systems with CHAR_BIT > 8.
29998
29999 2006-03-24  Eric Blake  <ebb9@byu.net>
30000
30001         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
30002
30003 2006-03-22  Karl Berry  <karl@gnu.org>
30004
30005         * config/srclist.txt (*setenv.[ch]): get from coreutils.
30006         * config/srclistvars.sh (COREUTILS): new var.
30007
30008 2006-03-17  Jim Meyering  <jim@meyering.net>
30009
30010         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
30011         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
30012
30013 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
30014
30015         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
30016         no longer needs it.  Instead, check that regoff_t is as least
30017         as wide as ptrdiff_t.
30018
30019         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
30020         so that our regex.h stays compatible with the installed regex.
30021         This is helpful for installers who configure --without-included-regex.
30022         Problem reported by Emanuele Giaquinta.
30023
30024 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
30025
30026         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
30027         Typedef to long int, not to off_, as POSIX will likely change
30028         in that direction.
30029
30030 2006-03-15  Eric Blake  <ebb9@byu.net>
30031
30032         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
30033
30034 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
30035
30036         * lib/argp-help.c (validate_uparams): Fix typo
30037         * lib/argp-parse.c (argp_default_options): Consistently begin help
30038         messages with a lowercase letter.
30039
30040 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
30041
30042         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
30043         overrun buffers and shouldn't be used (much as gets shouldn't be
30044         used).
30045         * lib/time_r.c (asctime_r, ctime_r): Likewise.
30046
30047 2006-03-08  Simon Josefsson  <jas@extundo.com>
30048
30049         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
30050         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30051
30052 2006-03-08  Simon Josefsson  <jas@extundo.com>
30053
30054         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
30055         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30056
30057 2006-03-08  Simon Josefsson  <jas@extundo.com>
30058
30059         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
30060         signal that configure disabled the device.
30061
30062 2006-03-08  Simon Josefsson  <jas@extundo.com>
30063
30064         * build-aux/maint.mk: Fix refresh-po, to handle no translated
30065         languages.
30066
30067 2006-03-07  Simon Josefsson  <jas@extundo.com>
30068
30069         * modules/getopt (Depends-on): Add unistd.
30070
30071         * modules/unistd: New file.
30072
30073 2006-03-07  Simon Josefsson  <jas@extundo.com>
30074
30075         * modules/gc-random: New file.
30076
30077 2006-03-07  Simon Josefsson  <jas@extundo.com>
30078
30079         * m4/unistd_h.m4: New file.
30080
30081 2006-03-07  Simon Josefsson  <jas@extundo.com>
30082
30083         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
30084         test to be side-effect free by storing the result in the cache
30085         variable gl_cv_lib_readline, and moving the assignment of
30086         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
30087         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30088
30089 2006-03-07  Simon Josefsson  <jas@extundo.com>
30090
30091         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
30092         error on missing devices (the functions will return an error).
30093
30094         * m4/gc.m4: Move random stuff to gc-random.m4
30095
30096 2006-03-07  Simon Josefsson  <jas@extundo.com>
30097
30098         * lib/unistd_.h: New file.
30099
30100 2006-03-07  Simon Josefsson  <jas@extundo.com>
30101
30102         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
30103
30104 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
30105
30106         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
30107         Problem reported by Juan Manuel Guerrero.
30108
30109 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
30110
30111         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
30112         the unistd module.
30113         * lib/getlogin_r.c: Likewise.
30114         * lib/getlogin_r.h: Likewise.
30115         * lib/glob.c: Likewise.
30116         * lib/pagealign_alloc.c: Likewise.
30117         * lib/unistd_.h: Remove; no longer needed.
30118
30119 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
30120
30121         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30122         Add unistd.
30123         * modules/c-stack (Depends-on): Add unistd.
30124         * modules/getlogin_r: Likewise.
30125         * modules/glob: Likewise.
30126         * modules/pagealign_alloc: Likewise.
30127         * modules/unistd (Files): Remove lib/unistd_.h.
30128         (EXTRA_DIST): Remove.
30129         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
30130         need unistd_.h.
30131         (MOSTLYCLEANFILES): Remove unistd.h-t.
30132
30133 2006-03-03  Simon Josefsson  <jas@extundo.com>
30134
30135         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
30136
30137 2006-03-03  Simon Josefsson  <jas@extundo.com>
30138
30139         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
30140         libidn and bison.
30141
30142 2006-03-03  Simon Josefsson  <jas@extundo.com>
30143
30144         * build-aux/maint.mk: Add indent target.
30145
30146 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
30147
30148         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
30149         our replacement poll.h in any case, to avoid a differing
30150         declaration from a system header.  Seen on AIX.
30151
30152 2006-03-01  Simon Josefsson  <jas@extundo.com>
30153
30154         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
30155         <kasal@ucw.cz>.
30156
30157 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30158
30159         * modules/gettime (Depends-on): Add extensions module.
30160         * modules/nanosleep (Depends-on): Likewise.
30161         * modules/settime (Depends-on): Likewise.
30162
30163 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30164
30165         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
30166         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
30167         pedantically.
30168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30169         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
30170
30171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
30172         not "==".  Reported by Ralf Wildenhues.
30173
30174 2006-03-01  Karl Berry  <karl@gnu.org>
30175
30176         * doc/Copyright/request-*: new files, synced from gnuorg.
30177
30178 2006-03-01  Karl Berry  <karl@gnu.org>
30179
30180         * config/srclist.txt (Copyright/*): new entries.
30181
30182 2006-02-28  Simon Josefsson  <jas@extundo.com>
30183
30184         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
30185
30186 2006-02-27  Simon Josefsson  <jas@extundo.com>
30187
30188         * lib/base64.h: Indent #define's.  From Jim Meyering
30189         <jim@meyering.net>.
30190
30191 2006-02-27  Jim Meyering  <jim@meyering.net>
30192
30193         Revert the change of 2006-02-24, so these files can continue
30194         to be sync'd from gettext.
30195         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
30196         of `config.h'.
30197
30198 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30199
30200         * modules/intprops: New file.
30201         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
30202         Add intprops.
30203         * modules/getloadavg (Files): Remove lib/intprops.h.
30204         (Depends-on): Add intprops.
30205         * modules/human: Likewise.
30206         * modules/inttostr: Likewise.
30207         * modules/openat: Likewise.
30208         * modules/sig2str: Likewise.
30209         * modules/userspec: Likewise.
30210         * modules/utimecmp: Likewise.
30211         * modules/xnanosleep: Likewise.
30212         * modules/xstrtol: Likewise.
30213
30214 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
30215
30216         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
30217         * modules/lock-tests (TESTS): Use $(EXEEXT).
30218         * modules/tls-tests: Likewise.
30219         * modules/argp-tests: Likewise.
30220         (check_PROGRAMS): New var, replacing...
30221         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
30222
30223 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30224
30225         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
30226         `config.h'.
30227
30228 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30229
30230         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
30231
30232 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30233
30234         Sync from coreutils.
30235         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
30236         gl_CHDIR_SAFER.
30237
30238 2006-02-22  Jim Meyering  <jim@meyering.net>
30239
30240         Sync from coreutils.
30241         * m4/chdir-safer.m4: New file.
30242
30243 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30244
30245         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
30246         AT_FDCWD exceeds INT_MAX.
30247         * lib/openat.h (AT_FDCWD): Likewise.
30248
30249 2006-02-17  Eric Blake  <address@hidden>
30250
30251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
30252
30253 2006-02-16  Simon Josefsson  <jas@extundo.com>
30254
30255         * modules/getaddrinfo (Depends-on): Add sys_socket.
30256
30257 2006-02-15  Simon Josefsson  <jas@extundo.com>
30258
30259         * build-aux/maint.mk: Add dsyntax-check rule.
30260
30261 2006-02-15  Eric Blake  <ebb9@byu.net>
30262
30263         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
30264         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
30265         'present but cannot compile' warnings on cygwin.
30266         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
30267         use ws2tcpip.h if sys/socket.h works.
30268         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
30269         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
30270
30271 2006-02-14  Simon Josefsson  <jas@extundo.com>
30272
30273         * modules/maintainer-makefile (Files): Rename.
30274
30275         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
30276         and (the local) Makefile.cfg to maint-cfg.mk.
30277
30278         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
30279         to the latter.
30280
30281         * modules/maintainer-makefile: New module.
30282
30283         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
30284         severaly stripped to make it possible to build it up from scratch
30285         with reliable tests.
30286
30287         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
30288         fixes to permit overriding the default actions when configure and
30289         makefile are not available.
30290
30291 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
30292
30293         Sync from coreutils.
30294         * modules/lstat (Depends-on): Don't depend on xalloc.
30295         (License): Change from GPL to LGPL, since this is now simply a
30296         replacement for a libc function.
30297
30298 2006-02-14  Jim Meyering  <jim@meyering.net>
30299
30300         Sync from coreutils.
30301
30302         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
30303         failure on deficient systems, and simplify gnulib lgpl dependencies.
30304         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
30305         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
30306
30307         * lib/xalloc-die.c: Remove unused definition of N_.
30308
30309 2006-02-14  Jim Meyering  <jim@meyering.net>
30310
30311         Sync from coreutils.
30312         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
30313         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
30314         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
30315         double-quote uses of that variable, to accommodate the rare case in
30316         which getmntent is available in none of the libraries checked.  This
30317         happens at least on FreeBSD 5.0.
30318
30319 2006-02-13  Simon Josefsson  <jas@extundo.com>
30320
30321         * gnulib-tool (Usage): Fix --import, from
30322         karl@freefriends.org (Karl Berry).
30323
30324 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
30325
30326         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
30327
30328 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
30329
30330         * lib/argp-namefrob.h: Restore changes accidentally lost during the
30331         "autoupdate" on 2005-12-12.
30332
30333 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30334
30335         * modules/closeout (Depends-on): Remove atexit.
30336
30337 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30338
30339         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
30340         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
30341
30342 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30343
30344         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
30345         __EXTENSIONS__ if this causes compilation to fail.  Problem
30346         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
30347         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
30348
30349 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
30350
30351         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
30352         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
30353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
30354         All uses changed.
30355
30356 2006-01-26  Simon Josefsson  <jas@extundo.com>
30357
30358         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
30359         prototype is visible on mingw32.
30360
30361         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
30362         for mingw32.
30363
30364         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
30365         mingw32).
30366
30367 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
30368
30369         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
30370         attempt to open for write; this always fails, at least on POSIX
30371         hosts.  This reinstates the 2006-01-09 change, which was
30372         inadvertently removed.
30373
30374 2006-01-26  Bruno Haible  <bruno@clisp.org>
30375
30376         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
30377         Reported by Paul Eggert.
30378
30379 2006-01-26  Bruno Haible  <bruno@clisp.org>
30380             Paul Eggert  <eggert@cs.ucla.edu>
30381
30382         * lib/stdbool_.h (_Bool)
30383         [(! (defined __cplusplus || defined __BEOS__)
30384           && !defined __GNUC__
30385           && !(defined __HP_cc || defined __xlc__
30386                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
30387                || defined __sgi))]:
30388         #define to signed char in these cases too; this simplifies
30389         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
30390         etc., separately) and makes it more conservative.
30391
30392 2006-01-25  Simon Josefsson  <jas@extundo.com>
30393
30394         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
30395         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
30396         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
30397
30398 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30399
30400         * lib/argp-namefrob.h: Bugfix. Remove stray #
30401
30402 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30403
30404         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
30405         so that we test the test.
30406         Check for yet another HP-UX cc bug involving *bool |= bool.
30407
30408 2006-01-25  Karl Berry  <karl@gnu.org>
30409
30410         * config/srclist.txt (vasnprintf.c): sync lost.
30411
30412 2006-01-25  Jim Meyering  <jim@meyering.net>
30413
30414         Sync from the stable (b5) branch of coreutils:
30415
30416         * lib/fts.c (fts_children): Don't let close() clobber errno from
30417         failed fchdir().
30418
30419         * lib/fts.c (fts_stat): When following a symlink-to-directory,
30420         don't necessarily interpret stat-fails+lstat-succeeds as indicating
30421         a dangling symlink.  That can also happen at least for ELOOP.
30422         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
30423         FYI, this bug predates the inclusion of fts.c in coreutils.
30424
30425         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
30426         in their own block, so pre-c99 compilers don't object.
30427
30428         Avoid the double-free (first in fts_read, second in fts_close) that
30429         would occur when an `active' directory is made inaccessible (e.g.,
30430         via chmod a-x) during a traversal.
30431         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
30432         before returning.  Reproduce this failure by
30433         mkdir -p a/b; cd a; chmod a-x . b
30434         Reported by Stavros Passas.
30435
30436 2006-01-25  Jim Meyering  <jim@meyering.net>
30437
30438         * lib/fileblocks.c: Remove more useless parentheses.
30439         * lib/readutmp.h: Likewise.
30440
30441 2006-01-25  Bruno Haible  <bruno@clisp.org>
30442
30443         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
30444         warnings.
30445         Reported by Paul Eggert.
30446
30447 2006-01-25  Bruno Haible  <bruno@clisp.org>
30448
30449         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
30450         rid of a trap command. For Solaris sh.
30451         Reported by Mark D. Baushke <mdb@gnu.org>.
30452
30453 2006-01-24  Simon Josefsson  <jas@extundo.com>
30454
30455         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
30456         Bruno.
30457
30458 2006-01-24  Karl Berry  <karl@gnu.org>
30459
30460         * config/srclist.txt (argp-namefrob.h): sync lost.
30461
30462 2006-01-24  Jim Meyering  <jim@meyering.net>
30463
30464         * modules/openat (Files): Add lib/intprops.h.
30465         From Mark D. Baushke.
30466
30467 2006-01-24  Jim Meyering  <jim@meyering.net>
30468
30469         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
30470         Reported by Mark D. Baushke.
30471
30472 2006-01-24  Jim Meyering  <jim@meyering.net>
30473
30474         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
30475
30476 2006-01-24  Bruno Haible  <bruno@clisp.org>
30477
30478         * modules/strnlen (Maintainer): Change from glibc to all.
30479
30480 2006-01-24  Bruno Haible  <bruno@clisp.org>
30481
30482         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
30483         Patch by Paul Eggert.
30484
30485 2006-01-24  Bruno Haible  <bruno@clisp.org>
30486
30487         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
30488         already has it.
30489         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
30490         2005-11-26.
30491
30492         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
30493         'signed char' to avoid problems with the built-in _Bool type.
30494         Reported by Paul Eggert on 2005-11-26.
30495
30496 2006-01-24  Bruno Haible  <bruno@clisp.org>
30497
30498         * gnulib-tool (func_import): Avoid constructing complicated sed
30499         expressions inside backquote.
30500         Report and solution by Mark D. Baushke <mdb@gnu.org>.
30501
30502 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
30503
30504         These changes imported from libc.
30505         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
30506         test and two separate function calls.
30507         * lib/strndup.c (__strndup): Add libc_hidden_def.
30508
30509 2006-01-23  Simon Josefsson  <jas@extundo.com>
30510
30511         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
30512         Remove the test_*_SOURCES variable: automake infers it by default.
30513         * modules/tls-tests: Likewise.
30514
30515 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30516
30517         Work around porting bugs reported by Dieter in
30518         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
30519         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
30520         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
30521         Include "getopt.h" first, to check interface.
30522         (getenv): Declare only if defined HAVE_DECL_GETENV &&
30523         !HAVE_DECL_GETENV.
30524         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
30525         (__strndup): Revert to K&R-style function dfns, the glibc style.
30526         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
30527         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
30528         Include strnlen.h first, to get prototype properly.
30529         (strnlen): Renamed from __strnlen.
30530         Remove weak alias.
30531
30532 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30533
30534         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
30535
30536 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30537
30538         * config/srclist.txt: Adjust to reflect glibc reorganization.
30539         This affects only comments.
30540
30541 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30542
30543          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
30544          Reported by Bruce Korb <bkorb@gnu.org>.
30545
30546 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30547
30548         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
30549         to pacify gcc -Wswitch-default.
30550
30551 2006-01-22  Bruno Haible  <bruno@clisp.org>
30552
30553         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
30554         temporary buffer for sprintf, take into account the precision also
30555         for 'd', 'i', 'u', 'o', 'x', 'X'.
30556
30557 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30558
30559         * modules/argp-tests: New module
30560         * tests/test-argp.c: New file
30561         * tests/test-argp-2.sh: New file
30562
30563 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30564
30565         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
30566         (__argp_base_name): Removed
30567         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
30568         typo.
30569         (__argp_base_name): Provide macro definition or extern declaration
30570         depending on the configuration
30571
30572 2006-01-20  Simon Josefsson  <jas@extundo.com>
30573
30574         * modules/inet_ntop (Depends-on): Depend on sys_socket.
30575
30576 2006-01-20  Simon Josefsson  <jas@extundo.com>
30577
30578         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
30579
30580 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30581
30582         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
30583         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
30584         Suggested by Bruno Haible.
30585
30586 2006-01-20  Karl Berry  <karl@gnu.org>
30587
30588         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
30589         until changes propagate, I guess.
30590
30591 2006-01-19  Simon Josefsson  <jas@extundo.com>
30592
30593         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
30594
30595 2006-01-19  Simon Josefsson  <jas@extundo.com>
30596
30597         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
30598
30599 2006-01-19  Simon Josefsson  <jas@extundo.com>
30600
30601         * gnulib-tool: Set check_PROGRAMS.
30602
30603         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
30604         modules/des-tests, modules/gc-arcfour-tests,
30605         modules/gc-arctwo-tests, modules/gc-des-tests,
30606         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
30607         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
30608         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
30609         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
30610         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
30611         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
30612         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
30613         test_*_SOURCES.
30614
30615 2006-01-18  Simon Josefsson  <jas@extundo.com>
30616
30617         * modules/socklen (Depends-on): Depend on sys_socket.
30618
30619 2006-01-18  Simon Josefsson  <jas@extundo.com>
30620
30621         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
30622         modules/des-tests, modules/gc-arcfour-tests,
30623         modules/gc-arctwo-tests, modules/gc-des-tests,
30624         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
30625         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
30626         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
30627         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
30628         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
30629         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
30630         $(EXEEXT) to automake TESTS variable, for mingw32.
30631
30632 2006-01-17  Simon Josefsson  <jas@extundo.com>
30633
30634         * modules/socklen (Include): Need sys/socket.h.
30635
30636 2006-01-17  Bruno Haible  <bruno@clisp.org>
30637
30638         * modules/ssize_t (Include): Add <sys/types.h>.
30639
30640 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30641
30642         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
30643         it's not portable and it doesn't work with cross-compiles.
30644         Problem reported by Bruno Haible.  Fix missing-$ typo in
30645         'test "gl_cv_ignore_unused_libraries" ...' that prevented
30646         -zignore from being used with Sun's C compiler.
30647
30648 2006-01-12  Simon Josefsson  <jas@extundo.com>
30649
30650         * lib/base64.c: Fix warning, reported by Bruno Haible
30651         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
30652
30653 2006-01-12  Bruno Haible  <bruno@clisp.org>
30654
30655         * modules/ldd: New file.
30656         * build-aux/ldd.sh.in: New file.
30657         * MODULES.html.sh (Support for building libraries and executables): Add
30658         ldd.
30659
30660 2006-01-12  Bruno Haible  <bruno@clisp.org>
30661
30662         * m4/ldd.m4: New file.
30663
30664 2006-01-12  Bruno Haible  <bruno@clisp.org>
30665
30666         * gnulib-tool (func_import, func_create_testdir): Don't go into an
30667         endless loop while replacing $auxdir with build-aux.
30668
30669 2006-01-11  Simon Josefsson  <jas@extundo.com>
30670
30671         * lib/stdint_.h (SIZE_MAX): Add missing (.
30672
30673 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
30674
30675         Sync from coreutils.
30676         * lib/md5.c: Fix commentary typos.
30677         (alignof, UNALIGNED_P): No need for a GCC-specific version.
30678         * lib/md5.h (__attribute__): Remove; unused.
30679         * lib/sha1.c: Fix commentary to match md5 better.
30680         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
30681         so that we don't need to worry about alignment.  All uses changed.
30682         This merges the 2005-10-28 md5 change into sha1.
30683
30684 2006-01-11  Jim Meyering  <jim@meyering.net>
30685
30686         Sync from coreutils.
30687         * lib/md5.c (OP): Fix spacing.
30688
30689 2006-01-11  Bruno Haible  <bruno@clisp.org>
30690
30691         Ensure automatic ordering between gl_LOCK and gl_ARGP.
30692         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
30693         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
30694
30695 2006-01-11  Bruno Haible  <bruno@clisp.org>
30696
30697         Ensure automatic ordering between gl_LOCK and gl_ARGP.
30698         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
30699         the "early" section as well.
30700
30701 2006-01-11  Bruno Haible  <bruno@clisp.org>
30702
30703         Avoid "ar: no archive members specified" error on MacOS X.
30704         * gnulib-tool (func_modules_add_dummy): New function.
30705         (func_import, func_create_testdir): Invoke it.
30706
30707 2006-01-11  Bruno Haible  <bruno@clisp.org>
30708
30709         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
30710         with $auxdir in AC_CONFIG_FILES statements.
30711
30712 2006-01-11  Bruno Haible  <bruno@clisp.org>
30713
30714         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30715         Initialize also noinst_HEADERS to empty.
30716
30717 2006-01-11  Bruno Haible  <bruno@clisp.org>
30718
30719         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
30720         variables.
30721         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
30722         autoreconf.
30723
30724 2006-01-11  Bruno Haible  <bruno@clisp.org>
30725
30726         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
30727         overridable by the user.
30728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30729
30730 2006-01-10  Simon Josefsson  <jas@extundo.com>
30731
30732         * modules/sys_socket: New file.
30733
30734 2006-01-10  Simon Josefsson  <jas@extundo.com>
30735
30736         * m4/sys_socket_h.m4: New file.
30737
30738 2006-01-10  Simon Josefsson  <jas@extundo.com>
30739
30740         * lib/socket_.h: New file.
30741
30742 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         * modules/readutmp (Maintainer): Add myself.
30745
30746 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
30747
30748         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
30749         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
30750         People who are still concerned with buggy memcmp implementations
30751         can invoke gl_FUNC_MEMCMP themselves.
30752
30753 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
30754
30755         * lib/regex_internal.h (BITSET_WORD_BITS):
30756         Work around a bug in 64-bit PGC (before version 6.1-2), where the
30757         preprocessor mishandles large unsigned values as if they were signed.
30758         Problem reported by Claudio Fontana in
30759         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
30760
30761 2006-01-10  Jim Meyering  <jim@meyering.net>
30762
30763         Avoid the double-free (first in fts_read, second in fts_close) that
30764         would occur when an `active' directory is made inaccessible (e.g.,
30765         via chmod a-x) during a traversal.
30766         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
30767         before returning.  Reproduce this failure by
30768         mkdir -p a/b; cd a; chmod a-x . b
30769         Reported by Stavros Passas.
30770
30771         Sync from coreutils.
30772         * lib/sha1.c: Tweak grammar in a comment.
30773
30774 2006-01-10  Jim Meyering  <jim@meyering.net>
30775
30776         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
30777         Patch by Joerg Sonnenberger.
30778
30779 2006-01-10  Bruno Haible  <bruno@clisp.org>
30780
30781         * modules/readutmp: Depend on module free.
30782         * modules/strtok_r: Depend on module restrict.
30783
30784 2006-01-10  Bruno Haible  <bruno@clisp.org>
30785
30786         * modules/gettext (configure.ac): Add an invocation of
30787         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
30788
30789 2006-01-10  Bruno Haible  <bruno@clisp.org>
30790
30791         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
30792         Reported by Werner Lemberg <wl@gnu.org>.
30793
30794 2006-01-10  Bruno Haible  <bruno@clisp.org>
30795
30796         * lib/localcharset.c: Update from GNU gettext.
30797
30798 2006-01-10  Bruno Haible  <bruno@clisp.org>
30799
30800         * lib/argp.h (__const): Remove macro. Use const instead.
30801         * lib/argp-fmtstream.h (__const): Likewise.
30802         * lib/glob_.h (__const): Remove macro.
30803         * lib/glob-libc.h: Use const instead of __const.
30804
30805 2006-01-10  Bruno Haible  <bruno@clisp.org>
30806
30807         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
30808         variable.
30809         Needed to avoid an automake error regarding the 'gettext' module.
30810
30811 2006-01-09  Simon Josefsson  <jas@extundo.com>
30812
30813         * modules/inet_ntop (Depends-on): Add restrict.
30814
30815 2006-01-09  Simon Josefsson  <jas@extundo.com>
30816
30817         * modules/gc-rijndael-tests (License): Put under LGPL.
30818
30819         * modules/gc-des-tests (License): Likewise.
30820
30821         * modules/gc-arcfour-tests (License): Likewise.
30822
30823         * modules/gc-arctwo-tests (License): Likewise.
30824
30825         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
30826
30827         * modules/gc-hmac-sha1-tests (Files): Likewise.
30828
30829         * modules/gc-hmac-md5-tests (License): Likewise.
30830
30831         * modules/gc-sha1-tests (License): Likewise.
30832
30833         * modules/gc-md5-tests (License): Likewise.
30834
30835         * modules/gc-md4-tests (License): Likewise.
30836
30837         * modules/gc-md2-tests (License): Likewise.
30838
30839         * modules/gc-tests (License): Likewise.
30840
30841         * modules/des-tests (License): Likewise.
30842
30843         * modules/md4-tests (License): Likewise.
30844
30845         * modules/md2-tests (License): Likewise.
30846
30847 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30848
30849         Sync from coreutils:
30850
30851         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
30852         * modules/lib-ignore: New file.
30853         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
30854         chdir-safer.m4, lchmod.m4.
30855         * modules/openat: Add mkdirat.c, openat-priv.h.
30856
30857 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30858
30859         Sync from coreutils.
30860         * m4/lib-ignore.m4: New file.
30861         * m4/lchmod.m4: New file.
30862
30863 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30864
30865         Sync from coreutils.
30866         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
30867         for write access: POSIX says that must fail.
30868         * lib/fts.c (diropen): Likewise.
30869         * lib/save-cwd.c (save_cwd): Likewise.
30870         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
30871         well, for minor improvements on hosts that lack O_DIRECTORY.
30872         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
30873         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
30874         Fall back on chown if open failed with EACCES.
30875
30876         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
30877         Report an error at compile-time if only a 1-second nominal clock
30878         resolution is found.
30879
30880         * lib/lchmod.h: New file.
30881         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
30882         (make_dir_parents): Use lchown rather than chown, and
30883         lchmod rather than chmod.
30884
30885         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
30886         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
30887         "proc" reported by n0dalus.
30888
30889         * lib/mountlist.c: Include <limits.h>.
30890         (dev_from_mount_options)
30891         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
30892         New function.  It no longer assumes "dev=" has the System V meaning
30893         on Linux (since it doesn't).  It also parses "dev=" more carefully.
30894         (read_file_system_list)
30895         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
30896         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
30897         dev= in that case.
30898
30899         * lib/posixtm.h (PDS_PRE_2000): New macro.
30900         * lib/posixtm.c (year): Arg is now syntax_bits rather than
30901         allow_century.  All usages changed.  Reject dates outside the range
30902         1969-1999 if PDS_PRE_2000 is used.
30903
30904 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30905
30906         Sync from coreutils.
30907         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
30908         (Time of day items): Mention the possibility of leap seconds.
30909         Problem reported by Dr. David Alan Gilbert.
30910
30911 2006-01-09  Jim Meyering  <jim@meyering.net>
30912
30913         Sync from coreutils.
30914
30915         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
30916
30917         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
30918
30919         * lib/modechange.c (mode_compile): Reject an invalid mode string
30920         that starts with an octal digit.  From Andreas Gruenbacher.
30921
30922         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
30923         and dup to open_safer and dup_safer, respectively.
30924         (openat_permissive): Fix typo in comment.
30925
30926         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
30927         "gettext.h"; either no longer needed or are guaranteed by openat.h.
30928         (_): Remove; no longer needed.
30929         (openat): Renamed from rpl_openat; no need for rpl_openat
30930         since openat.h renames openat for us.
30931         Replace most of the body with a call to openat_permissive,
30932         to avoid duplicate code.
30933         Port to (probably hypothetical) environments were mode_t is
30934         wider than int.
30935         (openat_permissive): Require mode arg, so that we can check
30936         types better.  Put it just after flags.  Change cwd failure
30937         indicator from pointer-to-bool to pointer-to-errno-value.
30938         All callers changed.
30939         Invoke openat_save_fail and/or openat_restore_fail if
30940         cwd_errno is null, so that openat can call us.
30941         (openat_permissive, fdopendir, fstatat, unlinkat):
30942         Simplify errno handling to avoid some duplicate code,
30943         as it's OK to set errno on success.
30944         * lib/openat.h: Revamp code so that function macros depend on
30945         __OPENAT_PREFIX only, not also on AT_FDCWD.
30946         (openat_ro): Remove.  Caller changed to use openat_permissive.
30947         (openat_permissive): Now a macro, if not a function.
30948         (openat_restore_fail, openat_save_fail): Now always functions,
30949         since mkdirat needs them even if __OPENAT_PREFIX is defined.
30950
30951         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
30952         and openat.c.
30953         * lib/mkdirat.c: Include openat-priv.h.
30954         Remove definitions of macros defined therein.
30955         * lib/openat.c: Likewise.
30956
30957         * lib/mkdirat.c (mkdirat): New file and function.
30958         * lib/openat.h (mkdirat): Declare.
30959
30960         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
30961
30962         * lib/openat.h (openat_permissive): Declare.
30963         (openat_ro): Define.
30964
30965         * lib/openat.c (EXPECTED_ERRNO): New macro.
30966         (openat_permissive): New function -- used in remove.c rewrite.
30967         (all functions): Set errno just before returning, only if there
30968         was an actual failure.
30969         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
30970
30971         Emulate openat-family functions using Linux's procfs, if possible.
30972         Idea and some code based on Ulrich Drepper's glibc changes.
30973
30974         * lib/openat.c: (BUILD_PROC_NAME): New macro.
30975         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
30976         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
30977         before falling back on save_cwd and restore_cwd.
30978         (fdopendir, fstatat, unlinkat): Likewise.
30979
30980         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
30981         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
30982
30983         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
30984         as second argument to va_arg.  Otherwise, some versions of gcc
30985         warn that `if this code is reached, the program will abort'.
30986
30987 2006-01-09  Jim Meyering  <jim@meyering.net>
30988
30989         Sync from coreutils.
30990         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
30991         Require openat-priv.h.
30992
30993 2006-01-09  Bruno Haible  <bruno@clisp.org>
30994
30995         * modules/strnlen (Include): Use strnlen.h.
30996
30997 2006-01-09  Bruno Haible  <bruno@clisp.org>
30998
30999         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
31000
31001 2006-01-09  Bruno Haible  <bruno@clisp.org>
31002
31003         * lib/sysexit_.h (EX_OK): New macro.
31004         Suggested by Martin Lambers <marlam@marlam.de>.
31005
31006 2006-01-09  Bruno Haible  <bruno@clisp.org>
31007
31008         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
31009         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
31010
31011 2006-01-09  Bruno Haible  <bruno@clisp.org>
31012
31013         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
31014         numbers.
31015
31016 2006-01-09  Bruno Haible  <bruno@clisp.org>
31017
31018         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
31019         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
31020         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
31021         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
31022
31023 2006-01-09  Bruno Haible  <bruno@clisp.org>
31024
31025         * build-aux/javacomp.sh.in: New file, moved from lib/.
31026         * modules/javacomp-script (Files): Update.
31027         (configure.ac): Add AC_CONFIG_FILES invocation.
31028         (EXTRA_DIST): Remove variable.
31029
31030         * build-aux/javaexec.sh.in: New file, moved from lib/.
31031         * modules/javaexec (Files): Update.
31032         (configure.ac): Add AC_CONFIG_FILES invocation.
31033         (EXTRA_DIST): Remove javaexec.sh.in.
31034
31035         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
31036         * modules/csharpcomp-script (Files): Update.
31037         (configure.ac): Add AC_CONFIG_FILES invocation.
31038         (EXTRA_DIST): Remove variable.
31039
31040         * build-aux/csharpexec.sh.in: New file, moved from lib/.
31041         * modules/csharpexec (Files): Update.
31042         (configure.ac): Add AC_CONFIG_FILES invocation.
31043         (EXTRA_DIST): Remove csharpexec.sh.in.
31044
31045 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
31046
31047         Sync from coreutils.
31048
31049         Add POSIX ACL support
31050         * lib/acl.h (copy_acl, set_acl): Add declarations.
31051         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
31052         systems other than Linux.
31053         (chmod_or_fchmod): New function: use fchmod when possible,
31054         and chmod otherwise.
31055         (file_has_acl): Add a POSIX ACL implementation, with a
31056         Linux-specific subcase.
31057         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
31058         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
31059         acls are unsupported.
31060         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
31061         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
31062         are unsupported.
31063
31064 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
31065
31066         Sync from coreutils.
31067         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
31068
31069 2006-01-07  Bruno Haible  <bruno@clisp.org>
31070
31071         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
31072         gl_EARLY.
31073
31074 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31075
31076         * lib/strftime.c (tzname): Don't declare if it is already #defined.
31077         Problem reported for Mingw by Mark Junker.
31078
31079 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31080
31081         * README: Gnulib normally doesn't generate a tarball.
31082
31083 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31084
31085         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
31086         long int, not int, for nanosecond counts, so that people who are
31087         used to POSIX struct timespec won't be surprised.  Reported by Jim
31088         Meyering.
31089
31090 2005-12-28  Bruno Haible  <bruno@clisp.org>
31091
31092         * build-aux/config.rpath: Update from GNU gettext.
31093
31094 2005-12-16  Jim Meyering  <jim@meyering.net>
31095
31096         * modules/fprintftime: New module.
31097         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
31098
31099 2005-12-16  Jim Meyering  <jim@meyering.net>
31100
31101         * m4/fprintftime.m4: New file.
31102
31103 2005-12-16  Jim Meyering  <jim@meyering.net>
31104
31105         * lib/fprintftime.c, lib/fprintftime.h: New files.
31106
31107 2005-12-15  Simon Josefsson  <jas@extundo.com>
31108
31109         * modules/socklen (configure.ac): Fix M4 macro name, to align with
31110         new m4/socklen.m4.
31111
31112 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31113
31114         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
31115         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
31116
31117 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31118
31119         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
31120         * lib/argp-help.c (fill_in_uparams): Check if the constructed
31121         struct uparams is valid. Fall back to the default values if it is
31122         not.
31123
31124 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31125
31126         * modules/argp (Files): Add argp-pin.c
31127         (Depends-on): dirname
31128         (lib_SOURCES): Add argp-pin.c
31129
31130 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31131
31132         * m4/argp.m4:  Check if program_invocation_name and
31133         program_invocation_short_name are declared and define appropriate
31134         macros if they are not.
31135
31136 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31137
31138         * lib/argp-help.c (__argp_base_name): New function
31139         (__argp_short_program_name): Rewrite using __argp_base_name
31140         * lib/argp-namefrob.h: Define program_invocation_name and
31141         program_invocation_short_name if requested
31142         (__argp_base_name): Add prototype
31143         * lib/argp-parse.c (argp_def): Use gettext wrappers
31144         (argp_default_parser): Use __argp_base_name
31145         * lib/argp-pin.c: New file. Defines program_invocation_name and
31146         program_invocation_short_name on systems that lack them.
31147
31148 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31149
31150         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
31151         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
31152         porting problem reported by Georg Schwarz in
31153         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
31154
31155 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31156
31157         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
31158         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
31159         porting problem reported by Georg Schwarz in
31160         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
31161
31162 2005-12-05  Bruno Haible  <bruno@clisp.org>
31163
31164         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
31165         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
31166         Reported by Mark Junker <mjscod@gmx.de>.
31167
31168 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
31169
31170         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
31171         Use implementation from Albert Chin, with some
31172         comments/corrections by Stepan Kasal and myself.
31173
31174 2005-12-02  Bruno Haible  <bruno@clisp.org>
31175
31176         * gnulib-tool (func_import): Accept GPLed build tool modules when
31177         --lgpl is given.
31178         * modules/csharpcomp-script: New file.
31179         * modules/csharpcomp: Depend on it.
31180         * modules/javacomp-script: New file.
31181         * modules/javacomp: Depend on it.
31182         Suggested by Simon Josefsson.
31183
31184 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
31185
31186         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
31187         statement, to work around an HP-UX 10.20 compiler bug reported by
31188         Peter O'Gorman.
31189
31190 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
31191
31192         * modules/savedir (Depends-on): Add openat.
31193
31194 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
31195
31196         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
31197         (uintmax_t) [defined uintmax_t]: Do not declare.
31198         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
31199         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
31200         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
31201         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
31202         sake of portability to weird hosts that C allows (though we don't
31203         know of any practical examples).
31204
31205         * lib/savedir.h (fdsavedir): New decl.
31206         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
31207         contains most of the former guts of savedir.
31208         (savedir): Use savedirstream.
31209         Include "openat.h".
31210
31211 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31212
31213         * modules/obstack (Files): Add m4/ulonglong.m4.
31214         Problem reported by Davide Angelocola.
31215
31216 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
31219         coreutils no longer futzes with rounding modes.
31220
31221 2005-11-14  Jim Meyering  <jim@meyering.net>
31222
31223         * lib/mkstemp-safer.c: Include <config.h>, required for possible
31224         replacement of mkstemp.
31225
31226 2005-11-10  Simon Josefsson  <jas@extundo.com>
31227
31228         * lib/readline.c: Remove EOL.
31229
31230 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31231
31232         * modules/gethrxtime (Depends-on): Add gettime.
31233
31234 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
31237         or gettimeofday; no longer needed.
31238
31239 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31240
31241         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
31242         time business.
31243         (gethrxtime) [! (HAVE_NANOUPTIME
31244         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
31245         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
31246         our own approximation.
31247
31248 2005-11-08  Eric Blake  <ebb9@byu.net>
31249
31250         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
31251
31252 2005-11-08  Eric Blake  <ebb9@byu.net>
31253
31254         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
31255
31256 2005-11-04  Bruno Haible  <bruno@clisp.org>
31257
31258         * gnulib-tool: Implement --update mode.
31259
31260 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31261
31262         Fix porting problem reported by Theodoros V. Kalamatianos.
31263         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
31264         Don't assume that futimes failing means we must fail.
31265
31266 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31267
31268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
31269         variables to suggest the intended function of the PATH_MAX check.
31270
31271 2005-10-30  Kean Johnston  <jkj@sco.com>
31272
31273         Trivial changes to support SCO systems.
31274         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
31275         as PATH_MAX.
31276         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
31277         where __ptr is null when no I/O is pending.
31278
31279 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31280
31281         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
31282         leave errno alone.  Problem reported by Dmitry V. Levin.
31283
31284 2005-10-28  Simon Josefsson  <jas@extundo.com>
31285
31286         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
31287         Test more.
31288
31289         * tests/test-gc-md2.c, tests/test-md2.c: New files.
31290
31291         * modules/md2, modules/md2-tests: New files.
31292
31293 2005-10-28  Simon Josefsson  <jas@extundo.com>
31294
31295         * m4/inet_ntop.m4: More tests.
31296
31297         * m4/gc-md2.m4, md2.m4: New file.
31298
31299 2005-10-28  Simon Josefsson  <jas@extundo.com>
31300
31301         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
31302         "restrict" keywords, as per POSIX.  Protect the function
31303         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
31304         Don't use K&R prototypes.  Check the sprintf return values.
31305         Re-define EAFNOSUPPORT if not present.  Indent.
31306
31307         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
31308         suggested by Bruno Haible <bruno@clisp.org>.
31309
31310         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
31311
31312         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
31313
31314         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
31315         libgcrypt).
31316
31317         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
31318
31319         * lib/md2.h, lib/md2.c: New files.
31320
31321 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31322
31323         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
31324         errno alone.  Problem reported by Frederic Jolliton.
31325
31326 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
31327
31328         * modules/verify (License): Change from GPL to LGPL.  This is a
31329         tiny module and there are apparently near-equivalents that are
31330         under the BSD license.
31331
31332 2005-10-24  Simon Josefsson  <jas@extundo.com>
31333
31334         * modules/sha1: Relicense to LGPL.
31335
31336 2005-10-24  Simon Josefsson  <jas@extundo.com>
31337
31338         * lib/md4.h: Shrink buffer size, now that we changed the type.
31339
31340 2005-10-23  Simon Josefsson  <jas@extundo.com>
31341
31342         * gnulib-tool (func_import): Fix --tests-base.
31343
31344 2005-10-22  Simon Josefsson  <jas@extundo.com>
31345
31346         * modules/arcfour (Depends-on): Need stdint.
31347
31348 2005-10-22  Simon Josefsson  <jas@extundo.com>
31349
31350         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
31351         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
31352
31353 2005-10-22  Simon Josefsson  <jas@extundo.com>
31354
31355         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
31356         suggested by Bruno Haible <bruno@clisp.org>.
31357
31358 2005-10-22  Simon Josefsson  <jas@extundo.com>
31359
31360         * lib/crc.h: Include stddef.h, for size_t.
31361
31362 2005-10-22  Simon Josefsson  <jas@extundo.com>
31363
31364         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
31365         arcfour_context struct (simplify test vector testing in GNU
31366         Shishi).
31367
31368 2005-10-21  Simon Josefsson  <jas@extundo.com>
31369
31370         * modules/des, modules/des-tests: New files.
31371
31372         * modules/gc-des, modules/gc-des-tests: New files.
31373
31374         * tests/test-des.c, tests/test-gc-des.c: New file.
31375
31376 2005-10-21  Simon Josefsson  <jas@extundo.com>
31377
31378         * modules/arctwo, modules/arctwo-tests: New files.
31379
31380         * tests/test-arctwo.c: New file.
31381
31382         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
31383
31384         * tests/test-gc-arctwo.c: New file.
31385
31386 2005-10-21  Simon Josefsson  <jas@extundo.com>
31387
31388         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
31389         Bruno Haible <bruno@clisp.org>.
31390
31391         * m4/gc-des.m4: New file.
31392
31393 2005-10-21  Simon Josefsson  <jas@extundo.com>
31394
31395         * m4/arctwo.m4: New file.
31396
31397         * m4/gc-arctwo.m4: New file.
31398
31399 2005-10-21  Simon Josefsson  <jas@extundo.com>
31400
31401         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
31402         block.
31403
31404 2005-10-21  Simon Josefsson  <jas@extundo.com>
31405
31406         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
31407         <bruno@clisp.org>.
31408
31409         * lib/hmac-sha1.c (hmac_sha1): Likewise.
31410
31411         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
31412         Bruno Haible <bruno@clisp.org>.
31413
31414         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
31415         <bruno@clisp.org>.
31416
31417 2005-10-21  Simon Josefsson  <jas@extundo.com>
31418
31419         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
31420
31421 2005-10-21  Simon Josefsson  <jas@extundo.com>
31422
31423         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
31424
31425 2005-10-21  Simon Josefsson  <jas@extundo.com>
31426
31427         * lib/des.h, lib/des.c: New files.
31428
31429         * lib/gc-gnulib.c: Support DES.c
31430
31431 2005-10-21  Simon Josefsson  <jas@extundo.com>
31432
31433         * lib/arctwo.h, lib/arctwo.c: New files.
31434
31435         * lib/gc-gnulib.c: Support ARCTWO.
31436
31437 2005-10-21  Simon Josefsson  <jas@extundo.com>
31438
31439         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
31440         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31441
31442 2005-10-21  Simon Josefsson  <jas@extundo.com>
31443
31444         * gnulib-tool (func_import, func_create_testdir): Define automake
31445         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
31446         Makefile.am snippet),
31447         suggested by Bruno Haible <bruno@clisp.org>.
31448
31449         * modules/gc (Makefile.am): Use it.
31450
31451 2005-10-21  Bruno Haible  <bruno@clisp.org>
31452
31453         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
31454         patch.
31455
31456 2005-10-19  Simon Josefsson  <jas@extundo.com>
31457
31458         * tests/test-gc-rijndael.c: New file.
31459
31460         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
31461
31462 2005-10-19  Simon Josefsson  <jas@extundo.com>
31463
31464         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
31465         interface too.
31466
31467 2005-10-19  Simon Josefsson  <jas@extundo.com>
31468
31469         * tests/test-gc-arcfour.c: New file.
31470
31471         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
31472
31473 2005-10-19  Simon Josefsson  <jas@extundo.com>
31474
31475         * modules/gc-md4, modules/gc-md4-tests: New file.
31476
31477         * tests/test-gc-md4.c: New file.
31478
31479 2005-10-19  Simon Josefsson  <jas@extundo.com>
31480
31481         * m4/gc-md4.m4: New file.
31482
31483 2005-10-19  Simon Josefsson  <jas@extundo.com>
31484
31485         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
31486         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
31487         <kasal@ucw.cz>.
31488
31489 2005-10-19  Simon Josefsson  <jas@extundo.com>
31490
31491         * m4/gc-arcfour.m4: New file.
31492
31493         * m4/gc-rijndael.m4: New file.
31494
31495 2005-10-19  Simon Josefsson  <jas@extundo.com>
31496
31497         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
31498
31499 2005-10-19  Simon Josefsson  <jas@extundo.com>
31500
31501         * lib/gc-gnulib.c: Support ARCFOUR.
31502
31503 2005-10-19  Simon Josefsson  <jas@extundo.com>
31504
31505         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
31506         support.
31507
31508         * lib/gc.h: Add ECB enum type.
31509
31510         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
31511
31512 2005-10-18  Simon Josefsson  <jas@extundo.com>
31513
31514         * tests/test-md5.c: New file.
31515
31516         * modules/md5-tests: New file.
31517
31518 2005-10-18  Simon Josefsson  <jas@extundo.com>
31519
31520         * tests/test-md4.c: New file.
31521
31522         * modules/md4, modules/md4-tests: New files.
31523
31524 2005-10-18  Simon Josefsson  <jas@extundo.com>
31525
31526         * m4/md4.m4: New file.
31527
31528 2005-10-18  Simon Josefsson  <jas@extundo.com>
31529
31530         * lib/md4.h, lib/md4.c: New files, based on md5.?.
31531
31532 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
31533
31534         * gnulib-tool (func_create_testdir): Omit the second check whether
31535         BUILT_SOURCES in nonempty.
31536
31537 2005-10-17  Simon Josefsson  <jas@extundo.com>
31538
31539         * tests/test-rijndael.c: New file.
31540
31541 2005-10-17  Simon Josefsson  <jas@extundo.com>
31542
31543         * modules/sha1: Depend on stdint instead of md5.
31544
31545         * modules/md5: Depend on stdint, remove uint32_t.
31546
31547 2005-10-17  Simon Josefsson  <jas@extundo.com>
31548
31549         * modules/gc-sha1-tests: New file.
31550
31551         * tests/test-gc-sha1.c: New file.
31552
31553 2005-10-17  Simon Josefsson  <jas@extundo.com>
31554
31555         * m4/md5.m4: Remove call to uint32_t.m4.
31556
31557 2005-10-17  Simon Josefsson  <jas@extundo.com>
31558
31559         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
31560
31561         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
31562         md5.h.
31563
31564         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
31565
31566         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
31567
31568 2005-10-17  Simon Josefsson  <jas@extundo.com>
31569
31570         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
31571
31572 2005-10-17  Simon Josefsson  <jas@extundo.com>
31573
31574         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
31575
31576 2005-10-17  Simon Josefsson  <jas@extundo.com>
31577
31578         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
31579
31580         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
31581
31582 2005-10-17  Bruno Haible  <bruno@clisp.org>
31583
31584         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
31585         that it can also be used in a test.
31586
31587 2005-10-16  Bruno Haible  <bruno@clisp.org>
31588
31589         * gnulib-tool (func_emit_tests_Makefile_am): Also define
31590         TESTS_ENVIRONMENT, so that individual tests can augment it.
31591
31592         * gnulib-tool (func_create_testdir): Use an intermediate target for
31593         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
31594         macros, like $(ALLOCA_H), which cannot be passed through the command
31595         line.
31596
31597 2005-10-15  Simon Josefsson  <jas@extundo.com>
31598
31599         * modules/rijndael-tests: New file.
31600
31601         * modules/rijndael: New file.
31602
31603 2005-10-15  Simon Josefsson  <jas@extundo.com>
31604
31605         * m4/rijndael.m4: New file.
31606
31607 2005-10-15  Simon Josefsson  <jas@extundo.com>
31608
31609         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
31610
31611         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
31612
31613 2005-10-14  Simon Josefsson  <jas@extundo.com>
31614
31615         * tests/test-arcfour.c: New file.
31616
31617         * modules/arcfour, modules/arcfour-tests: New files.
31618
31619 2005-10-14  Simon Josefsson  <jas@extundo.com>
31620
31621         * m4/arcfour.m4: New file.
31622
31623 2005-10-14  Simon Josefsson  <jas@extundo.com>
31624
31625         * lib/arcfour.h, lib/arcfour.c: New files.
31626
31627 2005-10-14  Roland McGrath  <roland@redhat.com>
31628
31629         Import from libc.  [BZ #1331]
31630         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
31631         macro argument.
31632         Reported by Matej Vela <vela@debian.org>.
31633
31634 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31635
31636         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
31637         include <wchar.h>; no longer needed.
31638
31639 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31640
31641         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
31642
31643 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
31644         and  Ulrich Drepper  <drepper@redhat.com>
31645
31646         Import from libc.
31647         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
31648         instead of inline stream orientation test and two separate
31649         function calls.  Pay no attention to USE_IN_LIBIO.
31650
31651 2005-10-13  Simon Josefsson  <jas@extundo.com>
31652
31653         * modules/gc-hmac-md5-tests: New file.
31654
31655         * tests/test-gc-hmac-sha1.c: New file.
31656
31657         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
31658
31659         * modules/gc-hmac-md5-tests: New file.
31660
31661         * tests/test-gc-md5.c: New file.
31662
31663         * modules/gc-md5-tests: New file.
31664
31665 2005-10-13  Simon Josefsson  <jas@extundo.com>
31666
31667         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
31668         Move memory allocation outside of loop.
31669
31670 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
31671
31672         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
31673         intermediate directory is in a read-only file system.  Problem
31674         reported by Eric Blake.
31675
31676 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
31677
31678         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
31679
31680 2005-10-12  Simon Josefsson  <jas@extundo.com>
31681
31682         * tests/test-hmac-sha1.c: New file.
31683
31684         * modules/hmac-sha1-tests: New file.
31685
31686         * modules/hmac-sha1: New file.
31687
31688 2005-10-12  Simon Josefsson  <jas@extundo.com>
31689
31690         * modules/gc-sha1: New file.
31691
31692 2005-10-12  Simon Josefsson  <jas@extundo.com>
31693
31694         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
31695
31696         * tests/test-gc-pbkdf2-sha1.c: New file.
31697
31698 2005-10-12  Simon Josefsson  <jas@extundo.com>
31699
31700         * modules/gc-md5, modules/gc-hmac-md5: New files.
31701
31702         * modules/gc (Files): Remove md5, memxor and hmac files.
31703
31704 2005-10-12  Simon Josefsson  <jas@extundo.com>
31705
31706         * m4/gc-pbkdf2-sha1.m4: New file.
31707
31708         * m4/gc-hmac-sha1.m4: New file.
31709
31710         * m4/gc-sha1: New file.
31711
31712         * m4/hmac-sha1.m4: New file.
31713
31714 2005-10-12  Simon Josefsson  <jas@extundo.com>
31715
31716         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
31717
31718         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
31719
31720 2005-10-12  Simon Josefsson  <jas@extundo.com>
31721
31722         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
31723         suggested by Bruno Haible <bruno@clisp.org>.
31724
31725 2005-10-12  Simon Josefsson  <jas@extundo.com>
31726
31727         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
31728
31729 2005-10-12  Simon Josefsson  <jas@extundo.com>
31730
31731         * lib/gc-pbkdf2-sha1.c: New file.
31732
31733         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
31734
31735 2005-10-12  Simon Josefsson  <jas@extundo.com>
31736
31737         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
31738
31739         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
31740
31741 2005-10-12  Simon Josefsson  <jas@extundo.com>
31742
31743         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
31744         GC_USE_HMAC_MD5, respectively.
31745
31746         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
31747         (gc_md5): Fix typo.
31748
31749         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
31750
31751         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
31752
31753         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
31754
31755 2005-10-12  Bruno Haible  <bruno@clisp.org>
31756
31757         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
31758         Reported by Stepan Kasal <kasal@ucw.cz>.
31759
31760 2005-10-11  Simon Josefsson  <jas@extundo.com>
31761
31762         * tests/test-crc.c: New file.
31763
31764         * modules/crc, modules/crc-tests: New files.
31765
31766 2005-10-11  Simon Josefsson  <jas@extundo.com>
31767
31768         * m4/crc.m4: New file.
31769
31770 2005-10-11  Simon Josefsson  <jas@extundo.com>
31771
31772         * lib/gc.h: Add gc_hash and gc_hash_buffer.
31773
31774         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
31775
31776         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
31777
31778 2005-10-11  Simon Josefsson  <jas@extundo.com>
31779
31780         * lib/crc.h, lib/crc.c: New files.
31781
31782         * lib/gc.h (gc_hash_buffer): Add doc.
31783
31784 2005-10-11  Bruno Haible  <bruno@clisp.org>
31785
31786         * modules/c-strcasestr: New file.
31787         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
31788
31789 2005-10-11  Bruno Haible  <bruno@clisp.org>
31790
31791         * modules/c-strcase: New file.
31792         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
31793
31794 2005-10-11  Bruno Haible  <bruno@clisp.org>
31795
31796         * lib/strcasecmp.c: Include limits.h.
31797         (strcasecmp): Avoid integer overflow on exotic platforms.
31798         * lib/strncasecmp.c: Include limits.h.
31799         (strncasecmp): Avoid integer overflow on exotic platforms.
31800         Reported by Paul Eggert.
31801
31802 2005-10-11  Bruno Haible  <bruno@clisp.org>
31803
31804         * lib/c-strcasestr.h: New file, from GNU gettext.
31805         * lib/c-strcasestr.c: New file, from GNU gettext.
31806
31807 2005-10-11  Bruno Haible  <bruno@clisp.org>
31808
31809         * lib/c-strcase.h: New file, from GNU gettext.
31810         * lib/c-strcasecmp.c: New file, from GNU gettext.
31811         * lib/c-strncasecmp.c: New file, from GNU gettext.
31812
31813 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31814
31815         * modules/mempcpy (License): GPL -> LGPL.
31816         * modules/strchrnul (License): Likewise.
31817         * modules/sysexits (License): Likewise.
31818
31819 2005-10-08  Simon Josefsson  <jas@extundo.com>
31820
31821         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
31822
31823 2005-10-07  Simon Josefsson  <jas@extundo.com>
31824
31825         * m4/memxor.m4: Remove gl_C_RESTRICT call.
31826
31827 2005-10-06  Simon Josefsson  <jas@extundo.com>
31828
31829         * tests/test-hmac-md5.c: New file.
31830
31831         * modules/hmac-md5-tests: New file.
31832
31833         * modules/hmac-md5: New file.
31834
31835 2005-10-06  Simon Josefsson  <jas@extundo.com>
31836
31837         * m4/hmac-md5.m4: New file.
31838
31839         * m4/memxor.m4: Require gl_C_RESTRICT.
31840
31841 2005-10-06  Simon Josefsson  <jas@extundo.com>
31842
31843         * lib/memxor.c (memxor): Avoid casts and warnings.
31844
31845 2005-10-06  Simon Josefsson  <jas@extundo.com>
31846
31847         * lib/hmac-md5.c: New file.
31848
31849         * lib/hmac.h: New file.
31850
31851 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31852
31853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
31854         promotes to int, not unsigned int, to catch the AIX 5.3
31855         compiler bug.
31856
31857 2005-10-05  Simon Josefsson  <jas@extundo.com>
31858
31859         * modules/memxor: New file.
31860
31861         * modules/iconv (Files): Move config.rpath to havelib, it is used
31862         there.
31863
31864         * modules/havelib (Files): Add config.rpath.
31865
31866 2005-10-05  Simon Josefsson  <jas@extundo.com>
31867
31868         * m4/memxor.m4: New file.
31869
31870 2005-10-05  Simon Josefsson  <jas@extundo.com>
31871
31872         * lib/memxor.c (memxor): Fix compiler error.
31873
31874         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
31875         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
31876
31877         * lib/memxor.h, lib/memxor.c: New files.
31878
31879         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
31880         we assume all systems have it, suggested by Jim Meyering
31881         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
31882         any systems lack sys/socket.h; mingw32 is known to lack it, but we
31883         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
31884         same reasons.
31885
31886 2005-10-05  Simon Josefsson  <jas@extundo.com>
31887
31888         * config/srclist.txt: Add glibc bug 1423 for md5.h.
31889
31890 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
31891
31892         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
31893         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
31894         needed, since the source code now assumes these .h files.
31895
31896 2005-10-05  Derek Price  <derek@ximbiot.com>
31897
31898         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
31899
31900 2005-10-05  Bruno Haible  <bruno@clisp.org>
31901
31902         * modules/stdint (License): Change to LGPL.
31903
31904 2005-10-04  Simon Josefsson  <jas@extundo.com>
31905
31906         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
31907         D. Baushke" <mdb@gnu.org>.
31908
31909 2005-10-04  Bruno Haible  <bruno@clisp.org>
31910
31911         * lib/verify.h (verify_true): Provide alternative definition for C++.
31912
31913 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
31914
31915         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
31916         (SSIZE_MAX): New macro, if not already defined.
31917         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
31918         than 2 GiB.
31919
31920 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31921
31922         Sync from coreutils.
31923         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
31924         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
31925         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
31926         ULLONG_MAX doesn't work with 2.7.2.1.
31927
31928 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31929
31930         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
31931         From Ben Pfaff.
31932
31933         * modules/exclude (Depends-on): Depend on verify.
31934         * modules/strtoimax (Depends-on): Likewise.
31935         * modules/utimecmp (Depends-on): Likewise.
31936
31937 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31938
31939         * lib/exclude.c: Include verify.h.
31940         (verify): Remove.  All callers changed to use verify.h's version.
31941         * lib/strtoimax.c: Likewise.
31942         * lib/utimecmp.c: Likewis.e
31943
31944         Sync from coreutils.
31945         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
31946         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
31947         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
31948         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
31949         bother returning ENOSYS if settimeofday or stime fails; just let
31950         them return whatever errno they want to return.
31951         * lib/utimens.c: Include unistd.h, for dup2.
31952         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
31953         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
31954
31955 2005-10-02  Jim Meyering  <jim@meyering.net>
31956
31957         Sync from coreutils.
31958         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
31959         from glibc-2.2.5 that fails for read-only files.
31960
31961 2005-10-02  Jim Meyering  <jim@meyering.net>
31962
31963         Sync from coreutils.
31964         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
31965         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
31966         `#if HAVE_CONFIG_H'.
31967         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
31968         Remove AT_FDCWD test.
31969         Do not consume the fd unless successful.
31970         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
31971         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
31972         block, so that we don't even try to compile it if settimeofday is
31973         available.  This works around a compilation failure on OSF1 V5.1,
31974         due to stime requiring a `long int*' while tv_sec is `int'.
31975
31976 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
31977
31978         Sync from coreutils.
31979         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
31980         against `yes', rather than just testing for nonempty.
31981
31982 2005-10-01  Simon Josefsson  <jas@extundo.com>
31983
31984         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
31985         and Darwin.
31986
31987         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
31988         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
31989         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
31990         freeaddrinfo and gai_strerror are declared by the POSIX headers.
31991         Check if struct addrinfo is declared.
31992
31993 2005-10-01  Simon Josefsson  <jas@extundo.com>
31994
31995         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
31996         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
31997         AI_* and EAI_* definitions.  Protect function declarations.
31998
31999 2005-10-01  Jim Meyering  <jim@meyering.net>
32000
32001         Sync from coreutils.
32002
32003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
32004         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
32005         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
32006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
32007         in the inet and nsl libraries.  Required on Solaris 5.7.
32008
32009 2005-10-01  Jim Meyering  <jim@meyering.net>
32010
32011         Sync from coreutils.
32012         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
32013         in the inet and nsl libraries.  Required on Solaris 5.7.
32014
32015 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
32016
32017         * lib/getdelim.c (getdelim): Remove unused variables.
32018
32019 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
32020
32021         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
32022         so that the code works even with ancient cpp.  Portability problem
32023         with GCC 2.7.2.1 reported by Thomas M.Ott.
32024
32025 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
32026
32027         * modules/regex (Depends-on): Add strcase.
32028
32029         * modules/gethostname (Licence): Change from GPL to LGPL, since
32030         gethostname.c is a trivial implementation of a standard library
32031         function.
32032         * modules/poll (License): Change from GPL to LGPL, since it's
32033         derived from LGPL code.
32034
32035 2005-09-27  Jim Meyering  <jim@meyering.net>
32036
32037         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
32038         HAVE_CONFIG_H.
32039
32040         * lib/intprops.h (signed_type_or_expr__): Define.
32041         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
32042         for unsigned types.
32043
32044 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32045
32046         * lib/verify.h (verify_expr): Remove, replacing with:
32047         (verify_true): New macro that returns true instead of void.
32048         (verify_type__): Remove.
32049         (verify): Use verify_true rather than verify_type__.
32050
32051 2005-09-26  Bruno Haible  <bruno@clisp.org>
32052
32053         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
32054         is necessary.
32055         (lib_SOURCES): Remove mbchar.c.
32056         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
32057         (Files): Add m4/mbrtowc.m4.
32058         * modules/mbiter: Likewise.
32059         * modules/mbuiter: Likewise.
32060
32061 2005-09-26  Bruno Haible  <bruno@clisp.org>
32062
32063         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
32064         compile mbchar.c if they are not both present.
32065         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
32066         * m4/mbiter.m4 (gl_MBITER): Likewise.
32067         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
32068         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
32069         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
32070
32071 2005-09-25  Jim Meyering  <jim@meyering.net>
32072
32073         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
32074         also uses socklen_t.
32075
32076 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
32077
32078         * lib/utimens.c (ENOSYS): Define if not already defined.
32079         (futimens): Support having a null PATH if the file descriptor
32080         is nonnegative.
32081
32082         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
32083         Remove.
32084         (__attribute): Define to empty unless GCC 3.1 or later.
32085         This works around a core dump on OpenBSD 3.4, which has GCC
32086         2.95.3, which dumps core when given __attribute__(()).  It also
32087         simplifies other tests, since we really don't want to bother with
32088         worrying about which ancient version of GCC supported what.
32089         Original problem reported by Yoann Vandoorselaere, with part of
32090         the fix suggested by Derek Price.
32091
32092 2005-09-24  Jim Meyering  <jim@meyering.net>
32093
32094         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
32095         so we can once again use a positive bitfield width of 1 -- now we
32096         don't have to explain why we were using a bitfield width of 2.
32097
32098 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32099
32100         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
32101         and similarly for the other external symbols.  Problem reported
32102         by James Gallager.
32103
32104         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
32105         bug reported by Jim Meyering.
32106
32107         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
32108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
32109         not needed, since socklen is a prerequisite module.
32110
32111 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32112
32113         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
32114         Problem reported by Eric Blake.
32115         (getaddrinfo): Initialize se so that it's not garbage.
32116         Redo internal storage allocation so that it doesn't make unportable
32117         assumptions about alignment.
32118         Fix a memory leak.
32119
32120         * lib/utimens.c (futimens): Use futimesat if available.
32121         Prefer it to futimes since it doesn't have the futimes bug.
32122
32123         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
32124         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
32125         Instead, declare a function that returns a pointer to an array,
32126         and use verify_type__ to declare the size of the array.
32127         Problem and germ of a solution reported by Bruno Haible.
32128         (verify_type__): Use 2, not 1, for bitfield size, to avoid
32129         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
32130
32131 2005-09-23  Jim Meyering  <jim@meyering.net>
32132
32133         Sync from coreutils.
32134         Correct build failure (socklen_t not defined) on at least
32135         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
32136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
32137
32138 2005-09-23  Jim Meyering  <jim@meyering.net>
32139
32140         * modules/getaddrinfo (Depends-on): Add socklen.
32141
32142 2005-09-23  Bruno Haible  <bruno@clisp.org>
32143
32144         * tests/test-verify.c: New file.
32145
32146 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32147
32148         Sync from coreutils.
32149
32150         * modules/argmatch (Depends-on): Add verify.
32151         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
32152         unistd-safer.
32153         * modules/save-cwd (Depends-on): Likewise.
32154
32155         * modules/openat (Files): Add lib/openat-die.c.
32156         (Depends-on): Remove error, exitfail.
32157         Add dirname.
32158
32159         * modules/verify: New file.
32160         * MODULES.html.sh (Diagnostics <assert.h>): New section,
32161         with "verify" module.
32162
32163 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32164
32165         Sync from coreutils.
32166
32167         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
32168         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
32169         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
32170         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
32171         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
32172         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
32173         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
32174         Don't bother checking for string.h, stdlib.h, unistd.h.
32175         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
32176         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
32177         module's job.
32178         * m4/jm-macros.m4 (gl_MACROS): Likewise.
32179         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
32180
32181         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
32182         (gl_GETDATE): Use it.
32183
32184         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
32185
32186 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32187
32188         Sync from coreutils.
32189
32190         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
32191         stat-time.h.
32192         * lib/argmatch.h: Include verify.h
32193         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
32194         (ARGMATCH_ASSERT): Remove; unused.
32195         * lib/canonicalize.c: Assume STDC_HEADERS.
32196         * lib/exclude.c: Include "strcase.h".
32197         * lib/regex_internal.h [!defined _LIBC]: Likewise.
32198         * lib/getusershell.c: Include stdio--.h rather than stdio.h
32199         and stdio-safer.h.
32200         (getusershell): Call fopen, not fopen_safer.
32201         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
32202         Do not include unistd-safer.h.
32203         (save_cwd): Don't call fd_safer; no longer needed
32204         now that we include fcntl--.h.
32205
32206         * lib/getdate.y (relative_time): New type.
32207         (RELATIVE_TIME_0): New constant.
32208         (parser_control): Use relative_time instead of doing it ourselves.
32209         (%union): Add new relative_time rel member.
32210         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
32211         Now typeless.
32212         (relunit, relunit_snumber): Now of type rel.
32213         (zone, rel, relunit, get_date): Adjust to above changes.
32214
32215         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
32216         Do not include unistd-safer.h.
32217         (getloadavg): Don't call fd_safer; no longer needed
32218         now that we include fcntl--.h.
32219
32220         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
32221         (make_dir_parents): Treat ENOSYS like EEXIST.
32222
32223         Improve quality of diagnostics on restore_cwd failure.
32224         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
32225         (make_dir_parents): Last arg is now int * (for errno), not bool *.
32226         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
32227         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
32228         each time through the loop.  Do not diagnose restore_cwd failure;
32229         that is the caller's job (and perhaps the caller does not care).
32230
32231         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
32232         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
32233         If the file already exists but is not a directory, don't bother
32234         to try to make its parents.
32235         Close potential file descriptor leak if we can't chdir("/") (!).
32236         Don't always return true if chdir($PWD) fails; return true only
32237         if the requested action was done successfully (except for the
32238         chdir($PWD)).
32239         Don't log final directory unless we actually made it.
32240         Refactor to avoid duplicate code to fix up permissions.
32241         Don't attempt to fix up parent permissions if chdir($PWD) fails.
32242
32243         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
32244         to make it a bit faster and (I hope) clearer.
32245         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
32246         Fix bug in formats like %2N.
32247
32248         * lib/verify.h: New file.
32249
32250 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
32251
32252         Sync from coreutils.
32253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
32254
32255 2005-09-22  Jim Meyering  <jim@meyering.net>
32256
32257         Sync from coreutils.
32258
32259         * m4/lstat.m4 (gl_FUNC_LSTAT):
32260         Use AC_LIBSOURCES to require lstat.c and lstat.h.
32261         Remove obsolete comment.
32262         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
32263         * m4/xstrtod.m4: Likewise.
32264
32265         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
32266
32267 2005-09-22  Jim Meyering  <jim@meyering.net>
32268
32269         Sync from coreutils.
32270
32271         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
32272
32273         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
32274         the .tm_year member, since otherwise gcc-4.0 would now warn about
32275         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
32276
32277         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
32278         order to avoid an unsuppressible warning from gcc on 64-bit systems.
32279
32280         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
32281         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
32282         when run in a time zone for which daylight savings time is in effect
32283         for the starting date.
32284
32285         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
32286         stop us from restricting permissions of just-created absolute-named
32287         directories.
32288         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
32289         to restore initial working directory.
32290         * lib/mkdir-p.c (make_dir_parents): New parameter:
32291         different_working_dir, to tell caller if/when we change the working
32292         directory and are unable to return to the initial one.
32293         * lib/mkdir-p.h (make_dir_parents): Update prototype.
32294         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
32295         `return false'.  This fixes a bug introduced on 2004-07-30.
32296
32297         * lib/openat.c (fdopendir): Be sure to close the supplied
32298         file descriptor before returning.  This makes our replacement
32299         implementation a little closer to Solaris's, where fdopendir
32300         ties the file descriptor to the returned DIR* pointer.
32301         * lib/openat.c (unlinkat): New function.
32302         * lib/openat.h (unlinkat): Add prototype.
32303         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
32304         (openat_restore_fail): Rename from openat_restore_die.
32305         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
32306
32307         Provide an alternative to exiting immediately upon save_cwd or
32308         restore_cwd failure.  Now, an application can arrange e.g.,
32309         to perform a longjump in that case.
32310         * lib/openat.c: Include dirname.h.
32311         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
32312         (rpl_openat, fdopendir, fstatat): Call openat_save_die
32313         and openat_restore_die rather than calling error directly.
32314         Don't include "error.h" or "exitfail.h"; they're no longer needed.
32315
32316         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
32317         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
32318         define.
32319
32320         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
32321         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
32322                             int utc, int nanoseconds);
32323         Background:
32324         date should not have to allocate a megabyte of virtual memory to
32325         handle a format argument like +%1048575T.  When implemented with
32326         strftime, it must allocate such a buffer, use strftime to fill it
32327         in, print it, then free it.
32328         With fprintftime, it simply prints everything and exits.
32329         With no need for memory allocation, that's one fewer way to fail.
32330         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
32331         optional field width, not before, so we accept %9:z, not %:9z.
32332         (my_strftime): Be sure to use L_('x') for literals.
32333
32334         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
32335         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
32336         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
32337         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
32338         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
32339         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
32340         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
32341         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
32342         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
32343         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
32344         * lib/xgethostname.c, lib/xreadlink.c:
32345         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
32346
32347         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
32348         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
32349         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
32350         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32351         and don't include <sys/file.h>).
32352
32353 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
32354
32355         Sync from coreutils.
32356
32357         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
32358         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
32359         [!LDAV_DONE]: Avoid unused variable warning.
32360
32361 2005-09-21  Bruno Haible  <bruno@clisp.org>
32362
32363         * lib/unicodeio.h (unicode_to_mb): New declaration.
32364
32365 2005-09-20  Derek Price  <derek@ximbiot.com>
32366
32367         * lib/getaddrinfo.c: Don't include <netdb.h> included from
32368         getaddrinfo.h.
32369
32370 2005-09-20  Bruno Haible  <bruno@clisp.org>
32371
32372         * gnulib-tool: Remove trailing slashes from the values specified for
32373         --source-base, --m4-base, --tests-base, --aux-dir.
32374         Suggested by Simon Josefsson <jas@extundo.com>.
32375
32376 2005-09-20  Bruno Haible  <bruno@clisp.org>
32377
32378         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
32379         func_modules_to_filelist, func_import, func_create_testdir): Make all
32380         sorting results locale-independent, so that gnulib-cache.m4 doesn't
32381         change when gnulib-tool is invoked in a different locale.
32382
32383 2005-09-19  Simon Josefsson  <jas@extundo.com>
32384
32385         * m4/socklen.m4: Fix typo.
32386
32387 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32388
32389         Use a consistent style for including <config.h>.
32390         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
32391         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
32392         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
32393         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
32394         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
32395         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
32396         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
32397         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
32398         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
32399         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
32400         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
32401         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
32402         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
32403         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
32404         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
32405         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
32406         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
32407         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
32408         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
32409         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
32410         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
32411         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
32412         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
32413         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
32414         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
32415         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
32416         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
32417         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
32418         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
32419         lib/xstrtoumax.c, lib/yesno.c:
32420         Standardize inclusion of config.h.
32421         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
32422         lib/inttostr.h:  Removed inclusion of config.h from header files.
32423         * lib/inttostr.c:  Adjusted in-tree users.
32424         * lib/timespec.h: Remove superfluous warning to include config.h.
32425         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
32426         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
32427         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
32428         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
32429         config.h with HAVE_CONFIG_H.
32430
32431 2005-09-19  Jim Meyering  <jim@meyering.net>
32432
32433         * modules/pathmax (License): Change to LGPL.
32434
32435 2005-09-19  Derek Price  <derek@ximbiot.com>
32436
32437         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
32438
32439 2005-09-19  Bruno Haible  <bruno@clisp.org>
32440
32441         * gnulib-tool (import): Provide default for --tests-base.
32442
32443 2005-09-19  Bruno Haible  <bruno@clisp.org>
32444
32445         * doc/quote.texi: New file, extracted from gnulib.texi.
32446         * doc/ctime.texi: New file, extracted from gnulib.texi.
32447         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
32448         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
32449         * doc/gnulib.texi: Include them.
32450
32451 2005-09-18  Bruno Haible  <bruno@clisp.org>
32452
32453         Portability fix.
32454         * gnulib-tool (func_readlink): New function.
32455         (func_ln_if_changed): Use it.
32456
32457 2005-09-18  Bruno Haible  <bruno@clisp.org>
32458
32459         * gnulib-tool: Support --with-tests also with --import.
32460         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
32461         (func_import): Use variables $testsbase and $inctests. Emit a
32462         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
32463         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
32464         SUBDIRS += $testsdir.
32465         (func_create_testdir): Update.
32466
32467 2005-09-18  Bruno Haible  <bruno@clisp.org>
32468
32469         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
32470         instead of $dry_run.
32471         (func_cp_if_changed, func_mv_if_changed): Remove functions.
32472         (func_ln_if_changed): Don't handle dry-run here.
32473         (func_import): In dry-run mode, detect more precisely which actions
32474         would be performed, and don't use "...ing" verbs.
32475
32476 2005-09-18  Bruno Haible  <bruno@clisp.org>
32477
32478         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
32479         (func_import): Use join on two temporary files instead of three nested
32480         loops, in order to determine which files are new or old.
32481
32482 2005-09-18  Bruno Haible  <bruno@clisp.org>
32483
32484         * gnulib-tool (func_import): Comment out code that spits out the
32485         new files with --dry-run.
32486
32487 2005-09-18  Bruno Haible  <bruno@clisp.org>
32488
32489         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
32490
32491 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32492
32493         * lib/stat-time.h: New file.
32494         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
32495         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
32496         in a different way.
32497         (timespec_cmp): New function.
32498         * lib/utimecmp.c: Include stat-time.h.
32499         (SYSCALL_RESOLUTION): Depend on whether various struct stat
32500         members exist, not on the obsolescent ST_MTIM_NSEC.
32501         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
32502
32503 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32504
32505         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
32506
32507 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32508
32509         * MODULES.html.sh (File system functions): Add stat-time.
32510         * modules/stat-time: New file.
32511         * modules/timespec (Files): Remove m4/st_mtim.m4; this
32512         is now done in a different way, by the stat-time module.
32513         * modules/utimecmp (Depends-on): Add stat-time.
32514
32515 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32516
32517         * m4/st_mtim.m4: Remove.  Superseded by...
32518         * m4/stat-time.m4: New file.
32519         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
32520         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
32521
32522 2005-09-15  Derek Price  <derek@ximbiot.com>
32523
32524         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
32525
32526 2005-09-15  Derek Price  <derek@ximbiot.com>
32527
32528         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
32529         * lib/regex_internal.c: Ditto, using this...
32530         (__GNUC_PREREQ): ...new macro.
32531         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
32532         using...
32533         (__GNUC_PREREQ): ...this new macro.
32534
32535         * lib/strstr.h: Include string.h. Define strstr as a macro here.
32536
32537 2005-09-15  Derek Price  <derek@ximbiot.com>
32538             Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
32541         changes, consolidating in...
32542         * lib/regex_internal.h: ...this file.
32543
32544 2005-09-13  Jim Meyering  <jim@meyering.net>
32545
32546         * lib/canon-host.c: Filter through gnu indent and reword comments
32547         slightly.
32548         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
32549
32550 2005-09-13  Derek Price  <derek@ximbiot.com>
32551
32552         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
32553         failure.
32554         Reported by Jim Meyering  <jim@meyering.net>.
32555
32556 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32557
32558         * lib/base64.c: Typo.
32559         (base64_encode): Put b64str in initialized data section.
32560
32561 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
32562
32563         Merge glibc and coreutils changes into gnulib, plus a few
32564         extra fixes.
32565         * lib/md5.c: Use #error rather than a string.
32566         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
32567         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
32568         (__attribute__): Define to empty for non recent-GCC.
32569         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
32570         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
32571         Renamed from their non-__ counterparts, with new macros replacing
32572         them if not _LIBC.  Add __THROW attribute.
32573         (rol): Remove.
32574         (struct md5_ctx): Align buffer if using GCC.
32575         * lib/sha1.h (struct sha1_ctx): Likewise.
32576         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
32577         The old name was backwards.
32578         (NOTSWAP): Remove; not used.
32579         (rol): New macro, moved here from md5.h.
32580         (sha1_process_block): Remove a FIXME that doesn't make sense.
32581
32582 2005-09-12  Derek Price  <derek@ximbiot.com>
32583
32584         Return usable errors from canon-host.
32585         * lib/canon-host.h: New file.
32586         * lib/canon-host.c (canon_host): Wrap...
32587         (canon_host_r): ...this new function, which now relies exclusively on
32588         getaddrinfo.
32589         (ch_strerror): New function.
32590         (last_cherror): New global.
32591         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
32592         interface.
32593         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
32594         void *.
32595         (freeaddrinfo): Free ai->ai_canonname when set.
32596
32597 2005-09-12  Derek Price  <derek@ximbiot.com>
32598
32599         Make canon-host require getaddrinfo.
32600         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
32601         AC_LIBSOURCE canon-host.h.  Call...
32602         (gl_PREREQ_CANON_HOST): ...this new function, which requires
32603         gl_GETADDRINFO.
32604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
32605
32606 2005-09-12  Derek Price  <derek@ximbiot.com>
32607
32608         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
32609         LGPL.
32610         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
32611
32612 2005-09-12  Derek Price  <derek@ximbiot.com>
32613
32614         * lib/gai_strerror.c: Include config.h when available.  Include
32615         getaddrinfo.h before other headers to test interface.
32616         Reported by Larry Jones <lawrence.jones@ugs.com>.
32617
32618 2005-09-12  Derek Price  <derek@ximbiot.com>
32619             Paul Eggert  <eggert@cs.ucla.edu>
32620
32621         * modules/glob (Files): Add glob-libc.h.
32622
32623 2005-09-12  Derek Price  <derek@ximbiot.com>
32624             Paul Eggert  <eggert@cs.ucla.edu>
32625
32626         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
32627         glob_.h, glob-libc.h.
32628         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
32629
32630 2005-09-12  Derek Price  <derek@ximbiot.com>
32631             Paul Eggert  <eggert@cs.ucla.edu>
32632
32633         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
32634         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
32635         protecting things that should be done only in gnulib contexts.
32636         * lib/glob_.h: New file, containing only the glob things needed for
32637         gnulib.
32638         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
32639         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
32640         (glob, globfree, glob_pattern_p): Now defined simply in terms of
32641         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
32642         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
32643         and to respect the namespace rules better.
32644
32645 2005-09-08  Simon Josefsson  <jas@extundo.com>
32646
32647         * modules/socklen: New file.
32648
32649 2005-09-08  Simon Josefsson  <jas@extundo.com>
32650
32651         * m4/socklen.m4: New file.
32652
32653 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32654
32655         * modules/utimens (Files): Add m4/utimbuf.m4, since
32656         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
32657         Reported by Sergey Poznyakoff.
32658
32659 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32660
32661         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
32662         definitions, since that's the preferred style in glibc.
32663         Fix a minor spacing issue, and update copyright notice to match
32664         glibc's.
32665
32666 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32667
32668         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
32669
32670 2005-09-06  Simon Josefsson  <jas@extundo.com>
32671
32672         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
32673         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
32674
32675 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32676
32677         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
32678         warning.
32679
32680 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32681
32682         * config/srclist.txt: Add glibc bug 1302.
32683
32684 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
32685
32686         Change bitset word type from unsigned int to unsigned long int,
32687         as this has better performance on typical 64-bit hosts.
32688         Port bitset code to hosts with unusual word sizes.
32689         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
32690         (build_collating_symbol):
32691         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
32692         argument is a bitset.  This is merely a style issue, but it makes
32693         it clearer that an entire array is expected.
32694         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
32695         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
32696         Port to the case where bitset_word is not the same as unsigned int.
32697         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
32698         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
32699         Likewise.
32700         * lib/regexec.c (check_dst_limits_calc_pos_1,
32701         check_subexp_matching_top):
32702         (build_trtable, group_nodes_into_DFAstates):
32703         Likewise.
32704         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
32705         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
32706         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
32707         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
32708         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
32709         * lib/regcomp.c (optimize_subexps, lower_subexp):
32710         Work even if bitset_word has holes in its bitwise representation.
32711         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
32712         * lib/regexec.c (check_dst_limits_calc_pos_1,
32713         check_subexp_matching_top):
32714         Likewise.
32715         * lib/regex_internal.c (re_string_reconstruct):
32716         Don't assume UCHAR_MAX == 255.
32717         * lib/regex_internal.h (bitset_set_all): Likewise.
32718         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
32719         All uses changed.
32720         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
32721         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
32722         All uses changed.
32723         (BITSET_WORD_MAX): New macro.
32724         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
32725         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
32726         (bitset_empty, bitset_copy):
32727         Prefer sizeof (bitset) to multiplying it out ourselves.
32728         (bitset_not_merge): Remove; unused.
32729         (bitset_contain): Return bool, not unsigned int with one bit on.
32730         All callers changed.
32731         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
32732         alignment than re_node_set; do this by defining a new internal
32733         type struct dests_alloc and using it to allocate memory.
32734
32735 2005-09-05  Bruno Haible  <bruno@clisp.org>
32736
32737         * gnulib-tool (func_import): Fix comparison in handling of symbolic
32738         links.
32739
32740 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
32741
32742         * modules/size_max (Makefile.am): Add size_max.h
32743
32744 2005-09-04  Derek Price  <derek@ximbiot.com>
32745
32746         * gnulib-tool (func_import): Fix reversed $symbolic logic.
32747
32748 2005-09-03  Simon Josefsson  <jas@extundo.com>
32749
32750         * gnulib-tool: Fix typo.
32751
32752 2005-09-03  Simon Josefsson  <jas@extundo.com>
32753
32754         * config/srclist.txt: Add glibc bug 1293.
32755
32756 2005-09-03  Derek Price  <derek@ximbiot.com>
32757
32758         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
32759         From Larry Jones <lawrence.jones@ugs.com>.
32760
32761 2005-09-02  Simon Josefsson  <jas@extundo.com>
32762
32763         * modules/socklen: New file.
32764
32765 2005-09-02  Simon Josefsson  <jas@extundo.com>
32766
32767         * modules/havelib: New module.
32768
32769         * modules/gettext, modules/iconv, modules/lock, modules/readline:
32770         Use havelib.
32771
32772 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32773
32774         Check for arithmetic overflow when calculating sizes, to prevent
32775         some buffer-overflow issues.  These patches are conservative, in the
32776         sense that when I couldn't determine whether an overflow was possible,
32777         I inserted a run-time check.
32778         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
32779         macros.
32780         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
32781         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
32782         (re_xnrealloc, re_x2nrealloc): New inline functions.
32783         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
32784         parse_bracket_exp):
32785         (build_equiv_class, build_charclass): Check for arithmetic overflow
32786         in size expression calculations.
32787         * lib/regex_internal.c (re_string_realloc_buffers):
32788         (build_wcs_upper_buffer, re_node_set_add_intersect):
32789         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
32790         (re_dfa_add_node, register_state): Likewise.
32791         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
32792         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
32793         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
32794         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
32795
32796 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32797
32798         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32799         m4/ulonglong.m4.  Problem reported by Martin Lambers.
32800
32801 2005-09-02  Bruno Haible  <bruno@clisp.org>
32802
32803         Support for lib vs. lib64 distinction on biarch platforms.
32804         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
32805         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
32806         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
32807
32808 2005-09-02  Bruno Haible  <bruno@clisp.org>
32809
32810         * gnulib-tool (import): In the other first-use case, provide defaults
32811         as well.
32812
32813 2005-09-02  Bruno Haible  <bruno@clisp.org>
32814
32815         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
32816         patches not yet found in the latest gettext release.
32817
32818 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32819
32820         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
32821         to avoid a collision with bits/local_lim.h in glibc.
32822         All uses changed.  Problem reported by Dmitry V. Levin in
32823         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
32824
32825         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
32826         bugs in int versus size_t comparisons.
32827         (re_string_context_at): Fix bug where the code assumed that
32828         Idx is signed.
32829
32830         Use bool where appropriate.
32831         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
32832         All callers changed.
32833         (calc_eclosure_iter): Likewise, for ROOT arg.
32834         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
32835         (build_charclass_op): Likewise, for NON_MATCH arg.
32836         * lib/regex_internal.c (re_string_allocate, re_string_construct):
32837         (re_string_construct_common): Likewise, for ICASE arg.
32838         * lib/regexec.c (re_search_2_stub, re_search_stub):
32839         Likewise, for RET_LEN arg.
32840         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
32841         (set_regs): Likewise, for FL_BACKTRACK arg.
32842         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
32843         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
32844         (calc_eclosure_iter, parse_bracket_exp):
32845         Use bool for internal variables that are booleans.
32846         * lib/regexec.c (re_search_internal, check_matching,
32847         proceed_next_node):
32848         (set_regs, build_sifted_states, sift_states_bkref):
32849         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
32850         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
32851         (find_collation_sequence_value):
32852         Likewise.
32853         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
32854         (re_node_set_compare):
32855         Return bool, not int. All callers changed.
32856         * lib/regexec.c (check_halt_node_context, check_dst_limits):
32857         (build_trtable, check_node_accept): Likewise.
32858         * lib/regex_internal.h: Include stdbool.h.
32859
32860         Fix bugs uncovered when converting to bool.
32861         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
32862         failure instead of charging ahead blindly.
32863         * lib/regex_internal.c (register_state): Likewise.
32864         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
32865         for freeing internal storage.
32866         (group_nodes_into_DFA_states): Use unsigned int, not int, for
32867         bitset pieces used as boolean, to avoid undefined behavior
32868         on hosts that do int overflow checking.
32869
32870 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32871
32872         * config/srclist.txt: Add glibc bugs 1285-1287.
32873
32874 2005-09-01  Jim Meyering  <jim@meyering.net>
32875
32876         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
32877         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
32878         Require gl_STAT_MACROS, too.
32879
32880 2005-09-01  Bruno Haible  <bruno@clisp.org>
32881
32882         * gnulib-tool (import): In the first-use case, provide defaults.
32883
32884 2005-09-01  Bruno Haible  <bruno@clisp.org>
32885
32886         * gnulib-tool (func_import): Remove the .tmp files.
32887
32888 2005-09-01  Bruno Haible  <bruno@clisp.org>
32889
32890         * gnulib-tool (func_import): Fix handling of symbolic links.
32891
32892 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32893
32894         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
32895         old glibc regex code mishandles strings longer than 2**31 bytes.
32896         This patch fixes this when the regex code is used in gnulib
32897         (i.e., outside glibc).
32898
32899         This patch should not affect the use of the regex code inside
32900         glibc.  No doubt this problem also needs to be handled for glibc
32901         as well, but the result will be an incompatible change to the
32902         glibc ABI, and the old ABI will have to be supported too.  That
32903         can be the the subject for another patch.
32904
32905         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
32906         governing whether the rest of this patch is active.  By default,
32907         the macro is disabled and the patch has no effect.
32908         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
32909         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
32910         (struct re_pattern_buffer, re_search, re_search_2, re_match):
32911         (re_match_2, re_set_registers): Use the new types.
32912         * lib/regex_internal.h (Idx, re_hashval_t): New types.
32913         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
32914         New macros.
32915         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
32916         (re_string_context_at, bin_tree_t, re_dfastate_t):
32917         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
32918         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
32919         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
32920         (re_string_char_size_at, re_string_wchar_at):
32921         (re_string_elem_size_at):
32922         Use the new types and macros to port to 64-bit hosts.
32923         Use unsigned types for internal values, so that the code
32924         mostly works even for arrays larger than SSIZE_MAX.
32925         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
32926         (search_duplicated_node, calc_eclosure_iter, fetch_number):
32927         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
32928         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
32929         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
32930         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
32931         (calc_inveclosure, parse_dup_op, build_range_exp):
32932         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
32933         (fetch_number, create_token_tree, mark_opt_subexp):
32934         Likewise.
32935         * lib/regex_internal.c (re_string_construct_common,
32936         create_ci_newstate):
32937         (create_cd_newstate, re_string_allocate, re_string_construct):
32938         (re_string_realloc_buffers, build_wcs_upper_buffer):
32939         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
32940         (re_string_reconstruct, re_string_peek_byte_case):
32941         (re_string_fetch_byte_case, re_string_context_at):
32942         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
32943         (re_node_set_init_copy, re_node_set_add_intersect):
32944         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
32945         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
32946         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
32947         (re_acquire_state, re_acquire_state_context, register_state):
32948         Likewise.
32949         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
32950         search_cur_bkref_entry):
32951         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
32952         (re_search_internal, re_search_2_stub, re_search_stub)
32953         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
32954         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
32955         (update_cur_sifted_state, check_dst_limits):
32956         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
32957         (check_subexp_limits, sift_states_bkref, merge_state_array):
32958         (check_subexp_matching_top, get_subexp, get_subexp_sub):
32959         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
32960         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
32961         (expand_bkref_cache, check_node_accept_bytes):
32962         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
32963         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
32964         (acquire_init_state_context, check_halt_node_context):
32965         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
32966         (sift_states_backward, clean_state_log_if_needed):
32967         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
32968         (find_recover_state, transit_state_sb, transit_state_mb):
32969         (transit_state_bkref, build_trtable, match_ctx_clean):
32970         Likewise.
32971         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
32972         to work around an assumption that REG_MISSING is negative.
32973
32974         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
32975         (seek_collating_symbol_entry) [defined _LIBC]:
32976         (lookup_collation_sequence_value) [defined _LIBC]:
32977         (build_range_exp, build_collating_symbol) [defined _LIBC]:
32978         Use prototypes rather than old-style function definitions.
32979         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
32980         (transit_state_sb) [0]:
32981         (find_collation_sequence_value) [defined _LIBC]: Likewise.
32982
32983         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
32984         rm_eo.
32985
32986         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
32987         (optimize_subexps, lower_subexp):
32988         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
32989         since the signed shift might overflow.  Use 1u<<31 instead.
32990         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
32991         Likewise.
32992         * lib/regexec.c (check_dst_limits_calc_pos_1,
32993         check_subexp_matching_top): Likewise.
32994
32995         * lib/regcomp.c (optimize_subexps, lower_subexp):
32996         Use CHAR_BIT rather than 8, for clarity.
32997         * lib/regexec.c (check_dst_limits_calc_pos_1):
32998         (check_subexp_matching_top): Likewise.
32999         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
33000         have to worry about portability issues when shifting it left.
33001         Remove no-longer-needed test for table_size > 0.
33002         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
33003         in a word, as the resulting behavior is undefined.
33004         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
33005         in one case, a <= should have been an <, and in another case the
33006         whole test was missing.
33007         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
33008         the standard name CHAR_BIT.
33009         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
33010         this is not true on one's complement and signed-magnitude hosts.
33011
33012         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
33013         next_last_offset.
33014         (struct re_dfa_t): Remove unused member states_alloc.
33015         * lib/regcomp.c (init_dfa): Don't initialize unused members.
33016
33017 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33018
33019         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
33020         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
33021         and large-file glibc and in 32-bit large-file Solaris.
33022
33023 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33024
33025         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
33026         lengths fit in regoff_t; this isn't true if regoff_t is the same
33027         width as size_t.
33028         * lib/regex.c (re_search_internal): 5th arg is LAST_START
33029         (= START + RANGE) instead of RANGE.  This avoids overflow
33030         problems when regoff_t is the same width as size_t.
33031         All callers changed.
33032         (re_search_2_stub): Check for overflow when adding the
33033         sizes of the two strings.
33034         (re_search_stub): Check for overflow when adding START
33035         to RANGE; if it occurs, substitute the extreme value.
33036
33037 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33038
33039         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
33040
33041 2005-08-31  Jim Meyering  <jim@meyering.net>
33042
33043         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
33044         a pointer-to-const.
33045         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
33046         (register_state): Likewise.
33047         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
33048         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
33049         (group_nodes_into_DFAstates): Likewise.
33050
33051 2005-08-31  Jim Meyering  <jim@meyering.net>
33052
33053         * check-module: Add a FIXME comment.
33054
33055 2005-08-31  Eric Blake  <ebb9@byu.net>
33056
33057         * modules/unistd-safer (Files): Add unistd--.h.
33058         * modules/stdio-safer (Files): Add stdio--.h.
33059
33060 2005-08-31  Derek Price  <derek@ximbiot.com>
33061
33062         * lib/getdelim.c (getdelim): Return EOF on EOF.
33063         Reported by Larry Jones <lawrence.jones@ugs.com>.
33064
33065 2005-08-31  Bruno Haible  <bruno@clisp.org>
33066
33067         Avoid unnecessary diffs in the generated lib/Makefile.am.
33068         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
33069         the generated files.
33070         (func_import): Don't set cmd.
33071
33072 2005-08-31  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/strstr.c: Include <stddef.h>, for NULL.
33075         * lib/strcasestr.c: Likewise.
33076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33077
33078 2005-08-31  Bruno Haible  <bruno@clisp.org>
33079
33080         * gnulib-tool: New option --macro-prefix.
33081         (func_import): Use macro_prefix.
33082         (import): Handle option --macro-prefix.
33083
33084 2005-08-31  Bruno Haible  <bruno@clisp.org>
33085
33086         * gnulib-tool (import): Rename most ac_* variables to cached_*.
33087         Also use new variables cached_lgpl, cached_libtool.
33088
33089 2005-08-31  Bruno Haible  <bruno@clisp.org>
33090
33091         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
33092         always instantiating them.
33093
33094 2005-08-31  Bruno Haible  <bruno@clisp.org>
33095
33096         * gnulib-tool (func_import): Read the previous cached settings
33097         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
33098         earlier added by gnulib but are now dropped. Warn when a gnulib file
33099         overwrites a non-gnulib file.
33100
33101 2005-08-31  Bruno Haible  <bruno@clisp.org>
33102
33103         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
33104         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
33105         projects that don't keep autogenerated files in CVS. Put into
33106         actioncmd only the specified modules, not the transitive closure.
33107
33108 2005-08-31  Bruno Haible  <bruno@clisp.org>
33109
33110         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
33111         Create directories that shall be filled.
33112         (import): Don't look for gl_* macros in configure.ac. Recurse across
33113         all directories containing a gnulib-cache.m4 files, if meaningful.
33114
33115 2005-08-31  Bruno Haible  <bruno@clisp.org>
33116
33117         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
33118         (import): Set seen_libtool when we see gl_LIBTOOL.
33119
33120 2005-08-31  Bruno Haible  <bruno@clisp.org>
33121
33122         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
33123         declaration macro definitions from generated gnulib.m4.
33124
33125 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
33126
33127         * lib/iconvme.h: Add prototype for iconv_alloc.
33128
33129 2005-08-29  Simon Josefsson  <jas@extundo.com>
33130
33131         * lib/iconvme.c: Fix errno.
33132
33133 2005-08-29  Bruno Haible  <bruno@clisp.org>
33134
33135         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
33136         that it works when the directory contains spaces.
33137
33138 2005-08-29  Bruno Haible  <bruno@clisp.org>
33139
33140         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
33141
33142 2005-08-29  Bruno Haible  <bruno@clisp.org>
33143
33144         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
33145         Emit more advice.
33146
33147 2005-08-29  Bruno Haible  <bruno@clisp.org>
33148         and Stepan Kasal  <kasal@ucw.cz>
33149
33150         * check-module: If more parameters are given, check each of them
33151         separately; add more exceptions, as noted by Jim Meyering.
33152         (check_module): New procedure.
33153         (%exempt_header): Now contains all exceptions.
33154
33155 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
33156
33157         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
33158
33159 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
33160
33161         * lib/iconvme.c: Split iconv_string into iconv_alloc.
33162
33163 2005-08-28  Bruno Haible  <bruno@clisp.org>
33164
33165         * m4/gnulib-tool.m4: New file.
33166
33167 2005-08-27  Jim Meyering  <jim@meyering.net>
33168
33169         * modules/unistd-safer (Files): Add pipe-safer.c.
33170         * modules/fcntl-safer (Files): Add creat-safer.c.
33171
33172 2005-08-27  Jim Meyering  <jim@meyering.net>
33173
33174         * m4/stdlib-safer.m4: New file.  From coreutils.
33175         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
33176         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
33177         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
33178         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
33179         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
33180
33181 2005-08-27  Jim Meyering  <jim@meyering.net>
33182
33183         * lib/fopen-safer.c: Merge minor changes from coreutils.
33184         * lib/dup-safer.c: Likewise.
33185         * lib/fd-safer.c: Likewise.
33186
33187         Merge from coreutils.
33188         * lib/stdio--.h: New file.
33189         * lib/stdlib--.h: New file.
33190         * lib/mkstemp-safer.c: New file.
33191
33192         GNU tar needs these.
33193         * lib/pipe-safer.c: New file.
33194         * lib/creat-safer.c: New file.
33195         * lib/fcntl--.h (creat): Define to creat_safer.
33196         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
33197         * lib/unistd--.h (pipe): Define to pipe_safer.
33198         * lib/unistd-safer.h: Declare pipe_safer.
33199
33200 2005-08-26  Simon Josefsson  <jas@extundo.com>
33201
33202         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
33203         Haible <bruno@clisp.org>.
33204
33205 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
33206
33207         * lib/regex_internal.h: Remove all references to
33208         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
33209         or better.
33210         (bitset_not, bitset_merge, bitset_not_merge):
33211         (bitset_mask, re_string_allocate, re_string_construct):
33212         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
33213         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
33214         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
33215         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
33216         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
33217         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
33218         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
33219         (re_acquire_state_context):
33220         Remove unnecessary forward decls.
33221         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
33222         Put __attribute at function definition,
33223         now that the function decl has been removed.
33224         * lib/regex_internal.c (re_string_peek_byte_case):
33225         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
33226         Likewise.
33227
33228 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
33229
33230         * m4/regex.m4: Add AC_PREREQ(2.50).
33231         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
33232
33233 2005-08-25  Simon Josefsson  <jas@extundo.com>
33234
33235         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
33236         __fsetlocking.
33237
33238 2005-08-25  Simon Josefsson  <jas@extundo.com>
33239
33240         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
33241         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
33242         GLIBC specific code.
33243
33244 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33245
33246         Make regex safe for g++.  This fixes one real bug (an "err"
33247         that should have been "*err").  g++ problem reported by
33248         Sam Steingold.
33249         * lib/regex_internal.h (re_calloc): New macro, consistent with
33250         re_malloc etc.  All callers of calloc changed to use re_calloc.
33251         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
33252         not int.  All callers changed.
33253         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
33254         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
33255         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
33256         (find_recover_state): Change "err" to "*err"; this fixes what
33257         appears to be a real bug.
33258         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
33259         versus int.
33260
33261 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33262
33263         * modules/regex (Depends-on): Add malloc, since the code
33264         assumes that !malloc(0) means failure.
33265
33266 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33267
33268         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
33269
33270         alloca modernization/simplification for regex.
33271         * lib/regex.c: Remove portability cruft for alloca.  This no longer
33272         needs to be at the start of the file, and can be moved into
33273         regex_internal.h and simplified.
33274         * lib/regex_internal.h: Include <alloca.h>.
33275         (__libc_use_alloca) [!defined _LIBC]: New macro.
33276         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
33277         now works outside glibc.
33278
33279 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33280
33281         * config/srclist.txt: Add glibc bugs 1241, 1245.
33282
33283 2005-08-25  Jim Meyering  <jim@meyering.net>
33284
33285         * lib/open-safer.c: Include <config.h>.
33286         Otherwise, we'd lose LARGEFILE support in any file using
33287         e.g. "fcntl--.h"
33288
33289 2005-08-25  Bruno Haible  <bruno@clisp.org>
33290
33291         * m4/minmax.m4: Require autoconf 2.52.
33292         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
33293         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
33294         alternatives of translit over the alphabet.
33295         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
33296
33297 2005-08-24  Simon Josefsson  <jas@extundo.com>
33298
33299         * tests/test-getpass.c: New file.
33300
33301 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33302
33303         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
33304         for GNU regex features.
33305
33306 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33307
33308         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
33309         * lib/regex.h (regerror): Likewise.
33310
33311         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
33312         requires this.  (The code never needed it.)
33313
33314         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
33315         All uses of recently-renamed identifiers changed to use the new,
33316         POSIX-compliant names.  The code will build and run just fine
33317         without these changes, but it's better to eat our own dog food
33318         and use the standard-conforming names.
33319
33320         * lib/regex.h: Fix a multitude of POSIX name space violations.
33321         These changes have an effect only for programs that define
33322         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
33323         do not change anything for programs compiled in the normal way.
33324         Also, there is no effect on the ABI.
33325
33326         (_REGEX_SOURCE): New macro.
33327         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
33328         defined and _GNU_SOURCE is not; this fixes a name space violation.
33329
33330         Rename the following macros to obey POSIX requirements.
33331         The old names are still visible as macros if _REGEX_SOURCE is defined.
33332         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
33333         RE_BACKSLASH_ESCAPE_IN_LISTS.
33334         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
33335         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
33336         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
33337         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
33338         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
33339         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
33340         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
33341         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
33342         (REG_INTERVALS): renamed from RE_INTERVALS.
33343         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
33344         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
33345         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
33346         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
33347         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
33348         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
33349         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
33350         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
33351         RE_UNMATCHED_RIGHT_PAREN_ORD.
33352         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
33353         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
33354         (REG_DEBUG): renamed from RE_DEBUG.
33355         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
33356         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
33357         unusual, since we can't clash with the POSIX REG_ICASE.
33358         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
33359         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
33360         (REG_NO_SUB): renamed from RE_NO_SUB.
33361         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
33362         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
33363         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
33364         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
33365         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
33366         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
33367         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
33368         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
33369         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
33370         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
33371         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
33372         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
33373         RE_SYNTAX_POSIX_MINIMAL_BASIC.
33374         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
33375         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
33376         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
33377         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
33378         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
33379         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
33380         (REG_FIXED): Renamed from REGS_FIXED.
33381         (REG_NREGS): Renamed from RE_NREGS.
33382
33383         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
33384         of other REG_* macros, since POSIX says the user is allowed to
33385         #undef these macros selectively.
33386
33387         (reg_errcode_t): Update comment stating what other tables need
33388         to be consistent.
33389
33390         Rename the following enum values to obey POSIX requirements.
33391         The old names are still visible as macros.
33392         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
33393         is not defined, since GNU is supposed to be a superset of POSIX as
33394         much as possible, and since we want reg_errcode_t to be a signed
33395         type for implementation consistency.
33396         (_REG_NOERROR): Renamed from REG_NOERROR.
33397         (_REG_NOMATCH): Renamed from REG_NOMATCH.
33398         (_REG_BADPAT): Renamed from REG_BADPAT.
33399         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
33400         (_REG_ECTYPE): Renamed from REG_ECTYPE.
33401         (_REG_EESCAPE): Renamed from REG_EESCAPE.
33402         (_REG_ESUBREG): Renamed from REG_ESUBREG.
33403         (_REG_EBRACK): Renamed from REG_EBRACK.
33404         (_REG_EPAREN): Renamed from REG_EPAREN.
33405         (_REG_EBRACE): Renamed from REG_EBRACE.
33406         (_REG_BADBR): Renamed from REG_BADBR.
33407         (_REG_ERANGE): Renamed from REG_ERANGE.
33408         (_REG_ESPACE): Renamed from REG_ESPACE.
33409         (_REG_BADRPT): Renamed from REG_BADRPT.
33410         (_REG_EEND): Renamed from REG_EEND.
33411         (_REG_ESIZE): Renamed from REG_ESIZE.
33412         (_REG_ERPAREN): Renamed from REG_ERPAREN.
33413         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
33414         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
33415         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
33416         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
33417
33418         (_REG_RE_NAME, _REG_RM_NAME): New macros.
33419         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
33420         changed.  But support the old name if the new one is not defined
33421         and if _REGEX_SOURCE.
33422
33423         Change the following member names in struct re_pattern_buffer.
33424         The old names are still supported if !_REGEX_SOURCE.
33425         The new names are always supported, regardless of _REGEX_SOURCE.
33426         (re_buffer): Renamed from buffer.
33427         (re_allocated): Renamed from allocated.
33428         (re_used): Renamed from used.
33429         (re_syntax): Renamed from syntax.
33430         (re_fastmap): Renamed from fastmap.
33431         (re_translate): Renamed from translate.
33432         (re_can_be_null): Renamed from can_be_null.
33433         (re_regs_allocated): Renamed from regs_allocated.
33434         (re_fastmap_accurate): Renamed from fastmap_accurate.
33435         (re_no_sub): Renamed from no_sub.
33436         (re_not_bol): Renamed from not_bol.
33437         (re_not_eol): Renamed from not_eol.
33438         (re_newline_anchor): Renamed from newline_anchor.
33439
33440         Change the following member names in struct re_registers.
33441         The old names are still supported if !_REGEX_SOURCE.
33442         The new names are always supported, regardless of _REGEX_SOURCE.
33443         (rm_num_regs): Renamed from num_regs.
33444         (rm_start): Renamed from start.
33445         (rm_end): Renamed from end.
33446
33447         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
33448         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
33449         Prepend __ to parameter names.
33450
33451         Undo yesterday's changes.
33452
33453 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33454
33455         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
33456         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
33457         lib/regex.c.
33458
33459 2005-08-24  Jim Meyering  <jim@meyering.net>
33460
33461         Sync from coreutils.
33462         * m4/fcntl-safer.m4: New file.
33463
33464         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
33465         and object files for this module.
33466
33467 2005-08-24  Jim Meyering  <jim@meyering.net>
33468
33469         Sync from coreutils.
33470         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
33471
33472 2005-08-24  Jim Meyering  <jim@meyering.net>
33473
33474         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
33475         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
33476
33477 2005-08-24  Jim Meyering  <jim@meyering.net>
33478
33479         * modules/fcntl-safer: New module.
33480         * modules/fts (Depends-on): Add fcntl-safer.
33481         * MODULES.html.sh (File descriptor based Input/Output):
33482         Add fcntl-safer.
33483
33484 2005-08-24  Bruno Haible  <bruno@clisp.org>
33485
33486         Support for unit test modules.
33487         * modules/README: Mention tests modules.
33488         * modules/TEMPLATE-TESTS: New file.
33489         * gnulib-tool: New options --extract-tests-module, --with-tests and
33490         --tests-base (unused for the moment).
33491         (testsbase, inctests): New variables.
33492         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
33493         (func_verify_module): Exclude TEMPLATE-TESTS.
33494         (func_verify_nontests_module, func_verify_tests_module): New functions.
33495         (func_get_dependencies): Add implicit dependency for tests modules.
33496         (func_get_tests_module): New function.
33497         (func_modules_transitive_closure): When --with-tests was specified,
33498         include the unit tests as well, unless explicitly avoided.
33499         (func_emit_lib_Makefile_am): Ignore the tests modules here.
33500         (func_emit_tests_Makefile_am): New function.
33501         (func_create_testdir): When --with-tests was specified, emit a
33502         tests/ directory.
33503         * MODULES.html.sh (Future developments): Update.
33504
33505 2005-08-24  Bruno Haible  <bruno@clisp.org>
33506
33507         * modules/tls-tests: New file.
33508         * tests/test-tls.c: New file, from GNU gettext.
33509
33510 2005-08-24  Bruno Haible  <bruno@clisp.org>
33511
33512         * modules/lock-tests: New file.
33513         * tests/test-lock.c: New file, from GNU gettext.
33514
33515 2005-08-24  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/lock.h: Add multiple inclusion guard.
33518         * lib/tls.h: Add multiple inclusion guard.
33519
33520 2005-08-24  Bruno Haible  <bruno@clisp.org>
33521
33522         * gnulib-tool: Add support for the --aux-dir option to
33523         --create-testdir, --create-megatestdir, --test, --megatest.
33524         (func_create_testdir, func_create_megatestdir): Optionally emit a
33525         AC_CONFIG_AUX_DIR directive.
33526         (create-testdir, create-megatestdir, test, megatest): Provide a
33527         default value for $auxdir.
33528
33529 2005-08-24  Bruno Haible  <bruno@clisp.org>
33530
33531         * gnulib-tool (import): Use compound statement instead of subshell
33532         where possible.
33533
33534 2005-08-24  Bruno Haible  <bruno@clisp.org>
33535
33536         * gnulib-tool (import): Change --aux-dir default to "build-aux".
33537
33538 2005-08-24  Bruno Haible  <bruno@clisp.org>
33539
33540         * gnulib-tool (func_version): Update.
33541
33542 2005-08-24  Bruno Haible  <bruno@clisp.org>
33543
33544         * gnulib-tool (func_import, func_create_testdir,
33545         func_create_megatestdir): Quote all autoconf macro arguments.
33546
33547 2005-08-24  Bruno Haible  <bruno@clisp.org>
33548
33549         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
33550         option --force, because --force causes the aclocal.m4 of each
33551         subdirectory to be newer than the corresponding config.h.in.
33552
33553 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33554
33555         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
33556         All contents moved to gl_REGEX.
33557         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
33558         assume that it does.
33559
33560 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33561
33562         * lib/regex.h (REG_NOSYS)
33563         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
33564         Define, since POSIX requires it as of 2001.
33565         (_REG_ENOSYS)
33566         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
33567         New private symbol, used to keep the enum signed in all cases.
33568         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
33569         Youngman in
33570         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
33571
33572         * lib/regex_internal.c (re_string_skip_chars, register_state):
33573         (calc_state_hash):
33574         Remove forward decls; no longer needed now that we use prototypes.
33575         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
33576         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
33577         (clean_state_log_if_needed): Likewise.
33578
33579 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33580
33581         * config/srclist.txt: Add glibc bugs 1231-1233.
33582
33583 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33584
33585         Fix problems reported by Sam Steingold in
33586         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
33587         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
33588         assumed that reg_errcode_t is a signed type, which is not
33589         necessarily true if _XOPEN_SOURCE is not defined.
33590         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
33591         since some compilers warn about it otherwise.
33592
33593 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33594
33595         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
33596         (init_word_char, create_initial_state, duplicate_node_closure):
33597         (fetch_token, peek_token_bracket, build_range_exp):
33598         (build_collating_symbol): Remove forward decls; no longer needed
33599         now that we use prototypes.
33600
33601         * lib/regcomp.c:
33602         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
33603         (re_compile_fastmap_iter, regcomp, regerror, regfree):
33604         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
33605         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
33606         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
33607         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
33608         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
33609         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
33610         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
33611         (build_range_exp, build_collating_symbol, parse_bracket_exp):
33612         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
33613         (build_charclass, build_charclass_op, fetch_number, create_tree):
33614         (create_token_tree, mark_opt_subexp, duplicate_tree):
33615         Use prototypes rather than old-style definitions.
33616
33617         * lib/regex_internal.c:
33618         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
33619         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
33620         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
33621         (re_string_reconstruct, re_string_peek_byte_case):
33622         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
33623         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
33624         (re_node_set_init_copy, re_node_set_add_intersect):
33625         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
33626         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
33627         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
33628         (re_acquire_state, re_acquire_state_context, register_state):
33629         (create_ci_newstate, create_cd_newstate, free_state):
33630         Likewise.
33631         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
33632         re_search_2):
33633         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
33634         (re_search_internal, prune_impossible_nodes):
33635         (acquire_init_state_context, check_matching, static):
33636         (check_halt_node_context, check_halt_state_context, proceed_next_node):
33637         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
33638         (update_regs, sift_states_backward, build_sifted_states):
33639         (clean_state_log_if_needed, merge_state_array):
33640         (update_cur_sifted_state, add_epsilon_src_nodes):
33641         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
33642         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
33643         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
33644         (find_recover_state, check_subexp_matching_top, transit_state_mb):
33645         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
33646         (check_arrival, check_arrival_add_next_nodes):
33647         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
33648         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
33649         (check_node_accept_bytes, check_node_accept, extend_buffers):
33650         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
33651         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
33652         (sift_ctx_init):
33653         Likewise.
33654
33655         * lib/regex_internal.h:
33656         (re_string_allocate, re_string_construct, re_string_reconstruct):
33657         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
33658         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
33659         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
33660         (re_string_context_at, re_string_peek_byte_case):
33661         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
33662         is defined, since we now use prototypes always.
33663
33664         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
33665         C89 or better.  All uses removed.
33666
33667 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33668
33669         * config/srclist.txt: Add glibc bugs 1220-1227.
33670
33671 2005-08-20  Jim Meyering  <jim@meyering.net>
33672
33673         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
33674         of unused local, dfa.
33675
33676 2005-08-20  Bruno Haible  <bruno@clisp.org>
33677
33678         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
33679
33680 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33681
33682         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
33683         (re_node_set_insert_last, re_dfa_add_node):
33684         Rename local variables to avoid GCC shadowing warnings.
33685
33686 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33687
33688         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
33689         [defined lint]: Suppress bogus uninitialized-variable warnings.
33690
33691         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
33692         and let the caller return REG_ESPACE if out of space.  This
33693         removes an uninitialied-variable warning with GCC 4.0.1, and also
33694         avoids taking the address of a local variable.  All callers
33695         changed.
33696
33697 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33698
33699         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
33700         $LIBCSRC/posix/regexec.c.
33701         Add glibc bug 1217 for regcomp.c.
33702
33703 2005-08-19  Jim Meyering  <jim@meyering.net>
33704
33705         * lib/regexec.c (proceed_next_node): Redo local variables to
33706         avoid GCC shadowing warnings.
33707
33708 2005-08-18  Bruno Haible  <bruno@clisp.org>
33709
33710         * lib/strstr.c (strstr): Fix return value in multibyte case.
33711         * lib/strcasestr.c (strcasestr): Likewise.
33712
33713 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33714
33715         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
33716
33717 2005-08-17  Jim Meyering  <jim@meyering.net>
33718
33719         Make the %s format (seconds since the epoch) work for a negative
33720         number and when used with a zero-padded field width, e.g. %015s.
33721
33722         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
33723         label so that it precedes the code to set `digits'.  Otherwise,
33724         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
33725         print `00-22'.  Now, it prints `-0022', as it should.
33726
33727 2005-08-17  Bruno Haible  <bruno@clisp.org>
33728
33729         * modules/strstr (Files): Add m4/mbrtowc.m4.
33730         (Depends-on): Add mbuiter.
33731
33732 2005-08-17  Bruno Haible  <bruno@clisp.org>
33733
33734         * modules/strcasestr: New file.
33735         * MODULES.html.sh (String handling, based on ANSI C 89): Add
33736         strcasestr.
33737
33738 2005-08-17  Bruno Haible  <bruno@clisp.org>
33739
33740         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
33741
33742 2005-08-17  Bruno Haible  <bruno@clisp.org>
33743
33744         * modules/mbuiter: New file.
33745         * MODULES.html.sh (Extended multibyte and wide character utilities):
33746         Add mbuiter.
33747
33748 2005-08-17  Bruno Haible  <bruno@clisp.org>
33749
33750         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
33751         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
33752
33753 2005-08-17  Bruno Haible  <bruno@clisp.org>
33754
33755         * m4/strcasestr.m4: New file.
33756
33757 2005-08-17  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
33760         * lib/strstr.c: Completely rewritten, with multibyte locale support.
33761
33762 2005-08-17  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/strcasestr.h: New file.
33765         * lib/strcasestr.c: New file.
33766
33767 2005-08-17  Bruno Haible  <bruno@clisp.org>
33768
33769         * lib/strcasecmp.c: Use mbuiter.h.
33770
33771 2005-08-17  Bruno Haible  <bruno@clisp.org>
33772
33773         * lib/mbuiter.h: New file.
33774
33775 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
33776
33777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
33778         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
33779         and gl_GETOPT are both invoked via different paths (as happens
33780         with GNU tar CVS because it uses both argp and getopt), the former
33781         wins.
33782
33783 2005-08-16  Bruno Haible  <bruno@clisp.org>
33784
33785         * modules/tls: New file.
33786         * MODULES.html.sh (Multithreading): Add tls.
33787
33788 2005-08-16  Bruno Haible  <bruno@clisp.org>
33789
33790         * modules/strnlen1: New file.
33791         * MODULES.html.sh (String handling): Add strnlen1.
33792
33793 2005-08-16  Bruno Haible  <bruno@clisp.org>
33794
33795         * modules/strcase (Files): Add m4/mbrtowc.m4.
33796         (Depends-on): Add strnlen1, mbchar.
33797
33798 2005-08-16  Bruno Haible  <bruno@clisp.org>
33799
33800         * modules/mbiter: New file.
33801         * MODULES.html.sh (Extended multibyte and wide character utilities):
33802         Add mbiter.
33803
33804 2005-08-16  Bruno Haible  <bruno@clisp.org>
33805
33806         * modules/mbfile: New file.
33807         * MODULES.html.sh (Extended multibyte and wide character utilities):
33808         Add mbfile.
33809
33810 2005-08-16  Bruno Haible  <bruno@clisp.org>
33811
33812         * modules/mbchar: New file.
33813         * MODULES.html.sh (Extended multibyte and wide character utilities):
33814         New section.
33815
33816 2005-08-16  Bruno Haible  <bruno@clisp.org>
33817
33818         * m4/tls.m4: New file, from GNU gettext.
33819
33820 2005-08-16  Bruno Haible  <bruno@clisp.org>
33821
33822         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
33823         always.
33824         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
33825
33826 2005-08-16  Bruno Haible  <bruno@clisp.org>
33827
33828         * m4/mbiter.m4: New file.
33829
33830 2005-08-16  Bruno Haible  <bruno@clisp.org>
33831
33832         * m4/mbfile.m4: New file.
33833
33834 2005-08-16  Bruno Haible  <bruno@clisp.org>
33835
33836         * m4/mbchar.m4: New file.
33837
33838 2005-08-16  Bruno Haible  <bruno@clisp.org>
33839
33840         * lib/tls.h: New file, from GNU gettext.
33841         * lib/tls.c: New file, from GNU gettext.
33842
33843 2005-08-16  Bruno Haible  <bruno@clisp.org>
33844
33845         * lib/strnlen1.h: New file.
33846         * lib/strnlen1.c: New file.
33847
33848 2005-08-16  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
33851         (mbi_init): Update.
33852         (mbi_avail, mbi_advance): Let the iteration end before the terminating
33853         NUL byte, not after it.
33854
33855 2005-08-16  Bruno Haible  <bruno@clisp.org>
33856
33857         * lib/strcase.h (strcasecmp): Add note in comments.
33858         * lib/strncasecmp.c: Use code from strcasecmp.c.
33859         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
33860         (strcasecmp): Work correctly in multibyte locales.
33861
33862 2005-08-16  Bruno Haible  <bruno@clisp.org>
33863
33864         * lib/mbiter.h: New file.
33865
33866 2005-08-16  Bruno Haible  <bruno@clisp.org>
33867
33868         * lib/mbfile.h: New file.
33869
33870 2005-08-16  Bruno Haible  <bruno@clisp.org>
33871
33872         * lib/mbchar.h: New file.
33873         * lib/mbchar.c: New file.
33874
33875 2005-08-16  Bruno Haible  <bruno@clisp.org>
33876
33877         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
33878         the valid ones. Makes the comparison operations transitive:
33879         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
33880         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
33881
33882 2005-08-15  Simon Josefsson  <jas@extundo.com>
33883
33884         * modules/ssize_t (License): Change to 'unlimited'.
33885
33886         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
33887
33888 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33889
33890         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
33891         Add comments for each pending glibc patch.
33892
33893 2005-08-15  Bruno Haible  <bruno@clisp.org>
33894
33895         * lib/regex.h (__restrict_arr): Don't define to __restrict if
33896         __cplusplus is defined.
33897
33898 2005-08-14  Jim Meyering  <jim@meyering.net>
33899
33900         Sync from coreutils.
33901
33902         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
33903         Use the hash-table-based cycle-detection code not just when
33904         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
33905         Reported by James Youngman in
33906         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
33907         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
33908         FTS_TIGHT_CYCLE_CHECK.
33909         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
33910         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
33911         once again.
33912         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
33913         * lib/fts.c (fd_safer): Remove decl.
33914         Include fcntl--.h rather than unistd-safer.h
33915         (fts_safe_changedir): Don't call fd_safer; no longer needed
33916         now that we include fcntl--.h.
33917
33918 2005-08-12  Simon Josefsson  <jas@extundo.com>
33919
33920         * modules/getndelim2: Use ssize_t module.
33921         * modules/getnline: Likewise.
33922         * modules/safe-read: Likewise.
33923         * modules/xreadlink: Likewise.
33924
33925         * modules/ssize_t: New file.
33926
33927 2005-08-12  Simon Josefsson  <jas@extundo.com>
33928
33929         * m4/readline.m4: Look for termcap, curses or ncurses if required.
33930
33931 2005-08-12  Simon Josefsson  <jas@extundo.com>
33932
33933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33934         ssize_t.
33935
33936 2005-08-12  Simon Josefsson  <jas@extundo.com>
33937
33938         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
33939         readline, getdelim and check_version.
33940         (Support for systems lacking ISO C 99: Sizes of integer types):
33941         Add size_max.
33942
33943 2005-08-12  Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
33946
33947 2005-08-11  Simon Josefsson  <jas@extundo.com>
33948
33949         * modules/readline: New file.
33950
33951         * modules/strnlen (Files): Add strnlen.h.
33952
33953 2005-08-11  Simon Josefsson  <jas@extundo.com>
33954
33955         * m4/readline.m4: New file.
33956
33957 2005-08-11  Simon Josefsson  <jas@extundo.com>
33958
33959         * lib/readline.h, readline.c: New file.
33960
33961 2005-08-11  Simon Josefsson  <jas@extundo.com>
33962
33963         * doc/gnulib.texi (Initial import, Finishing touches): Mention
33964         gl_AVOID.
33965
33966 2005-08-11  Bruno Haible  <bruno@clisp.org>
33967
33968         * lib/strnlen.h (strnlen): Change parameter name to match comment.
33969
33970 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
33971
33972         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
33973
33974 2005-08-10  Simon Josefsson  <jas@extundo.com>
33975
33976         * tests/test-iconvme.c: New file.
33977
33978 2005-08-10  Simon Josefsson  <jas@extundo.com>
33979
33980         * m4/strnlen.m4: New file.
33981
33982         * m4/strndup.m4: Don't check for strnlen declaration, done in
33983         strnlen.m4.
33984
33985 2005-08-10  Simon Josefsson  <jas@extundo.com>
33986
33987         * lib/strndup.c: Use strnlen.h.
33988
33989         * lib/strnlen.h: New file.
33990
33991 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33992
33993         * README: Typos.
33994
33995 2005-08-02  Simon Josefsson  <jas@extundo.com>
33996
33997         * modules/readline: New file.
33998
33999 2005-08-02  Simon Josefsson  <jas@extundo.com>
34000
34001         * modules/getdelim: New file.
34002
34003         * modules/getline: Rewrite, don't use getndelim2.
34004
34005 2005-08-02  Simon Josefsson  <jas@extundo.com>
34006
34007         * m4/getline.m4: Separate out getdelim stuff into separate module.
34008
34009         * m4/getdelim.m4: New file.
34010
34011 2005-08-02  Simon Josefsson  <jas@extundo.com>
34012
34013         * lib/getline.h, getline.c: Rewrite.
34014
34015         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
34016
34017 2005-07-31  Bruno Haible  <bruno@clisp.org>
34018
34019         * lib/lock.h (gl_lock_initializer): New macro.
34020         (gl_lock_define_initialized): Use it.
34021         (gl_rwlock_initializer): New macro.
34022         (gl_rwlock_define_initialized): Use it.
34023         (gl_recursive_lock_initializer): New macro.
34024         (gl_recursive_lock_define_initialized): Use it.
34025
34026 2005-07-30  Karl Berry  <karl@gnu.org>
34027
34028         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
34029         Report from Ben Pfaff, regarding getopt.
34030
34031 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
34032
34033         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
34034         normal way.
34035         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
34036         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
34037         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
34038         (gl_GETOPT): Use the new macros.  Most of the implementation
34039         is moved to the new macros.  This is for programs like Emacs
34040         that don't want all the functionality of gl_GETOPT.
34041
34042 2005-07-26  Bruno Haible  <bruno@clisp.org>
34043
34044         * m4/lock.m4: Update from GNU gettext.
34045
34046 2005-07-26  Bruno Haible  <bruno@clisp.org>
34047
34048         * lib/lock.h: Update from GNU gettext.
34049         * lib/lock.c: Update from GNU gettext.
34050
34051 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34052
34053         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
34054         obsolescent AC_TRY_RUN.  Include the default includes files, for
34055         'exit'.
34056
34057 2005-07-24  Bruno Haible  <bruno@clisp.org>
34058
34059         * modules/visibility: New file.
34060         * MODULES.html.sh (Misc): Add visibility.
34061
34062 2005-07-24  Bruno Haible  <bruno@clisp.org>
34063
34064         * m4/visibility.m4: New file.
34065
34066 2005-07-24  Bruno Haible  <bruno@clisp.org>
34067
34068         * doc/visibility.texi: New file.
34069
34070 2005-07-22  Bruno Haible  <bruno@clisp.org>
34071
34072         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
34073         $(ALLOCA_H), redundant through BUILT_SOURCES.
34074         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
34075         redundant through BUILT_SOURCES.
34076         * modules/byteswap (Makefile.am): Remove explicit dependency on
34077         $(BYTESWAP_H), redundant through BUILT_SOURCES.
34078         * modules/fnmatch (Makefile.am): Remove explicit dependency on
34079         $(FNMATCH_H), redundant through BUILT_SOURCES.
34080         * modules/getopt (Makefile.am): Remove explicit dependency on
34081         $(GETOPT_H), redundant through BUILT_SOURCES.
34082         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
34083         redundant through BUILT_SOURCES.
34084         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
34085         redundant through BUILT_SOURCES.
34086         * modules/stdbool (Makefile.am): Remove explicit dependency on
34087         $(STDBOOL_H), redundant through BUILT_SOURCES.
34088         * modules/stdint (Makefile.am): Remove explicit dependency on
34089         $(STDINT_H), redundant through BUILT_SOURCES.
34090         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
34091         Remove explicit dependency on $(SYSEXITS_H).
34092         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
34093
34094 2005-07-18  Simon Josefsson  <jas@extundo.com>
34095
34096         * lib/check-version.c (check_version): Accept identical versions too.
34097
34098 2005-07-18  Bruno Haible  <bruno@clisp.org>
34099
34100         * modules/lock: New file.
34101         * MODULES.html.sh (Multithreading): New section.
34102
34103 2005-07-18  Bruno Haible  <bruno@clisp.org>
34104
34105         * m4/lock.m4: New file, from GNU gettext.
34106
34107 2005-07-18  Bruno Haible  <bruno@clisp.org>
34108
34109         * lib/lock.h: New file, from GNU gettext.
34110         * lib/lock.c: New file, from GNU gettext.
34111
34112 2005-07-18  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/lock.h (gl_once_t): New type.
34115         (gl_once_define, gl_once): New macros.
34116         * lib/lock.c (fresh_once): New variable.
34117         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
34118         functions.
34119
34120 2005-07-16  Simon Josefsson  <jas@extundo.com>
34121
34122         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
34123         workaround, suggested by Bruno.
34124
34125 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34126
34127         * modules/xalloc (Depends-on): Add xalloc-die.
34128         * modules/xvasprintf (Depends-on): Add xalloc-die.
34129
34130 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34131
34132         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
34133         with a minor change.
34134
34135 2005-07-15  Bruno Haible  <bruno@clisp.org>
34136
34137         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
34138         When using lib/poll.c, define poll as rpl_poll.
34139
34140 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
34141
34142         * modules/argp (Depends-on): Remove unlocked-io.
34143
34144 2005-07-14  Derek Price  <derek@ximbiot.com>
34145
34146         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
34147         for glob symlink bug.
34148
34149 2005-07-14  Bruno Haible  <bruno@clisp.org>
34150
34151         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
34152         Instead, test for *_unlocked function declarations directly.
34153
34154 2005-07-11  Simon Josefsson  <jas@extundo.com>
34155
34156         * modules/size_max: New file.
34157
34158         * modules/xsize: Depend on size_max module for size_max.m4.
34159
34160 2005-07-11  Simon Josefsson  <jas@extundo.com>
34161
34162         * lib/size_max.h: New file.
34163
34164 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34165
34166         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
34167         copyright symbol and the year.
34168         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
34169         (version_etc_va): Use parameterized copyright notice.
34170         Reword to conform to the current GNU coding standards.
34171
34172 2005-07-11  Karl Berry  <karl@gnu.org>
34173
34174         * doc/gnulib.texi (Quoting): new node.
34175         (Initial import): more info, from Patrice.
34176
34177 2005-07-11  Bruno Haible  <bruno@clisp.org>
34178
34179         * gnulib-tool (func_usage): Document option --avoid.
34180         (Command line options): Handle --avoid.
34181         (func_acceptable): New function.
34182         (func_modules_transitive_closure): Use it.
34183
34184 2005-07-11  Bruno Haible  <bruno@clisp.org>
34185
34186         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
34187         Reported by Jim Meyering.
34188
34189 2005-07-10  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
34192         Needed when size_t is smaller than 'unsigned int'.
34193         Reported by Paul Eggert.
34194
34195 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34196
34197         * modules/argp (Depends-on): Add unlocked-io
34198
34199 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34200
34201         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
34202         block of defines.
34203
34204 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34205
34206         * config/srclist.txt: Comment out regcomp.c, since we have a porting
34207         fix now.
34208
34209 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
34210         and Paul Eggert  <eggert@cs.ucla.edu>
34211
34212         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
34213         in wint_t, not wchar_t.  Remove now-unnecessary cast.
34214
34215 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34216
34217         * modules/regex (Files): Add lib/regex_internal.c,
34218         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
34219         (Depends-on): Add extensions.
34220         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
34221
34222 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34223
34224         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
34225         pathconf.
34226         * m4/same.m4 (gl_SAME): Likewise.
34227         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
34228
34229         * m4/regex.m4: Adjust to new libc regex implementation.
34230         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
34231         all the .c and .h parts of (the new) regex.
34232         Quote the m4 stuff better.
34233         Check for RE_ICASE bug of old gnulib.
34234         Check for REG_STARTEND of recent libc.
34235         Rename local variables from jm_* to gl_*.
34236         Quote operand of "test -f".
34237         Say "recent enough" version of libc, not "version 2".
34238         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
34239         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
34240         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
34241         Remove check for btowc, isascii.
34242         Require AM_LANGINFO_CODESET.
34243
34244 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34245
34246         * lib/regex.c, regex.h: Sync from libc.
34247         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
34248         * lib/regexec.c:
34249         New files, synced from libc, except that regex_internal.h
34250         currently has a small porting fix.
34251
34252 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34253
34254         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
34255         regex_internal.c, regexec.c.
34256         Add regex_internal.h too, but as a comment, since the libc version
34257         is currently broken in gnulib mode.
34258
34259 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34260
34261         Support programs like Emacs that use gnulib but not gettext.
34262         * MODULES.html.sh (Internationalization functions): Add gettext-h.
34263         * modules/gettext-h: New file.
34264         * modules/gettext (Files): Remove lib/gettext.h.
34265         (Depends-on): Add gettext-h.
34266         (Makefile.am): Remove lib_SOURCES.
34267         * modules/argmatch, modules/c-stack, modules/closeout:
34268         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
34269         * modules/execute, modules/file-type, modules/getaddrinfo:
34270         * modules/getopt, modules/human, modules/javacomp:
34271         * modules/javaexec, modules/mkdir-p, modules/obstack:
34272         * modules/openat, modules/pagealign_alloc, modules/pipe:
34273         * modules/quotearg, modules/regex, modules/rpmatch:
34274         * modules/unicodeio, modules/userspec, modules/version-etc:
34275         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
34276         * modules/xsetenv:
34277         Depend on gettext-h, not gettext.
34278
34279 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34280
34281         * gnulib-tool (func_import): Add support for 'public domain' license.
34282         * modules/alloca, modules/atexit, modules/memmove:
34283         Now public domain, not GPL.
34284         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
34285         * modules/realloc, modules/strerror, modules/strtod:
34286         Now LGPL, not GPL.
34287
34288 2005-07-05  Bruno Haible  <bruno@clisp.org>
34289
34290         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
34291         autoconf CVS. Needed for mingw.
34292
34293 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34294
34295         Remove the dependency of the strftime module on the tzset module.
34296         * modules/strftime (Depends-on): Remove dependency on tzset.
34297
34298 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34299
34300         Remove the dependency of the strftime module on the tzset module.
34301         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
34302         gl_FUNC_TZSET_CLOBBER.
34303
34304 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34305
34306         Remove the dependency of the strftime module on the tzset module.
34307         * lib/strftime.c (my_strftime)
34308         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
34309         Copy the input structure, to work around some of the bug with
34310         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
34311         Solaris releases, you should also use the tzset module, but we won't
34312         require it as a dependency any more since we don't want LGPLed code
34313         to depend on GPLed code.
34314
34315 2005-07-02  Jim Meyering  <jim@meyering.net>
34316
34317         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
34318         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
34319         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
34320         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
34321
34322 2005-07-02  Jim Meyering  <jim@meyering.net>
34323
34324         * lib/backupfile.c (backup_args): Change a `0' to NULL.
34325
34326 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34327
34328         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
34329         declares only 'struct timespec;' (!).
34330
34331 2005-07-01  Jim Meyering  <jim@meyering.net>
34332
34333         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
34334         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
34335         * lib/save-cwd.c, tempname.c:
34336         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
34337         and don't include <sys/file.h>).
34338
34339 2005-06-29  Jim Meyering  <jim@meyering.net>
34340
34341         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
34342         type name.  Use the variable name instead.
34343         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
34344         Likewise.
34345
34346 2005-06-28  Simon Josefsson  <jas@extundo.com>
34347
34348         * modules/check-version (Files): Add check-version.m4.
34349
34350 2005-06-28  Simon Josefsson  <jas@extundo.com>
34351
34352         * m4/check-version.m4: New file, suggested by Jim Meyering
34353         <jim@meyering.net>.
34354
34355 2005-06-28  Simon Josefsson  <jas@extundo.com>
34356
34357         * lib/check-version.h, lib/check-version.c: New files.
34358
34359 2005-06-28  Simon Josefsson  <jas@extundo.com>
34360
34361         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
34362         collision with global variable.  Better indentation.  Don't
34363         increment buffer pointer beyond buffer end.  Based on comments
34364         from Paul Eggert <eggert@cs.ucla.edu>.
34365
34366         * lib/base64.h: Indent.
34367
34368 2005-06-28  Simon Josefsson  <jas@extundo.com>
34369
34370         * doc/gnulib.texi (Library version handling): New section.
34371
34372 2005-06-28  Jim Meyering  <jim@meyering.net>
34373
34374         * check-module (find_included_lib_files): Hard-code another
34375         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
34376         but modules/fts-lgpl (correctly) does not list those files.
34377
34378         * modules/canonicalize (Files): Add lib/pathmax.h.
34379
34380 2005-06-25  Simon Josefsson  <jas@extundo.com>
34381
34382         * modules/check-version: New file.
34383
34384 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
34385
34386         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
34387         initializer of struct addrinfo, as an indication that we don't
34388         care how many members the structure has.
34389
34390 2005-06-24  Derek Price  <derek@ximbiot.com>
34391         and Bruno Haible  <bruno@clisp.org>
34392
34393         Remove stat module & update lstat.
34394         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
34395         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34396         * m4/stat.m4: Remove this file.
34397
34398 2005-06-24  Derek Price  <derek@ximbiot.com>
34399         and Bruno Haible  <bruno@clisp.org>
34400
34401         Remove stat module & update lstat.
34402         * lib/stat.c: Remove this file...
34403         (slash_aware_lstat): ...moving this content and its support...
34404         * lib/lstat.c (rpl_lstat): ...into here.
34405         * lib/lstat.h: New file.
34406
34407 2005-06-24  Derek Price  <derek@ximbiot.com>
34408         and Bruno Haible  <bruno@clisp.org>
34409
34410         Remove stat module & update lstat.
34411         * config/srclist.txt (libc sources): Remove stat.
34412
34413 2005-06-24  Derek Price  <derek@ximbiot.com>
34414         and Bruno Haible  <bruno@clisp.org>
34415
34416         Remove stat module & update lstat.
34417         * MODULES.html.sh (stat): Remove.
34418         * MODULES.html: Regenerated.
34419         * modules/lstat (Description): Correct function name.
34420         (Files): Add "lstat.h".
34421         (Depends-on): Remove stat, add xalloc, stat-macros.
34422         * modules/stat: Remove this file.
34423         (Include): Add "lstat.h", remove <sys/stat.h>.
34424
34425 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34426
34427         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
34428         (ranged_convert): Don't save conversion in a temporary struct.
34429         This causes a warning with GCC 4.0.0, and anyway in the typical
34430         case it's not worth the extra 100 bytes or so of code.
34431         (ranged_convert, __mktime_internal): When calling a function via a
34432         pointer P, use P () rather than (*P) (), as we now assume C89 or
34433         better.
34434
34435 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34436
34437         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
34438         "who -r" failed to give output.  Problem reported by Tim Waugh.
34439
34440         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
34441         (xcalloc): Use it to avoid needless tests.
34442         Problem reported by Jim Meyering.
34443
34444 2005-06-20  Derek Price  <derek@ximbiot.com>
34445
34446         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
34447         unnecessary for Autoconfs > 2.59c.
34448
34449 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34450
34451         * lib/argp.h (__option_is_short): Check upper limit of
34452         __key. Isprint() requires its argument to have the value
34453         of an unsigned char or EOF.
34454
34455 2005-06-16  Jim Meyering  <jim@meyering.net>
34456
34457         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
34458         when either N or S is zero.
34459
34460 2005-06-16  Derek Price  <derek@ximbiot.com>
34461
34462         * m4/bison.m4: Declare YACC & YFLAGS precious.
34463
34464 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
34465
34466         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
34467         multibyte string or pattern, fall back on unibyte matching.
34468         Problem reported by James Youngman.
34469
34470 2005-06-08  Bruno Haible  <bruno@clisp.org>
34471
34472         * modules/csharpcomp: New file.
34473         * MODULES.html.sh (C#): Add csharpcomp.
34474
34475 2005-06-08  Bruno Haible  <bruno@clisp.org>
34476
34477         * m4/csharpcomp.m4: New file, from GNU gettext.
34478
34479 2005-06-08  Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/csharpcomp.h: New file, from GNU gettext.
34482         * lib/csharpcomp.c: New file, from GNU gettext.
34483         * lib/csharpcomp.sh.in: New file, from GNU gettext.
34484
34485 2005-06-08  Bruno Haible  <bruno@clisp.org>
34486
34487         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
34488         warning on mingw.
34489
34490 2005-06-07  Derek Price  <derek@ximbiot.com>
34491
34492         Sync from CVS.
34493         * lib/glob_.h: Indent nested #ifdef.
34494
34495 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34496
34497         Sync from coreutils.
34498         Use "file name" when talking about file names, instead of "filename"
34499         or "path", as per the GNU coding standards.
34500         * lib/mkdir-p.c: Renamed from makepath.c.
34501         (make_dir_parents): Renamed from make_path.  All callers changed.
34502         * lib/mkdir-p.h: Likewise.  All includers changed.
34503         * lib/filenamecat.c: Renamed from path-concat.c.
34504         (file_name_concat): Renamed from path_concat.  All callers changed.
34505         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
34506         * lib/filenamecat.h: Likewise.  All includers changed.
34507         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
34508         in comments or local variable names.
34509         * lib/basename.c: Likewise.
34510         * lib/canonicalize.c, canonicalize.h: Likewise.
34511         * lib/dirname.c, dirname.h: Likewise.
34512         * lib/euidaccess.c: Likewise.
34513         * lib/exclude.c: Likewise
34514         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
34515         * lib/fsusage.c, fsuage.h: Likewise.
34516         * lib/fts.c, fts_.h: Likewise.
34517         * lib/getcwd.c: Likewise.
34518         * lib/getloadavg.c: Likewise.
34519         * lib/mkstemp.c: Likewise.
34520         * lib/mountlist.c, mountlist.h: Likewise.
34521         * lib/openat.c, openat.h: Likewise.
34522         * lib/readlink-stub.c: Likewise.
34523         * lib/readutmp.c, readutmp.h: Likewise.
34524         * lib/rename.c: Likewise.
34525         * lib/rmdir.c: Likewise.
34526         * lib/same.c: Likewise.
34527         * lib/savedir.c: Likewise.
34528         * lib/stripslash.c: Likewise.
34529         * lib/tempname.c: Likewise.
34530         * lib/xreadlink.c: Likewise.
34531         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
34532         All uses changed.
34533         * lib/exclude.h: Likewise.
34534
34535         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
34536         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
34537         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
34538         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
34539         * lib/pathmax.h: Include <limits.h> unconditionally, since other
34540         files have been getting away with it for years (MORE/BSD 4.3
34541         is extinct now).
34542         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
34543         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
34544
34545         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
34546         Define to 256, not 255, as per modern POSIX.
34547
34548 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34549
34550         Sync from coreutils.
34551         Use "file name" when talking about file names, instead of "filename"
34552         or "path", as per the GNU coding standards.
34553         * MODULES.html.sh: mkdir-p renamed from makepath.
34554         filenamecat renamed from path-concat.
34555         * modules/filenamecat: Renamed from modules/path-concat.
34556         (Files): filenamecat.h and filenamecat.c renamed from
34557         path-concat.h and path-concat.c.
34558         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
34559         (Include): filenamecat.h, not path-concat.h.
34560         * modules/mkdir-p: Renamed from modules/makepath.
34561         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
34562         makepath.c.
34563         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
34564         (Include): mkdir-p.h, not makepath.h.
34565
34566 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34567
34568         Sync from coreutils.
34569         * m4/mkdir-p.m4: Renamed from makepath.m4.
34570         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
34571         Rename files from makepath.c to mkdir-p.c, and from
34572         makepath.h to mkdir-p.h.
34573         * m4/filenamecat.m4: Renamed from path-concat.m4.
34574         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
34575         Rename files from path-concat.c to filenamecat.c,
34576         and from path-concat.h to filenamecat.h.
34577         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
34578         "file name" in local variables or comments.
34579         * m4/rename.m4: Likewise.
34580
34581 2005-06-01  Bruno Haible  <bruno@clisp.org>
34582
34583         * modules/csharpexec: New file.
34584         * MODULES.html.sh (C#): New section.
34585
34586 2005-06-01  Bruno Haible  <bruno@clisp.org>
34587
34588         * m4/csharp.m4: New file, from GNU gettext.
34589         * m4/csharpexec.m4: New file, from GNU gettext.
34590
34591 2005-06-01  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/csharpexec.h: New file, from GNU gettext.
34594         * lib/csharpexec.c: New file, from GNU gettext.
34595         * lib/csharpexec.sh.in: New file, from GNU gettext.
34596
34597 2005-05-31  Derek Price  <derek@ximbiot.com>
34598             Paul Eggert  <eggert@cs.ucla.edu>
34599
34600         Sync from cvs.
34601         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
34602
34603 2005-05-31  Derek Price  <derek@ximbiot.com>
34604             Paul Eggert  <eggert@cs.ucla.edu>
34605
34606         Sync from cvs.
34607         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
34608
34609 2005-05-29  Derek Price  <derek@ximbiot.com>
34610
34611         * config/srclist.txt (glob_.h, glob.c): Add these files.
34612
34613 2005-05-29  Derek Price  <derek@ximbiot.com>
34614
34615         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
34616         * modules/glob: New file.
34617         * modules/getlogin_r: Add link to POSIX spec in description.
34618
34619 2005-05-29  Derek Price  <derek@ximbiot.com>
34620             Paul Eggert  <eggert@cs.ucla.edu>
34621
34622         * m4/glob.m4: New file.
34623
34624 2005-05-29  Derek Price  <derek@ximbiot.com>
34625             Paul Eggert  <eggert@cs.ucla.edu>
34626
34627         * lib/glob_.h, lib/glob.c: New files.
34628
34629 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34630
34631         * modules/fts (Files): Remove m4/inttypes-pri.m4.
34632         * modules/fts-lgpl (Depends-on): Remove gettext.
34633
34634 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34635
34636         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
34637         and don't require gt_INTTYPES_PRI.
34638
34639 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34640
34641         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
34642
34643         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
34644         the configuration hassle isn't worth it.
34645         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
34646         (LONGEST_MODIFIER, PRIuMAX): Remove.
34647
34648 2005-05-27  Bruno Haible  <bruno@clisp.org>
34649
34650         * lib/getlogin_r.h: Remove second include of <stddef.h>.
34651
34652 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34653
34654         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
34655         _POSIX_PTHREAD_SEMANTICS for Solaris.
34656
34657 2005-05-25  Derek Price  <derek@ximbiot.com>
34658
34659         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
34660
34661 2005-05-25  Derek Price  <derek@ximbiot.com>
34662             Paul Eggert  <eggert@cs.ucla.edu>
34663
34664         * modules/getlogin_r, m4/getlogin_r.m4: New files.
34665         * lib/getlogin_r.c, getlogin_r.h: New files.
34666
34667 2005-05-25  Bruno Haible  <bruno@clisp.org>
34668             Derek Price  <derek@ximbiot.com>
34669
34670         * lib/getlogin_r.h: Simplify API documentation.
34671
34672 2005-05-23  Derek Price  <derek@ximbiot.com>
34673
34674         * modules/minmax (Files): Add m4/minmax.m4.
34675         (configure.ac): Add gl_MINMAX.
34676
34677 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34678
34679         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
34680         so that unistd-safer.h (GPL'ed code) need not be included.
34681
34682 2005-05-22  Bruno Haible  <bruno@clisp.org>
34683
34684         * m4/minmax.m4: New file.
34685         Based on a patch by Derek Price <derek@ximbiot.com>.
34686
34687 2005-05-22  Bruno Haible  <bruno@clisp.org>
34688
34689         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
34690         (INT64_MIN): Fix definition.
34691         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
34692
34693         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
34694         NEED_SIGNED_INT_TYPES.
34695
34696         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
34697         HAVE_SYSTEM_INTTYPES.
34698
34699 2005-05-22  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
34702         Also include <sys/param.h> if it defines MIN, MAX.
34703         Based on a patch by Derek Price <derek@ximbiot.com>.
34704
34705 2005-05-21  Jim Meyering  <jim@meyering.net>
34706
34707         * modules/fts (Files): Add m4/inttypes-pri.m4.
34708         (Depends-on): Add lstat and remove gettext.  Alphabetize.
34709
34710 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34711
34712         New fts module.
34713         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
34714         (setup_dir, free_dir): New functions.
34715         (enter_dir, leave_dir): Define trivial
34716         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
34717         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
34718         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
34719         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
34720         Move to fts-cycle.c.
34721         (fts_open): Use setup_dir.
34722         (fts_close): Use free_dir.
34723         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
34724         This adds a label and some gotos, but the alternatives were messier.
34725         Check for memory allocation failure when entering a dir.
34726         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
34727         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
34728         (FTS): New member fts_cycle, that is a union that contains the
34729         old active_dir_ht and cycle_state.  All uses changed to mention
34730         fts_cycle.ht and fts_cycle.state.
34731         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
34732         fts.c, with the following changes:
34733         (setup_dir, free_dir): New functions.
34734         (enter_dir): Now returns bool.  Return true if successful, false
34735         if memory exhausted.  All callers changed.
34736         Do not bother partly cleaning up on
34737         memory allocation failure; that is free_dir's job.
34738         However, free ad if hash_insert fails, to avoid memory leak.
34739         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
34740         fts->fts_options to see which union member to use.
34741
34742 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34743
34744         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
34745         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
34746
34747 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34748
34749         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
34750
34751 2005-05-20  Jim Meyering  <jim@meyering.net>
34752
34753         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
34754         Now a macro, to pacify GCC.
34755
34756 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
34757
34758         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
34759         of -1.
34760
34761 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
34762
34763         * lib/chown.c (rpl_chown): Return -1 on failure.
34764
34765 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34766
34767         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
34768         Don't check for stddef.h.
34769         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
34770         don't use its results.
34771         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
34772         since we include them unconditionally.  Don't require
34773         AM_STDBOOL_H, since stdbool is a prerequisite.
34774         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
34775         since we assume C89 or better.
34776         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
34777         as we don't use their results.
34778         Don't check for fchdir, memmove, memset, strrchr, as we use
34779         them unconditionally.
34780         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
34781         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
34782
34783 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34784
34785         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
34786         Include <stddef.h> unconditionally, since we assume C89 now.
34787         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
34788         * lib/fts.c: Include fts_.h first, to check interface.
34789         Do not include intprops.h; no longer needed.
34790         Include cycle-check.h and hash.h, since fts_.h no longer does.
34791         Remove unnecessary casts of closedir to void.
34792         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
34793         decide whether to decrement nlinks.
34794         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
34795         (FTS): Use struct hash_table * instead of Hash_table, so that
34796         we no longer need to include hash.h here.
34797
34798 2005-05-18  Jim Meyering  <jim@meyering.net>
34799
34800         * modules/dirfd (License): Change to LGPL.  Most of the code
34801         is already in the public domain.
34802
34803 2005-05-18  Jim Meyering  <jim@meyering.net>
34804
34805         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
34806         Reported by Yoann Vandoorselaere.
34807
34808 2005-05-17  Jim Meyering  <jim@meyering.net>
34809
34810         * m4/fts.m4: New file, from coreutils.
34811
34812 2005-05-17  Jim Meyering  <jim@meyering.net>
34813
34814         * lib/fts.c, lib/fts_.h: New files, from coreutils.
34815
34816 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34817
34818         Sync from coreutils.
34819         * m4/unlinkdir.m4: New file.
34820
34821 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34822
34823         Sync from coreutils.
34824         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
34825         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
34826         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
34827         White space changes only.
34828         * lib/makepath.c (make_path): Port to hosts where leading "//" is
34829         special.
34830         * lib/yesno.c: Include getline.h, not ctype.h.
34831         (yesno): Don't remove leading white space; POSIX doesn't allow it.
34832         Use getline to remove arbitrary restriction on response length.
34833
34834 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34835
34836         * config/srclist-update: Spell out "Street" in FSF postal
34837         mail address; this is the style the FSF seems to prefer.
34838
34839         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
34840         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
34841         this updates FSF postal mail address.
34842
34843         Sync from coreutils.
34844         * modules/unlinkdir: New file.
34845         * modules/yesno (Depends-on): Add getline.
34846         * MODULES.html.sh (File system functions): Add unlinkdir.
34847
34848 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34849
34850         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
34851         lib/strsep.h:
34852         Change the initial comment to refer to GPL, not LGPL.
34853         gnulib-tool will change it to LGPL as needed.
34854
34855         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
34856         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
34857         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
34858         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
34859         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
34860         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
34861         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
34862         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
34863         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
34864         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
34865         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
34866         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
34867         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
34868         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
34869         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
34870         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
34871         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
34872         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
34873         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
34874         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
34875         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
34876         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
34877         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
34878         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
34879         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
34880         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
34881         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
34882         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
34883         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
34884         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
34885         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
34886         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
34887         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
34888         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
34889         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
34890         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
34891         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
34892         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
34893         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
34894         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
34895         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
34896         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
34897         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
34898         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
34899         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
34900         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
34901         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
34902         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
34903         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
34904         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
34905         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
34906         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
34907         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
34908         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
34909         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
34910         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
34911         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
34912         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
34913         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
34914         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
34915         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
34916         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
34917         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
34918         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
34919         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
34920         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
34921         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
34922         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
34923         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
34924         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
34925         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
34926         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
34927         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
34928         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
34929         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
34930         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
34931         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
34932         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
34933         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
34934         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
34935         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
34936         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
34937         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
34938         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
34939         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
34940         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
34941         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
34942         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
34943         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
34944         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
34945         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
34946         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
34947         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
34948         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
34949         lib/yesno.c, lib/yesno.h:
34950         Update FSF postal mail address.
34951
34952 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34953
34954         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
34955         tests/test-memmem.c, tests/test-stpncpy.c:
34956         Update FSF postal mail address.
34957
34958 2005-05-13  Bruno Haible  <bruno@clisp.org>
34959
34960         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
34961         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
34962         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
34963         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
34964         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
34965         Add support for 64-bit integers in the MSVC compiler.
34966
34967 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34968
34969         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
34970
34971 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
34972
34973         * gnulib-tool (func_import): Sort and uniquify recommended includes.
34974
34975 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34976
34977         * doc/getdate.texi (General date syntax): Don't say that date
34978         date --iso-8601=ns generates acceptable dates; it doesn't yet.
34979         Problem reported by Nic Ferrier.
34980
34981 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34982
34983         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
34984         specified in ai_socktype. Fix invalid ai_protocol
34985         check. ai_protocol is usually set to 0 or depending on
34986         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
34987         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
34988         ai_socktype / ai_protocol in the returned addrinfo structure.
34989
34990 2005-05-10  Simon Josefsson  <jas@extundo.com>
34991
34992         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
34993         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34994
34995 2005-05-10  Karl Berry  <karl@gnu.org>
34996
34997         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
34998         (from http://www.gnu.org/licenses).
34999         * doc/COPYING.LIB: also rename to COPYING.LESSER.
35000         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
35001         fdl.texi suffices.
35002
35003 2005-05-10  Karl Berry  <karl@gnu.org>
35004
35005         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
35006         (COPYING.DOC): remove.
35007
35008         * config/srclist-update: new FSF address.
35009
35010 2005-05-10  Derek Price  <derek@ximbiot.com>
35011
35012         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
35013         possible.
35014
35015 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35016             Bruno Haible  <bruno@clisp.org>
35017
35018         * modules/inet_ntop: New file.
35019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35020         inet_ntop.
35021
35022 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35023             Bruno Haible  <bruno@clisp.org>
35024
35025         * m4/inet_ntop.m4: New file.
35026
35027 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35028             Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/inet_ntop.h: New file.
35031         * lib/inet_ntop.c: New file, from glibc with modifications.
35032
35033 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
35034
35035         * modules/time_r (License): Change to LGPL.
35036         * modules/extensions (License): Change to LGPL.  Actually,
35037         the license is more permissive than that, but currently gnulib-tool
35038         doesn't know how to handle more-permissive licenses.
35039
35040         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
35041         Problem reported by Dave Love.
35042
35043 2005-05-08  Jim Meyering  <jim@meyering.net>
35044
35045         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
35046         blank.
35047
35048 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35049
35050         * modules/argmatch (Depends-on): Add stdbool.
35051         * modules/backupfile (Depends-on): Likewise.
35052         * modules/chdir-long (Depends-on): Likewise.
35053         * modules/closeout (Depends-on): Likewise.
35054         * modules/cycle-check (Depends-on): Likewise.
35055         * modules/dirname (Depends-on): Likewise.
35056         * modules/fnmatch (Depends-on): Likewise.
35057         * modules/fsusage (Depends-on): Likewise.
35058         * modules/fwriteerror (Depends-on): Likewise.
35059         * modules/getcwd (Depends-on): Likewise.
35060         * modules/getloadavg (Depends-on): Likewise.
35061         * modules/hard-locale (Depends-on): Likewise.
35062         * modules/makepath (Depends-on): Likewise.
35063         * modules/mountlist (Depends-on): Likewise.
35064         * modules/nanosleep (Depends-on): Likewise.
35065         * modules/posixtm (Depends-on): Likewise.
35066         * modules/quotearg (Depends-on): Likewise.
35067         * modules/readtokens (Depends-on): Likewise.
35068         * modules/readtokens0 (Depends-on): Likewise.
35069         * modules/readutmp (Depends-on): Likewise.
35070         * modules/save-cwd (Depends-on): Likewise.
35071         * modules/strftime (Depends-on): Likewise.
35072         * modules/userspec (Depends-on): Likewise.
35073         * modules/utimecmp (Depends-on): Likewise.
35074         * modules/xgetcwd (Depends-on): Likewise.
35075         * modules/xnanosleep (Depends-on): Likewise.
35076         * modules/xstrtod (Depends-on): Likewise.
35077         * modules/yesno (Depends-on): Likewise.
35078
35079 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
35080
35081         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
35082         needless checks.
35083
35084 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
35085
35086         Merge from coreutils.  Among other things,
35087         add bulletproofing for cases where stdin, stdout, or stderr are closed.
35088         * lib/fd-safer.c: New file.
35089         * lib/fcntl-safer.h, open-safer.c: Remove.
35090         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
35091         * lib/dup-safer.c: Include unistd-safer.h first.
35092         Don't include errno.h.
35093         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
35094         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
35095         * lib/file-type.c: Rely on file-type.h change.
35096         * lib/getloadavg.c: Include unistd-safer.h.
35097         (getloadavg): Use safer open.
35098         * lib/getusershell.c: Include "stdio-safer.h".
35099         (getusershell): Use safer fopen.
35100         * lib/long-options.c (long_options): Use NULL rather than 0.
35101         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
35102         'free'.
35103         * lib/modechange.c: Likewise.
35104         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
35105         (MODE_DONE): New constant.
35106         (struct mode_change): Remove 'next' member.
35107         (make_node_op_equals): New function; like the old one of the
35108         same name, except it allocates an array.
35109         (mode_compile, mode_create_from_ref): Use it.
35110         (mode_compile): Allocate result as an array, not a linked list.
35111         Parse octal string ourself, so that we catch mistakes like "+0".
35112         (mode_adjust): Arg is an array, not a linked list.
35113         * lib/modechange.c: Include stat-macros.h, xalloc.h.
35114         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
35115         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
35116         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
35117         Remove.  This is now stat-macros.h's job.
35118         (talloc): Remove.  All callers replaced by xalloc, so that
35119         our invokers don't have to worry about reporting memory failures.
35120         (make_node_op_equals): Remove.
35121         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
35122         New constants.
35123         (struct mode_change): Moved here from modechange.h.
35124         (mode_append_entry): Remove.
35125         (mode_compile): Remove MASKED_OPS arg, since it encouraged
35126         apps to have incorrect behavior.  Use simpler algorithm for head
35127         and tail.  Don't futz with umask; that's now the job of mode_adjust.
35128         Detect more invalid usages rather than having somewhat-random behavior.
35129         Don't insert an "a=" action, as that leads to incorrect behavior.
35130         (mode_compile, mode_create_from_ref): Return NULL on error instead
35131         of an enum, since now there's only one way to have an error.  All
35132         callers changed.
35133         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
35134         at the correct time.  Simplify calculation of "+u" and its ilk.
35135         Don't mishandle "+X".
35136         (mode_free): Remove "register" and localize decls.
35137         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
35138         (struct mode_change): Move to modechange.c; callers don't
35139         need to see this stuff.
35140         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
35141         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
35142         (mode_change, mode_adjust): Reflect the new signatures noted above.
35143         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
35144         that might redefine system include files.
35145         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
35146         (my_usleep): Use NULL rather than (void *) 0.
35147         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
35148         Use siginterrupt to specify that system calls should be interrupted.
35149         (rpl_nanosleep): Move initialization of suspended closer to call of
35150         my_usleep.
35151         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
35152         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
35153         (desirable_utmp_entry): New function.
35154         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
35155         using x2nrealloc, to simplify logic.
35156         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
35157         size calculation.  Do not assume utmp file is a regular file.
35158         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
35159         (READ_UTMP_CHECK_PIDS): New constant.
35160         * lib/save-cwd.c: Include unistd-safer.h.
35161         (save_cwd): Use fd_safer.
35162         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
35163         [!_LIBC] Include "stat-macros.h" instead.
35164         * lib/unistd-safer.h (fd_safer): New decl.
35165
35166 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
35167
35168         * modules/getloadavg (Depends-on): Add unistd-safer.
35169         * modules/getusershell (Depends-on): Add stdio-safer.
35170         * modules/lstat (Depends-on): Remove xalloc.
35171         * modules/mkstemp (Depends-on): Add stat-macros.
35172         * modules/modechange (Depends-on): Remove xstrtol.
35173         Add stat-macros, xalloc.
35174         * modules/save-cwd (Depends-on): Add unistd-safer.
35175         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
35176         * modules/unistd-safer (Files): Add lib/fd-safer.c
35177         (Makefile.am): Remove lib_SOURCES.
35178
35179         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
35180         Remove fcntl-safer; unistd-safer supersedes it.
35181
35182 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
35183
35184         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
35185         AC_HEADER_STAT.
35186         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
35187         (gl_PREREQ_CHOWN): Remove.
35188         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
35189         it.  Don't require AC_HEADER_STAT.
35190         (gl_PREREQ_LSTAT): Remove.
35191         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
35192         Don't require AC_HEADER_STAT.
35193         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
35194         (gl_PREREQ_RMDIR): Remove.
35195         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
35196         mention stat-macros.h or AC_HEADER_STAT, since we'll make
35197         the stat-macros module a prerequisite.
35198         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
35199         * m4/filemode.m4 (gl_FILEMODE): Likewise.
35200         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
35201         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
35202         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
35203         variable names.
35204         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
35205         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
35206         variable prefixes.
35207         * m4/fcntl-safer.m4: Remove.
35208         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
35209         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
35210         Invoke gl_PREREQ_FD_SAFER.
35211         (gl_PREREQ_FD_SAFER): New macro.
35212         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
35213         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
35214         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
35215         Remove duplicate call to AC_LIBOBJ(readutmp).
35216         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
35217
35218         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
35219         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
35220
35221 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
35222
35223         * MODULES.html.sh (Misc): Add byteswap.
35224
35225 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
35226
35227         * modules/getcwd (Depends-on): Add extensions.
35228         * modules/openat (Depends-on): Likewise.
35229
35230 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
35231
35232         * modules/byteswap: New file.
35233
35234 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
35235
35236         * m4/byteswap.m4: New file.
35237
35238 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
35239
35240         * lib/byteswap_.h: New file.
35241
35242 2005-04-25  Karl Berry  <karl@gnu.org>
35243
35244         * m4/gettext.m4: Update from GNU gettext 0.14.4.
35245
35246 2005-04-25  Albert Chin  <china@thewrittenword.com>
35247
35248         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
35249         Toolkit C bug.
35250
35251 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
35252
35253         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
35254         (func_ln_if_changed) Remove forcibly for no error message
35255         in case file does not exist.
35256
35257 2005-04-19  Simon Josefsson  <jas@extundo.com>
35258
35259         * gnulib-tool (Options): Make --symlink mean --symbolic.
35260
35261 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
35262
35263         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
35264
35265 2005-04-16  Simon Josefsson  <jas@extundo.com>
35266
35267         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
35268
35269 2005-04-15  Simon Josefsson  <jas@extundo.com>
35270
35271         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
35272
35273 2005-04-15  Simon Josefsson  <jas@extundo.com>
35274
35275         * gnulib-tool: Rename --symlink to --symbolic.
35276
35277 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
35278
35279         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
35280         symbolic links to files instead of copying/moving.  Add --aux-dir,
35281         specifying directory relative --dir where auxiliary build tools
35282         are placed.
35283
35284 2005-04-14  Bruno Haible  <bruno@clisp.org>
35285
35286         * modules/allocsa (License): Change to LGPL.
35287         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35288
35289 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35290
35291         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
35292         that "UTC +1 second" continues to work.  Problem reported
35293         by Dmitry V. Levin.
35294         (relunit_snumber): New rule.
35295         (relunit): Use it.
35296
35297 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35298
35299         * lib/getdate.y (universal_time_zone_table): New constant.
35300         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
35301         universal_time_zone_table.
35302         (lookup_zone): Prefer universal_time_zone_table to
35303         local_time_zone_table, so that "GMT" time stamps are allowed in
35304         London during the summer.  Problem reported by Ian Abbott.
35305
35306 2005-04-12  Jim Meyering  <jim@meyering.net>
35307
35308         * lib/human.c (humblock): Set *options even when returning due to
35309         xstrtoumax conversion failure.  Thanks to a used-uninitialized
35310         warning from gcc-4.
35311
35312 2005-04-09  Jim Meyering  <jim@meyering.net>
35313
35314         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
35315         -Wuninitialized: initialize tm0.tm_year.
35316
35317 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35318
35319         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
35320         count, since there's no maximum.  All uses changed.
35321         Add member dsts_seen.
35322         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
35323         not being INT_MAX.
35324         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
35325         Use pc_rels_seen to decide whther a date is absolute.
35326
35327         * lib/getdate.y (number): Don't overwrite year.
35328         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
35329         check.
35330
35331 2005-04-02  Simon Josefsson  <jas@extundo.com>
35332
35333         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
35334         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
35335
35336 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
35337
35338         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
35339         where no absolute path name can be longer than PATH_MAX.
35340
35341 2005-03-27  Jim Meyering  <jim@meyering.net>
35342
35343         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
35344
35345 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
35346
35347         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
35348         "one's complement" -> "ones' complement" in comment, as per Knuth.
35349         "value of type" -> "type or expression" in comment.
35350         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
35351
35352 2005-03-26  Jim Meyering  <jim@meyering.net>
35353
35354         Comment nits.
35355         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
35356         Correct typos: s/or/of/.
35357
35358 2005-03-26  Jim Meyering  <jim@meyering.net>
35359
35360         * modules/check-include-files: Move to ../ and rename to...
35361         * check-module: ...this.
35362
35363 2005-03-25  Jim Meyering  <jim@meyering.net>
35364
35365         * modules/xvasprintf (Files): Add xalloc.h.
35366
35367 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35368
35369         * modules/gettext (Files): config/config.rpath ->
35370         build-aux/config.rpath
35371         * modules/iconv (Files): Likewise.
35372         Problem reported by Oskar Liljeblad.
35373
35374 2005-03-23  Jim Meyering  <jim@meyering.net>
35375
35376         * modules/check-include-files: New script to check for
35377         missing dependencies, multiple includes, etc.
35378
35379         * modules/c-strtold (Depends-on): Add xalloc.
35380         * modules/c-strtod (Depends-on): Add xalloc.
35381         * modules/hash (Depends-on): Add xalloc.
35382         (Files): Remove lib/xalloc.h.
35383
35384         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
35385         * modules/userspec (Files): Add lib/inttostr.h.
35386
35387 2005-03-23  Jim Meyering  <jim@meyering.net>
35388
35389         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
35390
35391 2005-03-22  Jim Meyering  <jim@meyering.net>
35392
35393         * modules/stat-macros: New module.
35394         * modules/canonicalize, modules/euidaccess, modules/file-type,
35395         * modules/filemode, modules/lchown, modules/makepath,
35396         * modules/rmdir, modules/stat: Depend on new stat-macros module
35397         rather than listing lib/stat-macros.h manually.
35398         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
35399
35400 2005-03-22  Jim Meyering  <jim@meyering.net>
35401
35402         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
35403
35404 2005-03-22  Bruno Haible  <bruno@clisp.org>
35405
35406         * config/srclist.txt: Replace target directory 'config' with
35407         'build-aux'.
35408         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
35409         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
35410         ../build-aux/.
35411
35412 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35413
35414         * modules/chdir-long (Depends-on): Add mempcpy.
35415
35416         * modules/acl, modules/backupfile, modules/c-strtod,
35417         modules/c-strtold, modules/canon-host, modules/canonicalize,
35418         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
35419         modules/exclude, modules/exitfail, modules/file-type,
35420         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
35421         modules/getdate, modules/getline, modules/getpagesize,
35422         modules/getpass, modules/getugroups, modules/group-member,
35423         modules/hard-locale, modules/hash, modules/human, modules/idcache,
35424         modules/inttostr, modules/long-options, modules/makepath,
35425         modules/md5, modules/memcasecmp, modules/memcoll,
35426         modules/modechange, modules/mountlist, modules/path-concat,
35427         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
35428         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
35429         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
35430         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
35431         modules/strftime, modules/strndup, modules/strverscmp,
35432         modules/timespec, modules/unlocked-io, modules/userspec,
35433         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
35434         modules/yesno:
35435         Remove lib_SOURCES line from Makefile.am section, as this is now
35436         done automatically by the corresponding Autoconf macro.
35437
35438 2005-03-21  Jim Meyering  <jim@meyering.net>
35439
35440         Changes imported from coreutils.
35441
35442         * lib/cycle-check.c: Don't include xalloc.h.
35443
35444         * lib/path-concat.c: Don't include assert.h.
35445         (path_concat): Remove assertion that would have triggered
35446         for ABASE starting with more than one slash.
35447         Reported by Andreas Schwab.
35448
35449         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
35450         properly when ABASE is an absolute file name.
35451         Correct the description of this function.
35452         Include <assert.h>.
35453         Add an assertion and a test driver.
35454         This fixes a bug introduced on 2004-07-02.
35455         Andreas Schwab reported the resulting failure of cp --parents:
35456         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
35457
35458 2005-03-21  Jim Meyering  <jim@meyering.net>
35459
35460         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
35461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
35462
35463 2005-03-21  Jim Meyering  <jim@meyering.net>
35464         and  Paul Eggert  <eggert@cs.ucla.edu>
35465
35466         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
35467         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
35468         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
35469         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
35470         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
35471         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
35472         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
35473         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
35474         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
35475         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
35476         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
35477         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
35478         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
35479         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
35480         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
35481         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
35482         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
35483         for these modules.
35484
35485 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
35486
35487         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
35488         (which shouldn't happen), generate nothing instead of returning 0
35489         immediately, so that nstrftime (NULL, ...) doesn't return 0.
35490
35491 2005-03-16  Bruno Haible  <bruno@clisp.org>
35492
35493         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
35494         HAVE_LONGLONG_64BIT.
35495
35496 2005-03-16  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
35499         HAVE_LONGLONG_64BIT.
35500
35501 2005-03-16  Bruno Haible  <bruno@clisp.org>
35502
35503         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
35504         HAVE_LONGLONG_64BIT.
35505
35506 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
35507
35508         * lib/strftime.c (my_strftime): Prepend space to format so that we can
35509         reliably distinguish strftime failure from empty output on POSIX
35510         hosts.
35511
35512 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
35513
35514         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
35515         (iconv_string): Don't guess a size-zero buffer, as that might cause
35516         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
35517         result would be 'too large', where 'too large' is (heuristically)
35518         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
35519         overflow concerns.  This will prevent some unwanted malloc failures
35520         when the inputs are very large.
35521
35522 2005-03-15  Karl Berry  <karl@gnu.org>
35523
35524         * config/srclist.txt (config.rpath): from gettext.
35525         * config/config.rpath: update.
35526
35527 2005-03-15  Bruno Haible  <bruno@clisp.org>
35528
35529         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
35530         to 'negate'.
35531
35532         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
35533         variable.
35534
35535         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
35536         results.
35537
35538 2005-03-14  Simon Josefsson  <jas@extundo.com>
35539
35540         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
35541         <fx@gnu.org>.
35542
35543 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
35544
35545         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
35546         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
35547         intprops.h.
35548         * lib/strtol.c: Likewise.
35549
35550 2005-03-14  Jim Meyering  <jim@meyering.net>
35551
35552         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
35553         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
35554         to be nonzero so that we (and caller) can detect the difference
35555         between a valid zero-length expansion and an error return, even
35556         when the underlying strftime fails before writing anything into
35557         that location.
35558
35559 2005-03-14  Bruno Haible  <bruno@clisp.org>
35560
35561         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
35562         Update from GNU gettext 0.14.3.
35563
35564 2005-03-10  Jim Meyering  <jim@meyering.net>
35565
35566         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
35567
35568 2005-03-10  Jim Meyering  <jim@meyering.net>
35569
35570         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
35571         so that this module works on systems without fchdir.
35572
35573 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
35574
35575         Factor int-properties macros into a single file, except for
35576         glibc-related files.
35577         * lib/intprops.h: New file.
35578         * lib/getloadavg.c: Include it instead of limits.h.
35579         (INT_STRLEN_BOUND): Remove.
35580         * lib/human.c: Include intprops.h.
35581         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
35582         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
35583         302/1000.
35584         * lib/inttostr.h: Include intprops.h instead of limits.h.
35585         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
35586         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
35587         for consistency with intprops.h.
35588         (time_t_is_integer, twos_complement_arithmetic): Use them.
35589         * lib/sig2str.h: Include <signal.h>, intprops.h.
35590         (INT_STRLEN_BOUND): Remove.
35591         * lib/strftime.c (TYPE_SIGNED): Remove.
35592         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
35593         * lib/strtol.c: Adjust comments to match intprops.h.
35594         * lib/userspec.c: Include intprops.h.
35595         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
35596         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
35597         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
35598         instead of rolling our own expressions.
35599         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
35600
35601         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
35602         instead of int.
35603         (my_strftime): Do not mishandle years close to INT_MAX, by doing
35604         the right thing even if adding 1900 would overflow.  Similarly
35605         for tm_mon + 1 and tm_yday + 1.
35606         Make %Y always equivalent to %C%y, and similarly for %G and %g.
35607         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
35608         (DO_SIGNED_NUMBER): New macro.
35609         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
35610
35611 2005-03-07  Bruno Haible  <bruno@clisp.org>
35612
35613         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
35614
35615 2005-03-07  Bruno Haible  <bruno@clisp.org>
35616
35617         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
35618
35619 2005-03-04  Derek R. Price  <derek@ximbiot.com>
35620
35621         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
35622         (func_import): Only replace files via --import when they have actually
35623         changed.
35624
35625 2005-03-03  Derek R. Price  <derek@ximbiot.com>
35626
35627         * m4/mmap-anon.m4: New file.
35628         * m4/pagealign_alloc.m4: New file.
35629
35630 2005-03-03  Derek R. Price  <derek@ximbiot.com>
35631             Bruno Haible  <bruno@clisp.org>
35632
35633         * modules/pagealign_alloc: New file.
35634         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
35635
35636 2005-03-03  Derek R. Price  <derek@ximbiot.com>
35637             Bruno Haible  <bruno@clisp.org>
35638
35639         * lib/pagealign_alloc.h: New file.
35640         * lib/pagealign_alloc.c: New file.
35641
35642 2005-03-03  Bruno Haible  <bruno@clisp.org>
35643
35644         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
35645         Use an all-permissive copyright notice, recommended by RMS.
35646
35647 2005-03-02  Bruno Haible  <bruno@clisp.org>
35648
35649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
35650         of AIX, the replacement has to be done only after <string.h> is
35651         included, therefore not in config.h. stpncpy.h does the replacement,
35652         and stpncpy.c uses it.
35653
35654 2005-03-02  Bruno Haible  <bruno@clisp.org>
35655
35656         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
35657         stpncpy.c uses it.
35658
35659 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35660
35661         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
35662         The workaround isn't strictly needed for POSIX conformance, and
35663         it's too much of a pain to configure and maintain.  We'll ask
35664         people to fix their kernels instead.
35665         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
35666         (NANOSLEEP_BUG_WORKAROUND): Remove.
35667         (xnanosleep): Remove the workaround.
35668
35669 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35670
35671         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
35672         Reported by Derek Price.
35673         (Include): Add "timespec.h".
35674
35675         * modules/xnanosleep (Depends-on): Remove gethrxtime.
35676
35677 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35678
35679         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
35680         to detect nanosleep bug.
35681
35682 2005-03-01  Bruno Haible  <bruno@clisp.org>
35683
35684         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
35685
35686 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
35687
35688         * modules/gethrxtime: New file.
35689         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
35690         (Depends-on): Add gethrxtime.
35691         (configure.ac): Add gl_XNANOSLEEP.
35692         (Makefile.am): Remove lib_SOURCES line.
35693
35694 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35695
35696         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
35697         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
35698
35699 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35700
35701         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
35702         * lib/timespec.h (gettime): Return void, since it always
35703         succeeds now.  All uses changed.
35704         * lib/gettime.c (gettime) Likewise.
35705         [HAVE_NANOTIME]: Prefer nanotime.
35706         Assume gettimeofday succeeds, as POSIX requires.
35707         Assime time () succeeds, since other code already does.
35708         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
35709         (timespec_subtract): Remove.
35710         (NANOSLEEP_BUG_WORKAROUND): New constant.
35711         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
35712         things considerably.  Use it only on GNU/Linux hosts, since the
35713         workaround shouldn't be needed elsewhere.
35714
35715 2005-02-24  Bruno Haible  <bruno@clisp.org>
35716
35717         * modules/gettext (Files): Add m4/glibc2.m4.
35718
35719 2005-02-24  Bruno Haible  <bruno@clisp.org>
35720
35721         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
35722         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
35723         * m4/progtest.m4:
35724         Update from GNU gettext 0.14.2.
35725         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
35726
35727 2005-02-24  Bruno Haible  <bruno@clisp.org>
35728
35729         * lib/localcharset.c: Update from GNU gettext 0.14.2.
35730         * lib/config.charset: Update from GNU gettext 0.14.2.
35731
35732 2005-02-24  Bruno Haible  <bruno@clisp.org>
35733
35734         * lib/gettext.h: Update from GNU gettext 0.14.2.
35735
35736 2005-02-23  Simon Josefsson  <jas@extundo.com>
35737
35738         * m4/iconvme.m4: New file.
35739
35740 2005-02-23  Jim Meyering  <jim@meyering.net>
35741
35742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
35743         change.
35744         Thanks to Bruno Haible for catching it.
35745
35746 2005-02-22  Simon Josefsson  <jas@extundo.com>
35747
35748         * modules/iconvme: New file.
35749
35750         * MODULES.html.sh: Add iconvme.
35751
35752 2005-02-22  Simon Josefsson  <jas@extundo.com>
35753
35754         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
35755
35756 2005-02-22  Simon Josefsson  <jas@extundo.com>
35757
35758         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
35759
35760 2005-02-22  Jim Meyering  <jim@meyering.net>
35761
35762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
35763         s/ifndef/ifdef/.
35764
35765 2005-02-20  Neil Conway  <neilc@samurai.com>
35766
35767         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
35768         returned by OSX/Darwin if the specified buffer is not large
35769         enough for the hostname.
35770
35771 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35772
35773         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
35774         pass it to _help, otherwise the latter coredumps trying to
35775         dereference state.root_argp.
35776
35777 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35778
35779         * modules/chdir-long (Depends-on): Add memrchr.
35780         * modules/memrchr (Files): Add lib/memrchr.h.
35781         (Include): "memrchr.h".
35782
35783 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35784
35785         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
35786
35787 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35788
35789         * lib/memrchr.h: New file.
35790         * lib/chdir-long.c: Include it.
35791         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
35792         Don't bother including stddef.h.
35793
35794 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35795
35796         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
35797         inclusion.
35798         Include <sys/types.h>, for dev_t.
35799         (ME_DUMMY, ME_REMOTE): Move from here....
35800         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
35801         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
35802         Dmitry V. Levin.
35803         Include mountlist.h first, to test the interface.
35804
35805 2005-01-29  Bruno Haible  <bruno@clisp.org>
35806
35807         * lib/progname.c (program_name): Initialize.
35808         Needed when linking statically on MacOS X.
35809
35810 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35811
35812         Sync from coreutils.
35813         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
35814         (Depends-on): Add c-strtod.
35815         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
35816
35817 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35818
35819         Sync from coreutils.
35820         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
35821
35822         Remove files that are specific to coreutils.
35823         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
35824
35825 2005-01-28  Bruno Haible  <bruno@clisp.org>
35826
35827         * modules/javacomp: New file.
35828         * MODULES.html.sh (Java): Add javacomp.
35829
35830 2005-01-28  Bruno Haible  <bruno@clisp.org>
35831
35832         * m4/javacomp.m4: New file, from GNU gettext.
35833
35834 2005-01-28  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/javacomp.sh.in: New file, from GNU gettext.
35837         * lib/javacomp.h: New file, from GNU gettext.
35838         * lib/javacomp.c: New file, from GNU gettext.
35839
35840 2005-01-26  Simon Josefsson  <jas@extundo.com>
35841
35842         * lib/gai_strerror.c: Use GPL in header.
35843
35844 2005-01-26  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/javaexec: New file.
35847         * MODULES.html.sh (Java): Add javaexec.
35848
35849 2005-01-26  Bruno Haible  <bruno@clisp.org>
35850
35851         * m4/javaexec.m4: New file, from GNU gettext.
35852
35853 2005-01-26  Bruno Haible  <bruno@clisp.org>
35854
35855         * lib/javaexec.sh.in: New file, from GNU gettext.
35856         * lib/javaexec.h: New file, from GNU gettext.
35857         * lib/javaexec.c: New file, from GNU gettext.
35858
35859 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35860
35861         * modules/lchown (Depends-on): Remove lchown.h
35862
35863 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35864
35865         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
35866         must be defined if the header file was not found, in order
35867         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
35868
35869 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35870
35871         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
35872         initializers for struct pentry_state.
35873         (__argp_error): Check return value of __asprintf
35874         (__argp_failure): Translate error message
35875
35876         * lib/argp-parse.c: Removed braces around the expansion of N_()
35877
35878 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35879
35880         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
35881         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
35882         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
35883         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
35884         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
35885         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
35886         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
35887         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
35888         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
35889         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
35890         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
35891         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
35892         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
35893         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
35894         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
35895         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
35896         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
35897         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
35898         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
35899         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
35900         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
35901         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
35902         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
35903         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
35904         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
35905         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
35906         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
35907         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
35908         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
35909         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
35910         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
35911         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
35912         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
35913         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
35914         xstrtol.m4, xstrtoumax.m4, yesno.m4:
35915         Use an all-permissive copyright notice, recommended by RMS.
35916
35917 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35918
35919         * modules/chdir-long (Depends-on): Remove mempcpy.
35920
35921 2005-01-21  Jim Meyering  <jim@meyering.net>
35922
35923         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
35924         same value as for Solaris 9.
35925
35926         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
35927         component length.  This included changing the parameter to be
35928         of type `char *' rather than `char const *'.
35929         * lib/chdir-long.h (chdir_long): Update prototype.
35930
35931         * lib/openat.c (fdopendir, fstatat): New functions.
35932         * lib/openat.h: Include headers required for use of DIR and struct
35933         stat.
35934         [AT_SYMLINK_NOFOLLOW]: Define.
35935         (fdopendir, fstatat): Add prototypes.
35936
35937 2005-01-21  Bruno Haible  <bruno@clisp.org>
35938
35939         * modules/classpath: New file.
35940         * MODULES.html.sh (Java): Add classpath.
35941
35942 2005-01-21  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/classpath.h: New file, from GNU gettext.
35945         * lib/classpath.c: New file, from GNU gettext.
35946
35947 2005-01-20  Simon Josefsson  <jas@extundo.com>
35948
35949         * modules/version-etc-fsf: New file.
35950
35951 2005-01-20  Simon Josefsson  <jas@extundo.com>
35952
35953         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
35954         * lib/version-etc.c: Remove version_etc_copyright.
35955         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
35956         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
35957
35958 2005-01-20  Simon Josefsson  <jas@extundo.com>
35959
35960         * lib/base64.h (isbase64): Add.
35961
35962         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
35963         using a unsigned prototype, don't inline.
35964         (base64_decode): Use it.
35965
35966 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
35967
35968         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
35969         it.
35970
35971 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
35972
35973         * lib/save-cwd.c (save_cwd): Remove code to support the case
35974         where fchdir is missing or flaky.
35975
35976 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
35977
35978         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
35979
35980 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
35981
35982         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
35983         AC_LIBSOURCES now does this.
35984         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
35985         with new ullong_max module.
35986
35987 2005-01-19  Bruno Haible  <bruno@clisp.org>
35988
35989         * modules/sh-quote: New file.
35990         * MODULES.html.sh (Executing programs): Add sh-quote.
35991
35992 2005-01-19  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/sh-quote.h: New file, from GNU gettext.
35995         * lib/sh-quote.c: New file, from GNU gettext.
35996
35997 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
35998
35999         Merge from coreutils.
36000         * m4/ullong_max.m4: New file.
36001         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
36002         (gl_MACROS): Assume localeconv exists.
36003
36004 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
36005
36006         Merge changes from coreutils, as described below in several
36007         changelogs dated today.
36008
36009         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
36010         (O_DIRECTORY): Remove; not needed here, since "." must be
36011         a directory.  All uses removed.
36012         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
36013         universal on Suns, and we also need to test for IRIX.
36014         Revamp code to use 'if' rather than '#if'.
36015         Avoid unnecessary comparison of cwd->desc to 0.
36016
36017         * lib/utimens.c (futimens): Robustify the previous patch, by checking
36018         for known valid error numbers rather than observed invalid ones.
36019
36020 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
36021
36022         * modules/ullong_max: New file.
36023
36024         * modules/chdir-long, modules/openat: New files.
36025         * modules/save-cwd (Depends-on): Depend on chdir-long.
36026         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
36027
36028 2005-01-18  Jim Meyering  <jim@meyering.net>
36029
36030         Merge from coreutils.
36031         * m4/chdir-long.m4, m4/openat.m4: New files.
36032         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
36033         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
36034         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
36035         is sane and DOES follow symlinks.  Besides, testing 20 different
36036         systems found no broken chown implementations.
36037         Prompted by a change in rsync's copy of this macro.
36038         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
36039
36040         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
36041
36042         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
36043         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
36044         NULL-means-set-to-current-time semantics.
36045         Remove temporary file immediately, rather than waiting
36046         for configure's at-exit trap code to do it.
36047
36048 2005-01-18  Jim Meyering  <jim@meyering.net>
36049
36050         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36051
36052         * lib/utimens.c (futimens): Account for the fact that futimes
36053         can also fail with errno == ENOSYS or errno == ENOENT.
36054         Patch from Dmitry V. Levin.
36055
36056         Change the name of the robust chdir function from chdir to chdir_long.
36057         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
36058         (restore_cwd): Use chdir_long, not chdir.
36059         * lib/chdir-long.c: Renamed from chdir.c.
36060         * lib/chdir-long.h: Renamed from chdir.h.
36061         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
36062         Hurd.
36063
36064 2005-01-18  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
36067         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
36068         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
36069         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
36070         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
36071         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
36072         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
36073         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
36074         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
36075         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
36076         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
36077         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
36078         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
36079         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
36080         Use an all-permissive copyright notice, recommended by RMS.
36081
36082 2005-01-18  Bob Proulx  <bob@proulx.com>
36083
36084         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
36085         simplify offsetof() macro construct to avoid compile failure with
36086         native HP-UX 11.0 ANSI C compiler.
36087
36088 2005-01-17  Bruno Haible  <bruno@clisp.org>
36089
36090         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
36091         redundant because stpncpy.m4 takes care of it.
36092
36093 2005-01-17  Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
36096
36097 2005-01-17  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
36100         used.
36101
36102 2005-01-17  Bruno Haible  <bruno@clisp.org>
36103
36104         * lib/fwriteerror.h (fwriteerror): Change specification to include
36105         fclose.
36106         * lib/fwriteerror.c: Include <stdbool.h>.
36107         (fwriteerror): At the end, close the file stream. Record whether
36108         stdout was already closed.
36109
36110 2005-01-17  Bruno Haible  <bruno@clisp.org>
36111
36112         * lib/execute.c (environ): Declare if needed.
36113         * lib/pipe.c (environ): Likewise.
36114         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
36115
36116 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
36117
36118         * modules/argp: Depend on vsnprintf
36119
36120 2005-01-10  Jim Meyering  <jim@meyering.net>
36121
36122         * modules/closeout (Depends-on): Add atexit.
36123
36124 2005-01-06  Bruno Haible  <bruno@clisp.org>
36125
36126         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
36127
36128 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36129
36130         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
36131         definitions to be after all include files, to avoid collisions.
36132         Problem reported by Bob Proulx.
36133
36134 2005-01-04  Jim Meyering  <jim@meyering.net>
36135
36136         Changes imported from coreutils.
36137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
36138         as the mkstemp template, use a temporary directory and an
36139         8.3-friendly template to avoid trouble on systems like DJGPP.
36140         Reported by Juan M. Guerrero via Stepan Kasal.
36141         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
36142         close. Remove the temporary directory right away, rather than waiting
36143         for configure's at-exit trap code to do it.
36144         Suggestion from Stepan Kasal.
36145
36146 2005-01-01  Simon Josefsson  <jas@extundo.com>
36147
36148         * gnulib-tool: Print #include directives when --import'ing.
36149
36150 2004-12-28  Simon Josefsson  <jas@extundo.com>
36151
36152         * tests/test-base64.c: Include required header files.  Remove
36153         unused variables.
36154
36155 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36156
36157         * modules/error (Depends-on): Remove gettext.
36158
36159 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36160
36161         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
36162         not needed.  This removes a dependency on the gettext module.
36163         [defined _LIBC]: Do not include <libintl.h>; not needed.
36164
36165 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
36166
36167         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
36168         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
36169
36170 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
36171
36172         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
36173         HAVE_DECL_STRTOLD.
36174
36175 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36176
36177         * modules/getdate (Depends-on): Remove alloca-opt.
36178
36179 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36180
36181         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
36182
36183 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36184
36185         * lib/argp-parse.c: Include <stddef.h>.
36186         (alignof, alignto): New macros.
36187         (parser_init): Don't assume that void * is aligned sufficiently
36188         for struct option.
36189
36190         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
36191         need to extend the stack.
36192         (YYINITDEPTH): New macro, so that the initial stack isn't overly
36193         large.
36194
36195 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
36196
36197         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
36198
36199 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
36200
36201         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
36202         (2004-10-24) change.  Apparently this was a false alarm.
36203
36204         * modules/getdate: Depend on alloca-opt, not alloca.
36205
36206 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
36207
36208         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
36209         Remove now-obsolete comment about AIX.
36210         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
36211         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
36212         (YYMAXDEPTH): New macro.
36213
36214 2004-12-18  Simon Josefsson  <jas@extundo.com>
36215
36216         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
36217
36218 2004-12-18  Bruno Haible  <bruno@clisp.org>
36219
36220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
36221
36222 2004-12-18  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/fatal-signal.c (fatal_signals): Make non-const.
36225         (init_fatal_signals): New function.
36226         (uninstall_handlers, install_handlers): Ignore signals that were set to
36227         SIG_IGN.
36228         (at_fatal_signal): Call init_fatal_signals.
36229         (init_fatal_signal_set): Likewise. Ignore signals that were set to
36230         SIG_IGN.
36231         Reported by Paul Eggert.
36232
36233 2004-12-18  Bruno Haible  <bruno@clisp.org>
36234
36235         * doc/alloca.texi: New file.
36236         * doc/alloca-opt.texi: New file.
36237
36238 2004-12-17  Jim Meyering  <jim@meyering.net>
36239
36240         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
36241         Otherwise, install-sh could exit with improper exit status when
36242         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
36243
36244 2004-12-16  Simon Josefsson  <jas@extundo.com>
36245
36246         * tests/test-base64.c: Add license.
36247
36248 2004-12-15  Stepan Kasal  <address@hidden>
36249
36250         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
36251
36252 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
36253
36254         * modules/getcwd (Files): Add m4/d-ino.m4.
36255         Suggested by Mark D. Baushke.
36256
36257 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
36258
36259         * lib/getdate.y (textint): New member "negative".
36260         (time_zone_hhmm): New function.
36261         Expect 14 shift-reduce conflicts, not 13.
36262         (o_colon_minutes): New rule.
36263         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
36264         (yylex): Set the "negative" member of signed numbers.
36265
36266 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
36267
36268         * doc/getdate.texi (Time of day items, Time zone items):
36269         Describe new formats +00:00, UTC+00:00.
36270
36271 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36272
36273         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
36274         spurious "-l"s.  Problem reported by Stepan Kasal.
36275
36276 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
36277
36278         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
36279         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
36280
36281 2004-12-04  Simon Josefsson  <jas@extundo.com>
36282
36283         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
36284         Vandoorselaere <yoann@prelude-ids.org>.
36285
36286 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
36287
36288         Changes imported from coreutils.
36289         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
36290         exist.
36291         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
36292
36293 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
36294
36295         Changes imported from coreutils.
36296         * lib/hard-locale.c: Assume <locale.h> exists.
36297         Include "strdup.h".
36298         (GLIBC_VERSION): New macro.
36299         (hard_locale): Assume setlocale exists.
36300         Rewrite to avoid #ifdef.
36301         Use strdup rather than malloc + strcpy.
36302         * lib/human.c: Assume <locale.h> exists.
36303         (human_readable): Assume localeconv exists.
36304
36305 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
36306
36307         * modules/hard-locale (Depends-on): Add strdup.
36308
36309 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
36310
36311         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
36312         convert T2, not T.  (Imported from libc.)
36313
36314 2004-11-30  Simon Josefsson  <jas@extundo.com>
36315
36316         * modules/restrict (License): Change to LGPL.
36317
36318 2004-11-30  Simon Josefsson  <jas@extundo.com>
36319
36320         * m4/restrict.m4: Add copyright and copying conditions.
36321
36322 2004-11-30  Simon Josefsson  <jas@extundo.com>
36323
36324         * m4/base64.m4: New file.
36325
36326 2004-11-30  Simon Josefsson  <jas@extundo.com>
36327
36328         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
36329         base64.
36330
36331         * tests/test-base64.c: New file.
36332
36333         * modules/base64: New file.
36334
36335 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
36336
36337         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
36338         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
36339
36340         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
36341
36342 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
36343
36344         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
36345         (__getcwd.c): Don't restore errno; glibc doesn't.
36346         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
36347         first, falling back to our code only if its results look suspicious.
36348         Ensure that the resulting buffer is only as large as necessary.
36349
36350         * lib/readutmp.c: Include readutmp.h first.
36351         Include <errno.h>, since readutmp.h no longer does that.
36352         * lib/readutmp.h: Don't include <errno.h>,
36353         <sys/param.h>, <time.h>; not needed to establish interface.
36354         (errno): Remove decl.
36355         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
36356         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
36357         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
36358
36359 2004-11-28  Simon Josefsson  <jas@extundo.com>
36360
36361         * lib/base64.h, base64.c: New file.
36362
36363 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
36364
36365         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
36366
36367 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
36368
36369         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
36370         (Depends-on): Remove pathmax, same.  Add mempcpy.
36371         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
36372         (Makefile.am): Append getcwd.h to lib_SOURCES.
36373         (Include): Add getcwd.h.
36374         (Maintainer): Change from Jim Meyering to "all, glibc",
36375         since getdate now uses intended-for-glibc code.
36376         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
36377         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
36378
36379 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36380
36381         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
36382         HP's ANSI C compiler.
36383         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
36384         Declaring int functions causes warnings on some modern systems and
36385         shouldn't be needed to compile on ancient ones.
36386         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
36387         defined.
36388
36389         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
36390         with the following changes.
36391         (__set_errno): Parenthesize properly.
36392         Include <stdbool.h>.
36393         (MIN, MAX, MATCHING_INO): New macros.
36394         (__getcwd): Define with prototype, not K&R form.
36395         Use heuristics to allocate default buffer on stack if possible.
36396         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
36397         behavior, and to avoid the PATH_MAX limit when computing
36398         ../../../../...
36399         Use MATCHING_INO to compare inode number to file.
36400         Check for arithmetic overflow in size calculations.
36401         Fix bug in reallocation of dot array that caused getcwd to fail
36402         on directories nested deeper than 75.
36403         Be more careful about saving errno on error.
36404         Do not use realloc; use only free+malloc, as this is a bit
36405         more flexible and avoids a needless copy operation.
36406         Do not inspect st_dev and st_ino for symbolic links; POSIX
36407         doesn't specify the latter.
36408         Check for closedir errors.
36409         Avoid needless casts.
36410         Use "#ifdef weak_alias" around weak_alias, to be like other
36411         glibc code.
36412         The following changes to getcwd.c have effect only when used in
36413         gnulib; they have no effect inside glibc proper.
36414         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
36415         as alloca isn't used.
36416         (alloca, __alloca): Likewise.
36417         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
36418         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36419         unconditionally, as gnulib assumes C89 or better.
36420         Do not include <sys/param.h>.
36421         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
36422         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
36423         better.
36424         (NULL) [!defined NULL]: Remove; we assume C89 or better.
36425         Include <dirent.h> in a way that is compatible with modern Autoconf.
36426         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
36427         New macros, if not already defined.
36428         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
36429         Use "_LIBC", not "defined _LIBC", for consistency.
36430         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
36431         a mempcpy module.
36432         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
36433         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
36434         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
36435         credit only to Jim Meyering and adjust the copyright dates.
36436         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
36437         <stdlib.h>, <unistd.h>, "pathmax.h".
36438         Instead, include "xgetcwd.h" (first) and "getcwd.h".
36439         (INITIAL_BUFFER_SIZE): Remove.
36440         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
36441
36442 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36443
36444         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
36445         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
36446         Use the _ONCE methods, for efficiency.
36447         Check for fcntl.h.  In test program, include <errno.h>
36448         and <fcntl.h> if available.  Remove old K&R cruft from
36449         test program.  Check for common errors in GNU/Linux,
36450         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
36451         don't do AC_LIBOBJ, as that's getcwd.m4's job.
36452         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
36453         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
36454         name accordingly.
36455         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
36456         accommodate new getcwd.c.
36457         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
36458         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
36459         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
36460         that's all we need now.
36461
36462 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
36463
36464         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
36465         argp-parse.c depends on getopt internals, that means we should
36466         always use our getopt, to be on the safe side.
36467         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
36468         order not to spoil the result of an eventual previous invocation
36469         of gl_GETOPT_SUBSTITUTE.
36470
36471 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
36472
36473         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
36474         redefinition warnings. To avoid them, include the defines
36475         in `#if !defined __need_getopt ... #endif'. The only place
36476         where __getopt_argv_const is used is in definitions
36477         of getopt_long and getopt_long_only below, which are as well
36478         protected by `#ifndef __need_getopt'.
36479         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
36480         __need_getopt after including <stdio.h> and <unistd.h> These
36481         headers might have defined it.
36482
36483 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
36484
36485         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
36486
36487 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
36488
36489         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
36490         (futimens): New function, which uses futimes if available.
36491         (futimens, utimens): Support timespec==NULL, with same semantics
36492         as utime and utimens.
36493         * lib/utimens.h (futimens): New decl.
36494
36495 2004-11-23  Jim Meyering  <jim@meyering.net>
36496
36497         * lib/getopt_.h: Remove trailing blanks.
36498
36499 2004-11-23  Jim Meyering  <jim@meyering.net>
36500
36501         * lib/__fpending.c: Add comment.
36502
36503 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
36504
36505         * modules/canonicalize (Depends-on): Add xreadlink.
36506         Problem reported by James Youngman.
36507
36508 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
36509
36510         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
36511         New macros.
36512         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
36513         optopt): Use them instead of invoking ## directly; otherwise, the
36514         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
36515
36516 2004-11-19  Bruno Haible  <bruno@clisp.org>
36517
36518         * lib/strtok_r.c: Move comments from here...
36519         * lib/strtok_r.h: ... to here.
36520
36521 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
36522
36523         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
36524         implementations that mishandle size_t overflow.
36525
36526 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
36527
36528         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
36529         might fail.  Problem reported by Yoann Vandoorselaere.
36530         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
36531         implementations that mishandle size_t overflow.
36532
36533 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36534
36535         * modules/canon-host (Depends-on): Add strdup.
36536
36537 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36538
36539         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
36540
36541 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36542
36543         * lib/canon-host.c: Include "strdup.h".
36544         (canon_host): Use getaddrinfo if available, so that IPv6 works.
36545         Use strdup instead of malloc/strcpy to duplicate strings.
36546
36547         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
36548         (human_space_before_unit): New constant.
36549         * lib/human.c (human_readable): Support it.
36550
36551         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
36552         (xgetcwd): Set errno correctly when failing.
36553         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
36554         the failure is actually due to a PATH_MAX problem.
36555
36556         Further getopt changes to make it more likely that glibc will
36557         buy the changes back.
36558         * lib/getopt.c (POSIXLY_CORRECT): New constant.
36559         (getopt): Use it, so to preserve glibc semantic
36560         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
36561         when compiling for libc.
36562         * lib/getopt_.h (__getopt_argv_const): Bring it back.
36563         (getopt_long, getopt_long_only): Use it.
36564
36565         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
36566         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
36567         (getopt): Argv is now char * const *, as per standard.
36568         (_getopt_internal_r, _getopt_internal): Argv is now char **,
36569         not char *__getopt_argv_const *.
36570         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
36571         _getopt_long_only_r): Likewise.
36572         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
36573         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
36574         _getopt_long_r, _getopt_long_only_r): Likewise.
36575         * lib/getopt_.h (__getopt_argv_const): Remove.
36576         (getopt): Argv is now char * const *, as per standard.
36577
36578         * lib/getdate.y (tORDINAL): New token.
36579         (day, relunit): Allow it for relative times.
36580         (relative_time_table): Use tORDINAL for ordinals.
36581
36582 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36583
36584         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
36585         Document that "second" isn't allowed as an ordinal number.
36586
36587 2004-11-16  Jim Meyering  <jim@meyering.net>
36588
36589         * modules/closeout (Depends-on): Add fpending.
36590
36591 2004-11-15  Jim Meyering  <jim@meyering.net>
36592
36593         * lib/closeout.c: Include "__fpending.h" once again.
36594         Include <stdbool.h>.
36595         (close_stdout): Don't fail just because stdout was closed initially,
36596         since some programs don't write to stdout in the normal course of
36597         operation (other than --version and --help), and we don't want this
36598         function to make e.g. `touch file >&-' fail.
36599         But do fail if it was closed and someone has tried to write to it.
36600         E.g., `printf foo >&-' must fail.
36601
36602 2004-11-13  Jim Meyering  <jim@meyering.net>
36603
36604         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
36605
36606 2004-11-12  Simon Josefsson  <jas@extundo.com>
36607
36608         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
36609         small doc fix is still pending.
36610
36611 2004-11-11  Simon Josefsson  <jas@extundo.com>
36612
36613         * modules/strtok_r: New file.
36614
36615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36616         strtok_r.
36617
36618 2004-11-11  Simon Josefsson  <jas@extundo.com>
36619
36620         * m4/strtok_r.m4: New file.
36621
36622         * m4/getopt.m4: Replace opterr.
36623
36624 2004-11-11  Simon Josefsson  <jas@extundo.com>
36625
36626         * lib/strtok_r.h, strtok_r.c: New file.
36627
36628 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
36629
36630         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
36631         of replacing opterr, getopt, etc.  This should handle the
36632         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
36633
36634 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
36635
36636         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
36637         we can stop lying to compilers about the constness of argv when we
36638         are compiled outside glibc.
36639         (getopt, getopt_long, getopt_long_only): Use it.
36640         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
36641         _getopt_internal, getopt): Likewise.
36642         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
36643         _getopt_long_only_r): Likewise.
36644         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
36645         _getopt_long_r, _getopt_long_only_r): Likewise.
36646
36647         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
36648         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
36649         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
36650         the other external symbols.
36651         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
36652         declaration, since the above renaming now works around collisions.
36653
36654 2004-11-11  Jim Meyering  <jim@meyering.net>
36655
36656         * lib/linebreak.c: Remove trailing blanks.
36657         * lib/alloca_.h: Likewise.
36658         * lib/acosl.c: Likewise.
36659         * lib/euidaccess.c: Likewise.
36660         * lib/allocsa.h: Likewise.
36661
36662 2004-11-10  Simon Josefsson  <jas@extundo.com>
36663
36664         * m4/getaddrinfo.m4: New file.
36665
36666 2004-11-10  Simon Josefsson  <jas@extundo.com>
36667
36668         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
36669
36670 2004-11-10  Simon Josefsson  <jas@extundo.com>
36671
36672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36673         getaddrinfo.
36674
36675         * modules/getaddrinfo: New file.
36676
36677 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36678
36679         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
36680
36681 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36682
36683         * lib/mktime.c (SHR): New macro, which is a portable
36684         substitute for >> that should work even on Crays.
36685         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
36686         Problem reported by Mark D. Baushke in
36687         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
36688         * lib/getdate.y (SHR): Likewise.
36689         (tm_diff): Use it.
36690         * lib/strftime.c (SHR): Likewise.
36691         (tm_diff): Use it.
36692         * lib/quotearg.c (struct quoting_options): Use unsigned int for
36693         quote_these_too, so that right shifts are well defined.  All uses
36694         changed.
36695
36696 2004-11-10  Jim Meyering  <jim@meyering.net>
36697
36698         Ensure that no close failure goes unreported.
36699         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
36700         return early when it seems there's nothing to flush.
36701         Don't include __fpending.h.
36702
36703 2004-11-10  Jim Meyering  <jim@meyering.net>
36704
36705         * modules/closeout (Depends-on): Remove fpending.
36706
36707 2004-11-10  Jim Meyering  <jim@meyering.net>
36708
36709         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
36710
36711 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36712
36713         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
36714         gl_FUNC_STRFTIME.
36715         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
36716         and AC_REQUIRE when possible, to avoid duplicate checks.
36717         Check for <wchar.h>.
36718
36719 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36720
36721         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
36722
36723 2004-11-09  Bruno Haible  <bruno@clisp.org>
36724
36725         * m4/sockpfaf.m4: New file.
36726
36727 2004-11-05  Bruno Haible  <bruno@clisp.org>
36728
36729         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
36730         Reported by Mark D. Baushke <mdb@cvshome.org>.
36731
36732 2004-11-04  Bruno Haible  <bruno@clisp.org>
36733
36734         2004-09-11  Bruno Haible  <bruno@clisp.org>
36735                 * allocsa.valgrind: New file.
36736         2004-02-06  Bruno Haible  <bruno@clisp.org>
36737                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
36738                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
36739                 Reported by Christopher Seip <chris.seip@hp.com>.
36740
36741 2004-11-04  Bruno Haible  <bruno@clisp.org>
36742
36743         * modules/allocsa (Files): Add lib/allocsa.valgrind.
36744         (Makefile.am): Distribute it.
36745
36746 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
36747
36748         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
36749         with errno == ERANGE if the buffer is too small.
36750         Problem reported by Mark D. Baushke.
36751
36752 2004-11-03  Albert Chin  <china@thewrittenword.com>
36753             Paul Eggert  <eggert@cs.ucla.edu>
36754
36755         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
36756         equivalent, substitute $ac_type for equivalent type rather than
36757         blindly using uint32_t *always* which won't work if uint32_t is not
36758         available.  Define _UINT32_T to work around typedef of uint32_t if
36759         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
36760         2.5.1.
36761
36762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36763
36764         * m4/jm-macros.m4: Sync from coreutils.
36765         (gl_MACROS): Check for mbrlen, for pathchk.
36766         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
36767
36768 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36769
36770         * lib/xreadlink.c (MAXSIZE): New macro.
36771         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
36772         size does not exceed MAXSIZE.  Avoid cast.
36773         As suggested by Mark D. Baushke in
36774         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
36775         if readlink fails with buffer size just under MAXSIZE, try again
36776         with MAXSIZE.
36777
36778 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36779
36780         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
36781
36782 2004-11-02  Derek R. Price  <derek@ximbiot.com>
36783         and  Paul Eggert  <eggert@cs.ucla.edu>
36784
36785         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
36786         (get_date): Overparenthesize to avoid GCC warning.
36787
36788 2004-11-02  Bruno Haible  <bruno@clisp.org>
36789
36790         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
36791         returns void.
36792
36793 2004-11-02  Bruno Haible  <bruno@clisp.org>
36794
36795         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
36796         function returns void.
36797
36798 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36799
36800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
36801         fflush_unlocked, flockfile, funlockfile, funlockfile,
36802         fputs_unlocked, putc_unlocked.
36803
36804 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36805
36806         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
36807         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
36808         already declared.
36809
36810 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
36811
36812         * modules/getdate (Files): Add doc/getdate.texi.
36813         (Depends-on): Add setenv, xalloc.
36814
36815 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
36816
36817         * lib/getdate.y: Add support for TZ="foo" within a date string.
36818         Fix some bugs near time_t boundaries.  Reject dates with
36819         out-of-range components, e.g., "Sept 31".
36820         Include <stdlib.h>, "setenv.h", "xalloc.h".
36821         (ISDIGIT_LOCALE): Remove; unused.
36822         Note that the TZ and time functions used here are not reentrant.
36823         (mktime_ok, get_tz): New functions.
36824         (TZBUFSIZE): New constant.
36825         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
36826         This requires that we sometimes generate our own TZ="XXX..." setting.
36827
36828 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
36829
36830         * doc/getdate.texi: New file, from coreutils with modifications for
36831         the new TZ parsing.
36832
36833 2004-10-27  Derek R. Price  <derek@ximbiot.com>
36834
36835         * lib/mktime.c (not_equal_tm): Remove redundant check.
36836
36837 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36838
36839         * modules/regex (lib_SOURCES): Add regex.c.
36840         Reported by James Youngman in
36841         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
36842
36843 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36844
36845         * lib/getdate.y: Use Bison 1.875 features, and some minor
36846         code cleanups.  This change does not affect semantics.
36847         Don't include <stdlib.h>; no longer needed.
36848         Don't include unlocked-io.h; only the "#if TEST" code uses
36849         stdio, and performance isn't crucial there.
36850         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
36851         Bison 1.875 features as described below.
36852         All uses of "PC." replaced by "pc->".
36853         (YYSTYPE): Add a forward declaration.
36854         (yylex, yyerror): Use full prototypes in forward decls.
36855         Use "%pure-parser" rather than obsolescent "%pure_parser".
36856         Use %parse-param and %lex-param instead of obsolescent
36857         YYPARSE_PARAM and YYLEX_PARAM.
36858         (meridian_table, month_and_day_table, time_units_table,
36859         relative_time_table, time_zone_table, military_table,
36860         lookup_zone, lookup_word, get_date):
36861         Use NULL instead of 0 where appropriate.
36862         (to_hour): Avoid abort (), to avoid a dependency on
36863         stdlib.h.
36864         (yyerror, yylex): Now accepts parser_control * arg.
36865         (main) [TEST]: Use '\0' rather than 0 for char.
36866
36867 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36868
36869         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
36870
36871 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36872
36873         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
36874         It's now the caller's responsibility to handle the case where
36875         !HAVE_GETPAGESIZE && !defined getpagesize.
36876
36877         * lib/mktime.c (leapyear): Arg is long int, not int.
36878
36879 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
36880
36881         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
36882
36883 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36884
36885         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
36886         missing.  Problem reported by James Youngman.
36887
36888 2004-10-16  Simon Josefsson  <jas@extundo.com>
36889
36890         * gnulib-tool: Fix comments.  Fix parse problem.
36891         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
36892
36893 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36894
36895         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
36896         implementation of getopt_long.  Problem reported by Alexander Taler in:
36897         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
36898
36899 2004-10-15  Bruno Haible  <bruno@clisp.org>
36900
36901         * gnulib-tool: Untabify. Initialize supplied_libname.
36902         (func_usage): More homogenous output.
36903         (func_modules_transitive_closure, func_modules_to_filelist,
36904         func_emit_lib_Makefile_am): New functions.
36905         (func_import): New function, extracted from big case statement. Use
36906         func_get_license, func_modules_transitive_closure,
36907         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
36908         opt_lgpl. Don't use test -a, as it's not portable.
36909         (func_create_testdir): Use func_modules_transitive_closure,
36910         func_modules_to_filelist, func_emit_lib_Makefile_am.
36911
36912 2004-10-15  Bruno Haible  <bruno@clisp.org>
36913
36914         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
36915
36916 2004-10-15  Bruno Haible  <bruno@clisp.org>
36917
36918         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
36919         the portions belonging to each module.
36920         Suggested by Derek Robert Price <derek@ximbiot.com>.
36921
36922 2004-10-12  Simon Josefsson  <jas@extundo.com>
36923
36924         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
36925         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
36926         to real functions.
36927
36928 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36929
36930         * modules/vsnprintf: New file.
36931
36932 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36933
36934         * m4/vsnprintf.m4: New file.
36935
36936 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36937
36938         * lib/vsnprintf.h: New file.
36939         * lib/vsnprintf.c: New file.
36940
36941 2004-10-11  Bruno Haible  <bruno@clisp.org>
36942
36943         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
36944         vsnprintf.
36945
36946 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
36947
36948         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
36949
36950 2004-10-07  Bruno Haible  <bruno@clisp.org>
36951
36952         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
36953         fits into the provided buffer.
36954
36955 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
36956
36957         * lib/diacrit.c, diacrit.h: Add GPL notice.
36958
36959         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
36960         notice.
36961         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
36962         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
36963         This avoids a potential constant-folding bug.
36964
36965 2004-10-05  Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
36968         for the declaration of strsep.
36969
36970 2004-10-05  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
36973
36974 2004-10-04  Simon Josefsson  <jas@extundo.com>
36975
36976         * modules/memmem: New file.
36977         * tests/test-memmem.c: New file.
36978         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
36979
36980 2004-10-04  Simon Josefsson  <jas@extundo.com>
36981
36982         * m4/memmem.m4: New file.
36983
36984 2004-10-04  Simon Josefsson  <jas@extundo.com>
36985
36986         * lib/memmem.h: New file.
36987         * lib/memmem.c: New file, taken from glibc.
36988
36989 2004-10-04  Simon Josefsson  <jas@extundo.com>
36990
36991         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
36992         '#ifdef USE_UNLOCKED_IO'.
36993
36994 2004-10-04  Simon Josefsson  <jas@extundo.com>
36995
36996         * config/srclist.txt: Add memmem from glibc.
36997
36998 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36999
37000         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
37001
37002         * modules/argmatch, modules/argp, modules/closeout, modules/error,
37003         modules/exclude, modules/getdate, modules/getline,
37004         modules/getndelim2, modules/getpass, modules/getpass-gnu,
37005         modules/getusershell, modules/linebuffer, modules/md5,
37006         modules/mountlist, modules/posixtm, modules/readtokens,
37007         modules/readutmp, modules/regex, modules/sha1,
37008         modules/version-etc, modules/yesno:
37009         Remove dependency on unlocked-io.
37010
37011 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37012
37013         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
37014
37015         * m4/unlocked-io.m4: Add copyright notice.
37016         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
37017
37018 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37019
37020         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
37021         * lib/xmalloc.c (xmemdup): Likewise.
37022         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
37023         XFREE): Remove these long-obsolescent macros.
37024         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
37025         * lib/xstrdup.c: Remove.
37026
37027         * lib/regex.c (re_comp): Cast gettext return value to char *,
37028         Problem reported by Martin Neitzel via Mark D. Baushke.
37029
37030 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37031
37032         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
37033         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
37034         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
37035         regex.c, sha1.c, version-etc.c, yesno.c:
37036         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
37037         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
37038         the includer's responsibility.
37039
37040         Sync from coreutils.
37041
37042         * lib/modechange.c (mode_compile): Don't decrement a pointer that
37043         points to the start of a string, as the C Standard says the
37044         resulting behavior is undefined.
37045
37046         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
37047         simple -> simple_backups, numbered_existing ->
37048         numbered_existing_backups, numbered -> numbered_backups
37049         to avoid shadowing problems.  All uses changed.
37050         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
37051         * lib/backupfile.c (check_extension, numbered_backup):
37052         Rename locals to avoid shadowing 'basename'.
37053         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
37054         once.
37055
37056         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
37057         * lib/.cvsignore: Add getopt.h.
37058
37059 2004-10-04  Bruno Haible  <bruno@clisp.org>
37060
37061         * modules/README: New file.
37062         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
37063         not a module.
37064
37065 2004-10-02  Jim Meyering  <jim@meyering.net>
37066
37067         * lib/dirfd.h, getpagesize.h: Add copyright notice.
37068
37069 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37070
37071         * modules/strsep: New file.
37072
37073 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37074
37075         * m4/strsep.m4: New file.
37076
37077 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37078
37079         * lib/strsep.h: New file.
37080         * lib/strsep.c: New file.
37081
37082 2004-10-01  Simon Josefsson  <jas@extundo.com>
37083
37084         * lib/snprintf.c (snprintf): Handle size==0.
37085
37086 2004-10-01  Simon Josefsson  <jas@extundo.com>
37087             Bruno Haible  <bruno@clisp.org>
37088
37089         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
37090         (snprintf): Declare 'args'.
37091
37092 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
37093
37094         * lib/snprintf.c: Remove comments as to why each header is needed.
37095
37096 2004-10-01  Bruno Haible  <bruno@clisp.org>
37097
37098         * MODULES.html.sh: Add strsep.
37099
37100 2004-09-30  Simon Josefsson  <jas@extundo.com>
37101
37102         * modules/snprintf: New file.
37103
37104 2004-09-30  Simon Josefsson  <jas@extundo.com>
37105
37106         * m4/snprintf.m4: New file.
37107
37108 2004-09-30  Simon Josefsson  <jas@extundo.com>
37109
37110         * lib/snprintf.h, lib/snprintf.c: New files.
37111
37112 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37113
37114         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
37115         (hol_entry_help): Never translate an empty string.
37116         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
37117         * lib/argp.h (OPTION_NO_TRANS): New option.
37118
37119 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37120
37121         * modules/argp (Maintainer): Replace Simon Josefsson
37122         by Sergey Poznyakoff.
37123
37124 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37125
37126         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
37127         changes merged back into glibc.
37128
37129 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37130
37131         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
37132
37133 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
37134
37135         * lib/xvasprintf.c: Include xalloc.h.
37136         (xvasprintf): Use xalloc_die, not xmalloc_die.
37137
37138 2004-09-29  Bruno Haible  <bruno@clisp.org>
37139
37140         * modules/alloca-opt: New file, derived from modules/alloca.
37141         * modules/allocsa: Depend on alloca-opt instead of alloca.
37142         * modules/setenv: Likewise.
37143         * modules/vasnprintf: Likewise.
37144         * MODULES.html.sh: Add alloca-opt.
37145
37146 2004-09-28  Simon Josefsson  <jas@extundo.com>
37147
37148         * gnulib-tool: New parameter --lgpl, to asseert that modules are
37149         LGPL, and to replace license template from GPL to LGPL.
37150
37151 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
37152
37153         * modules/dummy: Change license to LGPL.
37154
37155 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
37156
37157         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
37158
37159 2004-09-24  Simon Josefsson  <jas@extundo.com>
37160
37161         * modules/minmax (License): Change from GPL to LGPL.
37162
37163 2004-09-23  Simon Josefsson  <jas@extundo.com>
37164
37165         * gnulib-tool (--import): Typo.
37166
37167 2004-09-23  Simon Josefsson  <jas@extundo.com>
37168
37169         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
37170
37171 2004-09-22  Bruno Haible  <bruno@clisp.org>
37172
37173         * modules/*: Add 'License' field.
37174         * gnulib-tool: Accept --extract-license option.
37175         (func_get_license): New function.
37176
37177 2004-09-21  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
37180         Reported by Simon Josefsson.
37181
37182 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
37183
37184         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
37185         gl_AC_TYPE_LONG_LONG.
37186
37187 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
37188
37189         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
37190
37191 2004-09-18  Simon Josefsson  <jas@extundo.com>
37192         and  Paul Eggert  <eggert@cs.ucla.edu>
37193
37194         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
37195         calls with autoreconf.  Define GL_LIB.
37196
37197 2004-09-14  Karl Berry  <karl@gnu.org>
37198
37199         * config/srclist.txt: unsync setenv.c, sigh.
37200
37201 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
37202
37203         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
37204         Problem reported by Bruno Haible in:
37205         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
37206
37207 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
37208
37209         * config/srclist.txt: Comment out argp-pvh.c.
37210
37211 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
37212
37213         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
37214         in case some system header has #define'd it.  Problem reported by
37215         Soeren D. Schulze in
37216         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
37217
37218 2004-09-09  Karl Berry  <karl@gnu.org>
37219
37220         * regex.[ch]: delete from the root.  These were supposed to be
37221                 synced with emacs cvs, but this has not happened for about
37222                 a year, and anyway nothing else uses emacs regex.[ch].
37223                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
37224                 lib/regex[.ch] is untouched.
37225
37226 2004-09-09  Bruno Haible  <bruno@clisp.org>
37227
37228         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
37229
37230 2004-09-09  Bruno Haible  <bruno@clisp.org>
37231
37232         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
37233         modifications.
37234         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
37235
37236 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
37237
37238         * modules/xvasprintf: New file.
37239         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
37240
37241 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
37242
37243         * lib/xvasprintf.h: New file.
37244         * lib/xvasprintf.c: New file.
37245         * lib/xasprintf.c: New file.
37246
37247 2004-09-08  Bruno Haible  <bruno@clisp.org>
37248
37249         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
37250
37251 2004-09-08  Bruno Haible  <bruno@clisp.org>
37252
37253         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
37254         length is > INT_MAX.
37255         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
37256         more.
37257
37258 2004-09-08  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/stdint_.h: New file, taken from GNU clisp.
37261
37262 2004-09-08  Bruno Haible  <bruno@clisp.org>
37263             Oskar Liljeblad  <oskar@osk.mine.nu>
37264
37265         * modules/stdint: New file.
37266         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
37267
37268 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37269
37270         Import from coreutils.
37271         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
37272         strings on unbounded length.  alloca's performance benefits aren't
37273         that important here.
37274         (V_STRDUP): Remove.
37275         (parse_with_separator): New function, with most of the internals
37276         of the old parse_user_spec.  Allow user to omit both user and group,
37277         for compatibility with FreeBSD.
37278         Clone only the user name, not the entire spec.
37279         Do not set *uid, *gid unless entirely successful.
37280         Avoid memory leak in some failing cases.
37281         Fix regression for USER.GROUP reported by Dmitry V. Levin in
37282         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
37283         (parse_user_spec): Rewrite to use parse_with_separator.
37284
37285 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37286
37287         * modules/userspec: Don't depend on alloca.
37288
37289 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37290
37291         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
37292
37293 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37294
37295         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
37296         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
37297         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
37298
37299 2004-08-16  Simon Josefsson  <jas@extundo.com>
37300
37301         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
37302         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
37303         Add --dry-run for --import.
37304         Let user provided command line parameters override configure.ac
37305         settings.
37306
37307 2004-08-12  Simon Josefsson  <jas@extundo.com>
37308
37309         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
37310         as discussed with Paul Eggert in threads rooted at
37311         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
37312         and
37313         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
37314         Before, the test was empty, and relied on ELIDE_CODE in source
37315         code.)
37316         (gl_PREREQ_GETOPT): New macro.
37317         (gl_GETOPT): Use them.
37318
37319 2004-08-12  Simon Josefsson  <jas@extundo.com>
37320
37321         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
37322         * lib/getopt_.h: Renamed from getopt.h.
37323
37324 2004-08-12  Simon Josefsson  <jas@extundo.com>
37325
37326         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
37327         Change default library name from libfoo to libgnu.
37328         Now, if you have a configure.ac that says:
37329                 gl_SOURCE_BASE(gl)
37330                 gl_M4_BASE(gl/m4)
37331                 gl_MODULES(error getopt etcetera)
37332                 gl_INIT
37333         you can import all you need by running:
37334                 ../gnulib/gnulib-tool --import
37335
37336         * modules/getopt (Files): Rename getopt.h to getopt_.h.
37337         (Makefile.am): Rewrite, use logic from argz.
37338         (Include): Use <getopt.h> instead of "getopt.h".
37339
37340 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
37341
37342         * modules/argp (Files): Add m4/unlocked-io.m4.
37343         (Depends-on): Add extensions.
37344
37345 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
37346
37347         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
37348         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
37349         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
37350         Check for program_invocation_name, program_invocation_short_name,
37351         flockfile, funlockfile, features.h, _getopt_long_only_r.
37352
37353 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
37354
37355         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
37356         its complicated substitute.
37357         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
37358         and program_invocation_name.
37359         (__argp_basename) [!_LIBC]: Remove; the only use was
37360         replaced by its body.
37361         (__argp_short_program_name): Change condition from
37362         !defined __argp_short_program_name to
37363         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
37364         to match argp-namefrob.h.
37365         (__argp_failure): Don't assume strerror_r returns char *.
37366         * lib/argp-parse.c (N_): Define unconditionally.
37367         (argp_default_options): Fill out initializers with 0 to avoid
37368         gcc warnings.
37369
37370 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
37371
37372         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
37373         getopt1.c.
37374
37375 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
37376
37377         Merge from coreutils.
37378
37379         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
37380
37381         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
37382         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
37383
37384 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
37385
37386         Merge from coreutils.
37387
37388         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
37389         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
37390         for Reliant Unix 5.43.
37391
37392         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
37393         (union fooround): Use uintmax_t, not long int.
37394         The rest is a merge from libc:
37395         [defined _LIBC]: Include <shlib-compat.h>.
37396         (_obstack) [defined _LIBC]: Remove after 2.3.4.
37397
37398         * lib/settime.c (settime): Recode to avoid warning with
37399         Sun Forte C 6U2.
37400
37401         * lib/strverscmp.c: Convert to UTF-8.
37402
37403 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
37404
37405         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
37406         m4/uintmax_t.m4.
37407
37408 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
37409
37410         * modules/xalloc-die: New file.
37411         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
37412
37413         * modules/md5 (Files): Add m4/uint32_t.m4.
37414         * modules/sha1: Renamed from modules/sha.
37415         (Files):
37416         Rename lib/sha.h to lib/sha1.h.
37417         Rename lib/sha.c to lib/sha1.c.
37418         Rename m4/sha.m4 to m4/sha1.m4.
37419         (lib_SOURCES): Likewise.
37420         (configure.ac): Rename gl_SHA to gl_SHA1.
37421         (Include): sha.h -> sha1.h.
37422
37423 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
37424
37425         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
37426         * m4/sha1.m4: Renamed from sha.m4.
37427         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
37428
37429 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
37430
37431         * lib/obstack.h (obstack_empty_p):
37432         Don't assume that chunk->contents is suitably aligned.
37433         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
37434         Likewise. Problem reported by Benno in
37435         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
37436
37437         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
37438         readable.  This could be improved further but it'd take some work.
37439
37440 2004-08-08  Simon Josefsson  <jas@extundo.com>
37441
37442         * modules/xgethostname (Depends-on): Remove exit and error (not
37443         used).
37444
37445         * modules/getpass-gnu: Add getpass.h.
37446         (Depends-on): Add stdbool.
37447         * modules/getpass: Add getpass.h.
37448
37449 2004-08-08  Simon Josefsson  <jas@extundo.com>
37450
37451         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
37452         Check getpass declaration.
37453
37454 2004-08-08  Simon Josefsson  <jas@extundo.com>
37455
37456         * lib/xgethostname.c: Don't include error.h (not used).
37457
37458         * lib/getpass.h: Add.
37459         * lib/getpass.c: Include getpass.h first.
37460
37461 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
37462
37463         * lib/xalloc-die.c: New file.
37464         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
37465         All uses removed.
37466         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
37467         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
37468         xalloc-die.c.
37469         (_, N_, xalloc_die): Move to xalloc-die.c.
37470         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
37471         so that we needn't mess with xalloc_msg_memory_exhausted.
37472
37473         * lib/sha1.h: Renamed from sha.h.
37474         (SHA1_H): Renamed from _SHA_H.
37475         (sha1_ctx): Renamed from sha_ctx.
37476         (sha1_init_ctx): Renamed from sha_init_ctx.
37477         (sha1_process_block): Renamed from sha_process_block.
37478         (sha1_process_bytes): Renamed from sha_process_bytes.
37479         (sha1_finish_ctx): Renamed from sha_finish_ctx.
37480         (sha1_read_ctx): Renamed from sha_read_ctx.
37481         (sha1_stream): Renamed from sha_stream.
37482         (sha1_buffer): Renamed from sha_buffer.
37483         * lib/sha1.c: Likewise; renamed from sha.c.
37484         Do not include <sys/types.h>.
37485         Include <stddef.h> rather than <stdlib.h>.
37486
37487 2004-08-08  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
37490         FILESYSTEM_PREFIX_LEN.
37491         * lib/progreloc.c: Likewise.
37492         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
37493
37494 2004-08-06  Simon Josefsson  <jas@extundo.com>
37495
37496         * modules/progname (Depends-on): Don't depend on stdbool.
37497
37498 2004-08-06  Simon Josefsson  <jas@extundo.com>
37499
37500         * modules/getsubopt: New file.
37501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37502         getsubopt.
37503
37504 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37505
37506         More merge from coreutils.
37507
37508         * m4/utimens.m4, m4/utimecmp.m4: New files.
37509         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
37510         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
37511         prereq.m4, sha.m4: Import changes from coreutils.
37512
37513 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         More merge from coreutils.
37516         * modules/raise, modules/readtokens0, modules/utimens:
37517         * modules/utimecmp, module/xnanosleep: New files.
37518         * modules/strftime: Add lib/strftime.h.
37519         Change include from <time.h> to "strftime.h".
37520         * modules/yesno: Add lib/yesno.h.
37521         * modules/backupfile: Remove lib/addext.c.
37522         * modules/euidaccess: Add stat-macros.h.
37523         * modules/canonicalize, modules/euidaccess,
37524         modules/filemode, modules/lchown, modules/makepath,
37525         modules/rmdir, modules/stat: Likewise.
37526
37527 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37528
37529         Merge from tar.
37530         * lib/argp-help.c (make_hol, hol_append): Don't assume that
37531         SIZE_MAX is a valid preprocessor constant.
37532         (__argp_basename): Change from "#ifndef _LIBC"
37533         to "#ifndef __argp_short_program_name", so that
37534         we don't compile these functions for tar.
37535
37536         More merges from coreutils.
37537         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
37538         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
37539         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
37540         * lib/addext.c: Remove; no longer needed.
37541         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
37542         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
37543         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
37544         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
37545         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
37546         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
37547         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
37548         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
37549         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
37550         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37551         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
37552         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
37553         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
37554         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
37555         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
37556         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
37557         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
37558         Import changes from coreutils.
37559
37560 2004-08-05  Simon Josefsson  <jas@extundo.com>
37561
37562         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
37563
37564 2004-08-05  Simon Josefsson  <jas@extundo.com>
37565
37566         * m4/getsubopt.m4: New file.
37567
37568 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
37569
37570         Merge from coreutils.
37571
37572         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
37573         * m4/getcwd-path-max.m4: New files.
37574
37575         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
37576         FILESYSTEM_PREFIX_LEN ->
37577         FILE_SYSTEM_PREFIX_LEN.
37578         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
37579         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
37580         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
37581         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
37582
37583         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
37584         prerequisite modules now handle the DOS stuff.
37585         Don't check for unistd.h.
37586
37587 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
37588
37589         Merge from coreutils.
37590
37591         * lib/.gdb-history: Remove; this doesn't belong here.
37592
37593         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
37594         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
37595         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
37596         * lib/getcwd.c: New files.
37597
37598         * lib/dirname.h: Include <stdbool.h>.
37599         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
37600         for consistency with POSIX terminology.  All uses changed.
37601         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
37602         (strip_trailing_slashes): Use bool for booleans.
37603         * lib/stripslash.c (strip_trailing_slashes): Likewise.
37604
37605         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
37606         sometimes returns a positive errno value even when it succeeds.
37607         (print_errno_message) [!LIBC]: Fall back on strerror if
37608         __strerror_r fails.
37609
37610         * lib/path-concat.c (mempcpy): Don't define if a system header defines
37611         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
37612         (longest_relative_suffix): New function.
37613         (path_concat): Use it.  Assume first argument is not NULL.
37614         Port to DOS.  Omit redundant separators.
37615         Report an error instead of returning NULL.
37616         Use mempcpy instead of memcpy.
37617         (xpath_concat): Remove: not declared or used.
37618
37619         * lib/same.h: Include <stdbool.h>
37620         (same_name): Return bool, not int.
37621         * lib/same.c (same_name): Likewise.
37622         (errno): Don't declare; we assume C89 or better now.
37623
37624         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
37625         if not already defined.
37626
37627         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
37628         * lib/dup-safer.c (errno): Likewise.
37629
37630 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
37631
37632         Merge from coreutils.
37633         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
37634         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
37635         * modules/path-concat: Don't depend on strdup.
37636
37637 2004-08-03  Simon Josefsson  <jas@extundo.com>
37638
37639         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
37640         * lib/progname.h: Don't include stdbool.h.
37641
37642 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
37643
37644         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
37645         * MODULES.html.sh (func_all_modules): Remove fatal.
37646
37647 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
37648
37649         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
37650
37651 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
37652
37653         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
37654         working.
37655
37656 2004-08-02  Simon Josefsson  <jas@extundo.com>
37657
37658         * lib/getsubopt.h: New file, with comments from Bruno Haible.
37659         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
37660         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
37661
37662 2004-08-01  Simon Josefsson  <jas@extundo.com>
37663
37664         * lib/xgetdomainname.c: Include stdlib.h, for free().
37665
37666 2004-07-19  Bruno Haible  <bruno@clisp.org>
37667
37668         * MODULES.html.sh (func_all_modules): Add dummy.
37669
37670 2004-07-16  Simon Josefsson  <jas@extundo.com>
37671
37672         * modules/dummy: New file.
37673
37674 2004-07-16  Simon Josefsson  <jas@extundo.com>
37675
37676         * lib/dummy.c: New file.
37677
37678 2004-07-16  Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/backupfile.h: Add extern "C" for C++.
37681         * lib/closeout.h: Likewise.
37682         * lib/copy-file.h: Likewise.
37683         * lib/findprog.h: Likewise.
37684         * lib/full-write.h: Likewise.
37685         * lib/pathname.h: Likewise.
37686         * lib/progname.h: Likewise.
37687         * lib/stpcpy.h: Likewise.
37688         * lib/stpncpy.h: Likewise.
37689         * lib/strcase.h: Likewise.
37690         * lib/strstr.h: Likewise.
37691         * lib/xalloc.h: Likewise.
37692
37693         * lib/mbswidth.h: Add extern "C" for C++.
37694         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
37695
37696 2004-07-13  Robert Millan  <robertmh@gnu.org>
37697
37698         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
37699
37700 2004-07-09  Simon Josefsson  <jas@extundo.com>
37701
37702         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
37703         failed without this.)
37704
37705 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37706
37707         * modules/chown (Files): Add lib/fchown-stub.c, since
37708         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
37709
37710 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37711
37712         * lib/fchown-stub.c: New file.
37713
37714 2004-06-24  Jim Meyering  <jim@meyering.net>
37715
37716         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
37717
37718 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37719
37720         * modules/argz: Omit "#include".
37721
37722         * MODULES.html.sh (func_all_modules): Add calloc, to match
37723         2004-06-01 addition of calloc module.
37724
37725 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37726
37727         * m4/argz.m4: New file, which is autoupdated from libtool.
37728
37729 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37730
37731         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
37732         libtool.
37733
37734 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37735
37736         * config/srclist-update: Don't insist on "USA." before the
37737         close-comment, as libtool omits the period and puts the */ on a
37738         separate line.
37739         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
37740         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
37741
37742 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
37743
37744         * modules/argz: New file.
37745         * MODULES.html.sh (func_all_modules): Add argz.
37746
37747 2004-06-12  Jim Meyering  <jim@meyering.net>
37748         and  Paul Eggert  <eggert@cs.ucla.edu>
37749
37750         * modules/hash (Files): Add lib/xalloc.h.
37751         * modules/pipe (Depends-on): Add wait-process.
37752         * modules/stat (Depends-on): Add xalloc.
37753         * modules/userspec (Files): Add lib/userspec.h.
37754         * modules/xstrto
37755
37756         Upgrade from gettext-0.13.
37757         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
37758         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
37759         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
37760
37761 2004-06-10  Jim Meyering  <jim@meyering.net>
37762
37763         * lib/calloc.c: New file.
37764
37765 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37766
37767         * lib/getdate.y (yylex): Allow space between sign and number.
37768         Problem reported by Dan Jacobson.
37769
37770 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
37771
37772         Merge from coreutils CVS.
37773
37774         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
37775         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
37776         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
37777         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
37778         xstrtol.m4: Fix copyright date and/or serial number.
37779
37780         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
37781         See if we need an fchown replacement.
37782         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
37783         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
37784         and use the replacement function if we detect either defect.
37785
37786         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
37787         gl_UTIMECMP.
37788
37789 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
37790         and  Jim Meyering  <jim@meyering.net>
37791
37792         Merge from coreutils CVS.
37793
37794         * lib/stat-macros.h: New file, with contents from file-type.h
37795         and coreutils' system.h.
37796         * lib/file-type.c: Include "stat-macros.h".
37797         * lib/file-type.h (file_type): Move all macro definitions to new file,
37798         stat-macros.h.
37799
37800         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
37801         Wrap old code with this conditional.
37802         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
37803         function that does not dereference symlinks.
37804         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
37805
37806         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
37807         dependency problems.
37808         (xreadlink): Accept new arg SIZE, for efficiency.
37809         All decls and uses changed.
37810         * lib/xreadlink.h: Include <stddef.h>, for size_t.
37811
37812         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
37813         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
37814
37815         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
37816         sysexits.h.
37817
37818 2004-06-01  Jim Meyering  <jim@meyering.net>
37819
37820         * m4/calloc.m4: New file.
37821
37822 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
37823
37824         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
37825         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
37826         Also, fix a typo in a diagnostic.
37827
37828 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
37829
37830         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
37831         or AC_FUNC_REALLOC.
37832
37833 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
37834
37835         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
37836         macros to be defined.
37837         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
37838         the allocator returns NULL because the requested size is zero.
37839
37840 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37841
37842         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
37843         var.  Add comment explaining why libc still defines it.  This
37844         merges the following patch from glibc:
37845         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
37846
37847 2004-05-20  Andreas Schwab  <schwab@suse.de>
37848
37849         * m4/free.m4: Replace free if it not known to work, not the other
37850         way round.
37851
37852 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37853
37854         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
37855         present in glibc since revision 1.1 of this file.
37856         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
37857         obstack_alignment_mask, obstack_alloc, obstack_base,
37858         obstack_blank, obstack_blank_fast, obstack_chunk_size,
37859         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
37860         obstack_grow0, obstack_init, obstack_int_grow,
37861         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
37862         obstack_next_free, obstack_object_size, obstack_ptr_grow,
37863         obstack_ptr_grow_fast, obstack_room): Remove declarations of
37864         nonexistent functions.
37865
37866 2004-05-18  Karl Berry  <karl@gnu.org>
37867
37868         * config/srclist.txt: break link for vasnprintf.c.
37869
37870 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37871
37872         Port obstack to the AS/400, where pointers are 16 bytes wide and
37873         you cannot cast an integer to a valid pointer.  This patch is
37874         currently waiting to be integrated into glibc; see
37875         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
37876
37877         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
37878         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
37879         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
37880         (struct obstack): temp member is now a union of a pointer and
37881         an integer, instead of an integer.  All integer uses changed.
37882         This does not affect the physical layout of struct obstack,
37883         except on hosts (like the AS/400) where the size or alignment of
37884         void * is greater than that of ptrdiff_t.
37885         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
37886         __STDC__)]: Store temporary in pointer member of union, not
37887         integer member.
37888         * lib/obstack.c: Include <stddef.h>, for offsetof.
37889         (struct fooalign): Remove; it doesn't need a name.
37890         (union fooround): Change double to long double, and add void *.
37891         (DEFAULT_ALIGNMENT): Use offsetof to compute.
37892         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
37893         not a macro.  Hence the values are always int; so remove all
37894         casts-to-int in uses.
37895
37896 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37897
37898         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
37899         we can get this patch merged into glibc.
37900
37901 2004-05-17  Derek R. Price  <derek@ximbiot.com>
37902             Paul Eggert  <eggert@cs.ucla.edu>
37903
37904         * m4/argp: Depend on alloca.
37905
37906 2004-05-17  Derek R. Price  <derek@ximbiot.com>
37907             Paul Eggert  <eggert@cs.ucla.edu>
37908
37909         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
37910         freecoding.
37911
37912 2004-05-17  Bruno Haible  <bruno@clisp.org>
37913
37914         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
37915         precision that consists of a '.' followed by an empty digit string.
37916         Patch by Tor Lillqvist <tml@iki.fi>.
37917
37918 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37919
37920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
37921         for backward compatibility with older code.  We need our own
37922         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
37923         it under some other name, and our alloca.h will define it.
37924
37925 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37926             Derek Price  <derek@ximbiot.com>
37927
37928         * lib/alloca.c: Include <alloca.h>, to get our interface.
37929         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
37930         include <alloca.h> first.  Use C89 prototype for alloca; this
37931         requires including <stddef.h> for size_t.  Use extern "C" if C++.
37932         Use #elif for simplicity, since we can assume C89 now.
37933         Don't try to source the system alloca.h since it will not be found
37934         and to prevent recursively including its replacement.
37935         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
37936         * lib/regex.c: Likewise.
37937
37938 2004-05-16  Derek Price  <derek@ximbiot.com>
37939             Paul Eggert  <eggert@cs.ucla.edu>
37940
37941         getline cleanup.  This changes the getndelim2 API: both order of
37942         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
37943         no delimiter).
37944
37945         * lib/getline.c: Don't include stddef.h or stdio.h, since our
37946         interface does that.
37947         (getline): Always use getdelim, so that we don't have two
37948         copies of this code.
37949         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
37950         if available.
37951         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
37952         (GETNDELIM2_MAXIMUM): New macro.
37953         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
37954         instead of the old practice of delim2==0.  All callers changed.
37955         Return -1 on overflow, instead of returning junk.
37956         Do not set *linesize unless allocation succeeds.
37957         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
37958         that we include sys/types.h.
37959         * lib/getnline.h: Likewise.
37960         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
37961         (getndelim2): Reorder arguments.
37962         * lib/getnline.c (getnline, getndelim):
37963         Don't discard the NMAX argument.
37964         (getnline): Invoke getndelim, to avoid code duplication.
37965         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
37966         of (size_t) -1 by callers of the getnline family.
37967
37968 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37969
37970         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
37971         Check for gettimeofday.
37972         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
37973         Check for settimeofday, stime.
37974
37975 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         * lib/nanosleep.c (suspended): Change its type from int to
37978         sig_atomic_t volatile.
37979         (first_call): Make it private to rpl_nanosleep, and have it
37980         be zero initially as that's a bit faster.
37981         (my_usleep): Round up fractional times instead of truncating them,
37982         as this is the usual meaning for 'sleep'.
37983
37984         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
37985         doesn't work.
37986         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
37987         (ENOSYS): Define if not defined.
37988         (settime): Fall back on stime if it exists and settimeofday fails.
37989         But don't bother with fallbacks if a method fails with errno == EPERM.
37990
37991 2004-05-11  Jim Meyering  <jim@meyering.net>
37992
37993         Prior to this change, the save_cwd caller required read access to the
37994         current directory on most systems (ones with the fchdir function).
37995
37996         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
37997         fails, try write-only, and finally, resort to using xgetcwd.
37998
37999 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38000
38001         * lib/obstack.c, obstack.h: Import changes from libc.
38002
38003 2004-04-28  Bruno Haible  <bruno@clisp.org>
38004
38005         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
38006         also implicitly appends .exe to executables.
38007         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
38008         accepts Windows pathnames.
38009         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
38010         Treat Cygwin like Windows, since it now accepts Windows pathnames.
38011         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
38012         Treat Cygwin like Windows, since it now accepts Windows pathnames.
38013         Reported by Derek Robert Price <derek@ximbiot.com>.
38014
38015 2004-04-21  Karl Berry  <karl@gnu.org>
38016
38017         * config/srclist.txt (localcharset.c): break sync.
38018
38019 2004-04-20  Paul Eggert  <eggert@twinsun.com>
38020
38021         * m4/host-os.m4: Add a copyright notice.
38022
38023 2004-04-20  Jim Meyering  <jim@meyering.net>
38024
38025         Change UTILS_ to gl_ in AC_DEFINE'd names.
38026         Change utils_- and jm_-prefixed variables, too.
38027         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
38028         UTILS_FUNC_MKDIR_TRAILING_SLASH.
38029         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
38030
38031         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
38032         Don't emit trailing blanks.
38033         Also rename jm_-prefixed variables to have gl_ prefix.
38034
38035         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
38036         Also rename jm_-prefixed variables to have gl_ prefix.
38037
38038         * m4/jm-macros.m4: Reflect the renamings.
38039         * m4/prereq.m4: Likewise.
38040
38041 2004-04-20  Jim Meyering  <jim@meyering.net>
38042
38043         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
38044         memory.
38045
38046 2004-04-20  Jim Meyering  <jim@meyering.net>
38047             Bruno Haible  <bruno@clisp.org>
38048
38049         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
38050         memory when realloc fails.
38051
38052 2004-04-19  Jim Meyering  <jim@meyering.net>
38053
38054         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
38055         now that readutmp.c may call `free (0)'.
38056
38057 2004-04-19  Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
38060         * m4/inttypes_h.m4: Likewise.
38061         * m4/stdint_h.m4: Likewise.
38062         * m4/intmax_t.m4: Likewise.
38063         * m4/uintmax_t.m4: Likewise.
38064
38065 2004-04-18  Jim Meyering  <jim@meyering.net>
38066
38067         * m4/prereq.m4: Don't forbid jm_ prefix.
38068
38069         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
38070         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
38071         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
38072         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
38073         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
38074         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
38075         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
38076         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
38077         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
38078         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
38079         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
38080         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
38081         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
38082         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
38083         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
38084         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
38085         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
38086         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
38087         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
38088
38089 2004-04-18  Jim Meyering  <jim@meyering.net>
38090
38091         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
38092         failure, don't leak memory and do call END_UTMP_ENT.
38093
38094 2004-04-16  Jim Meyering  <jim@meyering.net>
38095
38096         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
38097         coreutils' stat program.
38098         (gl_PREREQ): Don't require jm_PREREQ_STAT.
38099
38100 2004-04-11  Paul Eggert  <eggert@twinsun.com>
38101
38102         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
38103         C89.
38104         (CHAR_BIT): Remove, since we assume C89.
38105         Include <stdint.h> if available, as per current Autoconf CVS advice.
38106
38107 2004-03-31  Jim Meyering  <jim@meyering.net>
38108
38109         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
38110         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
38111         * m4/xalloc.m4: Likewise.
38112
38113 2004-03-30  Paul Eggert  <eggert@twinsun.com>
38114
38115         Merge from coreutils.
38116
38117         * m4/inttostr.m4: New file.
38118         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
38119         Require AM_STDBOOL_H and gl_TIMESPEC instead.
38120         Require gl_CLOCK_TIME.
38121         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
38122
38123 2004-03-30  Paul Eggert  <eggert@twinsun.com>
38124
38125         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
38126         not bool, to be more consistent with Unix conventions.
38127         Suggested by Bruno Haible.
38128
38129         Merge from coreutils.
38130
38131         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
38132         * lib/umaxtostr.c: New files.
38133
38134         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
38135         the usual <time.h> dance.
38136         (get_date): Change signature to support fractional time stamps.
38137         All callers changed.
38138         * lib/getdate.y: Include "getdate.h" first, as we can now
38139         assume C89 and don't need to worry about 'const'.
38140         Similarly, include "unlocked-io.h" near start, not in middle.
38141         Include <limits.h>.
38142         (textint.value): Use long int rather than int.
38143         (textint.digits): Use size_t rather than int.
38144         (BILLION, LOG10_BILLION): New constants.
38145         (parser_control): New member rel_ns.  Members day_ordinal,
38146         time_zone, month, day, hour, minutes, rel_year, rel_month,
38147         rel_day, rel_hour, rel_minutes, rel_seconds
38148         are now long int, not int.  Member seconds is now struct timespec,
38149         not int.  New member timespec_seen.  Members dates_seen, days_seen,
38150         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
38151         not int.
38152         (%union.intval): Now long int, not int.
38153         New member timespec.
38154         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
38155         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
38156         (spec): Now is a timespec or an item list.
38157         (timespec, items): New nonterminals.
38158         (time, rel, relunit, number, get_date):
38159         Add support for fractional seconds.
38160         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
38161         (gmtime, localtime, mktime): Remove decls; not needed with C89.
38162         (to_hour): First arg is now long int, not int.
38163         (to_year): Returns long int, not int.
38164         Don't treat year -70 like 70.
38165         (tm_diff): Returns long int, not int.
38166         (lookup_word): Use bool instead of int when appropriate.
38167         (yylex): Use size_t for count, not int.
38168         Detect overflow when parsing large integer constants.
38169         Add support for fractions.
38170         (get_date): Make pointers 'const' if possible.
38171         Use more-portable code to detect integer overflow.
38172         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
38173         Don't use ctime; it's not reliable if the year has >4 digits.
38174
38175         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
38176         This is for compatibility with BSD.
38177
38178         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
38179         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
38180         From coreutils' system.h.
38181
38182         * lib/userspec.c: Don't include "posixver.h".
38183         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
38184         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
38185         compatible extension.  Simplify code by removing a boolean int
38186         that was always nonzero if a string was nonnull.
38187
38188 2004-03-30  Jim Meyering  <jim@meyering.net>
38189
38190         Merge from coreutils.
38191
38192         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
38193         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
38194         on some systems one must include <grp.h> before it.
38195         Reported by Christian Krackowizer.
38196
38197 2004-03-30  Jim Meyering  <jim@meyering.net>
38198
38199         Merge from coreutils.
38200
38201         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
38202
38203         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
38204         an empty input stream.
38205
38206         * lib/readtokens.c: Include <stdbool.h>.
38207         (readtoken): Use `size_t' rather than int/long.
38208         All callers adjusted.
38209         Use `bool' rather than `int' where appropriate.
38210         Use memset rather than an explicit loop.
38211         Use x2nrealloc rather than xrealloc.
38212         Allow the use of `\0' as a delimiter.
38213         (readtokens): Likewise.
38214         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
38215
38216 2004-03-30  Jim Meyering  <jim@meyering.net>
38217
38218         * m4/realloc.m4: Remove file, since now it does no more than
38219         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
38220         the `configure.ac' section of module/realloc.
38221         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
38222
38223 2004-03-30  Bruno Haible  <bruno@clisp.org>
38224
38225         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
38226         nonnull.
38227
38228 2004-03-29  Paul Eggert  <eggert@twinsun.com>
38229
38230         Merge changes to getloadavg.c from coreutils and Emacs.
38231
38232         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
38233         Define to an expression, not to the empty string.
38234         Include cloexec.h and xalloc.h.
38235         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
38236         Use set_cloexec_flag rather than rolling our own.
38237         * lib/cloexec.c, lib/cloexec.h: New files.
38238
38239 2004-03-29  Paul Eggert  <eggert@twinsun.com>
38240
38241         * m4/cloexec.m4: New file.
38242
38243 2004-03-18  Paul Eggert  <eggert@twinsun.com>
38244
38245         * lib/getopt.h: Sync with libc CVS.
38246
38247 2004-03-18  Paul Eggert  <eggert@twinsun.com>
38248             Bruno Haible  <bruno@clisp.org>
38249
38250         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
38251         mbswidth.
38252
38253 2004-03-18  Paul Eggert  <eggert@twinsun.com>
38254             Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/mbswidth.h: Include <wchar.h> only if
38257         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
38258         <wchar.h>.
38259         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
38260
38261 2004-03-09  Paul Eggert  <eggert@twinsun.com>
38262
38263         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
38264         Sync with libc CVS.
38265         * lib/getopt_int.h: New file, also synced from libc.
38266
38267 2004-03-09  Paul Eggert  <eggert@twinsun.com>
38268
38269         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
38270         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
38271         Bring back getopt.c, getopt.h, getopt1.c.
38272
38273 2004-03-07  Paul Eggert  <eggert@twinsun.com>
38274
38275         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
38276         All uses changed.  Check for sa_sigaction member; this fixes
38277         a bug first reported by Jason Andrade in
38278         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
38279
38280 2004-03-07  Paul Eggert  <eggert@twinsun.com>
38281
38282         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
38283         '#if' expressions.  Unlike the code it replaces, it does not
38284         depend on (defined _SC_PAGESIZE).  However, it does depend on
38285         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
38286         first reported by Jason Andrade in
38287         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
38288
38289 2004-02-25  Simon Josefsson  <jas@extundo.com>
38290
38291         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
38292
38293 2004-02-25  Simon Josefsson  <jas@extundo.com>
38294
38295         * lib/strdup.h: New file.
38296         * lib/strdup.c: Include it.
38297         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
38298         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
38299
38300 2004-02-23  Karl Berry  <karl@gnu.org>
38301
38302         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
38303         (from fencepost.gnu.org:/gd/gnuorg).
38304
38305 2004-02-23  Karl Berry  <karl@gnu.org>
38306
38307         * config/srclistvars.sh (GNUORG) [karl]: redefine.
38308         * config/srclist.txt: add maintain/standards documents.
38309
38310 2004-02-18  Bruno Haible  <bruno@clisp.org>
38311
38312         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
38313         Reported by Derek Robert Price <derek@ximbiot.com>.
38314
38315 2004-02-16  Karl Berry  <karl@gnu.org>
38316
38317         * config/mkinstalldirs, install-sh: update from automake.
38318
38319 2004-02-06  Karl Berry  <karl@gnu.org>
38320
38321         * m4/po.m4: update from gettext 0.14.1.
38322
38323 2004-02-06  Karl Berry  <karl@gnu.org>
38324
38325         * lib/config.charset: update from gettext 0.14.1.
38326
38327 2004-02-05  Paul Eggert  <eggert@twinsun.com>
38328
38329         Add comments and code, prompted by suggestions from Bruno Haible
38330         for sh-quote.
38331         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
38332         describing the enum quoting_style values.
38333         * lib/quotearg.c (quotearg_alloc): New function.
38334         (quotearg_buffer_restyled): Treat lone { and } as special.
38335         Treat = as special.  Work around bug with older shells
38336         that "see" a '\' that is really the 2nd byte of a multibyte char.
38337         Quote empty string with shell_quoting_style.
38338
38339 2004-02-03  Bruno Haible  <bruno@clisp.org>
38340
38341         * m4/pipe.m4: New file, from GNU gettext.
38342
38343 2004-02-03  Bruno Haible  <bruno@clisp.org>
38344
38345         * lib/pipe.h: New file, from GNU gettext.
38346         * lib/pipe.c: New file, from GNU gettext.
38347
38348 2004-01-27  Bruno Haible  <bruno@clisp.org>
38349
38350         * m4/execute.m4: New file, from GNU gettext.
38351
38352 2004-01-27  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/execute.h: New file, from GNU gettext.
38355         * lib/execute.c: New file, from GNU gettext.
38356         * lib/w32spawn.h: New file, from GNU gettext.
38357
38358 2004-01-24  Paul Eggert  <eggert@twinsun.com>
38359
38360         Merge from diffutils.
38361
38362         * lib/file-type.c (file_type): Add typed memory objects.
38363         * lib/file-type.h (S_TYPEISTMO): New macro.
38364
38365         * lib/c-stack.h (c_stack_action): Remove argv argument.
38366         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
38367         (die): Don't calculate message unless segv_action returns.
38368         (get_stack_location, min_address_from_argv, max_address_from_argv,
38369         volatile stack_base, volatile_stack_size): Remove.
38370         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
38371         that every segmentation violation is a stack overflow.  (Ouch!)
38372         See Debian bug 136249 (still outstanding) for more info about why
38373         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
38374
38375 2004-01-24  Paul Eggert  <eggert@twinsun.com>
38376
38377         Exit-status fix from coreutils.
38378
38379         Use exit_failure consistently in place of EXIT_FAILURE,
38380         so that program exit statuses are consistent on failure.
38381
38382         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
38383         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
38384         * lib/argmatch.h: Comment fix to match the above.
38385         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
38386         Now a macro referring to exit_failure, instead of a separate
38387         variable.  Include "exitfail.h" to get it.
38388         * lib/xstrtol.h: Include "exitfail.h".
38389         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
38390
38391         * lib/long-options.c (parse_long_options): Use prototype
38392         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
38393         for clarity.
38394
38395 2004-01-21  Jim Meyering  <jim@meyering.net>
38396
38397         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
38398         so as not to conflict with a different-sized __mktime_internal
38399         function in GNU libc.
38400         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
38401         Problem building statically-linked `ls' reported by Michael Brunnbauer.
38402
38403 2004-01-20  Karl Berry  <karl@gnu.org>
38404
38405         * config/config.guess: update from config.
38406
38407         * config/srclistvars.sh: GNUWWWLICENSES for karl.
38408
38409 2004-01-20  Bruno Haible  <bruno@clisp.org>
38410
38411         Safer stack allocation.
38412         * lib/setenv.c: Include allocsa.h.
38413         (alloca): Remove fallback definition.
38414         (freea): Remove macro.
38415         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
38416         instead of freea.
38417
38418 2004-01-20  Bruno Haible  <bruno@clisp.org>
38419
38420         * m4/eealloc.m4: New file, from GNU gettext.
38421
38422 2004-01-20  Bruno Haible  <bruno@clisp.org>
38423
38424         * m4/allocsa.m4: New file, from GNU gettext.
38425
38426 2004-01-20  Bruno Haible  <bruno@clisp.org>
38427
38428         * lib/xallocsa.h: New file, from GNU gettext.
38429         * lib/xallocsa.c: New file, from GNU gettext.
38430
38431 2004-01-20  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
38434
38435 2004-01-20  Bruno Haible  <bruno@clisp.org>
38436
38437         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
38438         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
38439         specially.
38440
38441 2004-01-20  Bruno Haible  <bruno@clisp.org>
38442
38443         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
38444         patch.
38445
38446 2004-01-20  Bruno Haible  <bruno@clisp.org>
38447
38448         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
38449
38450 2004-01-20  Bruno Haible  <bruno@clisp.org>
38451
38452         * lib/eealloc.h: New file.
38453
38454 2004-01-20  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/binary-io.h: Avoid warnings on Cygwin.
38457
38458 2004-01-20  Bruno Haible  <bruno@clisp.org>
38459
38460         * lib/allocsa.h: New file, from GNU gettext.
38461         * lib/allocsa.c: New file, from GNU gettext.
38462
38463 2004-01-18  Karl Berry  <karl@gnu.org>
38464
38465         * doc/gpl.texi, doc/lgpl.texi: new files.
38466
38467 2004-01-18  Karl Berry  <karl@gnu.org>
38468
38469         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
38470         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
38471
38472 2004-01-15  Paul Eggert  <eggert@twinsun.com>
38473
38474         Merge from coreutils.
38475
38476         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
38477         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
38478         (gl_DEFAULT_POSIX2_VERSION): Move
38479         the documentation from 'configure' into 'config.hin',
38480         so that 'configure --help' isn't burdened by it and
38481         we don't have to worry about its formatting there.
38482         Reword the documentation so that it's more succinct
38483         and can be run together into a single paragraph.
38484         * m4/same.m4 (gl_SAME): Check for pathconf.
38485
38486 2004-01-15  Paul Eggert  <eggert@twinsun.com>
38487
38488         Merge from coreutils.
38489
38490         * lib/posixver.c: Include posixver.h.
38491
38492         * lib/same.c: Include <stdbool.h>, <limits.h>.
38493         (_POSIX_NAME_MAX): Define if not defined.
38494         (MIN): New macro.
38495         (same_name): If file names are silently truncated, report
38496         that the file names are the same if they are the same after
38497         the silent truncation.
38498
38499         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
38500         conversion function.
38501         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
38502         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
38503         longer needed.
38504
38505 2004-01-15  Jim Meyering  <jim@meyering.net>
38506
38507         Merge from coreutils.
38508
38509         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
38510         if no library is required.
38511         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
38512         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
38513         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
38514         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
38515         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
38516         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
38517         value, $ac_cv_search_crypt, if it's "none required".
38518         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
38519         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
38520         not gl_FUNC_GETLOADAVG.
38521         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
38522         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
38523
38524 2004-01-15  Jim Meyering  <jim@meyering.net>
38525
38526         Merge from coreutils.
38527
38528         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
38529         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
38530         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
38531
38532         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
38533         optional configure-time default.
38534
38535         * lib/version-etc.c (version_etc_copyright): Update copyright date.
38536
38537         * lib/xreadlink.c (xreadlink): Correct outdated comment.
38538
38539 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
38540
38541         Merge from coreutils.
38542
38543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
38544         value, $ac_cv_search_nanosleep, if it's "none required".
38545
38546 2004-01-14  Paul Eggert  <eggert@twinsun.com>
38547
38548         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
38549         with like-named macro in fnmatch.c.
38550         (EXT): Use an internal constant instead.
38551
38552         Merge fnmatch patches from glibc.
38553         * lib/fnmatch.c (mbsinit): Remove define.
38554         Add libc_hidden_ver (__fnmatch, fnmatch).
38555         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
38556         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
38557
38558 2004-01-14  Karl Berry  <karl@gnu.org>
38559
38560         * config/install-sh: update from automake.
38561
38562 2004-01-13  Karl Berry  <karl@gnu.org>
38563
38564         * config/install-sh: update from automake.
38565
38566 2004-01-09  Karl Berry  <karl@gnu.org>
38567
38568         * config/install-sh: update from automake.
38569
38570 2004-01-05  Karl Berry  <karl@gnu.org>
38571
38572         * config/config.{sub,guess}: update from config.
38573
38574 2003-12-31  Karl Berry  <karl@gnu.org>
38575
38576         * config/depcomp: update from automake.
38577
38578 2003-12-14  Karl Berry  <karl@gnu.org>
38579
38580         * lib/config.charset: update from gettext-runtime.
38581
38582 2003-12-03  Paul Eggert  <eggert@twinsun.com>
38583
38584         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
38585         Bug reported by Alfred M. Szmidt.
38586
38587 2003-12-03  Bruno Haible  <bruno@clisp.org>
38588
38589         * m4/gettext.m4: Upgrade from gettext-0.13.
38590         * m4/po.m4: Upgrade from gettext-0.13.
38591         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
38592         * m4/intmax.m4: New file, from gettext-0.13.
38593         * m4/printf-posix.m4: New file, from gettext-0.13.
38594
38595 2003-11-29  Karl Berry  <karl@gnu.org>
38596
38597         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
38598
38599 2003-11-25  Paul Eggert  <eggert@twinsun.com>
38600             Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/printf-parse.h: Don't include sys/types.h.
38603         (ARG_NONE): New macro.
38604         (char_directive): Change type of *arg_index fields to size_t.
38605         * lib/printf-parse.c: Don't include sys/types.h.
38606         (SSIZE_MAX): Remove macro.
38607         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
38608         Remove unnecessary overflow check.
38609         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
38610         fields.
38611
38612 2003-11-25  Bruno Haible  <bruno@clisp.org>
38613
38614         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
38615
38616 2003-11-25  Bruno Haible  <bruno@clisp.org>
38617
38618         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
38619         gt_TYPE_SSIZE_T.
38620
38621 2003-11-24  Paul Eggert  <eggert@twinsun.com>
38622
38623         * modules/alloca: Remove dependency on xalloc.
38624
38625 2003-11-24  Paul Eggert  <eggert@twinsun.com>
38626
38627         * lib/alloca.c: Remove dependency on xalloc module.
38628         (xalloc_die): Remove.
38629         (memory_full) [!defined emacs]: New macro.
38630         [!defined emacs]: Don't include xalloc.h.
38631         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
38632         address arithmetic overflows.  Change datatypes a bit to avoid
38633         unnecessary casts.
38634
38635 2003-11-22  Jim Meyering  <jim@meyering.net>
38636
38637         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
38638         s/size/size_t/.
38639
38640 2003-11-21  Karl Berry  <karl@gnu.org>
38641
38642         * config/config.{sub,guess}: update from config.
38643
38644 2003-11-18  Karl Berry  <karl@gnu.org>
38645
38646         * config/config.{sub,guess}: update from config.
38647
38648         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
38649
38650 2003-11-17  Paul Eggert  <eggert@twinsun.com>
38651
38652         * README: Mention that S+T cannot overflow if S is the size of
38653         an existing object and T is sufficiently small.
38654
38655 2003-11-17  Jim Meyering  <jim@meyering.net>
38656
38657         On systems without utime and without a utimes function capable of
38658         dealing with a NULL struct utimbuf* argument, this utime replacement
38659         could -- in unusual circumstances -- leak a file descriptor.
38660         * lib/utime.c: Include <unistd.h> and <errno.h>.
38661         (utime_null): Be sure to close `fd' and to preserve errno.
38662         Reported by Geoff Collyer via Arnold Robbins.
38663
38664 2003-11-17  Bruno Haible  <bruno@clisp.org>
38665
38666         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
38667         (Depends-on): Add xsize.
38668
38669 2003-11-17  Bruno Haible  <bruno@clisp.org>
38670
38671         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
38672
38673 2003-11-17  Bruno Haible  <bruno@clisp.org>
38674
38675         * lib/vasnprintf.c (alloca): Remove fallback definition.
38676         (freea): Remove definition.
38677         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
38678         Reported by Paul Eggert.
38679
38680 2003-11-16  Paul Eggert  <eggert@twinsun.com>
38681             Bruno Haible  <bruno@clisp.org>
38682
38683         Protect against address arithmetic overflow.
38684         * lib/printf-args.h: Include stddef.h.
38685         (arguments): Change type of field 'count' to size_t.
38686         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
38687         'unsigned int' where appropriate.
38688         * lib/printf-parse.h: Include sys/types.h.
38689         (char_directive): Change type of *arg_index fields to ssize_t.
38690         (char_directives): Change type of fields 'count', max_*_length to
38691         size_t.
38692         * lib/printf-parse.c: Include sys/types.h and xsize.h.
38693         (SSIZE_MAX): Define fallback value.
38694         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
38695         instead of 'int' where appropriate. Check a_allocated, d_allocated
38696         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
38697         * lib/vasnprintf.c: Include xsize.h.
38698         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
38699         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
38700         overflow. Avoid wraparound when converting a width or precision from
38701         decimal to binary.
38702
38703 2003-11-16  Bruno Haible  <bruno@clisp.org>
38704
38705         Update from GNU gettext.
38706         * lib/printf-parse.c: Generalize to it can be compiled for wide
38707         strings.
38708         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
38709         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
38710         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
38711         SNPRINTF): New macros.
38712         Don't include <alloca.h> if the file is used inside libintl.
38713         (local_wcslen): New function, for Solaris 2.5.1.
38714         (VASNPRINTF): Use it instead of wcslen.
38715
38716 2003-11-16  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/xsize.h (xmax): New function.
38719         (xsum, xsum3, xsum4): Declare as "pure" functions.
38720
38721 2003-11-12  Paul Eggert  <eggert@twinsun.com>
38722
38723         * modules/xalloc (Files): Undo latest change, since xalloc.h
38724         no longer needs SIZE_MAX or PTRDIFF_MAX.
38725
38726 2003-11-12  Paul Eggert  <eggert@twinsun.com>
38727
38728         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
38729         gl_PTRDIFF_MAX.
38730
38731 2003-11-12  Paul Eggert  <eggert@twinsun.com>
38732
38733         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
38734         "return", to pacify some unknown compiler.  Problem reported
38735         by Joerg Schilling.
38736
38737 2003-11-12  Paul Eggert  <eggert@twinsun.com>
38738
38739         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
38740         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
38741         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
38742         heuristic is just as accurate as far as we know, and it removes a
38743         dependency on size_max.m4 and ptrdiff_max.m4.
38744
38745 2003-11-11  Bruno Haible  <bruno@clisp.org>
38746
38747         * modules/xsize (Files): Add m4/size_max.m4.
38748         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
38749
38750 2003-11-11  Bruno Haible  <bruno@clisp.org>
38751
38752         * m4/size_max.m4: New file.
38753         * m4/ptrdiff_max.m4: New file.
38754         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
38755         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
38756         (gl_XALLOC): Invoke it.
38757
38758 2003-11-11  Bruno Haible  <bruno@clisp.org>
38759
38760         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
38761         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
38762         defined.
38763
38764 2003-11-10  Paul Eggert  <eggert@twinsun.com>
38765
38766         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
38767         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
38768         rejected some allocations of exactly SIZE_MAX - 2 bytes.
38769         From Bruno Haible.
38770         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
38771         not (size_t) -1, since it's defined here.
38772
38773 2003-11-09  Karl Berry  <karl@gnu.org>
38774
38775         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
38776
38777 2003-11-06  Paul Eggert  <eggert@twinsun.com>
38778
38779         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
38780         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
38781         Reject sizes of exactly SIZE_MAX bytes.
38782         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
38783         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
38784
38785 2003-11-05  Bruno Haible  <bruno@clisp.org>
38786
38787         * lib/xsize.h: Include limits.h, to avoid a possible collision with
38788         SIZE_MAX defined in <limits.h> on Solaris.
38789
38790 2003-11-04  Jim Meyering  <jim@meyering.net>
38791
38792         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
38793         variable names, rather than @VAR@.
38794         * modules/poll: Likewise.
38795
38796 2003-11-04  Bruno Haible  <bruno@clisp.org>
38797
38798         * modules/xsize: New file.
38799         * modules/linebreak: Depend on xsize.
38800         * MODULES.html.sh (func_all_modules): Add xsize.
38801
38802 2003-11-04  Bruno Haible  <bruno@clisp.org>
38803
38804         * m4/xsize.m4: New file.
38805
38806 2003-11-04  Bruno Haible  <bruno@clisp.org>
38807
38808         * lib/xsize.h: New file.
38809         * lib/linebreak.c: Include xsize.h.
38810         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
38811         argument for overflow.
38812         Suggested by Paul Eggert.
38813
38814 2003-11-03  Karl Berry  <karl@gnu.org>
38815
38816         * config/config.{guess,sub}: update from config.
38817
38818 2003-11-03  Jim Meyering  <jim@meyering.net>
38819
38820         * modules/userspec (lib_SOURCES): Add userspec.h.
38821         (Include): Add "userspec.h".
38822         Improve description.
38823
38824 2003-11-03  Jim Meyering  <jim@meyering.net>
38825
38826         * lib/userspec.c: Include "userspec.h".
38827         * lib/userspec.h: New file.
38828
38829 2003-11-03  Bruno Haible  <bruno@clisp.org>
38830
38831         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
38832
38833 2003-11-03  Bruno Haible  <bruno@clisp.org>
38834
38835         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
38836         available, to avoid (extremely rare) race condition.
38837         Suggested by Paul Eggert.
38838
38839 2003-11-02  Karl Berry  <karl@gnu.org>
38840
38841         * config/srclist.txt (vasprintf.c): sync broken, sigh.
38842
38843 2003-10-31  Paul Eggert  <eggert@twinsun.com>
38844
38845         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
38846         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
38847         (read_filesystem_list): Set and use me_type_malloced.
38848         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
38849         whatever the type happens to be), for brevity and consistency.
38850         Check for size calculation overflow on Alphas running OSF/1.
38851
38852 2003-10-31  Jim Meyering  <jim@meyering.net>
38853
38854         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
38855
38856         * lib/linebuffer.c: Include <string.h> for declaration of memset.
38857
38858 2003-10-30  Paul Eggert  <eggert@twinsun.com>
38859             Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
38862         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
38863
38864 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38865
38866         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
38867         netbsd*-gnu*.  Suggested by Robert Millan.
38868
38869 2003-10-29  Paul Eggert  <eggert@twinsun.com>
38870
38871         * modules/group-member: Depend on stdbool.
38872
38873 2003-10-29  Paul Eggert  <eggert@twinsun.com>
38874
38875         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
38876
38877 2003-10-29  Paul Eggert  <eggert@twinsun.com>
38878
38879         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
38880         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
38881         after the 'gnu' in these cases.  This fixes some bugs in the
38882         previous change, and is based on suggestions by Robert Millan.
38883
38884 2003-10-29  Paul Eggert  <eggert@twinsun.com>
38885
38886         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
38887         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
38888         no longer needed.
38889         * lib/quotearg.c (quotearg_n_options): Use it.
38890         * lib/group-member.c: Include <stdbool.h>.
38891         (free_group_info): Arg is now const *; don't free arg.
38892         (get_group_info): Now returns bool and accepts struct group_info *,
38893         rather than returning a malloc'ed struct group_info *.
38894         All uses changed.  Check for overflow in internal size calculation.
38895
38896         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
38897         rather than xmalloc/xrealloc.
38898         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
38899         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
38900         conformance bug: the old code used a pointer after freeing the
38901         storage that it addressed.
38902         * lib/hash.c (hash_initialize): Simplify the code by using
38903         xalloc_oversized rather than doing it by hand.
38904         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
38905         the buffer preserved.  Use free and xmalloc instead.
38906         * lib/quotearg.c (quotearg_n_options): Likewise.
38907         Use a simpler test for size overflow.  Don't use xalloc_oversized
38908         because unsigned int might be wider than size_t (!); this suggests
38909         that we should switch from unsigned int to size_t for slot numbers.
38910
38911 2003-10-28  Paul Eggert  <eggert@twinsun.com>
38912
38913         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
38914         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
38915         NetBSD kernels.  Requested by Richard Stallman.
38916
38917 2003-10-27  Paul Eggert  <eggert@twinsun.com>
38918
38919         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
38920         to allocate the returned structure.  Do not allocate a subarray,
38921         as x2nrealloc will do that.
38922         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
38923         instead of xnrealloc.
38924         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
38925
38926 2003-10-27  Bruno Haible  <bruno@clisp.org>
38927
38928         * lib/stdbool_.h: Better support for BeOS.
38929
38930 2003-10-26  Paul Eggert  <eggert@twinsun.com>
38931
38932         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
38933         now uses inline.
38934
38935 2003-10-26  Paul Eggert  <eggert@twinsun.com>
38936
38937         * lib/xalloc.h (xalloc_oversized): New static inline function, for
38938         callers that want to do their own size-overflow checking.  Include
38939         <stdbool.h>, since xalloc_oversized returns bool.
38940         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
38941         to use xalloc_oversized.
38942
38943         Add two functions x2realloc, x2nrealloc, for programs that grow
38944         arrays dynamically by doubling their sizes.
38945         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
38946         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
38947         New functions.
38948
38949         Port to C99 semantics for 'inline' of external functions.
38950         Bug reported by Bruno Haible.
38951         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
38952         with the old contents of xnmalloc.
38953         (xnmalloc, xmalloc): Use it.
38954         (xnrealloc_inline): New static inline function,
38955         with the old contents of xnrealloc.
38956         (xnrealloc, xrealloc): Use it.
38957
38958         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
38959         that.
38960
38961 2003-10-26  Karl Berry  <karl@gnu.org>
38962
38963         * config/srclist.txt (COPYING.DOC): no longer available from
38964         /gd/gnuorg; don't know where the ultimate source is.
38965
38966 2003-10-25  Paul Eggert  <eggert@twinsun.com>
38967
38968         Fix several address-calculation bugs in the hash modules,
38969         plus some minor code cleanup.
38970
38971         * lib/hash.h: Include <stdbool.h>, for bool.
38972         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
38973         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
38974         hash_get_n_entries, hash_get_max_bucket_length,
38975         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
38976         hash_rehash): Use size_t rather than unsigned.
38977         * lib/hash.c (struct hash_table, hash_get_n_buckets,
38978         hash_get_n_buckets_used, hash_get_n_entries,
38979         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
38980         hash_get_entries, hash_do_for_each, hash_string, is_prime,
38981         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
38982         Likewise.
38983         (SIZE_MAX): Define if not defined.
38984         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
38985         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
38986         hash_print):
38987         Use const * when possible.
38988         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
38989         (check_tuning): Fix bug: if tuning parameters were very close to
38990         0 or 1, rounding errors could have caused subscript violations.
38991         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
38992         (hash_initialize): Add 'fail:' label
38993         to free table and return NULL, and use it to simplify code.
38994         Use calloc rather than clearing the storage ourself.
38995         (hash_initialize, hash_rehash): Check for arithmetic overflow in
38996         buffer size calculations.
38997         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
38998         Include <stddef.h>, for size_t.
38999         * lib/hash-pjw.c (hash_pjw): Likewise.
39000         Switch to method described by Bruno Haible.
39001         Include <limits.h>, for CHAR_BIT.
39002         (SIZE_BITS): New macro.
39003
39004 2003-10-23  Paul Eggert  <eggert@twinsun.com>
39005
39006         * m4/getline.m4 (AM_FUNC_GETLINE):
39007         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
39008         hosts.  Problem reported by Derek Robert Price in
39009         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
39010         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
39011         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
39012
39013 2003-10-21  Paul Eggert  <eggert@twinsun.com>
39014
39015         * lib/getndelim2.c (getndelim2): When size calculation overflows,
39016         ceiling the allocation at NMAX bytes rather than silently
39017         discarding input bytes before NMAX is reached.  This makes
39018         a difference only if NMAX exceeds SIZE_MAX / 2.
39019
39020         * lib/obstack.c: Merge from glibc.
39021         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
39022         Add libc_hidden_def (_obstack_newchunk).
39023         (_obstack_free) [! defined _LIBC]: Remove.
39024         [defined _LIBC]: Make a strong alias from obstack_free, rather than
39025         a clone of the function body.
39026         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
39027         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
39028
39029         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
39030         glibc.
39031         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
39032         arg to memcpy.
39033
39034         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
39035         (obstack_ptr_grow_fast, obstack_int_grow_fast):
39036         Don't use lvalue casts, as GCC plans to remove support for them
39037         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
39038         was also present in the non-GCC version, indicating that this
39039         code had always been buggy and had never been widely used.
39040         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
39041         Use the fast variant of each macro, rather than copying the
39042         definiens of the fast variant; that way, we'll be more likely to
39043         catch future bugs in the fast variants.
39044
39045 2003-10-20  Bruno Haible  <bruno@clisp.org>
39046
39047         * modules/wait-process: New file.
39048         * MODULES.html.sh (func_all_modules): Add wait-process.
39049
39050 2003-10-20  Bruno Haible  <bruno@clisp.org>
39051
39052         * m4/wait-process.m4: New file.
39053
39054 2003-10-20  Bruno Haible  <bruno@clisp.org>
39055
39056         * lib/wait-process.h: New file, from GNU gettext.
39057         * lib/wait-process.c: New file, from GNU gettext.
39058
39059 2003-10-19  Jim Meyering  <jim@meyering.net>
39060
39061         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
39062         HPUX 10.20.
39063
39064 2003-10-18  Karl Berry  <karl@gnu.org>
39065
39066         * config/config.guess: update from config.
39067
39068 2003-10-16  Paul Eggert  <eggert@twinsun.com>
39069
39070         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
39071         (getgroups): First arg is int, not size_t.
39072         Don't let 'free' mangle errno.
39073
39074 2003-10-16  Paul Eggert  <eggert@twinsun.com>
39075
39076         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
39077
39078 2003-10-16  Karl Berry  <karl@gnu.org>
39079
39080         * config/config.{guess,sub}: update from config.
39081
39082 2003-10-16  Jim Meyering  <jim@meyering.net>
39083
39084         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
39085         memcpy.
39086
39087 2003-10-15  Paul Eggert  <eggert@twinsun.com>
39088
39089         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
39090         (SIZE_MAX): Remove.
39091         (new_exclude, add_exclude_file): Initial size no longer needs to
39092         be a power of 2.
39093         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
39094         our own address arithmetic overflow checking.
39095
39096         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
39097         (fnmatch): Do not alloca more than 2000 wide characters;
39098         instead, use malloc for large buffers.
39099         Check for address arithmetic overflow, and return -1
39100         with errno set to ENOMEM in that case.
39101         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
39102         (NEW_PATTERN): Do not alloca more than 8000 bytes;
39103         instead, return -1.  Check for address arithmetic overflow.
39104
39105 2003-10-14  Paul Eggert  <eggert@twinsun.com>
39106
39107         Handle invalid suffixes and overflow independently, so that
39108         callers can treat them independently as needed.  Fix some bugs in
39109         suffix handling, e.g., "100k@" was not diagnosed as an invalid
39110         suffix for a human-readable blocksize.  The major caller-visible
39111         change is the addition of a new
39112         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
39113         that both overflow and suffix chars were found.
39114
39115         * lib/human.c (humblock): Don't check separately for invalid suffix
39116         char; that is xstrtoumax's job (now that its bug is fixed).
39117         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
39118         INTMAX_MAX]: New macros.
39119         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
39120         TYPE_MAXIMUM): New macros.
39121         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
39122         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
39123         if overflow occurs, as it's what __strtol does and it's more useful
39124         in practice.
39125         (__xstrtol): If __strtol reports some error other than ERANGE,
39126         reflect it to the caller as LONGINT_INVALID.  If it reports
39127         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
39128         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
39129         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
39130         value.
39131         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
39132         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
39133         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
39134         [defined UINTMAX_MAX]: New macros.
39135
39136 2003-10-14  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
39139
39140 2003-10-14  Bruno Haible  <bruno@clisp.org>
39141
39142         * m4/sig_atomic_t: New file, from GNU gettext.
39143         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
39144
39145 2003-10-14  Bruno Haible  <bruno@clisp.org>
39146
39147         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
39148         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
39149         Also use volatile where needed.
39150
39151 2003-10-12  Paul Eggert  <eggert@twinsun.com>
39152
39153         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
39154         Change maintainer from Bruno Haible to 'all'.
39155
39156 2003-10-12  Paul Eggert  <eggert@twinsun.com>
39157
39158         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
39159
39160 2003-10-12  Paul Eggert  <eggert@twinsun.com>
39161
39162         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
39163         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
39164         and define in terms of the other primitives.
39165         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
39166         (SIZE_MAX): Define if not already defined.
39167         (array_size_overflow): New function.
39168         (xalloc_die): Abort instead of exiting if 'error' returns.
39169         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
39170         (xmalloc, xrealloc): Use them.
39171         (xcalloc): Check for address arithmetic overflow.
39172         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
39173         a bit faster than strcpy.
39174
39175 2003-10-10  Simon Josefsson  <jas@extundo.com>
39176
39177         * modules/argp (Depends-on): Add restrict and strcase.
39178
39179 2003-10-10  Simon Josefsson  <jas@extundo.com>
39180
39181         * m4/argp.m4: Add AC_C_INLINE.
39182
39183 2003-10-08  Paul Eggert  <eggert@twinsun.com>
39184
39185         Merge getpass from libc, plus a few fixes.
39186
39187         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
39188         Include <stdbool.h>.
39189         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
39190         __fsetlocking to empty.
39191         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
39192         do include <bits/libc-lock.h>.
39193         Do not include <fcntl.h>; not needed.
39194         [_LIBC]: Include <wchar.h>.
39195         (NOTCANCEL_MODE): New macro.
39196         (flockfile, funlockfile) [_LIBC]: New macros.
39197         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
39198         [!_LIBC]: New macros.
39199         (call_fclose): New function.
39200         (getpass): Use it.  Save tty stream separately; this simplifies the
39201         code and makes it more reliable if stdin happens to equal stdout.
39202         Invoke __fsetlocking on tty.
39203         Handle thread cancellation if needed.
39204         Namespace cleanup (use __tcgetattr, __getline).
39205         Use bool for Booleans.
39206         [USE_IN_LIBIO]: Handle wide streams.
39207         [!_LIBC]: Unconditionally do the fseek, since we don't know what
39208         stream might go where.
39209
39210         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
39211         doesn't have to include <stdio.h> before us.
39212         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
39213         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
39214         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
39215         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
39216         if not declared, so that we can use getpass.c code from libc without
39217         rewriting it.
39218         (flockfile, ftrylockfile, funlockfile): New macros.
39219
39220 2003-10-08  Paul Eggert  <eggert@twinsun.com>
39221
39222         * modules/getpass: Depend on stdbool.
39223
39224 2003-10-08  Paul Eggert  <eggert@twinsun.com>
39225
39226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
39227
39228 2003-10-07  Karl Berry  <karl@gnu.org>
39229
39230         * config/config.{guess,sub}: update from config.
39231
39232 2003-10-06  Jim Meyering  <jim@meyering.net>
39233             Bruno Haible  <bruno@clisp.org>
39234
39235         This lets translators provide better translations for the
39236         "Written by ..." part of --version output.
39237         * lib/version-etc.h: Include stdarg.h.
39238         (version_etc_copyright): Declare as readonly.
39239         (version_etc): Make this function variadic with a NULL-terminated list
39240         of author name strings.
39241         (version_etc_va): New declaration.
39242         * lib/version-etc.c: Include stdarg.h, stdlib.h.
39243         (version_etc_copyright): Declare as readonly.
39244         (version_etc_va): New function. Provide a different translatable string
39245         for each possible number of authors < 10. Abbreviate when there are 10
39246         authors or more.
39247         (version_etc): Make this function variadic. Call version_etc_va.
39248         Suggestion from Gary V. Vaughan.
39249
39250         * lib/long-options.h (parse_long_options): Change prototype: the
39251         authors string is moved to the end and becomes variadic.
39252         * lib/long-options.c: Include stdarg.h.
39253         (parse_long_options): Make this function variadic, too.
39254         Call version_etc_va, not version_etc.
39255
39256 2003-10-06  Bruno Haible  <bruno@clisp.org>
39257
39258         * modules/version-etc-2: Remove file.
39259         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
39260
39261 2003-10-06  Bruno Haible  <bruno@clisp.org>
39262
39263         * modules/fatal-signal: New file.
39264         * MODULES.html.sh (func_all_modules): Add fatal-signal.
39265
39266 2003-10-06  Bruno Haible  <bruno@clisp.org>
39267
39268         * m4/fatal-signal.m4: New file.
39269         * m4/signalblocking.m4: New file, from GNU gettext.
39270
39271 2003-10-06  Bruno Haible  <bruno@clisp.org>
39272
39273         * lib/version-etc-2.h: Remove file.
39274         * lib/version-etc-2.c: Remove file.
39275
39276 2003-10-06  Bruno Haible  <bruno@clisp.org>
39277
39278         * lib/fatal-signal.h: New file, from GNU gettext.
39279         * lib/fatal-signal.c: New file, from GNU gettext.
39280
39281 2003-10-05  Paul Eggert  <eggert@twinsun.com>
39282
39283         * README: Rework advice for preventing empty .o files.
39284         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
39285         not <sys/types.h>.
39286
39287 2003-10-04  Karl Berry  <karl@gnu.org>
39288
39289         * lib/argp*: update from libc.
39290
39291 2003-10-04  Karl Berry  <karl@gnu.org>
39292
39293         * config/config.{guess,sub}: update from config.
39294
39295 2003-10-02  Bruno Haible  <bruno@clisp.org>
39296
39297         * modules/lchown (Include): Add lchown.h.
39298         * modules/time_r (Include): Use "..." syntax.
39299         * modules/xgetdomainname (Include): Add xgetdomainname.h.
39300
39301 2003-10-01  Simon Josefsson  <jas@extundo.com>
39302
39303         * MODULES.html.sh (func_all_modules): Move gethostname from section
39304         'based on' to section 'lacking' POSIX:2001.
39305
39306 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
39307
39308         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
39309         to output mode on the same stream.
39310
39311 2003-09-29  Paul Eggert  <eggert@twinsun.com>
39312
39313         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
39314         Fix arg typo in previous patch.
39315
39316 2003-09-28  Jim Meyering  <jim@meyering.net>
39317
39318         * lib/error.c: Correct cpp indentation.
39319
39320 2003-09-27  Paul Eggert  <eggert@twinsun.com>
39321
39322         * modules/free: New file.
39323
39324 2003-09-27  Paul Eggert  <eggert@twinsun.com>
39325
39326         * m4/free.m4: New file.
39327
39328 2003-09-27  Paul Eggert  <eggert@twinsun.com>
39329
39330         * lib/minmax.h (MIN, MAX)
39331         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
39332         Omit the special code that used __typeof__, since we worry that
39333         it could be more trouble than it's worth.  See:
39334         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
39335         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
39336
39337         * lib/free.c: New file.
39338
39339 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
39340
39341         Trivial fixes to Makefile.am parts of module listings.
39342         * modules/strstr: Append strstr.h to lib_SOURCES.
39343         * modules/strcase: Likewise, for strcase.h.
39344
39345 2003-09-27  Karl Berry  <karl@gnu.org>
39346
39347         * config/mkinstalldirs: update from automake.
39348
39349 2003-09-26  Paul Eggert  <eggert@twinsun.com>
39350
39351         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
39352         (error_tail): Do not loop, reallocating temporary buffer, since
39353         the output cannot contain more wide characters than the input
39354         contains bytes, the size must be big enough already.  This avoids
39355         one potential size overflow calculation.  Check for size overflow
39356         when calculating temporary buffer size.  Free temporary buffer
39357         when done, if it was allocated with malloc; this plugs a memory
39358         leak.  Remove casts from void * to pointers, that are no longer
39359         needed now that we're assuming C89 or better.
39360
39361         Merge error changes from glibc.
39362
39363         * lib/error.c, error.h: Update copyright notice header to match glibc.
39364         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
39365         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
39366         Disable cancellation while printing error.
39367         * lib/error.h: Prepend __ to parameter names.
39368
39369 2003-09-26  Jim Meyering  <jim@meyering.net>
39370
39371         * lib/error.c (error_tail): Move some declarations
39372         into inner scope where the local variables are used.
39373
39374 2003-09-26  Bruno Haible  <bruno@clisp.org>
39375
39376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
39377         stpncpy().
39378         Don't define stpncpy through config.h; it's now done through stpncpy.h.
39379
39380 2003-09-26  Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/stpncpy.h (gnu_stpncpy): New declaration.
39383         (stpncpy): Define as alias for gnu_stpncpy.
39384         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
39385
39386 2003-09-25  Simon Josefsson  <jas@extundo.com>
39387
39388         * lib/xgetdomainname.h: New file.
39389         * lib/xgetdomainname.c: New file.
39390
39391 2003-09-25  Simon Josefsson  <jas@extundo.com>
39392             Bruno Haible  <bruno@clisp.org>
39393
39394         * modules/getdomainname: New file.
39395         * modules/xgetdomainname: New file.
39396         * MODULES.html.sh (func_all_modules): Add getdomainname,
39397         xgetdomainname.
39398
39399 2003-09-25  Simon Josefsson  <jas@extundo.com>
39400             Bruno Haible  <bruno@clisp.org>
39401
39402         * m4/getdomainname.m4: New file.
39403
39404 2003-09-25  Simon Josefsson  <jas@extundo.com>
39405             Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/getdomainname.h: New file.
39408         * lib/getdomainname.c: New file.
39409
39410 2003-09-25  Karl Berry  <karl@gnu.org>
39411
39412         * lib/argp-fmtstream.c, argp-help.c: update from libc.
39413
39414 2003-09-25  Karl Berry  <karl@gnu.org>
39415
39416         * config/install-sh: update from automake.
39417
39418 2003-09-25  Bruno Haible  <bruno@clisp.org>
39419
39420         * modules/version-etc-2: New file, from modules/version-etc with
39421         modifications.
39422         * MODULES.html.sh (func_all_modules): Add version-etc-2.
39423
39424 2003-09-25  Bruno Haible  <bruno@clisp.org>
39425
39426         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
39427         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
39428
39429 2003-09-24  Simon Josefsson  <jas@extundo.com>
39430
39431         * modules/xgethostname: Add xgethostname.h.
39432
39433 2003-09-24  Paul Eggert  <eggert@twinsun.com>
39434
39435         * lib/linebuffer.c (freebuffer): Don't free the argument, just
39436         the buffer associated with the argument.  Bug reported by
39437         Simon Josefsson.
39438
39439 2003-09-24  Paul Eggert  <eggert@twinsun.com>
39440
39441         * README: Document assumptions that 'int' is at least 32 bits
39442         wide, that integer arithmetic is 2's complement without overflow,
39443         that there are no holes in integer values, that adding sizes of
39444         two nonoverlapping objects can't overflow, and that all-bits-zero
39445         yields scalar zero.  Fix spelling and capitalization typos.
39446
39447 2003-09-19  Karl Berry  <karl@gnu.org>
39448
39449         * lib/argp.h: update from libc.
39450
39451 2003-09-17  Paul Eggert  <eggert@twinsun.com>
39452
39453         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
39454         to avoid spurious warnings like "AC_RUN_IFELSE was called before
39455         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
39456
39457 2003-09-17  Paul Eggert  <eggert@twinsun.com>
39458
39459         * gnulib-tool: Use "test -h", not "test -L", for portability
39460         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
39461         (tags_regexp): Remove, since \| doesn't conform to POSIX.
39462         (sed_extract_prog): Issue s commands one-by-one, rather than
39463         using \| in one s command.
39464
39465 2003-09-16  Paul Eggert  <eggert@twinsun.com>
39466
39467         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
39468         input error, instead of returning NULL the next time we are called
39469         (and therefore losing track of errno).
39470
39471 2003-09-16  Bruno Haible  <bruno@clisp.org>
39472
39473         * gnulib-tool (func_create_testdir): Warn about duplicated
39474         dependencies.
39475
39476 2003-09-15  Paul Eggert  <eggert@twinsun.com>
39477
39478         * modules/argmatch, modules/fatal, modules/obstack,
39479         modules/xalloc, modules/xgethostname: Sort dependencies by
39480         importance, not alphabetically.
39481
39482 2003-09-15  Paul Eggert  <eggert@twinsun.com>
39483
39484         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
39485         fails, so that the caller gets the proper errno.
39486
39487         * lib/readutmp.c (read_utmp): Likewise.
39488         Check for fstat error.  Close stream and free storage
39489         when failing.
39490
39491 2003-09-14  Karl Berry  <karl@gnu.org>
39492
39493         * config/srclist.txt (strdup.c): disable for c89 changes.
39494
39495 2003-09-14  Jim Meyering  <jim@meyering.net>
39496
39497         * lib/getloadavg.c: Correct cpp indentation.
39498         * lib/strdup.c: Likewise.
39499         * lib/vasnprintf.c: Likewise.
39500
39501 2003-09-14  Bruno Haible  <bruno@clisp.org>
39502
39503         * modules/fwriteerror: New file.
39504         * MODULES.html.sh (func_all_modules): Add fwriteerror.
39505
39506 2003-09-14  Bruno Haible  <bruno@clisp.org>
39507
39508         * lib/fwriteerror.h: New file.
39509         * lib/fwriteerror.c: New file.
39510
39511 2003-09-12  Paul Eggert  <eggert@twinsun.com>
39512
39513         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
39514         modules/xgethostname, modules/xalloc: Depend on exit.
39515
39516 2003-09-12  Paul Eggert  <eggert@twinsun.com>
39517
39518         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
39519
39520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
39521         and AC_MINIX, too, so that their extensions are available.
39522
39523         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
39524         This macro has been superseded by gl_BACKUPFILE.
39525
39526         More patches to assume C89 or better.
39527
39528         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
39529
39530         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
39531         unconditionally.
39532         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
39533         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
39534         Include <string.h>, <stdlib.h> unconditionally.
39535         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
39536         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
39537         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
39538         headers or for string.h.
39539         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
39540         or strtoul.
39541
39542         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
39543         headers.
39544         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
39545         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39546         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
39547         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
39548         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
39550         memcpy, memset.
39551         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
39552         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
39553         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
39554         strtol.
39555         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
39556         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
39557         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
39558         strtoul.
39559
39560 2003-09-12  Paul Eggert  <eggert@twinsun.com>
39561
39562         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
39563         * lib/obstack.c [!defined _LIBC]: Likewise.
39564         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
39565         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
39566         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
39567
39568         More changes to assume C89 or better.
39569
39570         * lib/error.c (error_tail): Assume vprintf.
39571
39572         * lib/argmatch.c (getenv): Remove decl.
39573         * lib/progreloc.c (get_full_program_name): Define via prototype.
39574         * lib/setenv.c (clearenv): Likewise.
39575         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
39576         needed.
39577         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
39578         (malloc, memcpy): Remove decls.
39579         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
39580         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
39581         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
39582         (memcpy): Remove macro.
39583         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
39584         (__P): Remove.  All uses removed.
39585         (PTR): Remove.  All uses changed to void *.
39586         (CHAR_BIT, NULL): Remove.
39587         (spaces, zeros, memset_space, memset_zero)
39588         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
39589         Remove.
39590         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
39591         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
39592         Define with prototype.
39593         Remove now-unnecessary prototype decl.
39594         (extra_args_spec): Assume ANSI C.  All uses changed.
39595         (extra_args_spec_iso): Remove.
39596         (my_strftime, emacs_strftimeu): Define via prototype.
39597         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
39598         unconditionally.
39599         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
39600         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
39601         (strtoul, strtol): Remove decls.
39602         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
39603         LONG_MAX): Remove.
39604         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
39605         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
39606         (LOCALE_PARAM_PROTO): New macro.
39607         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
39608         (INTERNAL (strtol), strtol): Define with a prototype.
39609         (PARAMS): Remove.  All uses removed.
39610         * lib/tempname.c: Include <string.h> unconditionally.
39611         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
39612         * lib/xgethostname.c (main): Define with a prototype.
39613         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
39614         Include <stdlib.h> unconditionally.
39615         (calloc, malloc, realloc, free): Remove decls.
39616         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
39617         Include <stdlib.h> unconditionally.  Sort include file names.
39618         (strtod): Remove.
39619         (xstrtod): Define with a prototype.
39620         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
39621         (strtol, strtoul): Remove decls.
39622
39623 2003-09-11  Paul Eggert  <eggert@twinsun.com>
39624
39625         More patches to assume C89 or better.
39626         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
39627         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
39628         string.h, memchr, STDC_HEADERS.
39629
39630 2003-09-11  Paul Eggert  <eggert@twinsun.com>
39631
39632         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
39633         Include <stdlib.h>, <string.h> unconditionally.
39634         Remove now-unnecessary cast to char *.
39635         * lib/strnlen.c: Include <string.h> unconditionally.
39636         * lib/yesno.c (yesno): Define with a prototype.
39637
39638 2003-09-11  Bruno Haible  <bruno@clisp.org>
39639
39640         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
39641
39642 2003-09-10  Jim Meyering  <jim@meyering.net>
39643
39644         * lib/error.c: Correct indentation of cpp directives.
39645
39646 2003-09-10  Bruno Haible  <bruno@clisp.org>
39647
39648         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
39649         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
39650         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
39651         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
39652         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
39653         <stdlib.h> and <string.h> checks.
39654         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
39655         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
39656
39657 2003-09-10  Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/strcspn.c: Include <string.h> unconditionally.
39660         * lib/strpbrk.c: Include <string.h> unconditionally.
39661         * lib/strstr.c: Include <string.h> unconditionally.
39662         * lib/unicodeio.c: Include <string.h> unconditionally.
39663         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
39664         * lib/unsetenv.c: Likewise.
39665         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
39666         * lib/yesno.c: Include <stdlib.h> unconditionally.
39667         (rpmatch): Add prototype.
39668
39669 2003-09-09  Paul Eggert  <eggert@twinsun.com>
39670
39671         More patches to assume C89 or better.
39672         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
39673         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
39674         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
39675         or for string.h.
39676         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
39677         stdlib.h.
39678         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
39679         C headers.
39680         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
39681         string.h.
39682         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
39683         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
39684         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
39685         or for string.h.
39686         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
39687         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
39688         C headers.
39689         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
39690         memcpy.
39691         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
39692         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
39693         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
39694         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
39695         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
39696         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
39697         string.h, free.
39698         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
39699         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
39700         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
39701         C headers, or for string.h.
39702         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
39703         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
39704         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
39705         headers, memory.h, stdlib.h, string.h, strings.h.
39706         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
39707         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
39708         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
39709         strchr.
39710         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
39711         headers, memory.h, string.h.
39712         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
39713         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
39714         free.
39715         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
39716         headers.
39717         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
39718         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
39719         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
39720         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
39721         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
39722
39723 2003-09-09  Paul Eggert  <eggert@twinsun.com>
39724
39725         More K&R removal.
39726
39727         * lib/acosl.c (main): Use a prototype.
39728         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
39729         tanl.c: Likewise.
39730
39731         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
39732
39733         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
39734         (getopt, etopt_long, getopt_long_only, _getopt_internal)
39735         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
39736         with a prototype.
39737         * lib/getopt.c (const): Remove macro.
39738         Include <string.h> unconditionally.
39739         (my_index): Remove; all uses changed to strchr.
39740         (strlen): Remove decl.
39741         (exchange): Remove forward decl; no longer needed.
39742         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
39743         Define with prototype.
39744         * lib/getopt1.c (const): Remove macro.
39745         (getopt_long, getopt_long_only, main): Define with prototype.
39746
39747         * lib/getugroups.c: Include <string.h> unconditionally.
39748
39749         * lib/getusershell.c: Include <stdlib.h> unconditionally.
39750         (getusershell, setusershell, endusershell, readname, main):
39751         Define with prototypes.
39752
39753         * lib/group-member.c: Include group-member.h first.
39754         Include <stdlib.h> unconditionally.
39755
39756         * lib/hard-locale.c: Include hard-locale.h first.
39757         Include <stdlib.h>, <string.h> unconditionally.
39758
39759         * lib/hash.c (free, malloc): Remove decls.
39760         Include <stdlib.h> unconditionally.
39761
39762         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
39763         (getenv): Do not declare.
39764
39765         * lib/idcache.c: Include <string.h> unconditionally.
39766
39767         * lib/long-options.c: Include long-options.h first, to test interface.
39768         Include <stdlib.h> unconditionally.
39769
39770         * lib/makepath.c: Include makepath.h first, to test interface.
39771         Include <stdlib.h> and <string.h> unconditionally.
39772
39773         * lib/linebuffer.c: Include <stdlib.h>.
39774         (free): Remove decl.
39775
39776         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
39777         stddef.h. rpl_malloc returns void *, not char *.
39778         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
39779         prototype.
39780
39781         * lib/md5.h: Include <limits.h> unconditionally.
39782         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
39783         (__P): Remove; all uses removed.
39784         * lib/md5.c: Include "md5.h" first.
39785         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
39786         md5_buffer, md5_process_bytes, md5_process_block):
39787         Define with prototypes.
39788         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
39789         * lib/sha.c: Include "sha.h" first.
39790         Include <stdlib.h>, <string.h> unconditionally.
39791
39792         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
39793         * lib/memcmp.c (__ptr_t): Likewise.
39794         * lib/memrchr.c (__ptr_t): Likewise.
39795         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
39796         Include <string.h> unconditionally.
39797         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
39798         * lib/memchr.c: Include <stdlib.h> unconditionally.
39799         * lib/memchr.c (LONG_MAX): Remove.
39800         * lib/memrchr.c (LONG_MAX): Likewise.
39801         * lib/memchr.c (__memchr): Define via a prototype.
39802         * lib/memrchr.c (__memrchr): Likewise.
39803         * lib/memcmp.c (__P): Remove, and remove all uses.
39804         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
39805         Remove forward decls; no longer needed.
39806         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
39807         Use types required by C89 in prototype.
39808
39809         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
39810         * lib/savedir.c: Likewise.
39811         * lib/mkdir.c (free): Remove decl.
39812         * lib/rmdir.c (rmdir): Define with a prototype.
39813         * lib/savedir.c: Include savedir.h first, to test interface.
39814
39815         * lib/mktime.c (STDC_HEADERS): Remove.
39816         Include <stdlib.h>, <string.h> unconditionally.
39817
39818         * lib/modechange.c: Include <stdlib.h> unconditionally.
39819         (malloc): Remove decl.
39820
39821         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
39822         (free): Remove decl.
39823
39824         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
39825         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
39826         (This type really should be intptr_t, but that's a C99ism.)
39827         (_obstack_memcpy): Remove: all uses changed to memcpy.
39828         Include <string.h> unconditionally.
39829         (struct obstack): Assume __STDC__ for types of members
39830         chunkfun, freefun, extra_arg.
39831         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
39832         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
39833         obstack_begin, obstack_specify_allocation,
39834         obstack_specify_allocation_with_arg, obstack_chunkfun,
39835         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
39836         Remove unprototyped decls and the macros that use them.
39837         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
39838         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
39839         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
39840         (defined __STDC__ && __STDC__)]:
39841         Remove nonprototyped code.
39842         Include <stdlib.h> unconditionally.
39843         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
39844         _obstack_allocated_p, _obstack_free, obstack_free,
39845         _obstack_memory_used, print_and_abort):
39846         Define using prototypes.
39847         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
39848         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
39849         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
39850         obstack_next_free, obstack_object_size, obstack_room) [0]:
39851         Remove unused, unprototyped code.
39852
39853         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
39854
39855         * lib/physmem.c (physmem_total, physmem_available, main): Define
39856         with prototypes.
39857
39858         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
39859         (main): Define with a prototype.
39860
39861         * lib/posixver.c (getenv): Remove decl.
39862
39863         * lib/putenv.c (malloc): Returns void *, not char *.
39864         Include <string.h> unconditionally.
39865         (strchr, memcpy, NULL): Do not define.
39866
39867         * lib/readtokens.c: Include readtokens.h first, to test interface.
39868         Include <stdlib.h>, <string.h> unconditionally.
39869         (init_tokenbuffer): Define with a prototype.
39870
39871         * lib/regex.c (PARAMS): Remove.  All uses removed.
39872         All uses of _RE_ARGS removed, too.
39873         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39874         unconditionally.
39875         (bzero): Assume memset exists.
39876         (memcmp, memcpy, NULL): Remove.
39877         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
39878         char, or assignments to local vars of type signed char.
39879         (init_syntax_once, PREFIX(extract_number_and_incr),
39880         PREFIX(print_partial_compiled_pattern),
39881         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
39882         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
39883         PREFIX(regex_grow_registers), PREFIX(regex_compile),
39884         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
39885         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
39886         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
39887         wcs_compile_range, byte_compile_range, truncate_wchar,
39888         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
39889         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
39890         count_mbs_length, wcs_re_match_2_internal,
39891         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
39892         PREFIX(alt_match_null_string_p),
39893         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
39894         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
39895         regfree, PREFIX(extract_number)): Define with prototype.  Remove
39896         now-unnecessary declaration, if any.
39897         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
39898         regcomp, regexec):
39899         Remove now-unnecessary casts among pointer types.
39900         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
39901
39902         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
39903         (free): Remove decl.
39904
39905         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
39906
39907         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
39908         (free): Remove decl.
39909
39910         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
39911         * lib/xgetcwd.c: Likewise.
39912
39913         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
39914         (free): Remove decl.
39915
39916         * lib/strchrnul.c (strchrnul): Define with a prototype.
39917         Fix bug: c_in was not converted to char before searching.
39918
39919         The following changes are not K&R related:
39920
39921         * lib/group-member.h: Include <sys/types.h>, so that this file is
39922         self-contained.
39923         * lib/makepath.h: Likewise.
39924
39925         * lib/getusershell.c (readname, default_index, line_size, readname):
39926         Use size_t, not int, for sizes.
39927         (readname): If the size overflows, report an error instead of
39928         looping forever.
39929
39930 2003-09-09  Paul Eggert  <eggert@twinsun.com>
39931
39932         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
39933         libc.
39934
39935 2003-09-09  Paul Eggert  <eggert@twinsun.com>
39936
39937         * README: New section: portability guidelines.
39938
39939 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
39940
39941         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
39942         C89 spec.
39943
39944 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
39945
39946         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
39947
39948 2003-09-08  Paul Eggert  <eggert@twinsun.com>
39949
39950         Assume C89 or better; remove K&R cruft.
39951         A few of these changes were first proposed by Derek Robert Price
39952         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
39953
39954         * lib/addext.c: Include <string.h> unconditionally.
39955         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
39956         Don't declare getenv or malloc.
39957
39958         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
39959         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
39960         (NULL): Remove.
39961         (find_stack_direction, alloca): Use prototypes.
39962
39963         * lib/atexit.c (atexit): Define using a prototype.
39964
39965         * lib/basename.c, dirname.c, stripslash.c:
39966         Include <string.h> unconditionally.
39967
39968         * lib/bcopy.c: Include <stddef.h>.
39969         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
39970
39971         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
39972
39973         * lib/error.h (error, error_at_line, error_print_progname)
39974         [! (defined (__STDC__) && __STDC__)]: Remove decls.
39975         * lib/error.c: Include error.h first, to check interface.
39976         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
39977         (VA_START): Remove; all uses changeed to va_start.
39978         (exit, strerror): Remove decls.
39979         (error_print_progname): Prototype uncondionally.
39980         Don't include <errno.h>; no longer needed.
39981         (private_strerror): Remove.
39982         (error_tail): Always define.
39983         (error, error_at_line): Assume C89 or better; always use prototypes.
39984         * lib/fatal.c: Include "fatal.h" first, to test interface.
39985         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
39986         (VA_START): Remove; all uses changed to va_start.
39987         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
39988         this case.
39989         (exit): Remove decl.
39990         (fatal): Prototype unconditionally.  Assume va_start works.
39991         Abort at end, to pacify gcc.
39992
39993         * lib/euidaccess.c (main): Define with a prototype.
39994
39995         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
39996
39997         * lib/exitfail.c: Include <stdlib.h> unconditionally.
39998
39999         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
40000         prototypes.
40001         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
40002         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
40003         (getenv): Remove decl.
40004         (fnmatch): Define using a prototype.
40005         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
40006         (FCT): Define using a prototype.
40007
40008         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
40009
40010         * lib/gethostname.c: Include <stddef.h>.
40011         (gethostname): Define with prototype.  Length is size_t, not int.
40012
40013 2003-09-08  Paul Eggert  <eggert@twinsun.com>
40014
40015         Assume C89 or better; remove K&R cruft.
40016         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
40017         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
40018         string.h, getenv, malloc.
40019         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
40020         headers.
40021         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
40022         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
40023         do not check for strerror.
40024         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
40025         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
40026         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
40027         do not check for doprnt or vprintf.
40028         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
40029         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
40030
40031 2003-09-08  Paul Eggert  <eggert@twinsun.com>
40032
40033         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
40034         getversion.c should have been removed then, but was accidentally
40035         preserved.
40036
40037         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
40038         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
40039
40040 2003-09-08  Karl Berry  <karl@gnu.org>
40041
40042         * config/config.sub, config.guess, srclistvars.sh: update from savannah
40043                 config, forget about prep.
40044
40045         * config/depcomp, missing: update from automake.
40046
40047 2003-09-07  Paul Eggert  <eggert@twinsun.com>
40048
40049         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
40050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
40051
40052 2003-09-07  Paul Eggert  <eggert@twinsun.com>
40053
40054         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
40055         copy_tm_result.  Bug reported by Simon Josefsson in
40056         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
40057
40058 2003-09-06  Paul Eggert  <eggert@twinsun.com>
40059
40060         * m4/time_r.m4: New file.
40061         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
40062         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
40063         is. Check for timegm declaration.
40064         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
40065         Do not check for gmtime_r.
40066         Replace mktime if __mktime_internal does not exist and if mktime
40067         hasn't been replaced already.
40068
40069 2003-09-06  Paul Eggert  <eggert@twinsun.com>
40070
40071         * lib/time_r.c, lib/time_r.h: New files.
40072
40073         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
40074         __localtime_r.
40075         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
40076         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
40077
40078         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
40079         __gmtime_r.
40080         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
40081         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
40082         Include <time_r.h>.
40083
40084         * lib/timegm.c: Switch to glibc implementation, with the following
40085         changes:
40086         [defined HAVE_CONFIG_H]: Include <config.h>.
40087         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
40088         (__mktime_internal) [!defined _LIBC]: New decl.
40089         (__gmtime_r) [!defined _LIBC]: New macro and function.
40090         (timegm): Use a prototype, since gnulib assumes C89.
40091         Do not bother declaring tmp to be const, as it's not really usefu.
40092         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
40093         (timegm): Declare only if HAVE_DECL_TIMEGM.
40094
40095 2003-09-06  Paul Eggert  <eggert@twinsun.com>
40096
40097         * MODULES.html.sh (func_all_modules): Add time_r.
40098         * modules/time_r: New file.
40099         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
40100         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
40101
40102 2003-09-03  Paul Eggert  <eggert@twinsun.com>
40103
40104         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
40105         Bug reported by Lute Kamstra in
40106         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
40107
40108         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
40109         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
40110         course with correspondingly smaller numbers for tomorrow and
40111         yesterday.  From Tadayoshi Funaba.  Originally installed into
40112         sh-utils on 1999-08-07, but the patch got lost (I guess during the
40113         coreutils merge?).
40114
40115 2003-08-31  Simon Josefsson  <jas@extundo.com>
40116
40117         * modules/timegm: New file.
40118         * MODULES.html.sh (func_all_modules): Add timegm.
40119
40120 2003-08-31  Simon Josefsson  <jas@extundo.com>
40121
40122         * m4/timegm.m4: New file.
40123
40124 2003-08-31  Simon Josefsson  <jas@extundo.com>
40125
40126         * lib/timegm.h: New file.
40127         * lib/timegm.c: New file.  Based on
40128         wget-1.8.2/src/http.c:mktime_from_utc.
40129
40130 2003-08-31  Karl Berry  <karl@gnu.org>
40131
40132         * lib/argp.h: update from libc.
40133
40134 2003-08-28  Bruno Haible  <bruno@clisp.org>
40135
40136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
40137         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
40138         followed by '#define fnmatch fnmatch_posix' gives an error.
40139
40140 2003-08-28  Bruno Haible  <bruno@clisp.org>
40141
40142         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
40143         warning on QNX, which defines O_BINARY to 000000.
40144
40145 2003-08-27  Jim Meyering  <jim@meyering.net>
40146
40147         * m4/mkstemp.m4: Require that the system mkstemp be able to create
40148         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
40149         would fail after 32.  Reported by Danny Levinson.  Details here:
40150         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
40151
40152 2003-08-24  Bruno Haible  <bruno@clisp.org>
40153
40154         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
40155         MSVC7 <stdio.h> is included later.
40156
40157 2003-08-22  Simon Josefsson  <jas@extundo.com>
40158
40159         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
40160
40161 2003-08-20  Karl Berry  <karl@gnu.org>
40162
40163         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
40164
40165 2003-08-20  Bruno Haible  <bruno@clisp.org>
40166
40167         * modules/progname: New file.
40168         * MODULES.html.sh (func_all_modules): Add progname.
40169
40170 2003-08-20  Bruno Haible  <bruno@clisp.org>
40171
40172         * lib/progname.h: New file, from GNU gettext.
40173         * lib/progname.c: New file, from GNU gettext.
40174         * lib/progreloc.c: New file, from GNU gettext.
40175
40176 2003-08-19  Jim Meyering  <jim@meyering.net>
40177
40178         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
40179         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
40180
40181 2003-08-19  Bruno Haible  <bruno@clisp.org>
40182
40183         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
40184         more.
40185
40186 2003-08-19  Bruno Haible  <bruno@clisp.org>
40187
40188         * lib/xstrdup.c: Assume <string.h> exists.
40189
40190 2003-08-18  Paul Eggert  <eggert@twinsun.com>
40191
40192         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
40193         in makefile rules.
40194
40195 2003-08-18  Jim Meyering  <jim@meyering.net>
40196
40197         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
40198         * m4/lib-ld.m4: Likewise.
40199
40200 2003-08-18  Jim Meyering  <jim@meyering.net>
40201
40202         * lib/setenv.h: Indent nested cpp directive.
40203         * lib/vasnprintf.c: Remove trailing blanks.
40204
40205 2003-08-17  Simon Josefsson  <jas@extundo.com>
40206
40207         * modules/xstrndup: New file.
40208         * MODULES.html.sh (func_all_modules): Add xstrndup.
40209
40210 2003-08-17  Simon Josefsson  <jas@extundo.com>
40211
40212         * modules/argp: Fix autoconf macro name. Add more dependencies.
40213
40214 2003-08-17  Simon Josefsson  <jas@extundo.com>
40215
40216         * m4/xstrndup.m4: New file.
40217
40218 2003-08-17  Simon Josefsson  <jas@extundo.com>
40219
40220         * m4/argp.m4: New file.
40221
40222 2003-08-17  Simon Josefsson  <jas@extundo.com>
40223             Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/xstrndup.h: New file.
40226         * lib/xstrndup.c: New file.
40227
40228 2003-08-17  Bruno Haible  <bruno@clisp.org>
40229
40230         * modules/strndup (Files, Include): Add lib/strndup.h.
40231
40232 2003-08-17  Bruno Haible  <bruno@clisp.org>
40233
40234         * modules/euidaccess (Files): Add lib/euidaccess.h.
40235
40236 2003-08-17  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/strndup.h: New file.
40239
40240 2003-08-17  Bruno Haible  <bruno@clisp.org>
40241
40242         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
40243         like AC_GNU_SOURCE.
40244         * modules/extensions (configure.ac): Comment out the invocation of
40245         gl_USE_SYSTEM_EXTENSIONS.
40246
40247 2003-08-16  Paul Eggert  <eggert@twinsun.com>
40248
40249         Merges from coreutils, etc.
40250         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
40251         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
40252         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
40253         fixing a typo.
40254         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
40255         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
40256
40257 2003-08-16  Paul Eggert  <eggert@twinsun.com>
40258
40259         Document merge from coreutils.
40260         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
40261         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
40262         * modules/utime: Add m4/utimes-null.m4.
40263
40264 2003-08-16  Paul Eggert  <eggert@twinsun.com>
40265
40266         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
40267         space, undoing this 2003-08-12 change:
40268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
40269
40270 2003-08-16  Paul Eggert  <eggert@twinsun.com>
40271
40272         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
40273         strtoul.c from libc, undoing this 2003-08-12 change:
40274         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
40275
40276 2003-08-16  Jim Meyering  <jim@meyering.net>
40277
40278         Merges from coreutils.
40279         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
40280         prefix.  Adjust cache variables similarly.  Create 500 rather than
40281         just 300 files, to exercise bug on Darwin6.5, too.
40282         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
40283         $missing_dir.
40284         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
40285         AM_SYS_POSIX_TERMIOS.
40286         Reported by mkc@mathdogs.com.
40287         Also change use of $am_cv_sys_posix_termios
40288         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
40289         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
40290         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
40291         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
40292         in /proc/mounts until it finds one with matching device number.  This
40293         is unnecessary when the FILE argument *is* a mount point.  No stat call
40294         is necessary in that case.  So, disable the statvfs-testing code on
40295         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
40296         as RedHat bug# 84846.
40297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
40298         to 1MB, so as not to render systems with no stack size limit (e.g.,
40299         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
40300         Include <unistd.h>.  On some systems,
40301         it is required for the definition of _SC_PAGESIZE.
40302
40303 2003-08-16  Jim Meyering  <jim@meyering.net>
40304
40305         Merge from coreutils.
40306         * lib/xstrtoimax.c: #else #if -> #elif.
40307         * lib/xstrtoumax.c: Likewise.
40308
40309 2003-08-16  Jim Meyering  <jim@meyering.net>
40310
40311         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
40312         * m4/utimes.m4: Removed.
40313         * m4/utimes-null.m4: Renamed from utimes.m4.
40314
40315         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
40316         to 1MB, so as not to render systems with no stack size limit (e.g.,
40317         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
40318         Include <unistd.h>.  On some systems,
40319         it is required for the definition of _SC_PAGESIZE.
40320
40321 2003-08-16  Jim Meyering  <jim@meyering.net>
40322         and Paul Eggert  <eggert@cs.ucla.edu>
40323
40324         Merges from coreutils, etc.
40325
40326         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
40327         using the latest version from cvs.  This avoids problems with #line
40328         directives using a vendor (Sun) compiler.
40329         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
40330         Don't set GETGROUPS_LIB here; now it's
40331         done via getgroups.m4's wrapper function.
40332         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
40333         rather than just in sh-util/configure.in, so that the
40334         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
40335         same.
40336         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
40337         AC_FUNC_GETLOADAVG where to find getloadavg.c.
40338         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
40339         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
40340         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
40341         Remove code that is now done by the newly-required macros.
40342         Append $(EXEEXT) to DF_PROG.
40343         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
40344         Do not invoke or require the following here,
40345         since prereq.m4 or some gnulib .m4 now does this for us:
40346         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
40347         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
40348         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
40349         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
40350         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
40351         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
40352         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
40353         AC_FUNC_OBSTACK.
40354         Do not replace the following functions, as this is now the job
40355         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
40356         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
40357         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
40358         atexit getpass, strdup, getpagesize.
40359         Replace 'raise'.
40360         Do not check for the following functions, as this is now the job
40361         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
40362         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
40363         setregid.
40364         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
40365         Check for sys/sysctl.h.
40366         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
40367         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
40368         of checking for ssize_t ourselves.
40369
40370         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
40371         Require every macro that gnulib/modules/* suggests for us.
40372         (jm_PREREQ_ADDEXT): New macro.
40373         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
40374         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
40375
40376         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
40377         (gl_PHYSMEM): Use it.
40378         Also check for `table' function.
40379         Check for new headers and functions.
40380         Add check for sys/sysmp.h.
40381         With suggestions from Kaveh Ghazi.
40382         Ignore headers that are present but cannot be compiled.  This
40383         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
40384         C 5.4.
40385
40386 2003-08-15  Paul Eggert  <eggert@twinsun.com>
40387
40388         Document merge from coreutils.
40389         * modules/userspec: Depend on posixver.
40390         * modules/strftime: Depend on tzset.
40391
40392 2003-08-15  Paul Eggert  <eggert@twinsun.com>
40393
40394         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
40395         rather than tab, after '#' in shell-script copyright notices.
40396         Suggested by Bruno Haible.
40397
40398 2003-08-15  Paul Eggert  <eggert@twinsun.com>
40399
40400         * config/srclist-update: Use three spaces, rather than tab, after '#'
40401         in shell-script copyright notices.  Suggested by Bruno Haible.
40402         Remove unnecessary parenthesization in regular expression.
40403
40404 2003-08-15  Jim Meyering  <jim@meyering.net>
40405
40406         Merge from coreutils.
40407         * lib/xgethostname.c: Include <stdlib.h>.
40408         (xghostname): Don't exit for anything other than memory-related
40409         failure; just return NULL.
40410         * lib/userspec.c: Include "posixver.h".
40411         (parse_user_spec): Accept `.' as a separator only
40412         in pre-POSIX-200112 mode.
40413         * lib/strtoimax.c: Use #elif rather than #else #if.
40414         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
40415         Remove function, now that we can rely on a working tzset function.
40416         [!_LIBC]: Ensure that the required autoconf test has been run.
40417         [!defined _NL_CURRENT && HAVE_STRFTIME]:
40418         Use underlying_strftime for %r.
40419         * lib/sha.c: Merge in some clean-up and optimization changes from
40420         glibc.
40421         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
40422         Ensure that it is a multiple of 64.
40423         Rearrange loop exit tests so as to avoid performing an
40424         additional fread after encountering an error or EOF.
40425         * lib/realloc.c: Update copyright date.
40426
40427 2003-08-15  Jim Meyering  <jim@meyering.net>
40428         and Paul Eggert  <eggert@twinsun.com>
40429
40430         Merge from coreutils.
40431         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
40432         member but strut utmpx does not.  Needed for AIX 4.3.3.
40433         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
40434
40435 2003-08-15  Jim Meyering  <jim@meyering.net>
40436         and Paul Eggert  <eggert@cs.ucla.edu>
40437
40438         Merges from coreutils, etc.
40439         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
40440         Require gl_FUNC_TZSET_CLOBBER.
40441         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
40442         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
40443         members.
40444
40445 2003-08-14  Paul Eggert  <eggert@twinsun.com>
40446
40447         Help the merge from coreutils.
40448         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
40449         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
40450         * m4/tzset.m4: Use it too.
40451
40452 2003-08-14  Paul Eggert  <eggert@twinsun.com>
40453
40454         * modules/tzset: New file.
40455
40456 2003-08-14  Jim Meyering  <jim@meyering.net>
40457
40458         Merges from coreutils.
40459         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
40460         variable names, rather than @FNMATCH_H@.
40461         * modules/alloca: Likewise for $(ALLOCA_H).
40462
40463         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
40464         the three copies of the literal target, `fnmatch.h'.
40465         * modules/alloca (alloca.h): Likewise.
40466
40467 2003-08-14  Jim Meyering  <jim@meyering.net>
40468
40469         Merge from coreutils.
40470         * m4/tzset.m4: New file.
40471         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
40472         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
40473         otherwise, AIX 5.1 systems would end up using the latter.
40474         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
40475         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
40476         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
40477         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
40478
40479 2003-08-14  Jim Meyering  <jim@meyering.net>
40480
40481         Merge from coreutils.
40482         * lib/obstack.h: Whitespace changes.
40483         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
40484         and xcalloc return values.
40485         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
40486         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
40487         hang on OSF/1 5.1 for DIR on both local and remote file systems.
40488         Reported by (and fix confirmed by) Nelson H. F. Beebe.
40489         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
40490         error from mntctl.
40491         Use mntctl's return value to drive the entry-processing loop, since
40492         we can't rely on the value of the vmt_length member in the last
40493         entry.  On some systems doing so could result in exhausting
40494         virtual memory.  Based in part on a patch from Mike Jetzer.
40495
40496 2003-08-14  Jim Meyering  <jim@meyering.net>
40497         and Paul Eggert  <eggert@twinsun.com>
40498
40499         Merges from coreutils, plus other fixes.
40500         * lib/physmem.c: Merge in portability changes from gcc/libiberty
40501         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
40502         for credits and details.  Thanks to Kaveh Ghazi for helping
40503         to keep these files in sync.
40504         (ARRAY_SIZE): Define it.
40505         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
40506         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
40507         (memcasecmp): Don't assume size_t fits in unsigned int.
40508         Remove casts and duplicate code.
40509         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
40510         (memcpy): Remove definition.
40511         Merge in some clean-up and optimization changes from glibc.
40512         [BLOCKSIZE]: Move definition to top of file.
40513         Ensure that it is a multiple of 64.
40514         Rearrange loop exit tests so as to avoid performing an
40515         additional fread after encountering an error or EOF.
40516         * lib/md5.h (md5_uintptr): Define.
40517         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
40518         return to the initial working directory.  Preserve errno
40519         for caller.
40520         * lib/idcache.c: Include "xalloc.h".
40521         (xmalloc, xrealloc): Remove decls.
40522         (getuser): Remove casts no longer required in C89.
40523         * lib/human.c: Include stdio.h, for sprintf.
40524         * lib/group-member.c: Include "xalloc.h".
40525         (xmalloc, xrealloc): Remove decls.
40526         (get_group_info): Remove casts no longer required in C89.
40527         * lib/getusershell.c (readname): Remove casts no longer required in
40528         C89.
40529         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
40530         * lib/getline.c: Whitespace fix, from coreutils.
40531
40532 2003-08-13  Paul Eggert  <eggert@twinsun.com>
40533
40534         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
40535         Check for isascii.
40536
40537         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
40538         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
40539         Undo previous (whitespace-only) change.
40540
40541 2003-08-13  Paul Eggert  <eggert@twinsun.com>
40542
40543         * lib/exclude.c: Include <ctype.h>
40544         (IN_CTYPE_DOMAIN): New macro.
40545         (is_space): New fn.
40546         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
40547         and empty lines.
40548
40549         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
40550         Undo previous (whitespace-only) change.
40551
40552 2003-08-13  Paul Eggert  <eggert@twinsun.com>
40553
40554         * config/srclist-update: Change update back to the old behavior,
40555         leaving whitespace alone.  Use one 'sed' command rather than a
40556         pipeline.
40557         (fixlicense): Now a variable, not a function.
40558         (remove_trailing_blanks): Remove.
40559         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
40560         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
40561         Undo previous (whitespace-only) change.
40562
40563 2003-08-12  Paul Eggert  <eggert@twinsun.com>
40564
40565         Merge from coreutils.
40566         * modules/euidaccess: Add lib_SOURCES, include for new
40567         file euidaccess.h
40568
40569 2003-08-12  Paul Eggert  <eggert@twinsun.com>
40570
40571         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
40572         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
40573         Normalize leading white space and remove trailing white space.
40574
40575         Merge from coreutils
40576         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
40577
40578         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
40579         0.12.1.  These files are now being upgraded automatically by
40580         ../config/srclist-update.
40581
40582 2003-08-12  Paul Eggert  <eggert@twinsun.com>
40583
40584         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
40585         Normalize leading white space and remove trailing white space.
40586         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
40587         notice, as per ../config/srclist-update.
40588
40589         Merge from coreutils.
40590         * lib/euidaccess.h: New file.
40591         * lib/euidaccess.c: Include it.
40592         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
40593         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
40594         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
40595
40596 2003-08-12  Paul Eggert  <eggert@twinsun.com>
40597
40598         * config/srclist-update: Add copyright notice.
40599         (remove_id_lines, remove_trailing_blanks): New constants.
40600         (fixfile): Use them to normalize spacing a bit in copied files.
40601         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
40602         Normalize leading white space and remove trailing white space.
40603
40604         * config/texinfo.tex: Sync with texinfo.
40605
40606         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
40607         strtoul.c from libc, to merge coreutils whitespace changes.
40608
40609         * config/srclist.txt: Get the following m4 files from gettext:
40610         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
40611         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
40612         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
40613         wint_t.m4.
40614
40615 2003-08-12  Karl Berry  <karl@gnu.org>
40616
40617         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
40618         been made.
40619
40620 2003-08-11  Paul Eggert  <eggert@twinsun.com>
40621
40622         * modules/gnu-source, m4/gnu-source.m4:
40623         Remove; we're assuming Autoconf 2.54 or later now.
40624         Suggested by Bruno Haible.
40625         * MODULES.html.sh (func_all_modules): Remove gnu-source.
40626
40627 2003-08-11  Bruno Haible  <bruno@clisp.org>
40628
40629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
40630
40631 2003-08-11  Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
40634         (vasnprintf): Use it instead of wcslen.
40635
40636 2003-08-11  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
40639         value to ensure that _Bool promotes to int. Use #define for _Bool when
40640         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
40641
40642 2003-08-10  Karl Berry  <karl@gnu.org>
40643
40644         * lib/regex.h: update from libc (whitespace fix).
40645
40646 2003-08-09  Paul Eggert  <eggert@twinsun.com>
40647
40648         Merge some files from coreutils.  These changes were
40649         originally made by Jim Meyering.
40650         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
40651         many older Unixes require this.
40652         * lib/alloca.c (alloca): Remove cast to argument of free;
40653         no longer needed in C89.
40654         * lib/alloca_.h, regex.h: Fix white space to match
40655         what GNU indent does.
40656
40657 2003-08-09  Paul Eggert  <eggert@twinsun.com>
40658
40659         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
40660         apparently Emacs's Unicode mode got confused before my 2003-08-05
40661         checkin.
40662
40663 2003-08-08  Paul Eggert  <eggert@twinsun.com>
40664
40665         * m4/extensions.m4: New file.
40666         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
40667         Require gl_USE_SYSTEM_EXTENSIONS.
40668         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
40669         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
40670
40671 2003-08-08  Paul Eggert  <eggert@twinsun.com>
40672
40673         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
40674         * modules/extensions, modules/gnu-source: New files.
40675         * modules/timespec, modules/unlocked-io: Depend on extensions.
40676
40677 2003-08-07  Paul Eggert  <eggert@twinsun.com>
40678
40679         * modules/restrict: New file.
40680         * MODULES.html.sh (func_all_modules): Add restrict.
40681         * modules/regex: Depend on restrict.
40682
40683 2003-08-07  Paul Eggert  <eggert@twinsun.com>
40684
40685         * m4/restrict.m4: New file.
40686         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
40687
40688 2003-08-07  Bruno Haible  <bruno@clisp.org>
40689
40690         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
40691         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
40692
40693 2003-08-07  Bruno Haible  <bruno@clisp.org>
40694
40695         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
40696         makes the module 'getndelim2' compatible with the module 'getline'.
40697
40698 2003-08-05  Paul Eggert  <eggert@twinsun.com>
40699
40700         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
40701         byte with "\201" to avoid glitches when editing that source file
40702         with multi-gnome-terminal.
40703
40704 2003-08-05  Paul Eggert  <eggert@twinsun.com>
40705
40706         * lib/bumpalloc.h: Remove.
40707
40708 2003-08-05  Paul Eggert  <eggert@twinsun.com>
40709
40710         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
40711         * modules/bumpalloc: Remove.
40712
40713 2003-08-04  Paul Eggert  <eggert@twinsun.com>
40714
40715         * lib/getloadavg.c: Change copyright notice and spacing to conform to
40716         GNU coding style.
40717
40718         Merge from coreutils.
40719         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
40720         1. From glibc.
40721         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
40722         from Karl Berry, implemented by Jim Meyering.
40723         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
40724         from Dmitry V. Levin.
40725         Remove anachronistic cast of xrealloc.
40726         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
40727         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
40728         type. Otherwise, it wouldn't compile with at least /bin/cc on
40729         ymp-cray-unicos9.0.2.X.
40730         Combine two mostly-identical uses of alloca into one.
40731         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
40732
40733 2003-08-04  Dave Love  <d.love@dl.ac.uk>
40734
40735         [From Emacs.]
40736
40737         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
40738         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
40739         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
40740         obsolete NLIST_NAME_UNION.
40741         [__GNU__]: Undef BSD and FSCALE.
40742         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
40743
40744 2003-08-03  Paul Eggert  <eggert@twinsun.com>
40745
40746         * lib/stdbool_.h (_Bool): Make it signed char, instead of
40747         an enum type, so that it's guaranteed to promote to int.  See:
40748         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
40749
40750 2003-08-03  Karl Berry  <karl@gnu.org>
40751
40752         * config/depcomp: update from automake.
40753
40754 2003-07-31  Paul Eggert  <eggert@twinsun.com>
40755
40756         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
40757         (strerror): Don't assume that a printable int fits in 14 bytes.
40758
40759 2003-07-31  Bruno Haible  <bruno@clisp.org>
40760
40761         * modules/getpass-gnu: New file.
40762         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
40763
40764 2003-07-31  Bruno Haible  <bruno@clisp.org>
40765
40766         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
40767
40768 2003-07-24  Karl Berry  <karl@gnu.org>
40769
40770         * config/missing: update from automake.
40771
40772 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
40773             Bruno Haible  <bruno@clisp.org>
40774
40775         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
40776         * lib/getline.c (getline, getdelim): Likewise.
40777         Remove _GNU_SOURCE define; now it's defined in config.h through
40778         m4/getline.m4.
40779
40780 2003-07-23  Karl Berry  <karl@gnu.org>
40781
40782         * config/config.sub: update from prep.
40783
40784 2003-07-22  Paul Eggert  <eggert@twinsun.com>
40785
40786         * modules/xalloc (Depends-on): Add exitfail.
40787         * modules/xmemcoll: Likewise.
40788
40789 2003-07-22  Paul Eggert  <eggert@twinsun.com>
40790
40791         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
40792         over-parenthesization in macros.
40793
40794         Sync with coreutils.
40795
40796         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
40797         required by C99.
40798
40799         Use `exit_failure' for xalloc and xmemcoll instead of their own
40800         private exit-failure variables.
40801         * lib/xalloc.h (xalloc_exit_failure): Remove.
40802         * lib/xmalloc.c: Likewise.  Include exitfail.h.
40803         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
40804         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
40805         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
40806         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
40807
40808 2003-07-20  Jim Meyering  <jim@meyering.net>
40809
40810         * modules/closeout (Depends-on): Add exitfail.
40811         Suggestion from Bruno Haible.
40812
40813 2003-07-19  Karl Berry  <karl@gnu.org>
40814
40815         * config/config.sub: update from prep.
40816
40817 2003-07-18  Paul Eggert  <eggert@twinsun.com>
40818
40819         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
40820         Remove.
40821         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
40822         to test that it can stand by itself.  Include "exitfail.h".
40823         Clients should set exit_failure instead.
40824         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
40825
40826 2003-07-18  Bruno Haible  <bruno@clisp.org>
40827
40828         * modules/getndelim2: New file.
40829         * modules/getline: Share files with module getndelim2.
40830         * modules/getnline: Depend on getndelim2 instead of sharing files with
40831         it. Add getnline.c to lib_SOURCES.
40832         * MODULES.html.sh (func_all_modules): Add getndelim2.
40833
40834 2003-07-18  Bruno Haible  <bruno@clisp.org>
40835
40836         * m4/getndelim2.m4: New file.
40837         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
40838         invoke gl_PREREQ_GETNDELIM2.
40839         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
40840         gl_PREREQ_GETNDELIM2.
40841         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
40842         gl_GETNDELIM2.
40843
40844 2003-07-18  Bruno Haible  <bruno@clisp.org>
40845
40846         * lib/getndelim2.h: New file.
40847         * lib/getndelim2.c: Make into a module of its own. Include config.h,
40848         getndelim2.h.
40849         (getndelim2): Make non-static. Change return type to ssize_t.
40850         * lib/getline.h: Change argument names.
40851         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
40852         * lib/getnline.c: Include getndelim2.h.
40853
40854 2003-07-18  Andreas Schwab  <schwab@suse.de>
40855
40856         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
40857
40858 2003-07-17  Karl Berry  <karl@gnu.org>
40859
40860         * config/config.sub: update from prep.
40861
40862 2003-07-17  Bruno Haible  <bruno@clisp.org>
40863
40864         * modules/getnline: New file.
40865         * modules/getline: Add lib/getndelim2.c to source file list.
40866         * MODULES.html.sh (func_all_modules): Add getnline.
40867
40868 2003-07-17  Bruno Haible  <bruno@clisp.org>
40869
40870         * m4/getnline.m4: New file.
40871
40872 2003-07-17  Bruno Haible  <bruno@clisp.org>
40873
40874         * m4/Makefile.am.in: Remove file.
40875         * m4/Makefile.am: Remove file.
40876         * m4/Makefile.in: Remove file.
40877
40878 2003-07-17  Bruno Haible  <bruno@clisp.org>
40879
40880         * lib/getnline.h: New file.
40881         * lib/getnline.c: New file.
40882         * lib/getndelim2.c: New file, extracted from getline.c.
40883         (getndelim2): Renamed from getdelim2, with added nmax argument.
40884         * lib/getline.c: Include getndelim2.c.
40885         (getdelim2): Moved out to getndelim2.c.
40886         (getline, getdelim): Update.
40887
40888 2003-07-17  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/Makefile.am: Remove file.
40891         * lib/Makefile.in: Remove file.
40892
40893 2003-07-17  Bruno Haible  <bruno@clisp.org>
40894
40895         * configure.in: Remove file.
40896         * Makefile.in: Remove file.
40897
40898 2003-07-17  Bruno Haible  <bruno@clisp.org>
40899
40900         * MODULES.html.sh: Put the </BODY> right before </HTML>.
40901
40902 2003-07-16  Karl Berry  <karl@gnu.org>
40903
40904         * config/srclist-update: was running fixlicense twice, which caused
40905                 texinfo.tex to be nullified for some reason.  Simplify,
40906                 $gplsrc is no longer needed as far as I can see?
40907
40908 2003-07-16  Jim Meyering  <jim@meyering.net>
40909
40910         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
40911
40912 2003-07-15  Paul Eggert  <eggert@twinsun.com>
40913
40914         * config/srclist.txt: Get the following files from gettext-runtime/intl
40915         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
40916         ref-del.sin.  From Bruno Haible.
40917         * config/srclist-update (fixfile): Change grep pattern again, since the
40918         previous fix didn't work (there was another trailing $).  Use
40919         '[$]' to escape the $s.
40920
40921 2003-07-15  Karl Berry  <karl@gnu.org>
40922
40923         * lib/vasnprintf.c: update from gettext.
40924
40925 2003-07-15  Karl Berry  <karl@gnu.org>
40926
40927         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
40928         gets expanded when surrounded by '$'.
40929
40930 2003-07-15  Jim Meyering  <jim@meyering.net>
40931
40932         * modules/save-cwd: Don't depend on error.  From Derek Price.
40933
40934 2003-07-15  Jim Meyering  <jim@meyering.net>
40935
40936         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
40937
40938 2003-07-14  Simon Josefsson  <jas@extundo.com>
40939
40940         * modules/mempcpy: New file.
40941         * MODULES.html.sh (func_all_modules): Add mempcpy.
40942
40943 2003-07-14  Simon Josefsson  <jas@extundo.com>
40944
40945         * m4/mempcpy.m4: New file.
40946
40947 2003-07-14  Simon Josefsson  <jas@extundo.com>
40948
40949         * lib/mempcpy.h: New file.
40950         * lib/mempcpy.c: New file.
40951
40952 2003-07-14  Paul Eggert  <eggert@twinsun.com>
40953
40954         * modules/getdate, modules/posixtm: Depend on mktime.
40955
40956 2003-07-14  Paul Eggert  <eggert@twinsun.com>
40957
40958         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
40959         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
40960         unicodeio.c, unicodeio.h, unlocked-io.h:
40961         Switch from LGPL to GPL.
40962
40963 2003-07-14  Paul Eggert  <eggert@twinsun.com>
40964
40965         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
40966         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
40967         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
40968         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
40969         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
40970         updated automatically by ../config/srclist-update.  This changes
40971         their license from LPGL to GPL.
40972
40973 2003-07-14  Paul Eggert  <eggert@twinsun.com>
40974
40975         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
40976         assumed to refer to the root of the most recent stable gettext version.
40977         * config/srclistvars.sh: Add defaults for eggert.
40978         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
40979         Match "This program" as well as "The program".  This is needed
40980         for gettext.
40981
40982 2003-07-14  Jim Meyering  <jim@meyering.net>
40983
40984         Don't emit diagnostics.  Let callers do that.
40985         * lib/save-cwd.c: Don't include "error.h".
40986         (save_cwd): Don't call error.  Ensure that errno is valid
40987         when returning nonzero.
40988
40989         * lib/save-cwd.h (restore_cwd): Update prototype.
40990         * lib/save-cwd.c (restore_cwd): Remove two parameters.
40991         Simplify.  Don't call error upon failure.  Let callers do that.
40992         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
40993         when auditing is enabled.  But don't bother updating the #if.
40994
40995 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
40996
40997         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
40998         it breaks C++ compilation.
40999         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
41000
41001 2003-07-10  Simon Josefsson  <jas@extundo.com>
41002
41003         * modules/strchrnul (Makefile.am): Add strchrnul.h.
41004
41005 2003-07-10  Jim Meyering  <jim@meyering.net>
41006
41007         * m4/clock_time.m4: Remove trailing blank.
41008         * m4/intmax_t.m4: Likewise.
41009
41010 2003-07-10  Jim Meyering  <jim@meyering.net>
41011
41012         * lib/vasnprintf.c: Remove trailing blanks.
41013         Make cpp indentation consistent.
41014
41015 2003-07-09  Paul Eggert  <eggert@twinsun.com>
41016
41017         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
41018         posixver.c, strftime.c, strnlen.c, strverscmp.c:
41019         Switch from LGPL to GPL.
41020
41021 2003-07-09  Paul Eggert  <eggert@twinsun.com>
41022
41023         * config/srclist.txt: Sort sublists.  Add
41024         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
41025         that differ from gnulib for one reason or another; we'd like this list
41026         to be smaller but for now let's document what we have.
41027
41028 2003-07-08  Paul Eggert  <eggert@twinsun.com>
41029
41030         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
41031         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
41032         and sweeter "eval x=$x".
41033         * config/srclist.txt: Get lib/argp* from glibc.
41034
41035 2003-07-07  Paul Eggert  <eggert@twinsun.com>
41036
41037         * lib/mktime.c: Fix some boundary cases and remove need for floating
41038         point.
41039
41040         Issue a compile-time diagnostic if time_t is floating point, or if
41041         two's complement arithmetic is not in effect, or if arithmetic
41042         right shift does not propagate the sign.  These assumptions were
41043         all in the original code but they weren't checked.
41044
41045         (TIME_T_MIDPOINT, verify): New macros.
41046         (__isleap): Remove; it has integer overflow problems.
41047         (leapyear): New function, without those problems.
41048         (ydhms_tm_diff): Remove; splitting into two parts.
41049         (ydhms_diff): New function, containing the arithmetic part of
41050         the old ydhms_tm_diff function.  Issue a compile-time
41051         diagnostic if we are not using C99 integer division.
41052         Avoid casts when possible.
41053         (guess_time_tm): New function, containing the checking part of
41054         the old ydhms_tm_diff function.  Return the new value, rather than
41055         the difference between it and the old.  Accept a new argument T
41056         so that *T specifies the old value.  Check for overflow in the result.
41057
41058         (__mktime_internal): Use a time_t offset, not a long int offset.
41059         This undoes the 2003-06-04 change, which is no longer needed now
41060         that we have better overflow checking.
41061         (localtime_offset): Likewise.
41062
41063         (__mktime_internal): Avoid harmful overflow on hosts where time_t
41064         and long are 64-bit but int is only 32-bit.
41065         (ydhms_diff): Use long int to store year1 and yday1.
41066         Issue a compile-time diagnostic if long int is not wide enough.
41067
41068         (__mktime_internal): Use long int to store adjusted year and yday.
41069         Use plain C rather than preprocessor commands, if that doesn't
41070         affect efficiency.
41071         Check for overflow (and try to repair) after each probe
41072         rather than checking only at the very end.  This avoids some bugs
41073         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
41074         does not equal GMT offset at maximum time).
41075         Use integer to check for overflow rather than floating point; this
41076         is more portable to non-IEEE hosts, and is a tad faster.
41077         When we detect that we are oscillating between two values,
41078         don't check whether tm_isdst has the requested value, since
41079         we already know the answer.  When tm_isdst has the wrong value,
41080         use a different heuristic to find the right one, based on the
41081         extreme values actually observed in practice in tz2003a,
41082         rather than the (overly optimistic) "previous 3 calendar quarters".
41083
41084         (not_equal_tm, print_tm, check_result): Use "const T" rather than
41085         "T const" to accommodate glibc style.
41086         (check_result): Use less-confusing report format.  "long" -> "long int.
41087         (main): Likewise.
41088         Don't loop if the iteration overflows time_t.
41089         Allow a negative step in the iteration.
41090
41091 2003-07-06  Karl Berry  <karl@gnu.org>
41092
41093         * config/depcomp: update from automake.
41094         * config/config.sub: update from prep.
41095
41096 2003-07-03  Karl Berry  <karl@gnu.org>
41097
41098         * config/config.guess: update from prep.
41099
41100 2003-07-01  Paul Eggert  <eggert@twinsun.com>
41101
41102         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
41103         xreadlink.c now includes it unconditionally.
41104
41105 2003-07-01  Paul Eggert  <eggert@twinsun.com>
41106
41107         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
41108         having it depend on HAVE_SYS_TYPES_H.
41109
41110 2003-07-01  Bruno Haible  <bruno@clisp.org>
41111
41112         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
41113         <sys/types.h> should be sufficient.
41114         Reported by Paul Eggert.
41115
41116 2003-06-26  Karl Berry  <karl@gnu.org>
41117
41118         * config/depcomp: update from automake.
41119
41120 2003-06-26  Bruno Haible  <bruno@clisp.org>
41121
41122         * modules/human: Depend on module stdbool.
41123
41124 2003-06-25  Bruno Haible  <bruno@clisp.org>
41125
41126         * modules/readlink: New file.
41127         * modules/xreadlink: Depend on it.
41128         * MODULES.html.sh (func_all_modules): Add readlink.
41129
41130 2003-06-25  Bruno Haible  <bruno@clisp.org>
41131
41132         * m4/readlink.m4: New file.
41133
41134 2003-06-25  Bruno Haible  <bruno@clisp.org>
41135
41136         * lib/readlink.c: New file.
41137
41138 2003-06-22  Karl Berry  <karl@gnu.org>
41139
41140         * config/srclist.txt: update mkinstalldirs from automake.
41141         * config/mkinstalldirs: update.
41142
41143 2003-06-22  Bruno Haible  <bruno@clisp.org>
41144
41145         Portability to mingw32.
41146         * m4/ssize_t.m4: New file, from GNU gettext.
41147         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
41148         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
41149
41150 2003-06-22  Bruno Haible  <bruno@clisp.org>
41151
41152         * modules/safe-read: Add m4/ssize_t.m4.
41153         * modules/xreadlink: Add m4/ssize_t.m4.
41154
41155 2003-06-20  Bruno Haible  <bruno@clisp.org>
41156
41157         Assume C89, so PARAMS isn't needed.
41158         * lib/unicodeio.h (PARAMS): Remove.
41159         * lib/unicodeio.c: Don't use PARAMS.
41160
41161 2003-06-18  Karl Berry  <karl@gnu.org>
41162
41163         * config/config.{guess,sub}: update from prep.
41164
41165 2003-06-18  Jim Meyering  <jim@meyering.net>
41166
41167         Merge changes from coreutils.
41168         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
41169         Remove explicit declarations of xmalloc and realloc.
41170         Include xalloc.h.
41171         (read_utmp): Remove anachronistic cast of xmalloc.
41172
41173 2003-06-17  Paul Eggert  <eggert@twinsun.com>
41174
41175         Assume C89, so PARAMS isn't needed.
41176         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
41177         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
41178         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
41179         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
41180         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
41181         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
41182         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
41183         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
41184         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
41185         lib/xstrtod.h, lib/xstrtol.h: Likewise.
41186         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
41187         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
41188         no longer needed. Anyway, config.h should always be included before any
41189         other file.
41190
41191 2003-06-11  Simon Josefsson  <jas@extundo.com>
41192
41193         * modules/sysexits: New file.
41194         * MODULES.html.sh (func_all_modules): Add sysexits.
41195
41196 2003-06-11  Simon Josefsson  <jas@extundo.com>
41197
41198         * lib/sysexit_.h: New file.
41199
41200 2003-06-11  Derek Price  <derek@ximbiot.com>
41201
41202         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
41203         necessary.
41204
41205 2003-06-11  Bruno Haible  <bruno@clisp.org>
41206
41207         * m4/sysexits.m4: New file.
41208
41209 2003-06-10  Simon Josefsson  <jas@extundo.com>
41210
41211         * lib/argp.h: New file, from glibc.
41212         * lib/argp-ba.c: New file, from glibc.
41213         * lib/argp-eexst.c: New file, from glibc.
41214         * lib/argp-fmtstream.c: New file, from glibc.
41215         * lib/argp-fmtstream.h: New file, from glibc.
41216         * lib/argp-fs-xinl.c: New file, from glibc.
41217         * lib/argp-help.c: New file, from glibc.
41218         * lib/argp-namefrob.h: New file, from glibc.
41219         * lib/argp-parse.c: New file, from glibc.
41220         * lib/argp-pv.c: New file, from glibc.
41221         * lib/argp-pvh.c: New file, from glibc.
41222         * lib/argp-xinl.c: New file, from glibc.
41223
41224 2003-06-10  Simon Josefsson  <jas@extundo.com>
41225
41226         * modules/strchrnul: New file.
41227
41228 2003-06-10  Simon Josefsson  <jas@extundo.com>
41229
41230         * modules/argp: New file.
41231
41232 2003-06-10  Simon Josefsson  <jas@extundo.com>
41233
41234         * m4/strchrnul.m4: New file.
41235
41236 2003-06-10  Simon Josefsson  <jas@extundo.com>
41237
41238         * lib/strchrnul.h: New file.
41239         * lib/strchrnul.c: New file.
41240
41241 2003-06-10  Bruno Haible  <bruno@clisp.org>
41242
41243         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
41244
41245 2003-06-07  Karl Berry  <karl@gnu.org>
41246
41247         * config/config.{guess,sub}: update from prep.
41248
41249 2003-06-07  Jim Meyering  <jim@meyering.net>
41250
41251         * modules/strtod: Use $(...) notation, not @...@ for
41252         AC_REPLACE'd variables.
41253         * modules/localcharset: Likewise.
41254
41255 2003-06-07  Jim Meyering  <jim@meyering.net>
41256
41257         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
41258         in place of my name in the copyright comment.
41259         Remove definition and uses of __P.
41260
41261         From coreutils.
41262         * lib/stat.c: Don't declare xmalloc explicitly.
41263         Instead, include "xalloc.h".
41264         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
41265         xrealloc, and xcalloc return values.
41266         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
41267         Improve comment.
41268         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
41269
41270 2003-06-07  Bruno Haible  <bruno@clisp.org>
41271
41272         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
41273         avoid AC_CONFIG_LINKS.
41274         * modules/fnmatch (Makefile.am): Use explicit creation rule for
41275         fnmatch.h, to avoid AC_CONFIG_LINKS.
41276         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
41277
41278 2003-06-07  Bruno Haible  <bruno@clisp.org>
41279
41280         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
41281         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
41282         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
41283         directory.
41284         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
41285         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
41286         directory.
41287
41288 2003-06-06  Jim Meyering  <jim@meyering.net>
41289
41290         Merge from coreutils.
41291         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
41292         Consolidate declarations and initializations of *_base* locals.
41293
41294         Merge from coreutils.
41295         This avoids a core dump on systems without GNU putenv,
41296         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
41297         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
41298         (unsetenv): New static function, from GNU libc.
41299         (rpl_putenv): Use it.
41300
41301         * lib/modechange.c: Remove trailing blanks.
41302
41303         Merge from coreutils.
41304         * lib/fsusage.c: Remove declaration of statfs.
41305         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
41306
41307         * lib/posixtm.c: Include <stdbool.h> unconditionally.
41308
41309 2003-06-06  Jim Meyering  <jim@meyering.net>
41310
41311         * lib/stdbool_.h: Renamed from stdbool.h.in.
41312
41313 2003-06-06  Jim Meyering  <jim@meyering.net>
41314             Bruno Haible  <bruno@clisp.org>
41315
41316         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
41317         Adjust Makefile.am snippet not to redirect directly to target.
41318         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
41319
41320 2003-06-05  Paul Eggert  <eggert@twinsun.com>
41321
41322         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
41323         mismatch, look in future quarters as well as past.  This fixes a
41324         bug when processing fall-backwards gaps immediately after a long
41325         period of daylight-saving time.
41326
41327         * lib/mktime.c: Assume freestanding C89 or better.
41328         (HAVE_LIMITS_H): Remove.  Assume it's 1.
41329         (__P): Remove; not used.
41330         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
41331         (mktime, not_equal_tm, print_tm, check_result,
41332         main): Use prototypes.  Use const * where appropriate.
41333         (main): Fix typo in testing code that uncovered by above changes.
41334         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
41335
41336 2003-06-04  Paul Eggert  <eggert@twinsun.com>
41337
41338         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
41339         locale.h, localeconv.  This merges changes from coreutils.
41340
41341         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
41342         It can be removed after the next Autoconf is released.
41343         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
41344         needed.
41345
41346 2003-06-04  Paul Eggert  <eggert@twinsun.com>
41347
41348         * lib/mktime.c: Fix Debian bug 177940
41349         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
41350         (localtime_offset): Now long int, not time_t, because we want it
41351         to be guaranteed to be signed.  All uses changed.
41352         (__mktime_internal): If overflow would occur when adding offset,
41353         don't add it.
41354
41355         Merge 'human' changes from coreutils.  Rewrite to support
41356         locale-specific notations like thousands separators.
41357         * lib/human.c: Simplify authorship notice.
41358         Include human.h immediately after config.h.
41359         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
41360         <limits.h>: Do not include, since human.h does.
41361         (SIZE_MAX, UINTMAX_MAX): New macros.
41362         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
41363         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
41364         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
41365         (power_letter): Renamed from suffixes.
41366         (generate_suffix_backwards): Remove.
41367         (adjust_value): Now takes int style (because of human.h changes)
41368         and long double value (for greater precision on some platforms).
41369         (group_number): New function.
41370         (human_readable): Use it.  Use integer options, not enum.
41371         Put the options before the sizes in the arg list.
41372         Support all the new options.
41373         The old human_readable function has been removed;
41374         use inttostr.h instead.
41375         (human_readable, default_block_size, humblock):
41376         Use uintmax_t, not int, for block sizes.
41377         (human_readable_inexact, block_size_types): Remove.
41378         (block_size_opts): New constant.
41379         (human_options): Renamed from human_block_size, with new signature
41380         that allows block sizes up to UINTMAX_MAX.  All callers changed.
41381         * lib/human.h: Add copyright and authorship notice.
41382         Include <limits.h> and <stdbool.h> unconditionally.
41383         (PARAMS): Remove.  All uses removed.
41384         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
41385         (enum human_inexact_style): Remove tag; now a nameless enum.
41386         (human_floor, human_ceiling, human_round_to_even): Now have
41387         values 2, 0, 1 rather than -1, 1, 0.
41388         (human_group_digits, human_suppress_point_zero, human_autoscale,
41389         human_base_1024, human_SI, human_B): New constants.
41390         (human_readable_inexact, human_block_size): Remove.
41391         (human_readable): Size args are now uintmax_t, not int.
41392         (human_options): New decl.
41393
41394         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
41395         unnecessary now that we assume C89 or better.  This change
41396         imported from coreutils.
41397
41398         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
41399         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
41400         in the 2003-05-30 sync from glibc.
41401
41402         .h files should stand alone, but we shouldn't include <sys/types.h>
41403         if we can get away with just <stddef.h>.
41404
41405         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
41406         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
41407         rather than <sys/types.h>, as we merely need size_t.
41408         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
41409         to get size_t.
41410         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
41411         Include <stdio.h>, to get FILE.
41412         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
41413         memcasecmp.h has included <stddef.h> and all we need is size_t.
41414         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
41415         our interface, instead of including <sys/types.h>
41416
41417 2003-06-04  Paul Eggert  <eggert@twinsun.com>
41418
41419         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
41420         now, as glibc mktime is buggy on non-glibc systems.
41421
41422 2003-06-03  Karl Berry  <karl@gnu.org>
41423
41424         * config/config.sub: update from prep.
41425
41426 2003-06-02  Paul Eggert  <eggert@twinsun.com>
41427
41428         [from coreutils]
41429         Fix some minor time-related bugs with POSIX time arguments.
41430         Some valid time stamps were being rejected (notably -1, and
41431         time stamps before 1900 on 64-bit hosts).  And some invalid
41432         time stamps were being accepted, e.g. September 31.
41433
41434         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
41435         that we can return (time_t) -1 successfully.
41436         * lib/posixtm.c: Likewise.
41437         [HAVE_STDBOOL_H]: Include <stdbool.h>.
41438         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
41439         (t): Remove static var.
41440         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
41441         of static var.  All uses changed.
41442         (year): Do not reject years before 1900; they can occur with
41443         64-bit time_t.
41444         (posix_time_parse): Do not check for out-of-range components;
41445         that is now the caller's responsibility, since our checks were
41446         only approximations.
41447         (posixtime): Use mktime to check for out-of-range components,
41448         since it knows them exactly.
41449         If mktime returns (time_t) -1, check whether an error actually occurred
41450         by invoking localtime on -1.
41451         (main) [TEST_POSIXTIME]: Check for input data errors, and report
41452         posixtime failures better.
41453         Improve the test data (in comments only).
41454
41455 2003-06-02  Karl Berry  <karl@gnu.org>
41456
41457         * config/mkinstalldirs (version): new variable.
41458         (--version): new option.
41459         (usage): improve message.
41460
41461 2003-05-30  Karl Berry  <karl@gnu.org>
41462
41463         * lib/mktime.c: update from libc.
41464
41465 2003-05-30  Bruno Haible  <bruno@clisp.org>
41466
41467         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
41468         * config/config.rpath: Upgrade to gettext-0.12.1.
41469
41470 2003-05-30  Bruno Haible  <bruno@clisp.org>
41471
41472         * m4/gettext.m4: Upgrade to gettext-0.12.1.
41473         * m4/nls.m4: New file, from gettext-0.12.1.
41474         * m4/po.m4: New file, from gettext-0.12.1.
41475         * m4/progtest.m4: Upgrade to gettext-0.12.1.
41476
41477 2003-05-30  Bruno Haible  <bruno@clisp.org>
41478
41479         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
41480         * lib/localcharset.h: Likewise.
41481         * lib/localcharset.c: Likewise.
41482
41483 2003-05-29  Karl Berry  <karl@gnu.org>
41484
41485         * config/config.rpath: update from gettext.
41486
41487 2003-05-28  Paul Eggert  <eggert@twinsun.com>
41488
41489         Assume the headers required for C89 freestanding compilers.
41490         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
41491         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
41492         * m4/human.m4 (gl_HUMAN): Likewise.
41493         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
41494         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
41495         * m4/userspec.m4 (gl_USERSPEC): Likewise.
41496         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
41497         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
41498         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
41499
41500 2003-05-28  Paul Eggert  <eggert@twinsun.com>
41501
41502         Assume the headers required for C89 freestanding compilers.
41503         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
41504         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
41505         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
41506         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
41507         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
41508         define, since <limits.h> is guaranteed to do that.
41509         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
41510         * lib/exclude.c: Include <stdbool.h> unconditionally.
41511         * lib/tempname.c: Include <stddef.h> unconditionally.
41512         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
41513         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
41514         <stddef.h> does that.
41515         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
41516         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
41517         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
41518         needed.
41519         * lib/xstrtol.c: Likewise.
41520         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
41521         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
41522
41523         * lib/addext.c (addext): Use assignment rather than cast, to avoid
41524         warnings on some platforms.
41525
41526         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
41527         arbitrarily.
41528
41529 2003-05-26  Jim Meyering  <jim@meyering.net>
41530
41531         Merge in a change from coreutils:
41532         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
41533         that is guaranteed to be `no'.  Use `no_such_member' to indicate
41534         that condition, rather than `-1' which is slightly misleading.
41535         Change the name of the cache variable to have the gl_ prefix.
41536         Prompted by a patch from Richard Dawe for DJGPP.
41537
41538 2003-05-24  Karl Berry  <karl@gnu.org>
41539
41540         * config/config.guess: update from prep.
41541
41542 2003-05-22  Karl Berry  <karl@gnu.org>
41543
41544         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
41545
41546 2003-05-20  Karl Berry  <karl@gnu.org>
41547
41548         * config/config.guess: update from prep.
41549
41550 2003-05-18  Karl Berry  <karl@gnu.org>
41551
41552         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
41553         might actually be set by the user.
41554
41555         * config/depcomp, install-sh, mdate-sh: update from automake.
41556
41557 2003-05-17  Bruno Haible  <bruno@clisp.org>
41558
41559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
41560         invalid expansion for AC_EGREP_CPP.
41561         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
41562         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
41563         Suggested by Akim Demaille <akim@epita.fr> in
41564         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
41565
41566 2003-05-12  Jim Meyering  <jim@meyering.net>
41567
41568         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
41569         the space-padded-by-default conversion specifiers, %e, %k, %l.
41570
41571 2003-05-12  Bruno Haible  <bruno@clisp.org>
41572
41573         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
41574         the string is longer than 4 KB.
41575
41576 2003-05-11  Karl Berry  <karl@gnu.org>
41577
41578         * config/config.{guess,sub}: update from prep.
41579
41580 2003-05-09  Bruno Haible  <bruno@clisp.org>
41581
41582         * modules/error: Add m4/strerror_r.m4 to file list.
41583
41584 2003-05-03  Bruno Haible  <bruno@clisp.org>
41585
41586         Upgrade to Unicode-4.0.
41587         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
41588         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
41589         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
41590         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
41591         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
41592         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
41593         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
41594         Change width of U+E0100..U+E01EF from 1 to 0.
41595
41596 2003-04-25  Jim Meyering  <jim@meyering.net>
41597
41598         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
41599         of type size_t, not int.
41600
41601 2003-04-25  Bruno Haible  <bruno@clisp.org>
41602
41603         * lib/copy-file.c: Include <stddef.h>, for size_t.
41604
41605 2003-04-21  Paul Eggert  <eggert@twinsun.com>
41606
41607         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
41608         code which expansion is under static control.  Patch imported from
41609         Akim Demaille's patch to Bison; see
41610         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
41611
41612 2003-04-14  Bruno Haible  <bruno@clisp.org>
41613
41614         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
41615
41616 2003-04-11  Jim Meyering  <jim@meyering.net>
41617
41618         Merge changes from Coreutils.
41619
41620         2003-03-22  Jim Meyering  <jim@meyering.net>
41621
41622         * lib/strftime.c (widen): Cast alloca return value to proper type.
41623
41624         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
41625
41626         From GNU libc.
41627         * lib/strftime.c (my_strftime): Handle very large width
41628         specifications for numeric values correctly.  Improve checks for
41629         overflow.
41630
41631         2003-01-19  Jim Meyering  <jim@meyering.net>
41632
41633         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
41634         definitions.
41635         (nl_get_alt_digit) [! defined my_strftime]: Define.
41636         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
41637         _nl_get_alt_digit and _nl_get_walt_digit.
41638
41639         * lib/strftime.c (my_strftime): Merge in locale-related changes from
41640         libc. These changes have no effect outside of _LIBC.
41641
41642 2003-04-10  Bruno Haible  <bruno@clisp.org>
41643
41644         * modules/findprog: New file.
41645         * MODULES.html.sh (func_all_modules): Add it.
41646
41647 2003-04-10  Bruno Haible  <bruno@clisp.org>
41648
41649         * m4/findprog.m4: New file.
41650         * m4/eaccess.m4: New file.
41651
41652 2003-04-10  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/findprog.h: New file, from GNU gettext.
41655         * lib/findprog.c: New file, from GNU gettext.
41656
41657 2003-04-05  Jim Meyering  <jim@meyering.net>
41658
41659         Merge changes from Coreutils.
41660
41661         * lib/exclude.h (PARAMS): Remove definition and uses.
41662         * lib/exclude.c: Remove uses of `PARAMS'.
41663
41664         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
41665         Add test-cases for DOS filenames. Declare program_name.
41666         (main): Set up program_name.  Patch by Rich Dawe.
41667
41668         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
41669         error from mntctl.
41670         Use mntctl's return value to drive the entry-processing loop, since
41671         we can't rely on the value of the vmt_length member in the last
41672         entry.  On some systems doing so could result in exhausting
41673         virtual memory.  Based in part on a patch from Mike Jetzer.
41674
41675 2003-04-04  Bruno Haible  <bruno@clisp.org>
41676
41677         * modules/linebreak: New file.
41678         * MODULES.html.sh (func_all_modules): Add it.
41679
41680 2003-04-04  Bruno Haible  <bruno@clisp.org>
41681
41682         * m4/linebreak.m4: New file.
41683
41684 2003-04-04  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/linebreak.h: New file, from GNU gettext.
41687         * lib/linebreak.c: New file, from GNU gettext with slight
41688         modifications.
41689         * lib/lbrkprop.h: New file, from GNU gettext.
41690
41691 2003-04-03  Bruno Haible  <bruno@clisp.org>
41692
41693         * modules/utf8-ucs4: New file.
41694         * modules/utf16-ucs4: New file.
41695         * modules/ucs4-utf8: New file.
41696         * modules/ucs4-utf16: New file.
41697         * MODULES.html.sh (func_all_modules): Add them.
41698
41699 2003-04-03  Bruno Haible  <bruno@clisp.org>
41700
41701         * m4/utf-ucs4.m4: New file.
41702         * m4/ucs4-utf.m4: New file.
41703
41704 2003-04-03  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/utf8-ucs4.h: New file, from GNU gettext.
41707         * lib/utf16-ucs4.h: New file, from GNU gettext.
41708         * lib/ucs4-utf8.h: New file, from GNU gettext.
41709         * lib/ucs4-utf16.h: New file, from GNU gettext.
41710
41711 2003-04-02  Bruno Haible  <bruno@clisp.org>
41712
41713         * modules/binary-io: New file.
41714         * MODULES.html.sh (func_all_modules): Add it.
41715
41716 2003-04-02  Bruno Haible  <bruno@clisp.org>
41717
41718         * lib/binary-io.h: New file, from GNU gettext.
41719
41720 2003-04-01  Bruno Haible  <bruno@clisp.org>
41721
41722         * modules/pathname: New file.
41723         * MODULES.html.sh (func_all_modules): Add it.
41724
41725 2003-04-01  Bruno Haible  <bruno@clisp.org>
41726
41727         * lib/pathname.h: New file, from GNU gettext.
41728         * lib/concatpath.c: New file, from GNU gettext.
41729
41730 2003-03-30  Bruno Haible  <bruno@clisp.org>
41731
41732         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
41733
41734 2003-03-30  Bruno Haible  <bruno@clisp.org>
41735
41736         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
41737         function chown() doesn't exist.
41738
41739 2003-03-28  Bruno Haible  <bruno@clisp.org>
41740
41741         * modules/copy-file: New file.
41742         * MODULES.html.sh (func_all_modules): Add it.
41743
41744 2003-03-28  Bruno Haible  <bruno@clisp.org>
41745
41746         * m4/copy-file.m4: New file.
41747
41748 2003-03-28  Bruno Haible  <bruno@clisp.org>
41749
41750         * lib/copy-file.h: New file, from GNU gettext.
41751         * lib/copy-file.c: New file, from GNU gettext.
41752
41753 2003-03-18  Jim Meyering  <jim@meyering.net>
41754
41755         * lib/quote.c (quote_n): Fix typo in comment.
41756
41757 2003-03-18  Bruno Haible  <bruno@clisp.org>
41758
41759         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
41760         checking.
41761         * m4/onceonly_2_57.m4: Likewise.
41762
41763 2003-03-17  Bruno Haible  <bruno@clisp.org>
41764
41765         * m4/onceonly.m4: Require autoconf 2.54 or newer.
41766         (m4_quote): Remove macro.
41767         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
41768
41769 2003-03-14  Jim Meyering  <jim@meyering.net>
41770
41771         Merge changes from Coreutils.
41772         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
41773         to be const, in order to avoid warnings.
41774         (obstack_room): Likewise.
41775         (obstack_empty_p): Likewise.
41776
41777 2003-03-14  Bruno Haible  <bruno@clisp.org>
41778
41779         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
41780         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
41781
41782 2003-03-13  Paul Eggert  <eggert@twinsun.com>
41783
41784         Merge changes from Bison.
41785         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
41786         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
41787         when compiling Bison 1.875's `bitset bset = obstack_alloc
41788         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
41789         * lib/hash.c: Include <stdbool.h> unconditionally.
41790
41791 2003-03-13  Paul Eggert  <eggert@twinsun.com>
41792
41793         * m4/onceonly.m4 (m4_quote): New macro.
41794         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
41795         Quote AC_FOREACH variable-expansions properly.
41796
41797 2003-03-13  Paul Eggert  <eggert@twinsun.com>
41798
41799         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
41800
41801 2003-03-09  Paul Eggert  <eggert@twinsun.com>
41802
41803         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
41804         Reported by Bruce Becker; see:
41805         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
41806
41807 2003-03-03  Paul Eggert  <eggert@twinsun.com>
41808             Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
41811         Reported by John Hughes, see
41812         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
41813
41814 2003-02-20  Bruno Haible  <bruno@clisp.org>
41815
41816         * MODULES.html.sh (func_all_modules): Add poll.
41817
41818 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
41819
41820         * modules/poll: New file.
41821
41822 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
41823
41824         * lib/poll_.h: New file.
41825         * lib/poll.c: New file.
41826
41827 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
41828
41829         * m4/poll.m4: New file.
41830
41831 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
41832
41833         * modules/mathl: New file.
41834
41835 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
41836
41837         * lib/mathl.h: New file.
41838         * lib/acosl.c: New file.
41839         * lib/asinl.c: New file.
41840         * lib/atanl.c: New file.
41841         * lib/ceill.c: New file.
41842         * lib/cosl.c: New file.
41843         * lib/expl.c: New file.
41844         * lib/floorl.c: New file.
41845         * lib/frexpl.c: New file.
41846         * lib/ldexpl.c: New file.
41847         * lib/logl.c: New file.
41848         * lib/sincosl.c: New file.
41849         * lib/sinl.c: New file.
41850         * lib/sqrtl.c: New file.
41851         * lib/tanl.c: New file.
41852         * lib/trigl.c: New file.
41853         * lib/trigl.h: New file.
41854
41855 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
41856
41857         * m4/mathl.m4: New file.
41858
41859 2003-02-18  Bruno Haible  <bruno@clisp.org>
41860
41861         * MODULES.html.sh (func_all_modules): Add mathl.
41862
41863 2003-02-17  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/mkdtemp: New module.
41866         * MODULES.html.sh (func_all_modules): Add it.
41867
41868 2003-02-17  Bruno Haible  <bruno@clisp.org>
41869
41870         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
41871
41872 2003-02-17  Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/mkdtemp.h: New file, from GNU gettext.
41875         * lib/mkdtemp.c: New file, from GNU gettext.
41876
41877 2003-02-02  Jim Meyering  <jim@meyering.net>
41878
41879         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
41880         e.g. glibc-2.2.93.
41881
41882 2003-01-31  Bruno Haible  <bruno@clisp.org>
41883
41884         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
41885         'rpl_rename'.
41886         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
41887         'rpl_strnlen'.
41888         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
41889         'rpl_strtod'.
41890         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
41891         'rpl_utime'.
41892
41893 2003-01-31  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/rename.c: #undef rename before defining rpl_rename.
41896         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
41897
41898 2003-01-30  Bruno Haible  <bruno@clisp.org>
41899
41900         * modules/vasnprintf, modules/vasprintf: New modules.
41901         * MODULES.html.sh (func_all_modules): Add them.
41902
41903 2003-01-30  Bruno Haible  <bruno@clisp.org>
41904
41905         * m4/signed.m4: New file, from GNU gettext.
41906         * m4/longdouble.m4: New file, from GNU gettext.
41907         * m4/wchar_t.m4: New file, from GNU gettext.
41908         * m4/wint_t.m4: New file, from GNU gettext.
41909         * m4/vasnprintf.m4: New file.
41910         * m4/vasprintf.m4: New file.
41911
41912 2003-01-30  Bruno Haible  <bruno@clisp.org>
41913
41914         * lib/printf-args.h: New file, from GNU gettext.
41915         * lib/printf-args.c: New file, from GNU gettext.
41916         * lib/printf-parse.h: New file, from GNU gettext.
41917         * lib/printf-parse.c: New file, from GNU gettext.
41918         * lib/vasnprintf.h: New file, from GNU gettext.
41919         * lib/vasnprintf.c: New file, from GNU gettext.
41920         * lib/asnprintf.c: New file, from GNU gettext.
41921         * lib/vasprintf.h: New file, from GNU gettext with modifications.
41922         * lib/vasprintf.c: New file, from GNU gettext.
41923         * lib/asprintf.c: New file, from GNU gettext.
41924
41925 2003-01-29  Bruno Haible  <bruno@clisp.org>
41926
41927         * modules/stpncpy: New module.
41928         * MODULES.html.sh (func_all_modules): Add it.
41929
41930 2003-01-29  Bruno Haible  <bruno@clisp.org>
41931
41932         * m4/stpncpy.m4: New file.
41933
41934 2003-01-29  Bruno Haible  <bruno@clisp.org>
41935
41936         * lib/stpncpy.h: New file, from GNU gettext with modifications.
41937         * lib/stpncpy.c: New file, from GNU gettext with modifications.
41938
41939 2003-01-28  Bruno Haible  <bruno@clisp.org>
41940
41941         * modules/c-ctype: New module.
41942         * MODULES.html.sh (func_all_modules): Add it.
41943
41944 2003-01-28  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
41947         Paul Eggert.
41948         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
41949         Paul Eggert.
41950
41951 2003-01-27  Bruno Haible  <bruno@clisp.org>
41952
41953         * modules/xsetenv: New module.
41954         * MODULES.html.sh (func_all_modules): Add it.
41955
41956 2003-01-27  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/xsetenv.h: New file, from GNU gettext.
41959         * lib/xsetenv.c: New file, from GNU gettext.
41960
41961 2003-01-23  Jim Meyering  <jim@meyering.net>
41962
41963         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
41964         from working on systems without dirfd (at least Irix and OSF1/Tru64).
41965
41966 2003-01-23  Bruno Haible  <bruno@clisp.org>
41967
41968         * modules/minmax: New module.
41969         * MODULES.html.sh (func_all_modules): Add it.
41970
41971 2003-01-23  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
41974         Eggert.
41975
41976 2003-01-22  Bruno Haible  <bruno@clisp.org>
41977
41978         * modules/exit: New module.
41979         * MODULES.html.sh (func_all_modules): Add it.
41980
41981 2003-01-22  Bruno Haible  <bruno@clisp.org>
41982
41983         * lib/exit.h: New file, from GNU gettext.
41984
41985 2003-01-19  Bruno Haible  <bruno@clisp.org>
41986
41987         * gnulib-tool: Recognize option --extract-maintainer.
41988         (func_get_maintainer): New function.
41989         * modules/*: Add Maintainer entry.
41990
41991 2003-01-16  Jim Meyering  <jim@meyering.net>
41992
41993         * m4/regex.m4: The `regex' struct is both input and output.
41994         Initialize it before each use.  Patch by Tim Waugh.
41995
41996 2003-01-16  Bruno Haible  <bruno@clisp.org>
41997
41998         * MODULES.html.sh: Add a table of contents. Add the module name as
41999         leftmost column. Add hyperlinks.
42000
42001 2003-01-15  Bruno Haible  <bruno@clisp.org>
42002
42003         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
42004
42005 2003-01-15  Bruno Haible  <bruno@clisp.org>
42006
42007         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
42008         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
42009         suffix.
42010
42011 2003-01-15  Bruno Haible  <bruno@clisp.org>
42012
42013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
42014
42015 2003-01-15  Bruno Haible  <bruno@clisp.org>
42016
42017         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
42018         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
42019
42020 2003-01-14  Jim Meyering  <jim@meyering.net>
42021
42022         * lib/same.c (same_name): Tweak a comment.
42023
42024 2003-01-14  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
42027         when a string comparison is sufficient.
42028
42029 2003-01-14  Bruno Haible  <bruno@clisp.org>
42030
42031         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
42032         'unsigned int'.
42033
42034 2003-01-14  Bruno Haible  <bruno@clisp.org>
42035
42036         * lib/hash-pjw.c: Add comment about low quality of this function.
42037
42038 2003-01-13  Bruno Haible  <bruno@clisp.org>
42039
42040         * modules/stpcpy: Distribute lib/stpcpy.h.
42041         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
42042
42043 2003-01-13  Bruno Haible  <bruno@clisp.org>
42044
42045         * modules/*: Add a description.
42046         * modules/strpbrk: Fix Makefile.am snippet.
42047         * modules/strtoimax: Fix dependencies.
42048         * modules/strtoumax: Likewise.
42049
42050 2003-01-13  Bruno Haible  <bruno@clisp.org>
42051
42052         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
42053         * modules/alloca (Makefile.am): All object files depend on alloca.h.
42054         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
42055
42056 2003-01-13  Bruno Haible  <bruno@clisp.org>
42057
42058         * gnulib-tool (func_create_testdir): Store config/* files in the main
42059         directory.
42060         * config.rpath: Move to ...
42061         * config/config.rpath: ... here.
42062         * modules/gettext: Contains config/config.rpath, not config.rpath.
42063         * modules/iconv: Likewise.
42064
42065 2003-01-12  Paul Eggert  <eggert@twinsun.com>
42066
42067         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
42068         to avoid collisions with libcurses and libreadline.
42069
42070         * m4/getstr.m4: Remove.
42071         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
42072
42073 2003-01-12  Paul Eggert  <eggert@twinsun.com>
42074
42075         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
42076         to avoid collisions with libcurses and libreadline.
42077
42078         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
42079         * lib/getstr.h, getstr.c: Remove.
42080         * lib/getline.c: Include "getline.h", to check interface.
42081         Move body of old getstr.c here: this defines MIN_CHUNK and
42082         declares getdelim2, which is renamed from getstr.
42083         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
42084
42085         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
42086         All uses changed.
42087         * lib/linebuffer.h: Likewise.
42088         (readline): Remove backward-compatibility macro.
42089
42090 2003-01-12  Paul Eggert  <eggert@twinsun.com>
42091
42092         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
42093         to avoid collisions with libcurses and libreadline.
42094         * getstr: Remove.
42095         * MODULES.html.sh: Remove getstr.
42096         * modules/getline: Depend on unlocked-io, not getstr.
42097
42098 2003-01-12  Jim Meyering  <jim@meyering.net>
42099
42100         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
42101
42102 2003-01-10  Bruno Haible  <bruno@clisp.org>
42103
42104         * modules/alloca: Change Makefile.am requirements. Simplify Include
42105         requirements. Add lib/alloca_.h to file list.
42106
42107 2003-01-10  Bruno Haible  <bruno@clisp.org>
42108
42109         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
42110
42111 2003-01-10  Bruno Haible  <bruno@clisp.org>
42112
42113         * lib/alloca_.h: New file.
42114         * lib/getdate.y: Unconditionally include alloca.h.
42115         * lib/makepath.c: Likewise.
42116         * lib/setenv.c: Likewise.
42117         * lib/userspec.c: Likewise.
42118
42119 2003-01-09  Karl Berry  <karl@gnu.org>
42120
42121         * MODULES.html.sh: include `dirname $0` in PATH, to find
42122         gnulib-tool.
42123
42124 2003-01-09  Bruno Haible  <bruno@clisp.org>
42125
42126         * modules/stdbool: Change configure.ac, Makefile.am requirements.
42127         Simplify Include requirements. Add lib/stdbool.h.in to file list.
42128
42129 2003-01-09  Bruno Haible  <bruno@clisp.org>
42130
42131         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
42132
42133 2003-01-09  Bruno Haible  <bruno@clisp.org>
42134
42135         * lib/stdbool.h.in: New file.
42136
42137 2003-01-09  Bruno Haible  <bruno@clisp.org>
42138
42139         * gnulib-tool (func_all_modules): Ignore files ending in ~.
42140         * MODULES.html.sh: Likewise.
42141
42142 2003-01-08  Jim Meyering  <jim@meyering.net>
42143
42144         * lib/full-write.c: Undefine and define-away `const' after inclusion
42145         of errno.h, not before.  Suggestion from Bruno Haible.
42146
42147 2003-01-08  Bruno Haible  <bruno@clisp.org>
42148
42149         * modules/full-read: Depend on full-write.
42150
42151 2003-01-08  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/safe-read.c: Include specification header first, to ensure its
42154         selfcontainedness.
42155         * lib/full-write.c: Likewise.
42156
42157 2003-01-07  Jim Meyering  <jim@meyering.net>
42158
42159         * lib/full-write.c: Rework so that it may serve to define full_read,
42160         too.
42161         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
42162
42163 2003-01-07  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/strtoimax.c: Include <stdint.h> as an alternative to
42166         <inttypes.h>.
42167         * lib/xstrtol.h: Likewise.
42168         * lib/xstrtoimax.c: Likewise.
42169         * lib/xstrtoumax.c: Likewise.
42170         * lib/human.h: Likewise.
42171
42172         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
42173         on systems that have <inttypes.h> but not <stdint.h>.
42174
42175 2003-01-07  Bruno Haible  <bruno@clisp.org>
42176
42177         * MODULES.html.sh: Add copyright notice.
42178         (missed_files): Omit CVS directory entries.
42179         (func_module): Make it work with sed-3.02.
42180         * MODULES.txt: Remove file.
42181
42182 2003-01-06  Jim Meyering  <jim@meyering.net>
42183
42184         * lib/version-etc.c: Update year in translatable copyright string.
42185
42186 2003-01-03  Karl Berry  <karl@gnu.org>
42187
42188         * config/config.{guess,sub}: update from prep.
42189
42190 2003-01-02  Karl Berry  <karl@gnu.org>
42191
42192         * doc/COPYING.DOC: belatedly updated to 1.2.
42193
42194 2003-01-01  Karl Berry  <karl@gnu.org>
42195
42196         * gnulib-tool (func_verify_module): report module name $module in
42197         error message, not $1.
42198         * gnulib-tool (create-testdir): don't complain if destdir couldn't
42199         be created, only if it doesn't exist.
42200         * gnulib-tool (last_checkin_date): don't expand the $Date here.
42201
42202 2002-12-31  Paul Eggert  <eggert@twinsun.com>
42203
42204         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
42205
42206 2002-12-31  Paul Eggert  <eggert@twinsun.com>
42207
42208         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
42209         memcmp if strcoll doesn't work.
42210
42211 2002-12-31  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/utime.c (utime_null): No need to call ftruncate if the file was
42214         nonempty.
42215
42216 2002-12-31  Bruno Haible  <bruno@clisp.org>
42217
42218         * lib/memcoll.c (STRCOLL): New macro.
42219         (memcoll): Use it.
42220
42221 2002-12-31  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/localcharset.h: New file.
42224         * lib/localcharset.c: Include it.
42225         * lib/unicodeio.c: Likewise.
42226
42227 2002-12-31  Bruno Haible  <bruno@clisp.org>
42228
42229         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
42230         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
42231
42232 2002-12-31  Bruno Haible  <bruno@clisp.org>
42233
42234         * lib/getline.h: Include <stddef.h>, for size_t.
42235
42236         * lib/unicodeio.h: Include <stddef.h>, for size_t.
42237         * lib/unicodeio.c: Don't include <stddef.h>.
42238
42239 2002-12-31  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
42242         HAVE_TM_ZONE.
42243
42244 2002-12-24  Karl Berry  <karl@gnu.org>
42245
42246         * config/config.guess: update from prep.
42247
42248 2002-12-24  Bruno Haible  <bruno@clisp.org>
42249
42250         General infrasructure.
42251         * m4/README: Rewritten.
42252         * m4/onceonly.m4: New file.
42253         * m4/onceonly_2_57.m4: New file.
42254
42255         Module atexit.
42256         * m4/atexit.m4: New file.
42257
42258         Module strtod.
42259         * m4/strtod.m4: New file.
42260
42261         Module strtol.
42262         * m4/strtol.m4: New file.
42263
42264         Module strtoul.
42265         * m4/strtoul.m4: New file.
42266
42267         Module memchr.
42268         * m4/memchr.m4: New file.
42269
42270         Module memcmp.
42271         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
42272         (jm_FUNC_MEMCMP): Invoke it.
42273
42274         Module memcpy.
42275         * m4/memcpy.m4: New file.
42276
42277         Module memmove.
42278         * m4/memmove.m4: New file.
42279
42280         Module memset.
42281         * m4/memset.m4: New file.
42282
42283         Module strcspn.
42284         * m4/strcspn.m4: New file.
42285
42286         Module strpbrk.
42287         * m4/strpbrk.m4: New file.
42288
42289         Module strstr.
42290         * m4/strstr.m4: New file.
42291
42292         Module strerror.
42293         * m4/strerror.m4: New file.
42294
42295         Module mktime.
42296         * m4/mktime.m4: Renamed from jm-mktime.m4.
42297         (gl_PREREQ_MKTIME): New macro.
42298         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
42299
42300         Module malloc.
42301         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
42302         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
42303         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
42304
42305         Module realloc.
42306         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
42307         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
42308         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
42309
42310         Module strftime.
42311         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
42312         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
42313         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
42314         gl_TM_GMTOFF.
42315         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
42316
42317         Module xalloc.
42318         * m4/xalloc.m4: New file.
42319
42320         Module alloca.
42321         * m4/alloca.m4: New file.
42322
42323         Module putenv.
42324         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
42325         (jm_FUNC_PUTENV): Invoke it.
42326
42327         Module setenv.
42328         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
42329         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
42330         when invoked twice.
42331         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
42332         gt_FUNC_SETENV.
42333
42334         Module memrchr.
42335         * m4/memrchr.m4: New file.
42336
42337         Module stpcpy.
42338         * m4/stpcpy.m4: New file.
42339
42340         Module strcase.
42341         * m4/strcase.m4: New file.
42342
42343         Module strdup.
42344         * m4/strdup.m4: New file.
42345
42346         Module strnlen.
42347         * m4/strnlen.m4: New file.
42348
42349         Module strndup.
42350         * m4/strndup.m4: New file.
42351
42352         Module xstrtod.
42353         * m4/xstrtod.m4: New file.
42354
42355         Module xstrtol.
42356         * m4/xstrtol.m4: New file.
42357
42358         Module getdate.
42359         * m4/getdate.m4: New file.
42360
42361         Module unlocked-io.
42362         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
42363         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
42364         * m4/jm-glibc-io.m4n: Remove file.
42365
42366         Module long-options.
42367         * m4/long-options.m4: New file.
42368
42369         Module md5.
42370         * m4/md5.m4: New file.
42371
42372         Module sha.
42373         * m4/sha.m4: New file.
42374
42375         Module getstr.
42376         * m4/getstr.m4: New file.
42377
42378         Module getline.
42379         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
42380         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
42381         <sys/types.h>, for size_t. Use the function name gnu_getline, not
42382         simply getline. Infoke gl_PREREQ_GETLINE.
42383
42384         Module obstack.
42385         * m4/obstack.m4: New file.
42386
42387         Module hash.
42388         * m4/hash.m4: New file.
42389
42390         Module readtokens.
42391         * m4/readtokens.m4: New file.
42392
42393         Module strverscmp.
42394         * m4/strverscmp.m4: New file.
42395
42396         Module stdbool.
42397         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
42398         OSF/1.
42399
42400         Module strtoll.
42401         * m4/strtoll.m4: New file.
42402
42403         Module strtoull.
42404         * m4/strtoull.m4: New file.
42405
42406         Module strtoimax.
42407         * m4/strtoimax.m4: New file.
42408
42409         Module strtoumax.
42410         * m4/strtoumax.m4: New file.
42411
42412         Module xstrtoimax.
42413         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
42414         jm_AC_PREREQ_XSTRTOIMAX.
42415         Moved the strtol prerequisites to strtol.m4.
42416         Moved the strtoll prerequisites to strtoll.m4.
42417         Moved the strtoimax prerequisites to strtoimax.m4.
42418
42419         Module xstrtoumax.
42420         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
42421         jm_AC_PREREQ_XSTRTOUMAX.
42422         Moved the strtoul prerequisites to strtoul.m4.
42423         Moved the strtoull prerequisites to strtoull.m4.
42424         Moved the strtoumax prerequisites to strtoumax.m4.
42425
42426         Module chown.
42427         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
42428         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
42429
42430         Module dup2.
42431         * m4/dup2.m4: New file.
42432
42433         Module ftruncate.
42434         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
42435         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
42436
42437         Module getgroups.
42438         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
42439         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
42440
42441         Module gettimeofday.
42442         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
42443         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
42444         gl_PREREQ_GETTIMEOFDAY.
42445
42446         Module mkdir.
42447         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
42448         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
42449
42450         Module mkstemp.
42451         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
42452         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
42453         jm_AC_TYPE_UINTMAX_T.
42454         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
42455
42456         Module stat.
42457         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
42458         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
42459
42460         Module lstat.
42461         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
42462         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
42463
42464         Module timespec.
42465         * m4/timespec.m4 (gl_TIMESPEC): New macro.
42466         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
42467         * m4/st_mtim.m4: Indentation.
42468
42469         Module nanosleep.
42470         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
42471         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
42472         gl_PREREQ_NANOSLEEP.
42473
42474         Module regex.
42475         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
42476         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
42477         (gl_REGEX): New macro.
42478
42479         Module rename.
42480         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
42481         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
42482
42483         Module rmdir.
42484         * m4/rmdir.m4: New file.
42485
42486         Module utime.
42487         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
42488         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
42489         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
42490
42491         Module dirname.
42492         * m4/dirname.m4: New file.
42493
42494         Module getopt.
42495         * m4/getopt.m4: New file.
42496
42497         Module unistd-safer.
42498         * m4/unistd-safer.m4: New file.
42499
42500         Module fnmatch.
42501         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
42502         declaration.
42503         (gl_PREREQ_FNMATCH_EXTRA): New macro.
42504         (gl_FUNC_FNMATCH_POSIX): New macro.
42505         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
42506         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
42507         simply fnmatch.
42508
42509         Module exclude.
42510         * m4/exclude.m4: New file.
42511
42512         Module human.
42513         * m4/human.m4: New file.
42514
42515         Module acl.
42516         * m4/acl.m4: Nop.
42517
42518         Module backupfile.
42519         * m4/backupfile.m4: New file.
42520         * m4/d-ino.m4: Indentation.
42521
42522         Module fsusage.
42523         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
42524         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
42525         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
42526
42527         Module dirfd.
42528         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
42529         requirements.
42530
42531         Module euidaccess.
42532         * m4/euidaccess.m4: New file.
42533
42534         Module file-type.
42535         * m4/file-type.m4: New file.
42536
42537         Module fileblocks.
42538         * m4/fileblocks.m4: New file.
42539
42540         Module filemode.
42541         * m4/filemode.m4: New file.
42542
42543         Module isdir.
42544         * m4/isdir.m4: New file.
42545
42546         Module lchown.
42547         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
42548         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
42549
42550         Module makepath.
42551         * m4/makepath.m4: New file.
42552
42553         Module modechange.
42554         * m4/modechange.m4: New file.
42555
42556         Module mountlist.
42557         * m4/mountlist.m4: New file.
42558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
42559         Indentation.
42560
42561         Module path-concat.
42562         * m4/path-concat.m4: New file.
42563
42564         Module pathmax.
42565         * m4/pathmax.m4: New file.
42566
42567         Module same.
42568         * m4/same.m4: New file.
42569
42570         Module save-cwd.
42571         * m4/save-cwd.m4: New file.
42572
42573         Module savedir.
42574         * m4/savedir.m4: New file.
42575
42576         Module xgetcwd.
42577         * m4/xgetcwd.m4: New file.
42578         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
42579
42580         Module xreadlink.
42581         * m4/xreadlink.m4: New file.
42582
42583         Module safe-read.
42584         * m4/safe-read.m4: New file.
42585
42586         Module safe-write.
42587         * m4/safe-write.m4: New file.
42588
42589         Module closeout.
42590         * m4/closeout.m4: New file.
42591
42592         Module stdio-safer.
42593         * m4/stdio-safer.m4: New file.
42594
42595         Module getpass.
42596         * m4/getpass.m4: New file.
42597
42598         Module getugroups.
42599         * m4/getugroups.m4: New file.
42600
42601         Module group-member.
42602         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
42603         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
42604
42605         Module idcache.
42606         * m4/idcache.m4: New file.
42607
42608         Module userspec.
42609         * m4/userspec.m4: New file.
42610
42611         Module gettime.
42612         * m4/clock_time.m4: New file.
42613         * m4/gettime.m4: New file.
42614
42615         Module settime.
42616         * m4/settime.m4: New file.
42617
42618         Module posixtm.
42619         * m4/posixtm.m4: New file.
42620
42621         Module gethostname.
42622         * m4/gethostname.m4: New file.
42623
42624         Module canon-host.
42625         * m4/canon-host.m4: New file.
42626
42627         Module gettext.
42628         * m4/codeset.m4: New file, from gettext-0.11.5.
42629         * m4/gettext.m4: New file, from gettext-0.11.5.
42630         * m4/glibc21.m4: New file, from gettext-0.11.5.
42631         * m4/iconv.m4: New file, from gettext-0.11.5.
42632         * m4/intdiv0.m4: New file, from gettext-0.11.5.
42633         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
42634         * m4/inttypes.m4: New file, from gettext-0.11.5.
42635         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
42636         * m4/isc-posix.m4: New file, from gettext-0.11.5.
42637         * m4/lcmessage.m4: New file, from gettext-0.11.5.
42638         * m4/lib-ld.m4: New file, from gettext-0.11.5.
42639         * m4/lib-link.m4: New file, from gettext-0.11.5.
42640         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
42641         * m4/progtest.m4: New file, from gettext-0.11.5.
42642         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
42643         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
42644         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
42645
42646         Module localcharset.
42647         * m4/localcharset.m4: New file.
42648
42649         Module hard-locale.
42650         * m4/hard-locale.m4: New file.
42651
42652         Module mbswidth.
42653         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
42654         onceonly macros.
42655         * m4/mbrtowc.m4: Add comment.
42656
42657         Module memcasecmp.
42658         * m4/memcasecmp.m4: New file.
42659
42660         Module memcoll.
42661         * m4/memcoll.m4: New file.
42662
42663         Module unicodeio.
42664         * m4/unicodeio.m4: New file.
42665
42666         Module rpmatch.
42667         * m4/rpmatch.m4: New file.
42668
42669         Module yesno.
42670         * m4/yesno.m4: New file.
42671
42672         Module exitfail.
42673         * m4/exitfail.m4: New file.
42674
42675         Module c-stack.
42676         * m4/c-stack.m4 (gl_C_STACK): New macro.
42677         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
42678
42679         Module error.
42680         * m4/error.m4 (gl_ERROR): New macro.
42681         (jm_PREREQ_ERROR): Use onceonly macros.
42682
42683         Module fatal.
42684         * m4/fatal.m4: New file.
42685
42686         Module getloadavg.
42687         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
42688         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
42689
42690         Module getpagesize.
42691         * m4/getpagesize.m4: New file.
42692
42693         Module getusershell.
42694         * m4/getusershell.m4: New file.
42695
42696         Module physmem.
42697         * m4/physmem.m4: New file.
42698
42699         Module posixver.
42700         * m4/posixver.m4: New file.
42701
42702         Module quotearg.
42703         * m4/quotearg.m4: New file.
42704
42705         Module quote.
42706         * m4/quote.m4: New file.
42707
42708         Module readutmp.
42709         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
42710
42711         Module sig2str.
42712         * m4/sig2str.m4: New file.
42713
42714         Other.
42715         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
42716         ulonglong.m4.
42717         * m4/intmax_t.m4: New file.
42718         * m4/d-type.m4: Indentation.
42719         * m4/jm-macros.m4: Update.
42720         * m4/prereq.m4 (jm_PREREQ): Update.
42721         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
42722         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
42723         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
42724         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
42725         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
42726         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
42727         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
42728         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
42729         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
42730         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
42731         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
42732         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
42733         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
42734         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
42735         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
42736         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
42737         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
42738         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
42739         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
42740
42741 2002-12-24  Bruno Haible  <bruno@clisp.org>
42742
42743         * MODULES.txt: Update according to m4/ changes.
42744
42745         Module gettext.
42746         * config.rpath: New file, from gettext-0.11.5.
42747
42748         * modules/*: New module descriptions.
42749         * gnulib-tool: New file.
42750         * MODULES.html.sh: New file.
42751
42752 2002-12-21  Karl Berry  <karl@gnu.org>
42753
42754         * doc/fdl.texi: update to version 1.2.
42755
42756 2002-12-19  Karl Berry  <karl@gnu.org>
42757
42758         * config/config.guess: update from prep.
42759
42760 2002-12-18  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
42763         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
42764
42765 2002-12-17  Bruno Haible  <bruno@clisp.org>
42766
42767         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
42768         stdlib.h, string.h.
42769
42770 2002-12-17  Bruno Haible  <bruno@clisp.org>
42771
42772         * lib/canon-host.c (strdup): Remove unused declaration.
42773
42774         * lib/fsusage.c: Include full_read.h.
42775         (get_fs_usage): Use full_read instead of safe_read.
42776
42777         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
42778
42779 2002-12-12  Karl Berry  <karl@gnu.org>
42780
42781         * config/config.guess: update from prep.
42782
42783 2002-12-11  Bruno Haible  <bruno@clisp.org>
42784
42785         * m4/setenv.m4: New file, from gettext-0.11.5.
42786
42787 2002-12-11  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
42790         not unsetenv().
42791         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
42792         modifications:
42793
42794         2002-12-11  Bruno Haible  <bruno@clisp.org>
42795
42796                 * setenv.c (alloca): Fall back to malloc.
42797                 (freea): New macro.
42798                 (setenv): Use freea() to free memory allocated with alloca().
42799
42800         2002-11-13  Bruno Haible  <bruno@clisp.org>
42801
42802                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
42803                 function declarations.
42804                 * unsetenv.c (unsetenv): Likewise.
42805
42806         2002-03-04  Bruno Haible  <bruno@clisp.org>
42807
42808                 Portability to AIX 4.3.3.
42809                 * unsetenv.c: New file, extracted from setenv.c.
42810                 * setenv.c: Move the unsetenv() function to unsetenv.c.
42811
42812         2001-12-20  Bruno Haible  <bruno@clisp.org>
42813
42814                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
42815                 use malloc instead. For SunOS 4.
42816
42817         2001-12-11  Bruno Haible  <bruno@clisp.org>
42818
42819                 * setenv.c: Declare alloca.
42820                 (compar_fn_t): New typedef.
42821                 (KNOWN_VALUE, STORE_VALUE): Use it.
42822
42823         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
42824         setenv.h.
42825
42826 2002-12-10  Paul Eggert  <eggert@twinsun.com>
42827
42828         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
42829         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
42830         Choose values that are less likely to collide with system fnmatch
42831         options.
42832         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
42833         defined (e.g., a pure POSIX system).
42834         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
42835         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
42836
42837 2002-12-06  Paul Eggert  <eggert@twinsun.com>
42838
42839         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
42840         a pain in practice to deal with generated m4 files.  This change
42841         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
42842
42843         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
42844         and jm-glibc-io.m4, as they are no longer a special case.
42845         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
42846         kludge and the auto-generation stuff.  Check only whether the
42847         functions are declared, not whether they exist, since older hosts
42848         that don't declare the functions can't use the optimization anyway.
42849
42850 2002-12-06  Jim Meyering  <jim@meyering.net>
42851
42852         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
42853
42854         Merge in changes from libc's misc/error.c, in preparation
42855         for the merge of gnulib's changes back into libc.
42856
42857         * lib/error.c (_): Define only if not already defined.
42858         Move definition to follow all #include directives.
42859         Include unlocked-io.h only if !_LIBC.
42860         [_LIBC]: Include <libio/libioP.h>.
42861         [USE_IN_LIBIO]: Include <libio/iolibio.h>
42862         (fflush): Tweak definition to use INTUSE.
42863         (putc): Define.
42864
42865 2002-12-05  Paul Eggert  <eggert@twinsun.com>
42866
42867         * lib/alloca.c [defined emacs]: Include "lisp.h".
42868         (xalloc_die) [defined emacs]: New macro.
42869         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
42870         [! defined emacs]: Include <xalloc.h>.
42871         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
42872         (pointer): Typedef to POINTER_TYPE *.
42873         (malloc): Remove decl; we now always use xmalloc.
42874         (alloca): Use old-style definition, since Emacs needs this.
42875         Check for arithmetic overflow when computing combined size.
42876
42877 2002-12-04  Paul Eggert  <eggert@twinsun.com>
42878
42879         Do not generate unlocked-io.h automatically, since it's easier to
42880         maintain it by hand.
42881
42882         * lib/unlocked-io.h: New file, from GNU diffutils,
42883         but with proper copyright notice and attribution.
42884         * lib/gen-uio: Remove.
42885         * lib/Makefile.am: Add copyright notice.
42886         (libfetish_a_SOURCES): Add unlocked-io.h.
42887         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
42888         (DISTCLEANFILES, io_functions): Remove macros.
42889         (EXTRA_DIST): Remove gen_uio.
42890         (unlocked-io.h): Remove rule.
42891
42892 2002-12-04  Jim Meyering  <jim@meyering.net>
42893
42894         Reflect the fact that stat.c and lstat.c are no longer generated.
42895         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
42896         (DISTCLEANFILES): Likewise.
42897         (EXTRA_DIST): Likewise.
42898         (all_local): Don't depend on stat.c or lstat.c.
42899         (stat.c, lstat.c): Remove rules.
42900         (EXTRA_DIST): Remove xstat.in.
42901
42902         * lib/xstat.in: Remove file.  Contents moved into stat.c.
42903         * lib/stat.c: New file.  Contents mostly from xstat.in.
42904         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
42905         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
42906
42907         * lib/safe-read.c: Rework so that it may serve to define safe_write,
42908         too.
42909         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
42910
42911 2002-12-03  Jim Meyering  <jim@meyering.net>
42912
42913         * lib/safe-read.c, safe-write.c: Change variable names and comments,
42914         but not semantics, to minimize the differences between these two files.
42915         (safe_read): Change comment to mention SAFE_READ_ERROR.
42916
42917         * lib/safe-read.c (IS_EINTR): Define.
42918         (safe_read): Use IS_EINTR in place of in-function cpp directives.
42919
42920 2002-12-02  Jim Meyering  <jim@meyering.net>
42921
42922         * lib/safe-read.c (EINTR): Define.
42923         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
42924         (INT_MAX): Provide fallback.
42925         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
42926
42927         * lib/safe-read.h (SAFE_READ_ERROR): Define.
42928
42929 2002-12-02  Bruno Haible  <bruno@clisp.org>
42930
42931         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
42932         Define, taken from safe-read.c.
42933         (INT_MAX): Provide fallback.
42934         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
42935         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
42936
42937         * lib/safe-read.c (EINTR): Remove definition.
42938         (safe_read): Don't use EINTR if it is absent.
42939
42940 2002-12-01  Jim Meyering  <jim@meyering.net>
42941
42942         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
42943         zero.
42944         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
42945
42946 2002-11-27  Paul Eggert  <eggert@twinsun.com>
42947
42948         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
42949         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
42950         with `if (! (value < limit)) abort ();', for readability.
42951
42952 2002-11-26  Karl Berry  <karl@gnu.org>
42953
42954         * lib/strdup.c: copy from libc again, with jim's ok.
42955         * lib/.cppi-disable: re-add strdup.c
42956
42957 2002-11-25  Karl Berry  <karl@gnu.org>
42958
42959         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
42960         instead of "strtol.c".
42961
42962 2002-11-25  Karl Berry  <karl@gnu.org>
42963
42964         * config/install-sh: update from automake for variable quoting, $0 in
42965         error msgs, etc.
42966
42967         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
42968         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
42969         entry.
42970
42971 2002-11-25  Jim Meyering  <jim@meyering.net>
42972
42973         * lib/mktime.c: Sync from libc, now that it has the latest fix.
42974
42975 2002-11-24  Karl Berry  <karl@gnu.org>
42976
42977         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
42978         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
42979
42980 2002-11-24  Jim Meyering  <jim@meyering.net>
42981
42982         Update from coreutils:
42983
42984         * lib/mktime.c: Merge in changes from libc.
42985
42986         Avoid a link-time failure on some Linux systems.
42987         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
42988         (otherwise).
42989         (__mon_yday): Declare with the STATIC attribute.
42990         (__mktime_internal): Likewise.
42991         Based on a report from Greg Schafer.
42992
42993 2002-11-23  Jim Meyering  <jim@meyering.net>
42994
42995         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
42996         Use `unsigned', not `int', as type of index.
42997
42998         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
42999
43000         * lib/fsusage.c: Remove unneeded parentheses around operands of
43001         `defined'.
43002
43003 2002-11-22  Paul Eggert  <eggert@twinsun.com>
43004
43005         * lib/quotearg.h: Allow multiple inclusion by surrounding with
43006         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
43007         so that we can be included first.
43008         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
43009         * lib/quotearg.c: Include quotearg.h immediately after config.h.
43010         No need to include stddef.h or sys/types.h any more.
43011         Surround local include files with "", not "<>".
43012         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
43013         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
43014         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
43015         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
43016         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
43017         (ISPRINT): Remove; no longer needed now that we assume C89.
43018
43019         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
43020         Preserve errno.
43021
43022         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
43023         quotearg_char): Use SIZE_MAX rather than
43024         (size_t) -1 when we are talking about "infinity".
43025
43026         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
43027
43028 2002-11-22  Paul Eggert  <eggert@twinsun.com>
43029
43030         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
43031         hint that one should use `if (! x) abort ();' rather than `assert
43032         (x);', and anyway it's one less thing to worry about configuring.
43033         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
43034         hash_rehash, hash_insert): Use abort rather than assert.
43035
43036 2002-11-22  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/safe-read.h: Assume C89. Add comments.
43039         (safe_read): Change return type to size_t.
43040         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
43041         byte counts > SSIZE_MAX correctly.
43042         * lib/safe-write.h: New file.
43043         * lib/safe-write.c: New file.
43044         * lib/full-read.h: New file.
43045         * lib/full-read.c: New file.
43046         * lib/full-write.h: Assume C89. Add comments.
43047         * lib/full-write.c: Include safe-write.h.
43048         (full_write): Rewritten to use safe_write.
43049         Suggested by Jim Meyering and Paul Eggert.
43050
43051 2002-11-21  Jim Meyering  <jim@meyering.net>
43052
43053         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
43054
43055         Merge in changes from the coreutils.
43056
43057         2002-09-25  Paul Eggert  <eggert@twinsun.com>
43058         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
43059         <stdint.h>.
43060         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
43061         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
43062         int.  Work more efficiently if X is the same width as uintmax_t.
43063         Do not compare X to -1, to avoid bogus compiler warning.
43064         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
43065         Don't assume that f_frsize and f_bsize are the same type.
43066
43067         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
43068         warning on FreeBSD.
43069
43070         * lib/makepath.c (make_path): Restore umask *before* creating the final
43071         component.
43072         (make_path): Minor reformatting.
43073
43074         * lib/xmalloc.c: Adjust to work with new autoconf macros,
43075         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
43076         HAVE_MALLOC/HAVE_REALLOC.
43077
43078         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
43079         dummy ones.  At least on GNU/Linux systems, `auto' means something
43080         else.
43081         From Michael Stone.
43082
43083 2002-11-21  Bruno Haible  <bruno@clisp.org>
43084
43085         Remove case insensitive option matching.
43086         * lib/argmatch.h (argcasematch): Remove declaration.
43087         (ARGCASEMATCH): Remove macro.
43088         (__xargmatch_internal): Remove case_sensitive argument.
43089         (XARGMATCH): Update.
43090         (XARGCASEMATCH): Remove macro.
43091         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
43092         case_sensitive argument.
43093         (argcasematch): Remove function.
43094         (__xargmatch_internal): Remove case_sensitive argument.
43095         (main): Use XARGMATCH instead of XARGCASEMATCH.
43096
43097         * lib/xmalloc.c: Change compile-time error message. Add comment about
43098         required autoconf version.
43099
43100 2002-11-20  Paul Eggert  <eggert@twinsun.com>
43101
43102         Merge argmatch cleanups from Bison.  Assume C89.
43103
43104         * lib/argmatch.c: Include config.h here, not in argmatch.h.
43105         Include stdlib.h, for EXIT_FAILURE.
43106         Always include <string.h>, since we assume C89.
43107         (EXIT_FAILURE): Remove pre-C89 bug workaround.
43108         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
43109         Include <stddef.h> instead, since it's all we need for size_t.
43110         (PARAMS): Remove.  All uses removed.
43111         (ARRAY_CARDINALITY): Do not bother to #undef.
43112         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
43113         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
43114         Remove unnecessary parentheses.
43115         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
43116         Insert necessary parentheses.
43117         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
43118         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
43119
43120 2002-11-19  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
43123         * lib/mbswidth.h: Include <stddef.h>, for size_t.
43124
43125         * lib/mbswidth.h (PARAMS): Remove macro.
43126         (mbswidth, mbsnwidth): Use ANSI C function declarations.
43127         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
43128
43129         * lib/gcd.h (PARAMS): Remove macro.
43130         (gcd): Use ANSI C function declarations.
43131         * lib/gcd.c (gcd): Likewise.
43132
43133 2002-11-15  Bruno Haible  <bruno@clisp.org>
43134
43135         * lib/strcspn.c: Include <stddef.h>.
43136         (strcspn): Use ANSI C function declaration. Change return type to
43137         size_t. Use NULL.
43138         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
43139         (strpbrk): Use NULL.
43140         * lib/strpbrk.h (PARAMS): Remove macro.
43141         (strpbrk): Use ANSI C function declaration.
43142         * lib/strstr.c: Don't include <sys/types.h>.
43143         * lib/strstr.h (PARAMS): Remove macro.
43144         (strstr): Use ANSI C function declarations.
43145
43146 2002-11-14  Karl Berry  <karl@gnu.org>
43147
43148         * config/mkinstalldirs: `do' on separate line, instead of
43149         `for var; do'.
43150
43151 2002-11-06  Bruno Haible  <bruno@clisp.org>
43152
43153         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
43154         * lib/gcd.c (gcd): Likewise.
43155
43156 2002-11-05  Bruno Haible  <bruno@clisp.org>
43157
43158         * lib/gcd.h: New file, from gettext-0.11.5.
43159         * lib/gcd.c: New file, from gettext-0.11.5.
43160
43161 2002-11-05  Bruno Haible  <bruno@clisp.org>
43162
43163         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
43164         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
43165         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
43166         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
43167
43168         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
43169         <libintl.h>.
43170         * lib/makepath.c: Include gettext.h instead of <locale.h> and
43171         <libintl.h>.
43172
43173         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
43174         * lib/human.c: Include gettext.h instead of <libintl.h>.
43175         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
43176         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
43177         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
43178         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
43179         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
43180         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
43181         (textdomain): Remove definition.
43182         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
43183
43184         * lib/long-options.c: Remove include of <libintl.h> and definition of
43185         _.
43186         * lib/same.c: Remove include of <libintl.h> and definition of _.
43187
43188 2002-11-04  Owen Taylor  <otaylor@redhat.com>
43189
43190         * lib/config.charset: A few additions for Solaris.
43191
43192 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
43193
43194         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
43195         * lib/localcharset.c (locale_charset): Declare as extern "C".
43196
43197 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
43198
43199         * lib/config.charset: msdos in uk_UA uses CP1125.
43200
43201 2002-11-04  Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
43204         * lib/strcase.h: New file, from GNU gettext-0.11.5.
43205         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
43206         * lib/strstr.h: New file, from GNU gettext-0.11.5.
43207         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
43208
43209 2002-11-04  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/localcharset.c (locale_charset): Don't return an empty string.
43212
43213 2002-11-04  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
43216         aliases.
43217
43218 2002-11-04  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/config.charset: Update for newest glibc. Add canonical names
43221         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
43222
43223 2002-11-04  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/config.charset: Add support for NetBSD.
43226
43227 2002-11-04  Bruno Haible  <bruno@clisp.org>
43228
43229         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
43230
43231 2002-11-01  Bruno Haible  <bruno@clisp.org>
43232
43233         * configure.in: Add AC_CONFIG_AUX_DIR call.
43234         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
43235         test/Makefile.
43236         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
43237
43238 2002-09-28  Karl Berry  <karl@gnu.org>
43239
43240         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
43241         installed automake until the next release, since changes have been
43242         made.
43243
43244 2002-09-25  Karl Berry  <karl@gnu.org>
43245
43246         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
43247         * lib/getopt*: copy from libc/posix.
43248         * lib/gettext.h: copy from gettext.
43249         * lib/.cppi-disable: add strdup.c, gettext.h.
43250
43251 2002-09-25  Karl Berry  <karl@gnu.org>
43252
43253         * config/srclist.txt: enable gettext.h check.
43254         * config/config.{guess,sub}: update from prep.
43255         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
43256                 from automake 1.6.3.
43257         See srclist*.
43258
43259 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
43260
43261         * regex.c (PATFETCH): Remove the translating fetch.
43262         (PATFETCH_RAW): Rename to PATFETCH.
43263         (set_image_of_range): New fun.
43264         (SET_RANGE_TABLE_WORK_AREA): Use it.
43265         (regex_compile): Don't translate the pattern chars so eagerly.
43266         Only do it when inserting an `exactn' bytecode or when handling
43267         a char-range.
43268         (mutually_exclusive_p): Avoid empty statement.
43269
43270 2002-07-06  Jim Meyering  <meyering@lucent.com>
43271
43272         * m4/README: Don't mention Makefile.am.in.
43273         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
43274
43275 2002-07-01  Jim Meyering  <meyering@lucent.com>
43276
43277         * lib/c-stack.c: Include sys/time.h.
43278         From Volker Borchert.
43279
43280 2002-06-26  Paul Eggert  <eggert@twinsun.com>
43281
43282         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
43283
43284 2002-06-26  Paul Eggert  <eggert@twinsun.com>
43285
43286         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
43287         New macro.  Use it uniformly instead of
43288         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
43289         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
43290         reported by Vin Shelton.
43291
43292 2002-06-22  Paul Eggert  <eggert@twinsun.com>
43293
43294         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
43295         Do not assume SA_SIGINFO behavior.
43296         Bug reported by Jim Meyering on NetBSD 1.5.2.
43297
43298 2002-06-22  Jim Meyering  <meyering@lucent.com>
43299
43300         * m4/c-stack.m4: New file, from diffutils-2.8.2.
43301         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
43302
43303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
43304         now that configure.ac uses AC_GNU_SOURCE.
43305         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
43306         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
43307
43308         Update to latest tools.  Suggestions from Paul Eggert.
43309         * m4/stdbool.m4: New file, from diffutils-2.8.2.
43310         * m4/gnu-source.m4: Update from diffutils-2.8.2.
43311         * m4/fnmatch.m4: Likewise.
43312         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
43313         to AC_HEADER_STDBOOL
43314
43315 2002-06-22  Jim Meyering  <meyering@lucent.com>
43316
43317         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
43318         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
43319
43320 2002-06-22  Jim Meyering  <meyering@lucent.com>
43321
43322         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
43323
43324         * lib/exitfail.c, exitfail.h: Likewise.
43325         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
43326
43327         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
43328         of fnmatch.h.
43329         (EXTRA_DIST): Add fnmatch_loop.c.
43330         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
43331
43332         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
43333         * lib/fnmatch.c: Update from diffutils-2.8.2.
43334         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
43335         * lib/fnmatch.h: Remove file.
43336
43337 2002-06-21  Jim Meyering  <meyering@lucent.com>
43338
43339         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
43340         * m4/mbrtowc.m4: Likewise.
43341
43342         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
43343         * m4/mbswidth.m4: Reflect name change:
43344         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
43345         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
43346
43347         * m4/lib-link.m4: Update from gettext-0.11.2.
43348         * m4/gettext.m4: Likewise.
43349
43350         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
43351         From Alfred M. Szmidt.
43352
43353 2002-06-18  Paul Eggert  <eggert@twinsun.com>
43354
43355         * lib/file-type.h: Report an error if neither S_ISREG nor
43356         S_IFREG is defined, instead of using a test specific to glibc
43357         2.2.  This should be safe, since POSIX requires S_ISREG and
43358         Unix Version 7 had S_IFREG.  We don't need to check for
43359         <sys/types.h> since we don't use any symbols that it defines.
43360
43361 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
43362
43363         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
43364         $@-t, so that each temporary file name is unique and valid in the first
43365         8 characters, for operation under DOS.
43366
43367 2002-06-15  Paul Eggert  <eggert@twinsun.com>
43368
43369         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
43370
43371 2002-06-15  Jim Meyering  <meyering@lucent.com>
43372
43373         Work even with DJGPP 2.03, which lacks support for symlinks.
43374         From Richard Dawe.
43375         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
43376         is defined.
43377         * lib/lchown.c (S_ISLNK): Likewise.
43378
43379 2002-06-15  Jim Meyering  <meyering@lucent.com>
43380
43381         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
43382         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
43383         have been included before this file.
43384
43385 2002-06-14  Jim Meyering  <meyering@lucent.com>
43386
43387         * lib/file-type.h: Use the version from diffutils-2.8.2.
43388         * lib/file-type.c: Likewise.
43389
43390 2002-06-07  Jim Meyering  <meyering@lucent.com>
43391
43392         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
43393         They're needed at least for NetBSD 1.5.2.
43394         ($statxfs_includes): Include those same headers.
43395         ($statxfs_includes): Include sys/vfs.h if available.
43396         ($statxfs_includes): Likewise for sys/statvfs.h.
43397         Check for the following members in both structs statfs and statvfs:
43398         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
43399
43400 2002-06-01  Jim Meyering  <meyering@lucent.com>
43401
43402         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
43403         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
43404
43405 2002-05-28  Jim Meyering  <meyering@lucent.com>
43406
43407         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
43408         Reported by Volker Borchert.
43409
43410 2002-05-27  Jim Meyering  <meyering@lucent.com>
43411
43412         Fix a problem seen only on nonconforming systems whereby ls.c's
43413         use of localtime, and then of gettimeofday would cause trouble:
43414         the localtime call used to initialize rpl_gettimeofday's save
43415         mechanism would clobber ls's current local time information so
43416         that in any long listing the first file would always be listed
43417         with date 1970-01-01.  Analysis by Volker Borchert.
43418
43419         * lib/gettimeofday.c (localtime): Undefine.
43420         (rpl_localtime): New function.
43421
43422 2002-05-27  Jim Meyering  <meyering@lucent.com>
43423
43424         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
43425         localtime.
43426
43427         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
43428         use the replacement function; it wouldn't resolve at link time.
43429         Reported by Volker Borchert.
43430
43431 2002-05-22  Jim Meyering  <meyering@lucent.com>
43432
43433         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
43434         file-type.h.
43435         * lib/file-type.h: New file.
43436         * lib/file-type.c (file_type): New file/function.  Extracted from
43437         diffutils.
43438
43439 2002-04-30  Jim Meyering  <meyering@lucent.com>
43440
43441         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
43442
43443 2002-04-29  Paul Eggert  <eggert@twinsun.com>
43444
43445         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
43446
43447 2002-04-29  Paul Eggert  <eggert@twinsun.com>
43448
43449         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
43450         Do not check for alloca.h (no longer used) or stdbool.h (was never
43451         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
43452
43453 2002-04-29  Paul Eggert  <eggert@twinsun.com>
43454
43455         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
43456
43457 2002-04-29  Jim Meyering  <meyering@lucent.com>
43458
43459         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
43460         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
43461         Use AC_FUNC_STRNLEN here instead.
43462
43463         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
43464         With autoconf-2.53a, it's part of AC_PROG_CC.
43465
43466 2002-04-28  Paul Eggert  <eggert@twinsun.com>
43467
43468         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
43469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
43470
43471 2002-04-28  Paul Eggert  <eggert@twinsun.com>
43472
43473         * lib/sig2str.h, lib/sig2str.c: New files.
43474         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
43475
43476 2002-04-28  Paul Eggert  <eggert@twinsun.com>
43477
43478         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
43479         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
43480         of 127, since 64 is the largest conceivable number for ancient
43481         nonstandard hosts.
43482         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
43483
43484 2002-04-28  Jim Meyering  <meyering@lucent.com>
43485
43486         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
43487
43488 2002-04-24  Jim Meyering  <meyering@lucent.com>
43489
43490         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
43491         (jm_PREREQ): Use it.
43492
43493         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
43494         mach/mach.h fcntl.h.
43495         Check for this function: setlocale.
43496
43497 2002-04-24  Jim Meyering  <meyering@lucent.com>
43498
43499         * lib/gettext.h: New file, from Gettext.
43500         * lib/Makefile.am (INCLUDES): Remove -I../intl.
43501         (libfetish_a_SOURCES): Add gettext.h.
43502
43503 2002-04-16  Jim Meyering  <meyering@lucent.com>
43504
43505         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
43506         ut_pid, ut_id, ut_exit.
43507
43508 2002-04-16  Jim Meyering  <meyering@lucent.com>
43509
43510         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
43511         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
43512         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
43513
43514 2002-04-12  Jim Meyering  <meyering@lucent.com>
43515
43516         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
43517         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
43518         existence of the getmntinfo function.  Needed for Darwin 5.3.
43519
43520         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
43521         This is necessary at least on Darwin 5.3.
43522
43523         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
43524         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
43525         strnlen.o in the library, and that makes some versions of ranlib
43526         object.
43527
43528 2002-04-12  Jim Meyering  <meyering@lucent.com>
43529
43530         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
43531
43532 2002-04-09  Jim Meyering  <meyering@lucent.com>
43533
43534         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
43535         to be more precise.  Rather than saying we're checking whether the
43536         function `works', say what we're testing.
43537         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
43538         Reported by Bruno Haible.
43539
43540 2002-03-10  Jim Meyering  <meyering@lucent.com>
43541
43542         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
43543         Suggestion from Santiago Vila.
43544
43545 2002-03-08  Jim Meyering  <meyering@lucent.com>
43546
43547         * lib/rename.c: Mention that this wrapper is needed also on
43548         mips-dec-ultrix4.4 systems.
43549
43550 2002-03-02  Jim Meyering  <meyering@lucent.com>
43551
43552         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
43553         not HAVE_CLOCK_SETTIME.
43554
43555 2002-02-27  Paul Eggert  <eggert@twinsun.com>
43556
43557         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
43558         Check for clock_settime.
43559
43560 2002-02-27  Paul Eggert  <eggert@twinsun.com>
43561
43562         * lib/nanosleep.h: Rename to....
43563         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
43564
43565         * lib/gettime.c: New file.
43566         * lib/settime.c: New file.
43567         * lib/stime.c: Remove.
43568
43569         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
43570         timespec.h.  Remove nanosleep.h.
43571
43572 2002-02-25  Paul Eggert  <eggert@twinsun.com>
43573
43574         * m4/acl.m4: New file.
43575         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
43576         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
43577
43578 2002-02-25  Paul Eggert  <eggert@twinsun.com>
43579
43580         * lib/acl.c, lib/acl.h: New files.
43581         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
43582
43583 2002-02-24  Jim Meyering  <meyering@lucent.com>
43584
43585         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
43586         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
43587         cause trouble.  Reported by Nelson Beebe.
43588
43589 2002-02-23  Paul Eggert  <eggert@twinsun.com>
43590
43591         * lib/path-concat.c (xpath_concat): Reorder code to pacify
43592         compilers that don't know that xalloc_die never returns.
43593
43594 2002-02-20  Jim Meyering  <meyering@lucent.com>
43595
43596         * lib/getdate.c: Regenerate using bison-1.33.
43597
43598 2002-02-17  Jim Meyering  <meyering@lucent.com>
43599
43600         * config/config.guess (main): Don't use `head -1'; it's no longer
43601         portable. Use `sed 1q' instead.
43602
43603 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
43604
43605         * m4/codeset.m4: Upgrade to gettext-0.11.
43606         * m4/gettext.m4: Upgrade to gettext-0.11.
43607         * m4/glibc21.m4: Upgrade to gettext-0.11.
43608         * m4/iconv.m4: Upgrade to gettext-0.11.
43609         * m4/isc-posix.m4: Upgrade to gettext-0.11.
43610         * m4/lcmessage.m4: Upgrade to gettext-0.11.
43611         * m4/lib-ld.m4: New file, from gettext-0.11.
43612         * m4/lib-link.m4: New file, from gettext-0.11.
43613         * m4/lib-prefix.m4: New file, from gettext-0.11.
43614         * m4/progtest.m4: Upgrade to gettext-0.11.
43615
43616 2002-02-15  Paul Eggert  <eggert@twinsun.com>
43617
43618         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
43619         (jm_PREREQ): Use it.
43620
43621 2002-02-15  Paul Eggert  <eggert@twinsun.com>
43622
43623         * lib/posixver.c, lib/posixver.h: New files.
43624         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
43625
43626 2002-02-02  Paul Eggert  <eggert@twinsun.com>
43627             Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
43630         (fwrite_success_callback): New declaration.
43631         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
43632         print_unicode_char. Call failure callback instead of error.
43633         (fwrite_success_callback): New function.
43634         (exit_failure_callback): New function.
43635         (fallback_failure_callback): New function.
43636         (print_unicode_char): Call unicode_to_mb.
43637
43638 2002-01-26  Jim Meyering  <meyering@lucent.com>
43639
43640         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
43641         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
43642
43643 2002-01-26  Jim Meyering  <meyering@lucent.com>
43644
43645         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
43646
43647 2002-01-22  Paul Eggert  <eggert@twinsun.com>
43648
43649         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
43650
43651 2002-01-22  Jim Meyering  <meyering@lucent.com>
43652
43653         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
43654         Otherwise, some versions of automake would omit the rule that makes
43655         Makefile from Makefile.in.
43656
43657 2002-01-21  Paul Eggert  <eggert@twinsun.com>
43658
43659         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
43660         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
43661         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
43662         (memcoll): Set errno to zero if there is no error.
43663
43664         * lib/quotearg.c (quotearg_buffer_restyled):
43665         Fix bug with quoting buffers containing NUL when backslashing escapes.
43666         This bug was exposed by the other changes in this patch.
43667         (quotearg_n_options): New arg ARGSIZE.
43668         All callers changed.
43669         (quoting_options_from_style): New function.
43670         (quotearg_n_style): Use it.
43671         (quotearg_n_style_mem): New function.
43672
43673         * lib/quotearg.h (quotearg_n_style_mem): New function.
43674
43675 2002-01-19  Jim Meyering  <meyering@lucent.com>
43676
43677         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
43678         Remove useless quotes: DF_PROG="df".
43679         * m4/strnlen.m4: New file.
43680
43681 2002-01-16  Paul Eggert  <eggert@twinsun.com>
43682
43683         * lib/backupfile.c (ISDIGIT): Comment fix.
43684         * lib/getdate.y (ISDIGIT): Likewise.
43685         * lib/posixtm.c (ISDIGIT, year): Likewise.
43686         * lib/strverscmp.c (ISDIGIT): Likewise.
43687         * lib/userspec.c (ISDIGIT): Likewise.
43688
43689 2002-01-16  Jim Meyering  <meyering@lucent.com>
43690
43691         * lib/getdate.y: Add three semicolons, each just before a closing
43692         brace. Bison (as of version 1.31) no longer papers over that mistake.
43693
43694 2002-01-05  Jim Meyering  <meyering@lucent.com>
43695
43696         * lib/version-etc.c (version_etc_copyright): Update copyright year.
43697
43698 2001-12-19  Paul Eggert  <eggert@twinsun.com>
43699
43700         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
43701         not silently exit merely because the output buffer happens to
43702         have nothing pending.
43703
43704 2001-12-18  Paul Eggert  <eggert@twinsun.com>
43705
43706         See the big note in ../ChangeLog.
43707         * lib/human.c (suffixes): Prefer K to k for 1024.
43708         (generate_suffix_backwards): New function.
43709         (human_readable_inexact): Use it.
43710         * lib/xstrtol.c (__xstrtol): If there is no number but there
43711         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
43712         Accept 'K' as well as 'k'.
43713
43714 2001-12-15  Jim Meyering  <meyering@lucent.com>
43715
43716         * lib/regex.h (__restrict_arr): Update from libc.
43717
43718         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
43719         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
43720         (STREQ): Define.
43721
43722 2001-12-14  Jim Meyering  <meyering@lucent.com>
43723
43724         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
43725         Suggestion from Bruno Haible.
43726
43727 2001-12-10  Jim Meyering  <meyering@lucent.com>
43728
43729         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
43730         xrealloc, Instead, include "xalloc.h".
43731         (initbuffer): Don't cast xmalloc return value to char*.
43732         (readline): Reword comment.
43733         Don't cast xrealloc return value to char*
43734         Return NULL, not 0.
43735
43736 2001-12-09  Jim Meyering  <meyering@lucent.com>
43737
43738         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
43739         about `signed and unsigned type in conditional expression'.
43740         * lib/posixtm.c (posix_time_parse): Likewise.
43741
43742         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
43743
43744         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
43745         to avoid a pedantic warning.
43746
43747         * lib/getstr.c: Don't include assert.h.
43748         (getstr): Remove warning-evoking assertions.
43749         Return -1 if offset parameter is out of bounds.
43750         Change the type of a local from int to size_t.
43751
43752         * lib/strftime.c (my_strftime_localtime_r): Include this function
43753         definition in the `#if ! HAVE_TM_GMTOFF' block.
43754
43755         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
43756         Include xalloc.h instead.
43757
43758 2001-12-02  Jim Meyering  <meyering@lucent.com>
43759
43760         * lib/tempname.c: Don't declare getenv, thus reverting the change of
43761         2001-11-18.  It's no longer necessary, now that stdlib.h is always
43762         included.
43763
43764         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
43765         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
43766
43767 2001-11-30  Akim Demaille  <akim@epita.fr>
43768
43769         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
43770         before being defined.
43771
43772 2001-11-27  Paul Eggert  <eggert@twinsun.com>
43773
43774         * lib/quotearg.h (quotearg_n, quotearg_n_style):
43775         First arg is int, not unsigned.
43776         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
43777         (SIZE_MAX, UINT_MAX): New macros.
43778         (quotearg_n_options): Abort if N is negative.
43779         Avoid overflow check on hosts where size_t is 64 bits and int
43780         is 32 bits, as overflow is impossible there.
43781         Fix off-by-one typo that caused unnecessary reallocation.
43782
43783 2001-11-27  Jim Meyering  <meyering@lucent.com>
43784
43785         * lib/tempname.c: Merge with version from libc.
43786         * lib/regex.c: Likewise.
43787
43788         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
43789         systems for which STDC_HEADERS is 0, it was not included, resulting in
43790         a warning about an integer-to-pointer conversion problem with getenv.
43791         Reported by Volker Borchert.
43792
43793 2001-11-26  Jim Meyering  <meyering@lucent.com>
43794
43795         * lib/gtod.h: Remove file.
43796         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
43797         * lib/gettimeofday.c: Don't include gtod.h.
43798         (GTOD_init): Remove function.
43799         (rpl_gettimeofday): Do its job here instead, rather than aborting.
43800         Suggestion from Volker Borchert.
43801
43802 2001-11-23  Jim Meyering  <meyering@lucent.com>
43803
43804         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
43805         it.
43806         * lib/hash.c (struct hash_table): Define it here instead.
43807
43808 2001-11-22  Jim Meyering  <meyering@lucent.com>
43809
43810         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
43811
43812 2001-11-20  Jim Meyering  <meyering@lucent.com>
43813
43814         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
43815         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
43816
43817 2001-11-19  Jim Meyering  <meyering@lucent.com>
43818
43819         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
43820         directory.  Use "conftestXXXXXX" as the template.
43821         Suggestion from Paul Eggert.
43822
43823         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
43824         immediately, so the test doesn't mistakenly hit the max-open-files
43825         limit.
43826
43827 2001-11-18  Paul Eggert  <eggert@twinsun.com>
43828
43829         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
43830         (TEMPORARIES): New macro.
43831         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
43832         removes an artificial limitation (e.g. HP-UX 10.20, where
43833         TMP_MAX is 17576).
43834
43835 2001-11-18  Jim Meyering  <meyering@lucent.com>
43836
43837         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
43838
43839 2001-11-18  Jim Meyering  <meyering@lucent.com>
43840
43841         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
43842         on SunOS 4.
43843
43844         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
43845         files will be created before anything else.
43846
43847 2001-11-17  Paul Eggert  <eggert@twinsun.com>
43848
43849         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
43850         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
43851
43852 2001-11-17  Jim Meyering  <meyering@lucent.com>
43853
43854         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
43855         Prompted by a report from Bob Proulx.
43856
43857         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
43858         Instead, require UTILS_FUNC_MKSTEMP.
43859
43860 2001-11-17  Jim Meyering  <meyering@lucent.com>
43861
43862         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
43863         Now, that's done as part of AC_FUNC_STRTOD.
43864
43865 2001-11-17  Jim Meyering  <meyering@lucent.com>
43866
43867         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
43868         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
43869         rather than group writable.  Patch by Juan F. Codagnone.
43870
43871         * lib/readtokens.c: Remove explicit declarations of xmalloc and
43872         xrealloc, Instead, include "xalloc.h".
43873
43874         * lib/mountlist.c: Include unlocked-io.h after all system headers.
43875         Remove explicit declarations of xmalloc, xrealloc,
43876         and xstrdup.  Instead, include "xalloc.h".
43877
43878         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
43879         unlocked-io.h.
43880         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
43881         Likewise.
43882         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
43883
43884         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
43885         Reported by Padraig Brady.
43886
43887         * lib/mkstemp.c: #undef mkstemp.
43888         Include config.h.
43889         (rpl_mkstemp): Rename from mkstemp.
43890         Protoize.
43891
43892 2001-11-16  Jim Meyering  <meyering@lucent.com>
43893
43894         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
43895         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
43896         determine the amount of total physical memory, use pstat_getstatic.
43897         HPUX-11 doesn't define _SC_PHYS_PAGES.
43898         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
43899         If sysconf couldn't be used to determine the amount of available
43900         physical memory, use both pstat_getstatic and pstat_getdynamic.
43901         Based on a patch from Bob Proulx.
43902
43903 2001-11-10  Jim Meyering  <meyering@lucent.com>
43904
43905         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
43906         (jm_PREREQ): Use it.
43907
43908 2001-11-09  Jim Meyering  <meyering@lucent.com>
43909
43910         * m4/jm-macros.m4: Require autoconf-2.52f.
43911         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
43912         Use these AC_-prefixed names, not the AM_-prefixed ones.
43913
43914         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
43915
43916 2001-11-05  Jim Meyering  <meyering@lucent.com>
43917
43918         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
43919
43920 2001-11-04  Jim Meyering  <meyering@lucent.com>
43921
43922         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
43923         $DEFS.
43924
43925 2001-11-03  Jim Meyering  <meyering@lucent.com>
43926
43927         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
43928         of AC_DEFUN.
43929
43930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
43931         know the name of the variable in the macro definition.
43932
43933 2001-11-03  Jim Meyering  <meyering@lucent.com>
43934
43935         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
43936         in argmatch_to_argument call.
43937
43938         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
43939         argument.
43940
43941         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
43942         e.g., a fault due to an attempt to free a NULL pointer.
43943
43944 2001-11-01  Jim Meyering  <meyering@lucent.com>
43945
43946         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
43947         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
43948
43949 2001-11-01  Jim Meyering  <meyering@lucent.com>
43950
43951         * lib/dirfd.c, lib/dirfd.h: New files.
43952         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
43953
43954         * lib/hash.c (hash_print) [TESTING]: Clean up.
43955
43956 2001-10-22  Paul Eggert  <eggert@twinsun.com>
43957
43958         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
43959         to avoid a warning if -Wall.
43960
43961 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
43962
43963         * README: New file
43964         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
43965         (per RMS's instructions, this is now the canonical source)
43966         * lgpl/, gpl/: New directories.
43967
43968 2001-10-21  Paul Eggert  <eggert@twinsun.com>
43969
43970         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
43971
43972 2001-10-21  Jim Meyering  <meyering@lucent.com>
43973
43974         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
43975         this code would end up calling gettext even in packages built
43976         with --disable-nls.
43977         * lib/getopt.c (_): Likewise.
43978         * lib/regex.c (_): Likewise.
43979
43980 2001-10-20  Paul Eggert  <eggert@twinsun.com>
43981
43982         * m4/error.m4 (jm_PREREQ_ERROR):
43983         Do not invoke AC_CHECK_FUNCS with strerror_r, as
43984         AC_FUNC_STRERROR_R does that.
43985         Check for strerror declaration.
43986
43987         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
43988         are supposed to have them these days.
43989         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
43990         Merge changes from latest Autoconf CVS.
43991         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
43992         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
43993         POSIX decided to standardize on the int flavor of strerror_r.
43994
43995 2001-10-20  Paul Eggert  <eggert@twinsun.com>
43996
43997         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
43998         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
43999         Use strerror_r that is only a macro, even if it is not a function.
44000         (strerror): Check for HAVE_DECL_STRERROR before declaring.
44001         (private_strerror): Use prototypes, not old-style function definition.
44002         (print_errno_message): New function.
44003         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
44004         char*-flavored one.
44005         (error_tail, error, error_at_line): Use it.
44006
44007 2001-10-11  Jim Meyering  <meyering@lucent.com>
44008
44009         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
44010         and quote_n (1, ... to avoid clobbering a buffer.
44011
44012 2001-10-05  Jim Meyering  <meyering@lucent.com>
44013
44014         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
44015         hash-pjw.h.
44016         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
44017         * lib/hash-pjw.h: New file.
44018
44019 2001-09-30  Jim Meyering  <meyering@lucent.com>
44020
44021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
44022         `struct fsstat' has the `f_fstypename' member.
44023         Use that to define FS_TYPE, which is now used to make
44024         the getfsstat link test tighter.
44025
44026 2001-09-30  Jim Meyering  <meyering@lucent.com>
44027
44028         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
44029         Include <sys/ucred.h>, for Apple Darwin.
44030         Include sys/mount.h and sys/fs_types.h only if available.
44031         (FS_TYPE): Define.
44032         (read_filesystem_list): Use FS_TYPE.
44033
44034 2001-09-29  Paul Eggert  <eggert@twinsun.com>
44035
44036         * lib/exclude.c (excluded_filename): 0 -> false, since it's
44037         a boolean context.
44038
44039 2001-09-29  Jim Meyering  <meyering@lucent.com>
44040
44041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
44042         [one-argument getmntent function]): Include stdio.h before mntent.h.
44043         SunOS 4.1.x needs it for the declaration of `FILE'.
44044         Patch by Volker Borchert.
44045
44046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
44047         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
44048         sys/fs_types.h, and make the link-test for getfsstat guard #include
44049         directives with appropriate #if HAVE_*_H tests so that we can
44050         detect getfsstat on Apple Darwin1.3.7 systems.
44051         Reported by Nelson Beebe.
44052         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
44053
44054 2001-09-28  Paul Eggert  <eggert@twinsun.com>
44055
44056         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
44057         #defines strtoimax.  Also treat the other strto* functions
44058         like strtoimax.
44059
44060         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
44061         Check for strtoul and strtoumax,
44062         as those declarations are made even in the signed case.
44063         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
44064         Likewise, for strtol and strtoimax.
44065
44066 2001-09-28  Paul Eggert  <eggert@twinsun.com>
44067
44068         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
44069         #defines strtoimax.  Also treat the other strto* functions
44070         like strtoimax.
44071
44072         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
44073         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
44074         (strtoimax, strtoumax): Do not declare if already defined as a macro.
44075
44076 2001-09-26  Jim Meyering  <meyering@lucent.com>
44077
44078         Most macros in unlocked-io.h had the wrong number of arguments.
44079         * lib/gen-uio: New script.
44080         (USE_UNLOCKED_IO): Define to 1 if not already defined.
44081         * lib/unlocked-io.hin: Remove file.
44082         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
44083         rather than trying to embed it here.
44084         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
44085         Reported by Padraig Brady.
44086
44087 2001-09-25  Volker Borchert  <bt@teknon.de>
44088
44089         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
44090         `result'.
44091
44092 2001-09-24  Jim Meyering  <meyering@lucent.com>
44093
44094         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
44095
44096 2001-09-23  Jim Meyering  <meyering@lucent.com>
44097
44098         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
44099         instead of the mere test for existence of mntent.h.  The latter
44100         would get a false-positive on AIX 3.4 systems.
44101         In the outer getmntent if-block, don't die if neither of the getmntent
44102         tests succeeds.  Instead, just fall through and continue with the
44103         remaining tests.
44104
44105 2001-09-23  Jim Meyering  <meyering@lucent.com>
44106
44107         * lib/mountlist.c: Remove useless parentheses in #if directives.
44108         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
44109         the deprecated MOUNTED symbol is no longer defined in mntent.h.
44110
44111 2001-09-22  Jim Meyering  <meyering@lucent.com>
44112
44113         * m4/gettext.m4: New file.  From gettext.
44114         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
44115         * m4/progtest.m4: Likewise
44116         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
44117         * m4/glibc21.m4: Likewise.
44118
44119         * m4/libintl.m4: Remove.  No longer used.
44120
44121 2001-09-22  Jim Meyering  <meyering@lucent.com>
44122
44123         * lib/localcharset.c: Update from latest gettext.
44124         * lib/config.charset: Likewise.
44125
44126 2001-09-20  Jim Meyering  <meyering@lucent.com>
44127
44128         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
44129         strtoimax.
44130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
44131         strtoumax.
44132
44133 2001-09-20  Jim Meyering  <meyering@lucent.com>
44134
44135         * lib/xstrtol.c (strtoimax): Guard declaration with
44136         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
44137         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
44138         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
44139         (strtoumax): Likewise, for completeness (it wasn't necessary).
44140
44141 2001-09-17  Paul Eggert  <eggert@twinsun.com>
44142
44143         * lib/strtoimax.c (HAVE_LONG_LONG):
44144         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
44145         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
44146         to work around bug in IBM C compiler.
44147
44148 2001-09-17  Jim Meyering  <meyering@lucent.com>
44149
44150         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
44151         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
44152         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
44153         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
44154         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
44155         whenever the right hand side need not be expanded by the shell.
44156
44157 2001-09-16  Paul Eggert  <eggert@twinsun.com>
44158
44159         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
44160         library.  It's not correct, as some older glibcs are buggy.
44161         fnmatch wasn't fixed until glibc 2.2.
44162
44163         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
44164         special shell magic here.
44165
44166 2001-09-16  Jim Meyering  <meyering@lucent.com>
44167
44168         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
44169         * m4/jm-macros.m4: Require it.
44170
44171 2001-09-16  Jim Meyering  <meyering@lucent.com>
44172
44173         * lib/mkdir.c: New file.
44174
44175 2001-09-15  Jim Meyering  <meyering@lucent.com>
44176
44177         * m4/jm-macros.m4: Check for help2man.
44178
44179 2001-09-11  Jim Meyering  <meyering@lucent.com>
44180
44181         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
44182         The body, by Paul Eggert, was moved here from configure.in.
44183         * m4/jm-macros.m4: Require UTILS_HOST_OS.
44184
44185 2001-09-04  Paul Eggert  <eggert@twinsun.com>
44186
44187         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
44188         (jm_PREREQ): Use it.
44189
44190 2001-09-04  Paul Eggert  <eggert@twinsun.com>
44191
44192         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
44193         Use ssize_t, not int, to store result of readlink.
44194         Check for ssize_t overflow as well as size_t overflow,
44195         as POSIX says the result of readlink is implementation-defined
44196         when ssize_t overflows.
44197         Remove unnecessary cast to char*.
44198         Use free+malloc instead of realloc, as the storage doesn't need
44199         to be preserved and it's clearer and can be more efficient that way.
44200         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
44201         * lib/xreadlink.h (xreadlink): Update prototype.
44202
44203 2001-09-04  Paul Eggert  <eggert@twinsun.com>
44204
44205         * lib/xgetcwd.c: Revert some of the previous change; intead,
44206         fix the HAVE_GETCWD_NULL code to behave more like the
44207         !HAVE_GETCWD_NULL code used to.
44208
44209         Include "xalloc.h".
44210         (xgetcwd): Do not return NULL when memory is exhausted; instead,
44211         invoke xalloc_die.
44212
44213 2001-09-03  Paul Eggert  <eggert@twinsun.com>
44214
44215         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
44216         sys/param.h, as pathmax.h includes them.
44217
44218 2001-09-03  Paul Eggert  <eggert@twinsun.com>
44219
44220         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
44221         (jm_PREREQ_XGETCWD): New macro.
44222
44223         * m4/getcwd.m4: New file.
44224
44225 2001-09-03  Paul Eggert  <eggert@twinsun.com>
44226
44227         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
44228         like the HAVE_GETCWD_NULL code.
44229         Include pathmax.h if not HAVE_GETCWD.
44230         Do not include xalloc.h.
44231         (INITIAL_BUFFER_SIZE): New symbol.
44232         Do not use xmalloc / xrealloc, since the caller is responsible for
44233         handling errors.  Preserve errno around `free' during failure.
44234         Do not overrun buffer when using getwd.
44235
44236 2001-09-03  Paul Eggert  <eggert@twinsun.com>
44237
44238         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
44239         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
44240         getcwd (NULL, 0).
44241
44242 2001-09-03  Paul Eggert  <eggert@twinsun.com>
44243
44244         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
44245         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
44246         spotted by Jim Meyering.
44247
44248 2001-09-03  Jim Meyering  <meyering@lucent.com>
44249
44250         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
44251         failure.
44252
44253 2001-09-02  Jim Meyering  <meyering@lucent.com>
44254
44255         * lib/error.c: Update from GNU libc.
44256
44257 2001-09-01  Jim Meyering  <meyering@lucent.com>
44258
44259         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
44260         Used by df.
44261
44262 2001-09-01  Jim Meyering  <meyering@lucent.com>
44263
44264         * lib/xreadlink.c: New file.
44265         * lib/xreadlink.h: New file.
44266         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
44267         xreadlink.h.
44268
44269         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
44270         doesn't conflict with sparc Solaris 7's definition in
44271         /usr/include/sys/int_types.h.
44272
44273         * lib/exclude.c: Use `""', not `<>' to #include non-system header
44274         files.
44275         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
44276         and strncasecmp as r-values.  Unixware didn't have declarations.
44277
44278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
44279
44280         * lib/xstrtol.h: Add copyright notice.
44281         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
44282         LONGINT_INVALID_SUFFIX_CHAR.
44283
44284 2001-08-31  Paul Eggert  <eggert@twinsun.com>
44285
44286         * lib/xstrtol.c (strtoimax): New decl.
44287
44288 2001-08-31  Paul Eggert  <eggert@twinsun.com>
44289
44290         * lib/xgetcwd.c: Don't include pathmax.h.
44291         Include stdlib.h and unistd.h if available.
44292         Include xalloc.h.
44293         (xmalloc, xstrdup, free): Remove decls.
44294         (xgetcwd): Don't assume sizes fit in unsigned.
44295         Check for overflow when computing sizes.
44296         Simplify reallocation code.
44297
44298 2001-08-31  Paul Eggert  <eggert@twinsun.com>
44299
44300         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
44301         a directory's st_size can have an arbitrary value, so the old
44302         usage could waste an arbitrary amount of memory.  All uses
44303         changed.
44304         * lib/savedir.h: Update prototype.
44305
44306 2001-08-31  Paul Eggert  <eggert@twinsun.com>
44307
44308         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
44309
44310         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
44311         old strtoimax.c.
44312
44313         Also, make the following further changes to make this file's
44314         configuration more similar to that of strtol.c:
44315         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
44316         (strtoumax, uintmax_t, strtoull, strtol): Remove.
44317         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
44318         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
44319         changed to signed values.
44320
44321         And make the following changes as well:
44322         Fix copyright notice, as 1999 was missing.
44323         (verify): New macro.
44324         (strtoimax): Check sizes at compile-time, not run-time.
44325         Prefer strtol to strtoll if both work.
44326         (main): Remove; it was not that useful and was a pain to maintain.
44327
44328         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
44329
44330 2001-08-31  Jim Meyering  <meyering@lucent.com>
44331
44332         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
44333         Use an initial, malloc'd, buffer of length 128 rather than
44334         a statically allocated one of length 1024.
44335
44336 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44337
44338         Simplify code, partly by assuming autoconf 2.52 semantics.
44339
44340         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
44341
44342         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
44343         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
44344         All uses removed.
44345         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
44346         Move AC_REQUIRE to next-to-top level, to avoid confusion.
44347         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
44348         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
44349         jm_AC_HEADER_INTTYPES_H.
44350         * m4/jm-macros.m4 (jm_MACROS): Likewise.
44351
44352         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
44353
44354         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
44355         Quote first arg of AC_DEFUN.
44356         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
44357         since they are needed to parse the include file even if we need
44358         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
44359         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
44360         but with opposite signedness.
44361
44362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44363
44364         Merge 'exclude' changes from tar 1.13.22.
44365         This fixes one or two unlikely storage allocation overflow bugs,
44366         but doesn't change user-visible behavior otherwise.
44367
44368 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44369
44370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
44371         (jm_PREREQ_EXCLUDE): New macro.
44372
44373 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44374
44375         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
44376         tm to be declared.
44377
44378 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44379
44380         * lib/hash.c: Remove '2001' from copyright notice.
44381
44382 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44383
44384         * lib/full-write.h: New file.
44385         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
44386         * lib/full-write.c: Correct credits, as cccp.c no longer
44387         exists and anyway it was so heavily changed from the old cccp
44388         code as to be unrecognizable.  Include full-write.h.
44389         (full_write) Return size_t, with short writes meaning failure.
44390         All callers changed.  This fixes a bug with large buffers
44391         on 64-bit hosts.
44392         * lib/utime.c: Include full-write.h.
44393
44394 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44395
44396         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
44397         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
44398         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
44399         Include if available.
44400         (<xalloc.h>): Include
44401         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
44402         (verify): New macro.  Use it to verify that EXCLUDE macros do not
44403         collide with FNM macros.
44404         (struct patopts): New struct.
44405         (struct exclude): Use it, as exclude patterns now come with options.
44406         (new_exclude): Support above changes.
44407         (new_exclude, add_exclude_file):
44408         Initial size must now be a power of two to simplify overflow checking.
44409         (free_exclude, fnmatch_no_wildcards): New function.
44410         (excluded_filename): No longer requires options arg, as the options
44411         are determined by add_exclude.  Now returns bool, not int.
44412         (excluded_filename, add_exclude):
44413         Add support for the fancy new exclusion options.
44414         (add_exclude, add_exclude_file): Now takes int options arg.
44415         Check for arithmetic overflow when computing sizes.
44416         (add_exclude_file): xrealloc might modify errno, so don't
44417         realloc until after errno might be used.
44418
44419         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
44420         New macros.
44421         (free_exclude): New decl.
44422         (add_exclude, add_exclude_file): Now takes int options arg.
44423         (excluded_filename): No longer requires options arg, as the options
44424         are determined by add_exclude.  Now returns bool, not int.
44425
44426 2001-08-30  Paul Eggert  <eggert@twinsun.com>
44427
44428         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
44429
44430 2001-08-27  Jim Meyering  <meyering@lucent.com>
44431
44432         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
44433
44434         * lib/version-etc.c (N_): Remove definition.
44435         Revert most of last change.
44436         Instead, simply don't mark the `Copyright...' string for translation.
44437         Based on advice from Paul Eggert.
44438
44439         * lib/strtoxmax.c: Tweak comment.
44440
44441 2001-08-26  Jim Meyering  <meyering@lucent.com>
44442
44443         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
44444
44445         * m4/xstrtoimax.m4: New file.
44446         * m4/xstrtoumax.m4: Add comments explaining why we
44447         AC_REPLACE_FUNCS(strtol).
44448
44449 2001-08-26  Jim Meyering  <meyering@lucent.com>
44450
44451         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
44452         of copyright with `%s' so translators don't get an untranslated
44453         message in 2002.
44454         (COPYRIGHT_YEAR): Define.
44455         (version_etc): Use fprintf rather than fputs.
44456         Suggestion from Ulrich Drepper.
44457
44458         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
44459
44460         * lib/strtoll.c: New file, from GNU libc.
44461         * lib/xstrtoimax.c: New file.
44462
44463         * lib/xstrtol.h: Add xstrtoimax.
44464         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
44465         * lib/strtoimax.c: New file.  Likewise, but first define
44466         STRTOUXMAX_SIGNED.
44467
44468         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
44469         ...
44470         * lib/strtoxmax.c: ... then renamed to this.
44471
44472 2001-08-18  Paul Eggert  <eggert@twinsun.com>
44473
44474         * m4/inttypes.m4: Add AC_PREREQ(2.13).
44475         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
44476         (jm_AC_TYPE_INTMAX_T): New macro.
44477         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
44478
44479         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
44480
44481         * m4/longlong.m4: Renamed from ulonglong.m4.
44482         * m4/inttypes.m4: Renamed from inttypes_h.m4.
44483         * m4/uintmax_t.m4: Removed.
44484
44485 2001-08-13  Paul Eggert  <eggert@twinsun.com>
44486
44487         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
44488         Port to Solaris 8, where 'sed' requires a space after the 'r'
44489         command, and where sh dislikes "$/".  Clean up the spacing a bit.
44490         Redirect output to $tmp just once.
44491
44492 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
44493
44494         * lib/addext.c (<errno.h>): Include.
44495         (errno): Declare if not defined.
44496         (addext): Work correctly when pathconf returns -1 and leaves
44497         errno alone because there is no limit.  Also, work even if
44498         pathconf returns a value greater than SIZE_MAX.
44499
44500 2001-08-12  Jim Meyering  <meyering@lucent.com>
44501
44502         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
44503         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
44504         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
44505         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
44506         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
44507         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
44508         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
44509         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
44510         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
44511         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
44512         utime.m4, utimes.m4, xstrtoumax.m4:
44513         Quote the first argument in each use of AC_DEFUN.
44514
44515 2001-08-12  Jim Meyering  <meyering@lucent.com>
44516
44517         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
44518         Simply `return getcwd (NULL, 0);'.
44519         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
44520         Use 1300 as initial value for length, not PATH_MAX.
44521
44522         * lib/pathmax.h: Clean up cpp syntax.
44523
44524 2001-08-12  Jim Meyering  <meyering@lucent.com>
44525
44526         * lib/gettimeofday.c: New file.
44527         * lib/gtod.h: New file.
44528         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
44529
44530 2001-08-05  Jim Meyering  <meyering@lucent.com>
44531
44532         * m4/jm-macros.m4: Require autoconf-2.52.
44533
44534 2001-08-04  Jim Meyering  <meyering@lucent.com>
44535
44536         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
44537         stmt, to get in sync with glibc.
44538
44539 2001-08-03  Paul Eggert  <eggert@twinsun.com>
44540
44541         The following changes are from gettext 0.10.39 as maintained by
44542         Bruno Haible.
44543
44544         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
44545         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
44546         with inverted sense.  All uses changed.
44547
44548         * lib/mbswidth.c: Don't include <limits.h>.
44549         Include <stdlib.h> and <string.h> unconditionally.
44550         (iswcntrl, mbsinit, ISCNTRL): New macros.
44551         (mbsnwidth): Use K&R style function declarations.
44552         Don't bother checking for MB_LEN_MAX == 1, since the compiler
44553         can optimize it when MB_CUR_MAX == 1.
44554         The width of control characters is zero, not 1.
44555
44556 2001-08-03  Paul Eggert  <eggert@twinsun.com>
44557
44558         The following changes are from gettext 0.10.39 as maintained by
44559         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
44560
44561         * m4/codeset.m4: Upgrade to serial AM1.
44562         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
44563         all uses changed.  Quote first arg of AC_DEFUN.
44564         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
44565
44566         * m4/iconv.m4: Upgrade to serial AM2.
44567         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
44568         Add --with-libconv-prefix.
44569         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
44570         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
44571         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
44572         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
44573         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
44574
44575         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
44576         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
44577         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
44578         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
44579         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
44580         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
44581         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44582         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
44583         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
44584
44585         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
44586         string.h any more.
44587
44588         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
44589         not the default value.
44590
44591         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
44592         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
44593         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
44594         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
44595         Also check for iswcntrl, used for wcwidth fallback.
44596         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
44597         to Autoconf 2.13.
44598
44599 2001-08-03  Jim Meyering  <meyering@lucent.com>
44600
44601         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
44602         as it was in the original.  Reported by Paul Eggert.
44603
44604 2001-07-16  Jim Meyering  <meyering@lucent.com>
44605
44606         * m4/gettimeofday.m4: New file.
44607         Prompted by a report from Bernhard Baehr.
44608
44609 2001-07-15  Jim Meyering  <meyering@lucent.com>
44610
44611         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
44612         stuff. Now it's in ../Makefile.cfg.
44613
44614 2001-07-15  Jim Meyering  <meyering@lucent.com>
44615
44616         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
44617         (BUILT_SOURCES): Add unlocked-io.h.
44618         (io_functions): Define.
44619         (unlocked-io.h): New rule.
44620         (DISTCLEANFILES): Add unlocked-io.h.
44621         (all-local): Depend on unlocked-io.h, to ensure it is created.
44622
44623         * lib/unlocked-io.hin: New file
44624
44625         * lib/regex.c: Update from glibc.
44626
44627 2001-07-05  Jim Meyering  <meyering@lucent.com>
44628
44629         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
44630         recommendation.
44631         (libfetish_a_SOURCES): Put all .h files here instead.
44632         Remove a thus-exposed (better checks in automake) duplicate and
44633         two unnecessary .h files.
44634
44635 2001-07-04  Jim Meyering  <meyering@lucent.com>
44636
44637         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
44638         that generates jm-glibc-io.m4 so that it doesn't trigger any make
44639         distcheck failure.
44640
44641 2001-07-02  Jim Meyering  <meyering@lucent.com>
44642
44643         The following changes were prompted by suggestions from Bruno Haible.
44644
44645         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
44646         is now generated.
44647         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
44648         definition of EXTRA_DIST.
44649         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
44650         ensure that the generated file is created/updated whenever the list
44651         of $(unlocked_functions) is changed.
44652         (jm-glibc-io.m4): New rule.
44653         (unlocked-io.h): New rule -- currently unused.
44654
44655 2001-06-24  Jim Meyering  <meyering@lucent.com>
44656
44657         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
44658         unmatched right bracket, rather than kludging it with an extra,
44659         falsely-matching quote in a comment.  Patch by Akim Demaille.
44660
44661 2001-06-11  Jim Meyering  <meyering@lucent.com>
44662
44663         * lib/regex.c: Update from GNU libc.
44664
44665 2001-05-27  Jim Meyering  <meyering@lucent.com>
44666
44667         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
44668         Check for ut_type in struct utmp.
44669
44670 2001-05-27  Jim Meyering  <meyering@lucent.com>
44671
44672         * lib/readutmp.h (UT_TYPE): Define.
44673
44674 2001-05-24  Jim Meyering  <meyering@lucent.com>
44675
44676         * lib/argmatch.c: Include "quote.h".
44677         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
44678         quote function.  Reported by Göran Uddeborg.
44679
44680 2001-05-22  Jim Meyering  <meyering@lucent.com>
44681
44682         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
44683         now that we use the package-supplied version unconditionally.
44684         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
44685
44686 2001-05-21  Jim Meyering  <meyering@lucent.com>
44687
44688         * m4/regex.m4: Change a couple backticks to single quotes to avoid
44689         shell syntax errors.
44690
44691 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
44692
44693         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
44694
44695 2001-05-20  Paul Eggert  <eggert@twinsun.com>
44696
44697         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
44698         Don't bother to check library strftime, since
44699         we'll be using our own my_strftime function anyway.
44700         Define my_strftime instead of strftime.
44701
44702 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
44703
44704         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
44705         which is not yet declared.
44706
44707 2001-05-15  Jim Meyering  <meyering@lucent.com>
44708
44709         * m4/regex.m4: Use proper quoting so brackets appear in the test
44710         program.
44711         Reported by, and with help from, Bruno Haible.
44712
44713 2001-05-13  Jim Meyering  <meyering@lucent.com>
44714
44715         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
44716         undefined.
44717
44718 2001-05-11  Paul Eggert  <eggert@twinsun.com>
44719
44720         dirname code cleanup.  base_name now behaves more compatibly
44721         with POSIX basename when given file names that have trailing
44722         slashes, and similarly for dir_name.  Add new primitives
44723         base_len and dir_len.  Put the directory-name-related decls
44724         into dirname.h.
44725
44726         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
44727         * lib/backupfile.c (base_name): Likewise.
44728         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
44729         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
44730         * lib/makepath.c (strip_trailing_slashes): Likewise.
44731         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
44732         ISSLASH): Likewise.
44733         * lib/rename.c (strip_trailing_slashes): Likewise.
44734         * lib/same.c (base_name): Likewise.
44735         * lib/stripslash.c (ISSLASH): Likewise.
44736
44737         * lib/addext.c: Include <dirname.h> after size_t is defined.
44738         * lib/backupfile.c: Likewise.
44739
44740         * lib/addext.c (addext): Use base_len to trim redundant
44741         trailing slashes instead of doing it ourselves.
44742         But do not trim the last slash if it is not redundant.
44743
44744         * lib/backupfile.c (find_backup_file_name,
44745         max_backup_version): Use base_len instead of rolling it ourselves.
44746         Handle the case of "" and (on DOS) "C:" correctly.
44747
44748         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
44749         needed. Include <string.h>, <dirname.h>.
44750         (base_name): Allow file names ending in slashes, other than names
44751         that are all slashes.  In this case, return the basename followed
44752         by the slashes.  This is more general, and can be used in places
44753         where the original base_name purposely had an assertion failure.
44754         (base_len): New function.
44755
44756         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
44757         Do not include <assert.h>; no longer needed.
44758         Include xalloc.h.
44759         (memrchr): Remove decl.
44760         (dir_name_r): Remove.
44761         (dir_len): Renamed from dirlen.  All callers changed.
44762         Rewrite in terms of base_name, for simplicity and consistency.
44763         (dir_name): Never return NULL.  All callers changed.
44764         Do not include <stdlib.h> in test program; no longer needed.
44765         return 0; is fine for test program.
44766
44767         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
44768         New macros.
44769         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
44770
44771         * lib/path-concat.c (path_concat): Use base_len to compute
44772         base length, not strlen; this means we cannot rely on memcpy
44773         to null-terminate.
44774
44775         * lib/same.c (STREQ): Remove.
44776         (same_name): Handle the case where the basename ends in trailing '/'.
44777
44778         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
44779         a slash was stripped.  Do not strip the last slash after a
44780         file system prefix.
44781
44782 2001-05-11  Paul Eggert  <eggert@twinsun.com>
44783
44784         * lib/Makefile.am (libfetish_a_SOURCES):
44785         Add strftime.c, since we now compile it on all hosts.
44786
44787         * lib/strftime.c (my_strftime):
44788         Define to nstrftime if emacs, but only if my_strftime is not defined.
44789         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
44790         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
44791         Add one more extra argument: a nanoseconds value.
44792         All uses changed.
44793         (ns): New macro.
44794         (my_strftime function): Add %N format.
44795         (emacs_strftimeu): Renamed from emacs_strftime,
44796         with extra ut argument.
44797
44798 2001-05-09  Paul Eggert  <eggert@twinsun.com>
44799
44800         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
44801
44802 2001-04-21  Jim Meyering  <meyering@lucent.com>
44803
44804         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
44805         doesn't interfere.
44806
44807 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
44808
44809         * m4/ftruncate.m4: Check for chsize.
44810         Link with ftruncate.o unconditionally if ftruncate is missing.
44811         This was required when cross-compiling to i586-mingw32msvc.
44812
44813 2001-04-08  Jim Meyering  <meyering@lucent.com>
44814
44815         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
44816         recomputed; that's necessary when the offset spans a DST transition.
44817         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
44818
44819 2001-04-02  Jim Meyering  <meyering@lucent.com>
44820
44821         * lib/regex.h, regex.c: Update from GNU libc.
44822
44823 2001-03-24  Jim Meyering  <meyering@lucent.com>
44824
44825         * m4/jm-macros.m4: Require autoconf-2.49d.
44826
44827 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
44828
44829         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
44830
44831 2001-03-19  Paul Eggert  <eggert@twinsun.com>
44832
44833         * lib/version-etc.c (version_etc_copyright): Update to 2001.
44834
44835 2001-03-17  Jim Meyering  <meyering@lucent.com>
44836
44837         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
44838         now that the version in autoconf is equivalent.
44839         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
44840
44841         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
44842         Suggestion from Akim Demaille.
44843
44844         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
44845         (jm_PREREQ_TEMPNAME): New function.
44846
44847 2001-03-16  Paul Eggert  <eggert@twinsun.com>
44848
44849         * lib/tempname.c (uint64_t): Define to uintmax_t if
44850         not defined, and if UINT64_MAX is not defined.
44851         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
44852         Reported by John David Anglin.
44853
44854 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
44855
44856         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
44857         resolve alias if codeset is empty.
44858         * lib/config.charset (BeOS): Use wildcard syntax.
44859
44860 2001-03-13  Jim Meyering  <meyering@lucent.com>
44861
44862         * lib/path-concat.c (path_concat)
44863         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
44864         concatenating e.g., `C:' and `foo'.
44865         From Bruno Haible.
44866
44867 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
44868
44869         * lib/localcharset.c (locale_charset): Don't use
44870         setlocale(LC_CTYPE,NULL). Don't return NULL.
44871         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
44872
44873 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
44874
44875         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
44876         support for DOS/DJGPP.
44877
44878 2001-03-01  Paul Eggert  <eggert@twinsun.com>
44879
44880         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
44881         lacks mkstemp.  Compile our own tempname.c if we compile our own
44882         mkstemp.c, as mkstemp relies on tempname.
44883
44884 2001-03-01  Jim Meyering  <meyering@lucent.com>
44885
44886         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
44887         AH_VERBATIM really does output its argument verbatim.
44888
44889 2001-02-28  Paul Eggert  <eggert@twinsun.com>
44890
44891         * lib/Makefile.am (libfetish_a_SOURCES):
44892         Add dup-safer.c, fopen-safer.c.
44893         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
44894
44895         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
44896         * lib/unistd-safer.h: New files.
44897
44898 2001-02-25  Paul Eggert  <eggert@twinsun.com>
44899
44900         The mkstemp replacement is taken from glibc 2.2.2, with some
44901         portability fixes for use outside glibc, as follows:
44902
44903         * lib/tempname.c (struct_stat64): New macro.
44904         (direxists, __gen_tempname): Use it.
44905         This avoids a portability problem with Solaris 8.
44906
44907         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
44908         (<stddef.h>, <stdint.h>, <string.h>):
44909         Include only if STDC_HEADERS || _LIBC.
44910         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
44911         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
44912         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
44913         (__set_errno): Define this macro if <errno.h> doesn't.
44914         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
44915         Define these macros if <stdio.h> doesn't.
44916         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
44917         Define these macros if <sys/stat.h>
44918         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
44919         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
44920         __xstat64): Define if not _LIBC.
44921         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
44922         (__gen_tempname): Invoke gettimeofday only if
44923         HAVE_GETTIMEOFDAY || _LIBC;
44924         otherwise, fall back on plain "time".
44925         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
44926
44927         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
44928
44929         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
44930
44931 2001-02-18  Paul Eggert  <eggert@twinsun.com>
44932
44933         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
44934
44935 2001-02-17  Paul Eggert  <eggert@twinsun.com>
44936
44937         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
44938         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
44939         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
44940         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
44941
44942 2001-02-17  Paul Eggert  <eggert@twinsun.com>
44943
44944         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
44945         Remove workaround macros for hosts that have mbrtowc but not
44946         mbstate_t, as we now insist on proper declarations for both
44947         before using mbrtowc.
44948
44949 2001-02-17  Jim Meyering  <meyering@lucent.com>
44950
44951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
44952         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
44953         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
44954         UnixWare 7.1.1.
44955
44956         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
44957         rather than AC_CACHE_VAL.
44958
44959 2001-02-17  Jim Meyering  <meyering@lucent.com>
44960
44961         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
44962         around included file name.
44963
44964         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
44965
44966         * lib/strftime.c: Update from GNU libc (the only changes were to
44967         comments).
44968
44969 2001-02-17  Jim Meyering  <meyering@lucent.com>
44970
44971         * lib/regex.c: Update from libc.
44972
44973 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
44974
44975         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
44976         clash.
44977
44978 2001-02-16  Paul Eggert  <eggert@twinsun.com>
44979
44980         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
44981         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
44982         Reported by Mark Hounschell via Paul Eggert.
44983
44984 2001-02-07  Jim Meyering  <meyering@lucent.com>
44985
44986         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
44987
44988 2001-02-05  Jim Meyering  <meyering@lucent.com>
44989
44990         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
44991         it includes the patch required for `large file' support with at least
44992         HP-UX's 10.20 /bin/cc.
44993
44994 2001-02-03  Jim Meyering  <meyering@lucent.com>
44995
44996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
44997         AS_IF, now that it works once again (mysteriously).
44998         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
44999
45000 2001-01-30  Jim Meyering  <meyering@lucent.com>
45001
45002         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
45003         * m4/chown.m4: Rename conftestchown to conftest.chown.
45004         * m4/rename.m4: s/conftestdir/conftest.d1/ and
45005         s/conftestdir2/conftest.d2/.
45006         * m4/utimes.m4: s/conftestdata/conftest.data/
45007         Inspired by Pavel Roskin's change in autoconf.
45008
45009 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
45010
45011         * lib/config.charset: Update for FreeBSD 4.2.
45012
45013 2001-01-27  Jim Meyering  <meyering@lucent.com>
45014
45015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
45016         a use of AS_IF.
45017         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
45018
45019 2001-01-26  Jim Meyering  <meyering@lucent.com>
45020
45021         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
45022         quotearg.c includes it.
45023
45024 2001-01-26  Jim Meyering  <meyering@lucent.com>
45025
45026         * lib/quotearg.c: Include stddef.h.
45027         * lib/quote.c: Include stddef.h.
45028         Reported by Axel Kittenberger.
45029
45030         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
45031         line in double quotes so that it evokes a better diagnostic.
45032         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
45033         Reported by Axel Kittenberger.
45034
45035 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
45036
45037         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
45038         as if it was a `charset'.
45039
45040 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
45041
45042         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
45043         has const.
45044
45045 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
45046
45047         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
45048         to avoid a warning.  Add back 'const' to inptr.
45049
45050 2001-01-20  Jim Meyering  <meyering@lucent.com>
45051
45052         Be sure that headers are checked before used in code compiled
45053         for the type checks.
45054         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
45055         In place of that, invoke jm_CHECK_ALL_TYPES.
45056         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
45057         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
45058         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
45059         The check for ssize_t was mistakenly run before the test for unistd.h.
45060
45061         The configure-time check for stdbool.h was missing.
45062         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
45063         (jm_PREREQ_HASH): New function.
45064
45065 2001-01-17  Jim Meyering  <meyering@lucent.com>
45066
45067         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
45068         for autoconf-2.49c.
45069         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
45070
45071 2001-01-16  Jim Meyering  <meyering@lucent.com>
45072
45073         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
45074         From Bruno Haible.
45075
45076 2001-01-14  Jim Meyering  <meyering@lucent.com>
45077
45078         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
45079         foo and bar.  Create conftestdir/ in the script, not in the C code.
45080         Remove directories in the script, not in the C code.
45081         Remove conftestdir{,2} before trying to create the directory.
45082         Make the entire configure script fail if the mkdir fails.
45083
45084 2001-01-14  Jim Meyering  <meyering@lucent.com>
45085
45086         * lib/rename.c: New file.  From Volker Borchert.
45087         Include stdlib.h, string.h or strings.h, and xalloc.h.
45088         Use strip_trailing_slashes rather than open-coding it.
45089
45090 2001-01-03  Paul Eggert  <eggert@twinsun.com>
45091
45092         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
45093
45094 2001-01-03  Jim Meyering  <meyering@lucent.com>
45095
45096         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
45097         of local `inptr' to avoid warning with some system declarations of
45098         iconv.
45099
45100 2001-01-02  Volker Borchert  <bt@teknon.de>
45101
45102         * m4/rename.m4: New file.
45103         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
45104
45105 2001-01-01  Jim Meyering  <meyering@lucent.com>
45106
45107         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
45108         even on systems with utmpx.h.  It's necessary for the declaration of
45109         utmp's ut_user member.  Reported by Andreas Jaeger.
45110
45111         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
45112         available. They are required for the declarations of getgrgid and
45113         getpwuid resp.
45114         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
45115         Reported by Andreas Jaeger.
45116
45117 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
45118
45119         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
45120         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
45121         so `make install' also works in VPATH builds.
45122
45123 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
45124
45125         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
45126         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
45127         can be used in subdirectories.
45128
45129 2000-12-29  Paul Eggert  <eggert@twinsun.com>
45130
45131         * lib/modechange.c: Do not assume that mode_t uses the
45132         traditional octal encoding.  E.g. "chmod 1 FOO" should set
45133         the other-execute bit of FOO even if S_IXOTH != 1.
45134
45135         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
45136         WOTH, XOTH, ALLM): New macros.
45137         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
45138          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
45139         Use them.
45140         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
45141         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
45142         (mode_compile):
45143         No need to use uintmax_t; unsigned long is long enough.
45144         Don't bother to get suffix since we don't use it.
45145
45146 2000-12-26  Jim Meyering  <meyering@lucent.com>
45147
45148         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
45149         better with autoheader.
45150
45151 2000-12-24  Jim Meyering  <meyering@lucent.com>
45152
45153         * lib/hash.c (is_prime): Return explicit boolean values.
45154         (hash_get_first): Return NULL to appease Irix5.6's 89.
45155         Reported by Nelson Beebe.
45156
45157 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
45158
45159         * lib/localcharset.c (locale_charset): Add support for Win32.
45160
45161 2000-12-18  Paul Eggert  <eggert@twinsun.com>
45162
45163         * lib/physmem.h, lib/physmem.c: New files.
45164
45165         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
45166         (noinst_HEADERS): Add physmem.h.
45167
45168         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
45169         't' for compatibility with Solaris 8 sort.
45170
45171 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
45172
45173         * lib/config.charset: Add support for BeOS.
45174
45175 2000-12-17  Jim Meyering  <meyering@lucent.com>
45176
45177         * m4/dos.m4 (jm_AC_DOS): New file and macro.
45178         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
45179
45180 2000-12-16  Jim Meyering  <meyering@lucent.com>
45181
45182         This bug had a serious impact on chown: `chown N:M FILE' (for integer
45183         N and M) would have treated it like `chown N:N FILE'.
45184
45185         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
45186
45187 2000-12-16  Jim Meyering  <meyering@lucent.com>
45188
45189         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
45190         SHELLS_FILE to a file name that's useful on djgpp systems.
45191         Include stdlib.h.
45192         (ADDITIONAL_DEFAULT_SHELLS): Define.
45193         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
45194         Based mostly on a patch from Prashant TR.
45195
45196 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
45197
45198         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
45199         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
45200         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
45201
45202 2000-12-08  Andreas Schwab  <schwab@suse.de>
45203
45204         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
45205         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
45206
45207 2000-12-07  Jim Meyering  <meyering@lucent.com>
45208
45209         * lib/stripslash.c (ISSLASH): Define.
45210         (strip_trailing_slashes): Use ISSLASH rather than comparing against
45211         `/'.
45212         From Prashant TR.
45213
45214         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
45215         (dir_name_r): Declare this function as static.
45216         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
45217         manifest itself on a name containing a mix of slashes and
45218         backslashes.
45219         Make this function work with names starting with a DOS-style
45220         drive letter and colon prefix.
45221         (dir_name): Append `.' if necessary.
45222         Based mostly on patches from Prashant TR and Eli Zaretskii.
45223
45224         * lib/dirname.h (dir_name_r): Remove prototype.
45225
45226 2000-12-06  Paul Eggert  <eggert@twinsun.com>
45227
45228         * m4/off_t-format.m4: Remove this file.
45229         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
45230
45231 2000-12-06  Jim Meyering  <meyering@lucent.com>
45232
45233         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
45234         replacement strtoull, we may well need the replacement strtoul, too.
45235         Check for declarations of strtoul and strtoull.
45236         Check for strtol.  Mainly as a cue to cause automake to include
45237         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
45238         Check for limits.h -- strtol.c needs it.
45239
45240 2000-12-05  Jim Meyering  <meyering@lucent.com>
45241
45242         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
45243
45244 2000-12-04  Jim Meyering  <meyering@lucent.com>
45245
45246         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
45247         Also include memory.h, stdlib.h, unistd.h if appropriate.
45248         Reported by Andreas Jaeger (conflicting declaration of malloc).
45249
45250 2000-12-02  Jim Meyering  <meyering@lucent.com>
45251
45252         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
45253         * m4/jm-macros.m4 (jm_MACROS): require it.
45254
45255 2000-12-02  Jim Meyering  <meyering@lucent.com>
45256
45257         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
45258
45259 2000-12-01  Paul Eggert  <eggert@twinsun.com>
45260
45261         * lib/memrchr.c: Include <config.h> before any system include file.
45262
45263 2000-11-30  Jim Meyering  <meyering@lucent.com>
45264
45265         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
45266
45267 2000-11-30  Jim Meyering  <meyering@lucent.com>
45268
45269         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
45270
45271 2000-11-29  Paul Eggert  <eggert@twinsun.com>
45272
45273         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
45274
45275 2000-11-26  Jim Meyering  <meyering@lucent.com>
45276
45277         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
45278
45279 2000-11-22  Paul Eggert  <eggert@twinsun.com>
45280
45281         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
45282         size of (size_t) -1; it's not portable.
45283
45284 2000-11-17  Jim Meyering  <meyering@lucent.com>
45285
45286         * lib/strstr.c: Update from GNU libc.
45287
45288 2000-11-17  Akim Demaille  <akim@epita.fr>
45289
45290         * lib/obstack.h: Formatting changes.
45291         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
45292         prevent type checking.
45293         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
45294         cast the value to (void *): assigning a `foo *' to a `void *'
45295         variable is valid.
45296         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
45297
45298 2000-11-16  Jim Meyering  <meyering@lucent.com>
45299
45300         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
45301
45302 2000-11-11  Jim Meyering  <meyering@lucent.com>
45303
45304         * lib/error.c: Add a couple #includes, merging from GNU libc version.
45305
45306 2000-11-10  Jim Meyering  <meyering@lucent.com>
45307
45308         * lib/obstack.h: Update from GNU libc.
45309         * lib/obstack.c: Likewise.
45310
45311 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
45312
45313         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
45314
45315 2000-11-06  Paul Eggert  <eggert@twinsun.com>
45316
45317         * lib/getusershell.c (setusershell): Use rewind rather than
45318         fseek/fseeko, to avoid configuration hassles with fseeko.
45319         Don't bother opening SHELLS_FILE if shellstream is NULL;
45320         it's not necessary.
45321
45322 2000-11-05  Jim Meyering  <meyering@lucent.com>
45323
45324         * lib/makepath.h (make_dir): Declare.
45325         * lib/makepath.c (make_dir): Remove `static' attribute.
45326         Tweak a comment.
45327
45328 2000-11-04  Jim Meyering  <meyering@lucent.com>
45329
45330         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
45331
45332 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
45333
45334         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
45335         last one in a bucket, advance to the next bucket.
45336
45337 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
45338
45339         * lib/fnmatch.c: Do not comment out all the code if we are using
45340         the GNU C library, because in some cases we are replacing buggy
45341         code in the GNU C library itself.
45342
45343 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
45344
45345         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
45346         (regex_compile): Catch bogus \(\1\).
45347
45348 2000-10-30  Paul Eggert  <eggert@twinsun.com>
45349
45350         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
45351         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
45352         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
45353
45354 2000-10-30  Paul Eggert  <eggert@twinsun.com>
45355
45356         * lib/error.h, getline.h, modechange.h:
45357         Remove "2000" from Copyright line, as the file hasn't been
45358         changed this year other than in the copyright notice.
45359
45360         * lib/xalloc.h: Add "2000" to Copyright line, as this file
45361         was changed this year.
45362
45363 2000-10-29  Jim Meyering  <meyering@lucent.com>
45364
45365         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
45366         renaming.
45367         * m4/ls-mntd-fs.m4: Likewise
45368
45369 2000-10-29  Jim Meyering  <meyering@lucent.com>
45370
45371         * lib/xstat.in: Fix grammar in comment.
45372
45373 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
45374
45375         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
45376         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
45377         doesn't define __restrict_arr.
45378
45379 2000-10-28  Jim Meyering  <meyering@lucent.com>
45380
45381         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
45382         (jm_PREREQ_MEMCHR): New function.
45383
45384 2000-10-28  Jim Meyering  <meyering@lucent.com>
45385
45386         * lib/memchr.c: Update from libc.
45387         Adjust for portability:
45388         [HAVE_STDLIB_H]: Include stdlib.h.
45389         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
45390         Undef __memchr, too.
45391         [!weak_alias]: Define __memchr to memchr.
45392
45393         * lib/regex.c: Update from libc.
45394         * lib/regex.h: Likewise.
45395         * lib/getopt1.c: Likewise.
45396         * lib/memcmp.c: Likewise.
45397
45398         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
45399         Avoid using fseek, when possible -- it's broken by design.
45400         Patch by Ulrich Drepper.
45401
45402 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
45403
45404         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
45405         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
45406         Giving in to popular pressure to shut up the compiler with casts.
45407
45408 2000-10-26  Jim Meyering  <meyering@lucent.com>
45409
45410         * lib/strftime.c: Update from libc.
45411
45412 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
45413
45414         * regex.c: More `unsigned char' -> `re_char' changes.
45415         Also change several `int' into `re_wchar_t'.
45416         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
45417         (PUSH_FAILURE_POINTER): Don't cast any more.
45418         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
45419         We want GCC to complain, since this piece of code makes
45420         re_match non-reentrant, which *should* be fixed.
45421         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
45422         (EXTEND_BUFFER): Use RETALLOC.
45423         (SET_LIST_BIT): Don't cast.
45424         (re_wchar_t): New type.
45425         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
45426         that those two functions will always properly return.
45427         (IMMEDIATE_QUIT_CHECK): Cast to void.
45428         (analyse_first): Use recursion rather than an explicit stack.
45429         (re_compile_fastmap): Can't fail anymore.
45430         (re_search_2): Don't check re_compile_fastmap for failure.
45431         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
45432         Now also sets the new value (passed in a new argument).
45433         (re_match_2_internal): Use it.
45434         Also, use a new var `reg' of type size_t when looping through regs
45435         rather than reuse the inappropriate `mcnt'.
45436
45437 2000-10-25  Jim Meyering  <meyering@lucent.com>
45438
45439         * lib/obstack.c: Update from libc.
45440
45441 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
45442
45443         * regex.c (regex_compile): Change the way of handling a range from
45444         a char less than 256 to a char not less than 256.
45445
45446 2000-10-24  Andrew Innes  <andrewi@gnu.org>
45447
45448         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
45449         NT-Emacs only.
45450         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
45451         so that re_search functions only quit when callers expect them to.
45452
45453 2000-10-23  Jim Meyering  <meyering@lucent.com>
45454
45455         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
45456         wrong.  That set_locale call must not have any side effects.
45457         From Paul Eggert.
45458
45459 2000-10-22  Jim Meyering  <meyering@lucent.com>
45460
45461         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
45462         [CYCLIC]: Remove now-unused definition.
45463
45464         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
45465         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
45466         Suggestion from Ulrich Drepper.
45467
45468 2000-10-21  Jim Meyering  <meyering@lucent.com>
45469
45470         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
45471         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
45472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
45473
45474 2000-10-21  Jim Meyering  <meyering@lucent.com>
45475
45476         * lib/dirname.c (memrchr): Declare if necessary.
45477         (dir_name): Remove the restriction that there be no
45478         trailing slashes.  Now, this code skips past them, effectively
45479         ignoring them.
45480         [TEST_DIRNAME] (main): New unit tests.
45481
45482         * lib/memrchr.c: New file from GNU libc.
45483         Undef __memrchr, too.
45484         [!weak_alias]: Define __memrchr to memrchr.
45485         Guard weak_alias use with `#ifdef weak_alias'.
45486
45487 2000-10-21  Jim Meyering  <meyering@lucent.com>
45488
45489         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
45490         (dir_name): Use dir_name_r.
45491         * lib/dirname.h (dir_name_r): Declare it.
45492
45493 2000-10-17  Jim Meyering  <meyering@lucent.com>
45494
45495         * lib/quote.h (PARAMS): Define and use.
45496         Reported by Akim Demaille.
45497
45498         * lib/getopt.c: Update from libc.
45499
45500 2000-10-16  Jim Meyering  <meyering@lucent.com>
45501
45502         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
45503         setlocale.
45504         From Jan Fedak.
45505
45506 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
45507
45508         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
45509
45510 2000-09-25  Jim Meyering  <meyering@lucent.com>
45511
45512         * lib/md5.h (rol): Define (from GnuPG).
45513
45514         * lib/sha.c: Give credit (GnuPG) where due.
45515         (M): Use rol rather than open-coding it.
45516         Add a FIXME comment.
45517
45518 2000-09-21  Jim Meyering  <meyering@lucent.com>
45519
45520         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
45521         Reported by Michael Stone.
45522
45523 2000-09-20  Jim Meyering  <meyering@lucent.com>
45524
45525         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
45526         (noinst_HEADERS): Add sha.h.
45527         Based on code from Scott G. Miller and from GnuPG.
45528
45529 2000-09-18  Jim Meyering  <meyering@lucent.com>
45530
45531         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
45532         LIBS. Otherwise, everyone ends up linking with -lelf for some
45533         configurations.
45534         Reported by Mike Stone.
45535
45536 2000-09-15  Jim Meyering  <meyering@lucent.com>
45537
45538         * lib/regex.c: Update from libc.
45539
45540 2000-09-10  Jim Meyering  <meyering@lucent.com>
45541
45542         * lib/getopt.c (_getopt_internal): Update from glibc.
45543
45544 2000-09-09  Jim Meyering  <meyering@lucent.com>
45545
45546         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
45547         think it should be used as a general replacement for isascii.
45548         * lib/fnmatch.c: Likewise.
45549         * lib/mbswidth.c: Likewise
45550         * lib/regex.c: Likewise.
45551
45552         Don't use atoi.
45553         * lib/userspec.c: Include sys/param.h and limits.h.
45554         Include xstrtol.h.
45555         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45556         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
45557         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
45558         UID, GID.  Check range.
45559
45560 2000-09-06  Jim Meyering  <meyering@lucent.com>
45561
45562         * lib/getopt.c (_getopt_internal): Update from glibc.
45563
45564 2000-08-30  Jim Meyering  <meyering@lucent.com>
45565
45566         * lib/strftime.c: Merge in changes from GNU libc.
45567
45568 2000-08-26  Jim Meyering  <meyering@lucent.com>
45569
45570         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
45571         * m4/fpending.m4: New file.
45572
45573 2000-08-26  Jim Meyering  <meyering@lucent.com>
45574
45575         * lib/closeout.c: Include "__fpending.h".
45576         (close_stdout_status): Return right away if there's nothing to flush.
45577
45578         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
45579         * lib/__fpending.c: New file.
45580         * lib/__fpending.h: New file.
45581
45582 2000-08-20  Jim Meyering  <meyering@lucent.com>
45583
45584         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
45585         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
45586         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
45587
45588 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
45589
45590         Improve fileutils installation on systems where running
45591         programs (like install) can't be unlinked.
45592         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
45593         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
45594
45595 2000-08-07  Paul Eggert  <eggert@twinsun.com>
45596
45597         Standardize on "memory exhausted" instead of "Memory exhausted"
45598         or "virtual memory exhausted".
45599         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
45600         "virtual memory exhausted".
45601         * lib/same.c (same_name): Invoke xalloc_die instead of printing
45602         our own message.
45603         * lib/userspec.c (parse_user_spec): Likewise.
45604         * lib/bumpalloc.h: comment fix
45605         * lib/same.c, userspec.c: Include xalloc.h.
45606
45607         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
45608         not char *const and pointing to a constant array.
45609         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
45610         (xrealloc): Comment fix.
45611
45612         * lib/userspec.c (parse_user_spec):
45613         Don't translate a message until just before returning,
45614         to avoid unnecessary translation.
45615
45616 2000-08-07  Jim Meyering  <meyering@lucent.com>
45617
45618         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
45619         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
45620         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
45621         getgroups.c, gethostname.c, getopt.h, group-member.c,
45622         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
45623         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
45624         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
45625         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
45626         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
45627         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
45628         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
45629         yesno.c: Back out Copyright date changes for each file with no change
45630         this year.  This eases coordination with other programs using the same
45631         source code modules.  From Paul Eggert.
45632
45633 2000-08-06  Paul Eggert  <eggert@twinsun.com>
45634
45635         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
45636         not char, for compatibility with glibc 2.1.3 strftime.c.
45637
45638 2000-08-03  Greg McGary  <greg@mcgary.org>
45639
45640         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
45641         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
45642         (EXTEND_BUFFER): Use them.
45643
45644 2000-08-01  Jim Meyering  <meyering@lucent.com>
45645
45646         * lib/dirname.c (ISSLASH): Define.
45647         (BACKSLASH_IS_PATH_SEPARATOR): Define.
45648         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
45649         both `\' and `/' may be use as path separators.
45650         Based on a patch from Prashant TR.
45651
45652 2000-07-31  Paul Eggert  <eggert@twinsun.com>
45653
45654         * lib/quotearg.c (quotearg_n_options): Don't make the initial
45655         slot vector a constant, since it might get modified.
45656
45657 2000-07-31  Jim Meyering  <meyering@lucent.com>
45658
45659         * lib/xmalloc.c: Use `virtual memory exhausted', not
45660         `Memory exhausted'.
45661         * lib/obstack.c (print_and_abort): Likewise.
45662
45663 2000-07-30  Paul Eggert  <eggert@twinsun.com>
45664
45665         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
45666         buffer, so that the caller can always quote one small
45667         component of a "memory exhausted" message in slot 0.
45668         From a suggestion by Jim Meyering.
45669
45670 2000-07-30  Jim Meyering  <meyering@lucent.com>
45671
45672         * lib/makepath.c (make_path): Quote the other instance, too.
45673
45674         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
45675         (STATIC_BUF_SIZE): Define.
45676         (quotearg_n_options): Use only statically allocated storage when
45677         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
45678         than STATIC_BUF_SIZE.
45679
45680 2000-07-29  Jim Meyering  <meyering@lucent.com>
45681
45682         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
45683         * lib/dirname.c (dir_name): Likewise.
45684
45685         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
45686         `/'.
45687
45688         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
45689         (dir_name): Assert that there are no trailing slashes.
45690
45691 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
45692
45693         * lib/mbswidth.h (mbswidth): Add a flags argument.
45694         (mbswidth): New declaration.
45695         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
45696         * lib/mbswidth.c (mbswidth): Add a flags argument.
45697         (mbsnwidth): New function.
45698
45699 2000-07-24  Jim Meyering  <meyering@lucent.com>
45700
45701         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
45702
45703 2000-07-23  Paul Eggert  <eggert@twinsun.com>
45704
45705         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
45706
45707 2000-07-23  Paul Eggert  <eggert@twinsun.com>
45708
45709         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
45710         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
45711         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
45712         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
45713         invoke multibyte primitives.
45714
45715 2000-07-23  Paul Eggert  <eggert@twinsun.com>
45716
45717         * lib/quotearg.c:
45718         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
45719         so that mbstate_t is always defined.
45720
45721         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
45722         be 1 in at least one GCC installation, and this configuration
45723         error is likely to be common.  Ignoring MB_LEN_MAX hurts
45724         performance on hosts that have mbrtowc but have only unibyte
45725         locales, but I assume these hosts are rare.
45726
45727 2000-07-23  Paul Eggert  <eggert@twinsun.com>
45728
45729         * lib/mbswidth.c (_XOPEN_SOURCE):
45730         Don't define; this causes problems on Solaris 7.
45731         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
45732
45733 2000-07-23  Jim Meyering  <meyering@lucent.com>
45734
45735         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
45736         too: getgrgid, getpwuid, getuid.
45737
45738 2000-07-23  Jim Meyering  <meyering@lucent.com>
45739
45740         * lib/basename.c (base_name): Add an assertion.
45741
45742 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
45743
45744         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
45745         shadow its mbsinit function.
45746
45747 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
45748
45749         * lib/mbswidth.h: New file.
45750         * lib/mbswidth.c: New file.
45751         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
45752         (noinst_HEADERS): Add mbswidth.h.
45753
45754 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
45755
45756         * lib/config.charset: Add support for FreeBSD. Improve support for
45757         HP-UX and IRIX 6.
45758
45759 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
45760
45761         * m4/mbswidth.m4: New file.
45762         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
45763
45764 2000-07-15  Jim Meyering  <meyering@lucent.com>
45765
45766         * lib/makepath.c: Include quote.h.
45767         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
45768         corresponding argument in a `quote (...)' call.
45769         Give better diagnostics.
45770
45771         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
45772         (noinst_HEADERS): Add quote.h.
45773
45774         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
45775         from tar's src/misc.c.
45776         * lib/quote.h: New file.  Prototypes for same.
45777
45778 2000-07-14  Paul Eggert  <eggert@twinsun.com>
45779
45780         From a suggestion by Bruno Haible.
45781         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
45782         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
45783         to decide whether to define the BeOS workaround macro;
45784         this adjusts to the change to AC_MBSTATE_T.
45785
45786 2000-07-14  Jim Meyering  <meyering@lucent.com>
45787
45788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
45789         jm_AC_TYPE_UINTMAX_T.
45790
45791 2000-07-13  Paul Eggert  <eggert@twinsun.com>
45792
45793         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
45794
45795         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
45796         quotearg_buffer_restyled): Add support for
45797         clocale_quoting_style.  Undo previous change to
45798         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
45799         and "{RIGHT QUOTATION MARK}" msgids.
45800
45801 2000-07-10  Paul Eggert  <eggert@twinsun.com>
45802
45803         From a suggestion by Bruno Haible.
45804         * m4/mbstate_t.m4 (AC_MBSTATE_T):
45805         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
45806         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
45807         and mbstate_t, to a single-part test that simply defines mbstate_t.
45808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
45809         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
45810
45811 2000-07-10  Jim Meyering  <meyering@lucent.com>
45812
45813         * m4/strerror_r.m4: Mirror the correction made in autoconf.
45814
45815         * m4/gnu-source.m4: Output to confdefs.h directly.
45816         Suggestion from Akim Demaille.
45817
45818 2000-07-09  Paul Eggert  <eggert@twinsun.com>
45819
45820         The old behavior of quoting `like this' doesn't look good with
45821         newer, ISO-style fonts.  See:
45822         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
45823
45824         Instead, quote "like this" by default.  Let the translator
45825         tailor the locale-specific quoting behavior by providing
45826         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
45827
45828         * lib/quotearg.c (N_): New macro.
45829         (gettext_default): New function.
45830         (quotearg_buffer_restyled): Use
45831         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
45832         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
45833
45834 2000-07-09  Jim Meyering  <meyering@lucent.com>
45835
45836         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
45837         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
45838
45839         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
45840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
45841
45842 2000-07-09  Jim Meyering  <meyering@lucent.com>
45843
45844         * lib/Most files: Update copyright dates to include 2000.
45845
45846 2000-07-08  Jim Meyering  <meyering@lucent.com>
45847
45848         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
45849         if not defined.
45850         (xgethostname): Remove now-unnecessary #ifdef.
45851         Move declaration of `err' into loop where it's used.
45852
45853 2000-07-05  Paul Eggert  <eggert@twinsun.com>
45854         and Bruno Haible  <haible@clisp.cons.org>
45855
45856         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
45857         only if the test for an object-type mbstate_t fails.  This
45858         prevents us from mistakenly reporting that mbstate_t is a
45859         system object type after we "#define mbstate_t int" to work
45860         around its lack.
45861
45862 2000-07-05  Paul Eggert  <eggert@twinsun.com>
45863         and Bruno Haible  <haible@clisp.cons.org>
45864
45865         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
45866
45867 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
45868
45869         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
45870         to strerror_r.
45871         Include <ctype.h> for use of isalpha.
45872
45873 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
45874
45875         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
45876         by allocating a larger buffer. Test the gethostname return value for
45877         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
45878         returns an error and ENAMETOOLONG isn't defined.
45879
45880 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
45881
45882         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
45883         dimension.
45884
45885 2000-07-04  Jim Meyering  <meyering@lucent.com>
45886
45887         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
45888         of the deprecated AC_CHECKING.
45889
45890 2000-07-04  Jim Meyering  <meyering@lucent.com>
45891
45892         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
45893         Reported by Bruno Haible.
45894
45895 2000-07-04  Jim Meyering  <meyering@lucent.com>
45896
45897         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
45898         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
45899         lacks mbrtowc.
45900
45901 2000-07-03  Paul Eggert  <eggert@twinsun.com>
45902
45903         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
45904         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
45905
45906 2000-07-03  Paul Eggert  <eggert@twinsun.com>
45907         and Bruno Haible  <haible@clisp.cons.org>
45908
45909         * lib/quotearg.c (mbrtowc):
45910         Assign to *pwc, and return 1 only if result is nonzero.
45911         (iswprint): Use ISPRINT when substituting our own mbrtowc.
45912
45913 2000-07-03  Jim Meyering  <meyering@lucent.com>
45914
45915         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
45916
45917 2000-07-03  Jim Meyering  <meyering@lucent.com>
45918
45919         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
45920         This is necessary to get a definition of e.g., UTMP_FILE on
45921         HP-UX 10.20.
45922         From Bob Proulx.
45923
45924 2000-07-02  Jim Meyering  <meyering@lucent.com>
45925
45926         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
45927
45928         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
45929         AC_LIBOBJ(function_name).
45930         * m4/chown.m4: Likewise.
45931         * m4/fnmatch.m4: Likewise.
45932         * m4/ftruncate.m4: Likewise.
45933         * m4/getgroups.m4: Likewise.
45934         * m4/getline.m4: Likewise.
45935         * m4/group-member.m4: Likewise.
45936         * m4/jm-macros.m4: Likewise.
45937         * m4/lstat.m4: Likewise.
45938         * m4/malloc.m4: Likewise.
45939         * m4/memcmp.m4: Likewise.
45940         * m4/nanosleep.m4: Likewise.
45941         * m4/putenv.m4: Likewise.
45942         * m4/realloc.m4: Likewise.
45943         * m4/regex.m4: Likewise.
45944         * m4/stat.m4: Likewise.
45945         * m4/strftime.m4: Likewise.
45946
45947 2000-07-02  Jim Meyering  <meyering@lucent.com>
45948
45949         * lib/quotearg.c (mbstate_t): Don't define here.
45950
45951 2000-07-02  Jim Meyering  <meyering@lucent.com>
45952
45953         * lib/nanosleep.c (SIGCONT): Define if not already defined.
45954
45955 2000-07-01  Jim Meyering  <meyering@lucent.com>
45956
45957         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
45958
45959 2000-07-01  Jim Meyering  <meyering@lucent.com>
45960
45961         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
45962         problem.
45963
45964 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
45965
45966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
45967         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
45968
45969 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
45970
45971         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
45972         per change in ../m4/ls-mntd-fs.m4.
45973         (read_filesystem_list): Ignore symbolic links.
45974
45975 2000-06-29  Jim Meyering  <meyering@lucent.com>
45976
45977         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
45978         for declaration of strcmp.
45979
45980         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
45981
45982         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
45983         Avoid warning by casting result to `char *' to remove `const'.
45984
45985 2000-06-28  Jim Meyering  <meyering@lucent.com>
45986
45987         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
45988         included by quotearg.c, for which we perform this test.  From
45989         Bruno Haible.
45990
45991 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
45992
45993         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
45994         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
45995         <utmpx.h> exists, put readutmp.o into LIBOBJS.
45996
45997 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
45998
45999         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
46000
46001 2000-06-26  Paul Eggert  <eggert@twinsun.com>
46002
46003         savedir now sets errno on failure and invokes xmalloc to get memory.
46004         Fix a couple of other minor bugs while we're at it.
46005
46006         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
46007         (NAMLEN): Remove macro.
46008         (malloc, realloc): Remove decls.
46009         (stpcpy): Likewise.
46010         ("xalloc.h"): Include.
46011         (NAME_SIZE_DEFAULT): New macro.
46012         (savedir): Use xmalloc / xrealloc to allocate memory.
46013         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
46014         Skip "" directory entries.
46015         Use strlen to calculate directory entry length, since the old method
46016         is rarely used these days and isn't worth supporting.
46017         Don't use a pointer after freeing it.
46018         Check for integer overflow when calculating allocation size.
46019         Use memcpy to copy entries, instead of stpcpy.
46020         Set errno properly when returning NULL.
46021         Check for readdir error.
46022
46023 2000-06-26  Jim Meyering  <meyering@lucent.com>
46024
46025         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
46026
46027 2000-06-25  Jim Meyering  <meyering@lucent.com>
46028
46029         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
46030         Linux header bug when _XOPEN_SOURCE is defined to 500.
46031
46032 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
46033
46034         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
46035         deficiency.
46036
46037 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
46038
46039         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
46040         Include xalloc.h.
46041         Don't include <stdlib.h>.  Don't declare malloc, realloc.
46042
46043 2000-06-24  Jim Meyering  <meyering@lucent.com>
46044
46045         * m4/strerror_r.m4: Revive this file -- to try out an experimental
46046         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
46047         for which strerror does return char*, but which lacks a conveniently
46048         accessible declaration of the function.  If the compile-test says
46049         strerror_r doesn't work, then resort to a `run'-test that works on
46050         BeOS and segfaults on DEC Unix.
46051
46052 2000-06-24  Jim Meyering  <meyering@lucent.com>
46053
46054         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
46055
46056 2000-06-23  Paul Eggert  <eggert@twinsun.com>
46057
46058         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
46059         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
46060
46061 2000-06-23  Paul Eggert  <eggert@twinsun.com>
46062
46063         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
46064         (mbrtowc, mbstate_t): Define substitutes if
46065         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
46066         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
46067         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
46068
46069 2000-06-23  Jim Meyering  <meyering@lucent.com>
46070
46071         * m4/afs.m4: Add missing AC_MSG_RESULT.
46072         Reported by Bruno Haible.
46073
46074         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
46075         Suggestion from Bruno Haible.
46076
46077 2000-06-23  Jim Meyering  <meyering@lucent.com>
46078
46079         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
46080
46081 2000-06-21  Jim Meyering  <meyering@lucent.com>
46082
46083         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
46084
46085 2000-06-21  Jim Meyering  <meyering@lucent.com>
46086
46087         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
46088         (noinst_HEADERS): Add getstr.h.
46089
46090         * lib/getline.c (getstr): Move into a separate file.
46091         * lib/getstr.c (getstr): New file, extracted from getline.c, with
46092         the following changes: new parameter, delim2; both delim[12]
46093         parameters have type `int', not `char'.  The latter would lose
46094         with 8-bit delimiters.
46095         * lib/getstr.h: New file.
46096
46097 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
46098
46099         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
46100         than 1024, return a memory chunk of least possible size, instead
46101         of size PATH_MAX + 2. In the loop, increment the size proportionally.
46102         Use free/xmalloc instead of xrealloc to avoid copying for very long
46103         paths.
46104
46105 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
46106
46107         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
46108         the empty string.
46109
46110 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
46111
46112         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
46113         address, not strdup.  Include <stdlib.h> and don't declare free().
46114
46115 2000-06-19  Jim Meyering  <meyering@lucent.com>
46116
46117         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
46118
46119 2000-06-18  Jim Meyering  <meyering@lucent.com>
46120
46121         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
46122
46123         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
46124         `checking whether...' message to be consistent with that of the
46125         lstat test.
46126
46127 2000-06-18  Jim Meyering  <meyering@lucent.com>
46128
46129         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
46130         Besides, these days every porting target provides a mkdir function.
46131
46132         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
46133         needed. (this snippet comes from src/system.h).
46134
46135 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
46136
46137         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
46138
46139 2000-06-15  Paul Eggert  <eggert@twinsun.com>
46140
46141         * lib/human.c (adjust_value): New function.
46142         (human_readable_inexact): Apply rounding style even when
46143         printing approximate values.
46144
46145 2000-06-14  Paul Eggert  <eggert@twinsun.com>
46146
46147         * lib/human.c (human_readable_inexact): Allow an input block
46148         size that is not a multiple of the output block size, and vice versa.
46149         Reported by Piergiorgio Sartor.
46150
46151 2000-06-14  Paul Eggert  <eggert@twinsun.com>
46152
46153         * lib/getdate.y (get_date): Apply relative times after time
46154         zone indicator, not before.  Reported by Todd A. Jacobs.
46155
46156 2000-06-13  Jim Meyering  <meyering@lucent.com>
46157
46158         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
46159
46160         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
46161
46162 2000-06-12  Paul Eggert  <eggert@twinsun.com>
46163
46164         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
46165
46166 2000-06-12  Jim Meyering  <meyering@lucent.com>
46167
46168         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
46169         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
46170         optional argument.
46171         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
46172         the optional argument, `lib'.
46173
46174 2000-06-08  Jim Meyering  <meyering@lucent.com>
46175
46176         * m4/largefile.m4: Remove file (now that it's part of autoconf).
46177
46178 2000-06-04  Paul Eggert  <eggert@twinsun.com>
46179
46180         Rewrite largefile configuration so that we don't need to run
46181         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
46182         AC_CANONICAL_HOST in configure.in -- jmm]
46183
46184         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
46185         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
46186         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
46187         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
46188         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
46189         All uses changed.
46190         Instead of inspecting the output of getconf, try to compile the
46191         test program without and with the macro definition.
46192         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
46193         for getconf.  Instead, check for the needed flags by compiling
46194         test programs.
46195
46196 2000-06-04  Paul Eggert  <eggert@twinsun.com>
46197
46198         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
46199
46200 2000-06-04  Jim Meyering  <meyering@lucent.com>
46201
46202         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
46203         SunOS 4.1.4 for which gid_t is an unsigned type.
46204
46205 2000-06-03  Jim Meyering  <meyering@lucent.com>
46206
46207         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
46208         now that autoconf requires that.
46209
46210         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
46211         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
46212         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
46213
46214 2000-06-03  Jim Meyering  <meyering@lucent.com>
46215
46216         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
46217
46218 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
46219
46220         * m4/glibc21.m4: New file.
46221         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
46222
46223 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
46224
46225         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
46226         newer, don't install charset.alias.
46227         * lib/config.charset: Change the Linux/glibc rules so they become empty
46228         on glibc-2.1 or newer.
46229
46230 2000-06-02  Jim Meyering  <meyering@lucent.com>
46231
46232         * lib/mountlist.c: Back out last change.  Instead, do this...
46233         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
46234         me_dummy member using the same `ignore'-testing code.
46235         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
46236         fs_type strings.
46237         From Mark D. Roth.
46238
46239 2000-05-29  Jim Meyering  <meyering@lucent.com>
46240
46241         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
46242         mounts with the `ignore' attribute.  Based on a patch from
46243         Mark D. Roth.
46244
46245 2000-05-28  Jim Meyering  <meyering@lucent.com>
46246
46247         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
46248         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46249         * m4/stat.m4: Likewise.
46250         * m4/lstat.m4: Likewise.
46251         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
46252
46253         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
46254         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
46255
46256 2000-05-26  Jim Meyering  <meyering@lucent.com>
46257
46258         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
46259
46260 2000-05-24  Jim Meyering  <meyering@lucent.com>
46261
46262         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
46263         autoconf requires that.
46264         * m4/lib-check.m4: Likewise.
46265         * m4/jm-macros.m4: Likewise.
46266         * m4/strftime.m4: Likewise.
46267
46268         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
46269         AC_CHECK_DECLS, now that autoconf requires that.
46270
46271 2000-05-22  Jim Meyering  <meyering@lucent.com>
46272
46273         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46274         * m4/lstat.m4: Likewise.
46275
46276 2000-05-22  Jim Meyering  <meyering@lucent.com>
46277
46278         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
46279
46280 2000-05-20  Jim Meyering  <meyering@lucent.com>
46281
46282         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
46283         (jm_PREREQ): Use it.
46284
46285 2000-05-18  Jim Meyering  <meyering@lucent.com>
46286
46287         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
46288         back, too, since it may have been modified by allocate_entry.
46289         (hash_delete): Rewrite to use neither the assignment operator
46290         nor the comma operator in an if-expression.
46291
46292 2000-05-15  Paul Eggert  <eggert@twinsun.com>
46293
46294         * lib/closeout.c:
46295         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
46296         Remove; no longer needed.
46297         "quotearg.h": Add include.
46298         (file_name): Do not bother to explicitly initialize to NULL; it's less
46299         efficient on some hosts.
46300         (close_stdout_status): Remove test as to whether stdout was already
46301         closed; it breaks for the case "echo x | sort >&-".
46302         Quote file name colons.
46303         Do not assume that _("write error") lacks format strings.
46304
46305 2000-05-15  Jim Meyering  <meyering@lucent.com>
46306
46307         * lib/version-etc.c (version_etc_copyright): Update the copyright
46308         string used in all --version output.
46309
46310 2000-05-14  Jim Meyering  <meyering@lucent.com>
46311
46312         * lib/closeout.c (close_stdout_set_file_name): New function.
46313         (close_stdout_status): Use new file-scoped global.
46314         Return right away if fstat says the stdout file descriptor is invalid.
46315         * lib/closeout.h (close_stdout_set_file_name): Declare.
46316
46317 2000-05-10  Jim Meyering  <meyering@lucent.com>
46318
46319         * lib/closeout.c [default_exit_status]: New file-scoped variable.
46320         (close_stdout_set_status): New function.
46321         * lib/closeout.h (close_stdout_set_status): Declare.
46322
46323 2000-05-09  Jim Meyering  <meyering@lucent.com>
46324
46325         * m4/gettext.m4: Rename this...
46326         * m4/libintl.m4: ...to this.
46327
46328 2000-05-08  Jim Meyering  <meyering@lucent.com>
46329
46330         * lib/long-options.c: Don't include closeout.h.
46331         (parse_long_options): Don't call close_stdout for --version.
46332
46333 2000-05-06  Paul Eggert  <eggert@twinsun.com>
46334
46335         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
46336         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
46337         2.1.3 bug.  This avoids a clash when files like regex.c define
46338         _GNU_SOURCE.
46339
46340 2000-05-06  Jim Meyering  <meyering@lucent.com>
46341
46342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
46343         (AC_REPLACE_FUNCS): Add strnlen.
46344
46345         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
46346         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
46347
46348         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
46349         AC_SEARCH_LIBS call for nanosleep.
46350         (LIB_NANOSLEEP): Set and AC_SUBST.
46351
46352 2000-05-06  Jim Meyering  <meyering@lucent.com>
46353
46354         * lib/strnlen.c: Undefine __strnlen and strnlen.
46355         [!weak_alias]: Define __strnlen to strnlen.
46356
46357         * lib/atexit.c: New file, from libiberty.
46358
46359 2000-05-06  Jim Meyering  <meyering@lucent.com>
46360
46361         * lib/closeout.c (close_stdout_status): Also check for errors on the
46362         stderr stream.
46363
46364 2000-05-05  Jim Meyering  <meyering@lucent.com>
46365
46366         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
46367         AC_SEARCH_LIBS call for clock_gettime.
46368         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
46369
46370         * m4/search-libs.m4: Update from autoconf.
46371
46372         su doesn't work on Solaris 2.6.
46373         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
46374         <shadow.h>.  Reported by Dragos Harabor.
46375
46376 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
46377
46378         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
46379         memcpy instead of xmalloc, xrealloc, path_concat.
46380         (locale_charset): Treat empty environment variables as absent.
46381         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
46382
46383 2000-05-04  Jim Meyering  <meyering@lucent.com>
46384
46385         * lib/getopt.c: Update from glibc.
46386         * lib/obstack.c: Likewise.
46387         * lib/obstack.h: Likewise.
46388         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
46389         file
46390
46391         * lib/regex.h: Likewise.
46392         * lib/strndup.c: Likewise.
46393         * lib/strnlen.c: New file, from glibc.
46394
46395 2000-05-03  Jim Meyering  <meyering@lucent.com>
46396
46397         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
46398
46399 2000-05-02  Paul Eggert  <eggert@twinsun.com>
46400
46401         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
46402         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
46403         compile-time test, rather than inspecting host and OS, to
46404         decide whether to define _LARGEFILE_SOURCE.
46405
46406 2000-05-01  Jim Meyering  <meyering@lucent.com>
46407
46408         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
46409
46410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
46411         Based on a patch from Bruno Haible.
46412
46413 2000-05-01  Jim Meyering  <meyering@lucent.com>
46414
46415         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
46416
46417 2000-04-29  Jim Meyering  <meyering@lucent.com>
46418
46419         * lib/path-concat.c: Declare strdup only if it's not defined.
46420         * lib/canon-host.c: Likewise.
46421
46422 2000-04-28  Jim Meyering  <meyering@lucent.com>
46423
46424         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
46425         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
46426         is included first, then limits.h is included by locale.h by libintl.h.
46427         From John David Anglin.
46428
46429 2000-04-25  Jim Meyering  <meyering@lucent.com>
46430
46431         * lib/makepath.c (S_IRWXUGO): Define.
46432         (make_path): Always perform explicit chmod if MODE specifies any
46433         of the `special' permission bits.  Prompted by a bug report against
46434         install from Mate Wierdl and Joost van Baal.
46435
46436 2000-04-18  Jim Meyering  <meyering@lucent.com>
46437
46438         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
46439         (jm_PREREQ): Use it.
46440
46441 2000-04-18  Jim Meyering  <meyering@lucent.com>
46442
46443         * lib/README: New file.
46444
46445         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
46446         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
46447
46448 2000-04-17  Jim Meyering  <meyering@lucent.com>
46449
46450         Get it right :-)
46451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
46452         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
46453         Suggestion from Akim Demaille.
46454
46455 2000-04-17  Jim Meyering  <meyering@lucent.com>
46456
46457         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
46458         the definition of it to rpl_strftime also defined-away the system's
46459         declaration.
46460
46461 2000-04-15  Jim Meyering  <meyering@lucent.com>
46462
46463         Use `C' to denote so-called `contiguous' files, the same way
46464         that tar does.
46465         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
46466         (ftypelet): Use S_ISCTG.
46467         From Michael Deutschmann.
46468
46469 2000-04-14  Jim Meyering  <meyering@lucent.com>
46470
46471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
46472         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
46473         clobbered.
46474
46475 2000-04-14  Jim Meyering  <meyering@lucent.com>
46476
46477         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
46478
46479 2000-04-13  Jim Meyering  <meyering@lucent.com>
46480
46481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
46482         AH_VERBATIM to insert required #ifndef into config.h.in.
46483         Suggestion from Akim Demaille.
46484
46485 2000-04-12  Jim Meyering  <meyering@lucent.com>
46486
46487         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
46488         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
46489         Christian Krackowizer.
46490
46491         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
46492         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
46493         (AC_SYS_LARGEFILE): Require.
46494         (AM_C_PROTOTYPES): Require.
46495
46496 2000-04-08  Jim Meyering  <meyering@lucent.com>
46497
46498         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
46499         names don't conflict.  Reported by Eli Zaretskii.
46500
46501 2000-04-07  Jim Meyering  <meyering@lucent.com>
46502
46503         * lib/putenv.c: Move inclusion of errno.h so it follows that of
46504         sys/types.h, to work around system header problems on AIX 3.2.5.
46505         From Bruno Haible.
46506
46507 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
46508
46509         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
46510         bug.  Deal with the different error behavior of Irix iconv.
46511
46512 2000-04-05  Paul Eggert  <eggert@twinsun.com>
46513
46514         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
46515         IRIX if the installer said otherwise.
46516
46517 2000-04-05  Jim Meyering  <meyering@lucent.com>
46518
46519         Portability tweaks required for ultrix4.3.
46520         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
46521         (jm_CHECK_DECLS): Add getutent to the list of functions.
46522         (_jm_DECL_HEADERS): Add utmpx.h.
46523         From John David Anglin.
46524
46525         * m4/strftime.m4: Back out the 2000-04-02 change.
46526         Instead of that change, simply undefine putenv in the test program.
46527
46528 2000-04-05  Jim Meyering  <meyering@lucent.com>
46529
46530         Portability tweaks required for ultrix4.3.
46531         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
46532         getutent.
46533         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
46534         * lib/canon-host.c: Declare strdup.
46535         * lib/path-concat.c: Likewise.
46536         From John David Anglin.
46537
46538 2000-04-04  Jim Meyering  <meyering@lucent.com>
46539
46540         Be more DOS 8.3-friendly.
46541         * lib/ref-add.sin: Renamed from ref-add.sed.in.
46542         * lib/ref-del.sin: Renamed from ref-del.sed.in.
46543         * lib/Makefile.am: Reflect renaming.
46544         Reported by Eli Zaretskii.
46545
46546         Use a temporary file name that won't clash with `charset.alias'
46547         in the DOS 8.3 name space.
46548         * lib/Makefile.am (charset_tmp): Define.
46549         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
46550         (uninstall-local): Likewise.
46551         Reported by Eli Zaretskii.
46552
46553 2000-04-03  Jim Meyering  <meyering@lucent.com>
46554
46555         * m4/gettext.m4: Fix typo in comment.
46556
46557         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
46558         textutils/configure.in).  Suggestion from Paul Eggert.
46559         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
46560
46561 2000-04-02  Paul Eggert  <eggert@twinsun.com>
46562
46563         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
46564         variable in the shell rather than using putenv, which isn't
46565         portable.  This avoids the configure-time inter-test dependency
46566         on the potentially-renamed putenv function.
46567
46568 2000-03-30  Paul Eggert  <eggert@twinsun.com>
46569
46570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
46571         before checking struct stat.st_blksize, so that
46572         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
46573
46574 2000-03-29  Paul Eggert  <eggert@twinsun.com>
46575
46576         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
46577         since strftime.c uses HAVE_STRFTIME to decide whether to use
46578         the underlying strftime.
46579
46580 2000-03-29  Paul Eggert  <eggert@twinsun.com>
46581
46582         * lib/time/strftime.c (my_strftime): Make sure we call the system
46583         strftime, not ourselves, when invoking the underlying strftime.
46584
46585 2000-03-24  Jim Meyering  <meyering@lucent.com>
46586
46587         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
46588         (charset_alias): Define.
46589         (install-exec-local): Factor out common code.
46590         (uninstall-local): Split lines longer than 80.
46591         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
46592         (SUFFIXES): Define.
46593         (.sed.in.sed): New rule.  Don't redirect directly to $@.
46594         (CLEANFILES): Add ref-add.sed and ref-del.sed.
46595
46596 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
46597
46598         * lib/config.charset: Output a line containing "Packages using this
46599         file".
46600         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
46601         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
46602         ref-del.sed): New rules.
46603
46604 2000-03-17  Jim Meyering  <meyering@lucent.com>
46605
46606         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
46607         Otherwise, include <strings.h>
46608
46609 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
46610
46611         * lib/unicodeio.c (utf8_wctomb): New function.
46612         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
46613         format instead of in UCS-4 with platform dependent endianness.
46614
46615 2000-03-10  Jim Meyering  <meyering@lucent.com>
46616
46617         * m4/lib-check.m4: Look for getspnam in -lgen, too.
46618         From Marco Franzen.
46619
46620 2000-03-07  Paul Eggert  <eggert@twinsun.com>
46621
46622         * lib/savedir.c (savedir): Work even if directory size is
46623         negative; this can happen with some screwy NFS configurations.
46624
46625 2000-03-06  Jim Meyering  <meyering@lucent.com>
46626
46627         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
46628         if it's NULL (because we ran out of memory).  From Bruno Haible.
46629
46630 2000-03-05  Jim Meyering  <meyering@lucent.com>
46631
46632         * lib/localcharset.c ("path-concat.h"): Include.
46633         (get_charset_aliases): Use path_concat instead of ANSI string
46634         concatenation.
46635
46636         * lib/unicodeio.h (PARAMS): Define.
46637         Use it to guard prototype.
46638
46639 2000-03-04  Jim Meyering  <meyering@lucent.com>
46640
46641         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
46642         for lib/localcharset.c.
46643
46644 2000-03-04  Jim Meyering  <meyering@lucent.com>
46645
46646         * lib/Makefile.am (install-exec-local): Create $(libdir) before
46647         installing into it.
46648         (uninstall-local): Uncomment this rule so `make distcheck' works
46649         once again.
46650
46651         * lib/unicodeio.c (<errno.h>): Include it.
46652         (errno): Declare if not defined.
46653
46654         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
46655
46656         * lib/config.charset: New version, incorporating remarks from a linux
46657         i18n mailing list.  From Bruno Haible.
46658
46659 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
46660
46661         * m4/codeset.m4: New file.
46662         * m4/iconv.m4: New file.
46663         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
46664
46665 2000-03-03  Jim Meyering  <meyering@lucent.com>
46666
46667         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
46668
46669 2000-03-02  Jim Meyering  <meyering@lucent.com>
46670
46671         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
46672         the messages come out on separate lines.
46673
46674         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
46675         rather than jm_CHECK_DECLARATIONS.
46676         * m4/decl.m4: Remove now-unused file.
46677
46678         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
46679         geteuid.
46680
46681 2000-03-02  Jim Meyering  <meyering@lucent.com>
46682
46683         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
46684
46685 2000-03-01  Jim Meyering  <meyering@lucent.com>
46686
46687         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
46688         * lib/unicodeio.c: Likewise.
46689
46690 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
46691
46692         * lib/config.charset: New file.
46693         * lib/localcharset.c: New file.
46694         * lib/unicodeio.h, lib/unicodeio.c: New files.
46695         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
46696         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
46697         (noinst_HEADERS): Add unicodeio.h.
46698         (all-local, install-exec-local, charset.alias): New targets.
46699
46700 2000-02-28  Paul Eggert  <eggert@twinsun.com>
46701
46702         * lib/quotearg.c (ALERT_CHAR): New macro.
46703         (quotearg_buffer_restyled): Use it.
46704
46705 2000-02-27  Jim Meyering  <meyering@lucent.com>
46706
46707         * m4/check-decl.m4: Add getenv to the list.
46708
46709 2000-02-27  Jim Meyering  <meyering@lucent.com>
46710
46711         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
46712         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
46713
46714         * lib/backupfile.c: Guard inclusion of stdlib.h with
46715         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
46716         Declare malloc if needed.
46717
46718         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
46719         `#ifndef HAVE_DECL..'
46720         now that autoconf always defines the HAVE_DECL_ symbols.
46721         * lib/human.c: Likewise.
46722         * lib/same.c: Likewise.
46723         * lib/strtoumax.c: Likewise.
46724
46725         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
46726         declaration check was not run.
46727         * lib/hash.c: Likewise.
46728         * lib/human.c: Likewise.
46729         * lib/same.c: Likewise.
46730         * lib/strtoumax.c: Likewise.
46731
46732         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
46733         `.', then first look up the entire `.'-containing string as a login
46734         name.
46735
46736 2000-02-23  Jim Meyering  <meyering@lucent.com>
46737
46738         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
46739         in place of my hack.
46740
46741 2000-02-18  Paul Eggert  <eggert@twinsun.com>
46742
46743         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
46744         (textint): New typedef.
46745         (parser_control): Member year changed from int to textint.
46746         All uses changed.
46747         (YYSTYPE): Removed; replaced by %union with int and textint members.
46748         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
46749         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
46750         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
46751         (tSNUMBER, tUNUMBER): Now of type <textintval>.
46752         (date, number, to_year): Use width of number in digits, not its value,
46753         to determine whether it's a 2-digit year, or a 2-digit time.
46754         (yylex): Store number of digits of numeric tokens.
46755         Reported by John Kendall.
46756
46757         (parser_control): Changed from struct parser_control to typedef (for
46758         consistency).  All uses changed.
46759
46760         (tID): Removed; not used.
46761         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
46762
46763 2000-02-14  Paul Eggert  <eggert@twinsun.com>
46764
46765         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
46766         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
46767
46768 2000-02-12  Jim Meyering  <meyering@lucent.com>
46769
46770         * lib/userspec.c (ISDIGIT): Define it.
46771         (isdigit): Remove definition.
46772         (is_number): Use ISDIGIT, not isdigit.
46773         <libintl.h>: Include.
46774         (_ and N_): Define.
46775         (parse_user_spec): Mark translatable strings.
46776
46777 2000-02-10  Jim Meyering  <meyering@lucent.com>
46778
46779         With these changes, nanosleep.[ch] are finally enough like the other
46780         lib/* replacement files to compile on a few more losing systems.
46781
46782         * lib/nanosleep.h: Don't include config.h.
46783         Remove prototype from declaration of nanosleep.
46784         (PARAMS): Remove now-unneeded definition.
46785         * lib/nanosleep.c: #undef nanosleep.
46786         (rpl_nanosleep): Rename from nanosleep.
46787
46788 2000-02-10  Jim Meyering  <meyering@lucent.com>
46789
46790         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
46791         gnu_nanosleep to rpl_nanosleep.
46792
46793 2000-02-09  Jim Meyering  <meyering@lucent.com>
46794
46795         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
46796         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
46797
46798 2000-02-08  Akim Demaille  <akim@epita.fr>
46799
46800         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
46801         `[' and `]' and remove uses of `changequote'.
46802         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
46803         (AC_SYS_LARGEFILE): Likewise.
46804         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
46806         of changequote.
46807         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
46808         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
46809         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
46810         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
46811
46812 2000-02-05  Jim Meyering  <meyering@lucent.com>
46813
46814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
46815         Remove explicit use of AC_HEADER_TIME.  It is required by
46816         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
46817         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
46818         in autoconf whereby the expansion of the latter ended up preceding
46819         the expansion of its prerequisite, AC_HEADER_TIME.
46820         Reported by Volker Borchert.
46821
46822 2000-02-03  Jim Meyering  <meyering@lucent.com>
46823
46824         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
46825
46826 2000-02-03  Jim Meyering  <meyering@lucent.com>
46827
46828         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
46829         rather than with `#if HAVE_UTMPNAME'.
46830
46831 2000-02-02  Jim Meyering  <meyering@lucent.com>
46832
46833         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
46834         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
46835         Reported by Eli Zaretskii.
46836
46837 2000-02-01  Jim Meyering  <meyering@lucent.com>
46838
46839         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
46840
46841 2000-01-31  Jim Meyering  <meyering@lucent.com>
46842
46843         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
46844         functions.  Add the time.h and sys/time.h headers along with the
46845         AC_REQUIRE'ment of AC_HEADER_TIME.
46846
46847 2000-01-31  Jim Meyering  <meyering@lucent.com>
46848
46849         * lib/nanosleep.h (nanosleep): Guard declaration with
46850         `#if ! HAVE_DECL_NANOSLEEP'.
46851         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
46852         the declaration in that vendor's sys/timers.h.
46853         Reported by Christian Krackowizer.
46854
46855         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
46856         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
46857         (ISPRINT): Likewise.
46858         Reported by Tom Tromey.
46859
46860 2000-01-30  Jim Meyering  <meyering@lucent.com>
46861
46862         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
46863
46864         * m4/prereq.m4 (utmp_includes): Define.
46865         Check for ut_user and ut_name members in both struct utmpx
46866         and struct utmp.
46867
46868 2000-01-30  Jim Meyering  <meyering@lucent.com>
46869
46870         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
46871         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
46872         header files where only utmpx.ut_user is declared.
46873
46874         * lib/readutmp.h (UT_USER): Define.
46875
46876 2000-01-29  Jim Meyering  <meyering@lucent.com>
46877
46878         * m4/lib-check.m4: New file containing library-related checks from
46879         fileutils and sh-utils (textutils had none).
46880
46881 2000-01-28  Jim Meyering  <meyering@lucent.com>
46882
46883         * m4/perl.m4: Change format of warning message to look more like that
46884         from the missing script.  Suggestion from François Pinard.
46885
46886 2000-01-25  Jim Meyering  <meyering@lucent.com>
46887
46888         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
46889         well as time.h in the compile check.
46890         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
46891         Fix typo in cross-compiling case: s/yes/no/.
46892
46893 2000-01-23  Jim Meyering  <meyering@lucent.com>
46894
46895         * m4/jm-macros.m4: Move df-related tests here from
46896         fileutils/configure.in
46897
46898         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
46899         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
46900
46901         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
46902         s/space/ac_fsusage_space/.
46903         (jm_FILE_SYSTEM_USAGE): Take two parameters.
46904
46905         * m4/ftruncate.m4: New file (derived from part of
46906         fileutils/configure.in).
46907         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
46908         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
46909
46910         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
46911         AC_SUBST these here, rather than just in sh-util/configure.in, so
46912         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
46913         all the same.
46914         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
46915         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
46916         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
46917         (AC_SUBST(POW_LIBM)): Likewise.
46918         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
46919
46920 2000-01-23  Jim Meyering  <meyering@lucent.com>
46921
46922         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
46923         obstack.c.
46924
46925 2000-01-22  Jim Meyering  <meyering@lucent.com>
46926
46927         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
46928
46929         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
46930
46931         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
46932         configure.in
46933         (AC_CHECK_HEADERS): Likewise for sh-utils.
46934         (AC_CHECK_HEADERS): Likewise for textutils.
46935         Merge the three lists of headers.
46936
46937         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
46938         from fileutils' configure.in.
46939
46940         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
46941         code. Moved tests into their own function (_jm_DECL_HEADERS) in
46942         check-decl.m4.
46943
46944         * m4/check-decl.m4: Use #if rather than #ifdef.
46945         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
46946         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
46947         (_jm_DECL_HEADERS): Define new function.
46948         (jm_CHECK_DECLARATIONS): Require it.
46949
46950 2000-01-22  Jim Meyering  <meyering@lucent.com>
46951
46952         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
46953         [! HAVE_DECL_STRTOULL]: Declare strtoull.
46954         Required for some AIX systems.  Reported by Christian Krackowizer.
46955         [TESTING] (main): New function.
46956
46957         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
46958         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
46959         letters.
46960
46961         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
46962         iswprint.
46963
46964         * lib/strverscmp.c (ISDIGIT): Define.
46965         (strverscmp): Use ISDIGIT, not isdigit.
46966
46967 2000-01-19  Jim Meyering  <meyering@lucent.com>
46968
46969         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
46970         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
46971         defines `struct timespec' in <sys/time.h>
46972
46973         * m4/c-bs-a.m4: Remove uses of changequote altogether.
46974         Thanks to Akim for explaining.
46975
46976 2000-01-17  Paul Eggert  <eggert@twinsun.com>
46977
46978         * lib/nanosleep.c (nanosleep):
46979         Don't use SA_INTERRUPT to decide whether to call sigaction, as
46980         POSIX.1 doesn't require SA_INTERRUPT and some systems
46981         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
46982         it's been part of POSIX.1 since day 1 (in 1988).
46983
46984 2000-01-17  Jim Meyering  <meyering@lucent.com>
46985
46986         * lib/interlock: Remove unused file.  Reported by François Pinard.
46987
46988 2000-01-16  Paul Eggert  <eggert@twinsun.com>
46989
46990         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
46991         alert, backslash, formfeed, and vertical tab unnecessarily in
46992         shell quoting style.
46993
46994 2000-01-16  Jim Meyering  <meyering@lucent.com>
46995
46996         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
46997         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
46998         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
46999         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
47000
47001 2000-01-16  Jim Meyering  <meyering@lucent.com>
47002
47003         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
47004         because the latter didn't work.
47005
47006 2000-01-15  Jim Meyering  <meyering@lucent.com>
47007
47008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
47009         (AC_REPLACE_FUNCS): Add memcpy and memset.
47010         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
47011         Add strpbrk.
47012         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
47013
47014 2000-01-12  Jim Meyering  <meyering@lucent.com>
47015
47016         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
47017         (jm_PREREQ): Use it.
47018         (jm_PREREQ_READUTMP): New macro.
47019         (jm_PREREQ): Use it.
47020
47021 2000-01-11  Paul Eggert  <eggert@twinsun.com>
47022
47023         Quote multibyte characters correctly.
47024         * m4/c-bs-a.m4: New file.
47025         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
47026         (jm_PREREQ): Use it.
47027
47028 2000-01-11  Paul Eggert  <eggert@twinsun.com>
47029
47030         * m4/uintmax_t.m4: Port to autoconf 2.13.
47031
47032 2000-01-08  Jim Meyering  <meyering@ascend.com>
47033
47034         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
47035         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
47036
47037 2000-01-04  Jim Meyering  <meyering@ascend.com>
47038
47039         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
47040         jm_STRUCT_DIRENT_D_TYPE.
47041         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
47042         jm_STRUCT_DIRENT_D_INO.
47043         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
47044         jm_STRUCT_UTIMBUF.
47045         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
47046         renamings.
47047         * m4/utime.m4: Likewise.
47048
47049         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
47050         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
47051
47052 2000-01-03  Paul Eggert  <eggert@twinsun.com>
47053
47054         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
47055         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
47056
47057 2000-01-02  Jim Meyering  <meyering@ascend.com>
47058
47059         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
47060         remember if this is necessary.
47061
47062 1999-12-26  Jim Meyering  <meyering@ascend.com>
47063
47064         * m4/jm-macros.m4: Use it here.
47065         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
47066
47067 1999-12-23  Jim Meyering  <meyering@ascend.com>
47068
47069         * m4/jm-macros.m4: Check for clock_gettime (moved from
47070         fileutils/configure.in)
47071         Check for gettimeofday.
47072
47073 1999-12-20  Jim Meyering  <meyering@ascend.com>
47074
47075         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
47076         autoconf-2.14a-1999-12-20.
47077
47078 1999-12-19  Jim Meyering  <meyering@ascend.com>
47079
47080         * m4/lstat-slash.m4: New file.
47081         * m4/jm-macros.m4: Use the new macro:
47082         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47083
47084 1999-12-07  Jim Meyering  <meyering@ascend.com>
47085
47086         * m4/perl.m4: Require that File::Compare be available, too.
47087         Too many systems seem to lack it.
47088
47089         * m4/strftime.m4: Add checks for most of the cpp macros tested in
47090         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
47091
47092 1999-11-18  Paul Eggert  <eggert@twinsun.com>
47093
47094         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
47095         problem with the QNX 4.25 shell, which doesn't propagate exit
47096         status of failed commands inside shell assignments.
47097
47098 1999-11-17  Jim Meyering  <meyering@ascend.com>
47099
47100         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
47101
47102 1999-11-07  Jim Meyering  <meyering@ascend.com>
47103
47104         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
47105
47106 1999-11-06  Jim Meyering  <meyering@ascend.com>
47107
47108         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
47109         * m4/jm-macros.m4 (jm_MACROS): Use it here.
47110
47111 1999-11-05  Jim Meyering  <meyering@ascend.com>
47112
47113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
47114         configure.in of textutils, fileutils, and sh-utils into this one
47115         (shared between those packages) file.
47116         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
47117         AC_STRUCT_ST_BLKSIZE.
47118
47119 1999-11-03  Jim Meyering  <meyering@ascend.com>
47120
47121         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
47122         of AC_CHECK_TYPE checks includes unistd.h.
47123         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
47124         Suggestion from Akim Demaille.
47125
47126 1999-10-30  Jim Meyering  <meyering@ascend.com>
47127
47128         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
47129         m4-quoted string.
47130         * m4/ls-mntd-fs.m4: Likewise.
47131         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
47132         * m4/jm-winsz1.m4: Likewise.
47133
47134         * m4/const.m4: Remove file, since the fix made it into the experimental
47135         version of autoconf.
47136         * m4/mktime.m4: Likewise.
47137
47138         * m4/check-type.m4: Remove file, now that the latest version of
47139         AC_CHECK_TYPE takes a third arg to specify additional #includes.
47140
47141         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
47142         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
47143         AC_CHECK_TYPE.
47144
47145 1999-10-04  Jim Meyering  <meyering@ascend.com>
47146
47147         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
47148
47149 1999-09-22  Paul Eggert  <eggert@twinsun.com>
47150
47151         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
47152         2.95.1 bug with HP-UX 10.20.
47153
47154 1999-09-17  Jim Meyering  <meyering@ascend.com>
47155
47156         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
47157         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
47158         due to missing strdup (against sh-utils-2.0).
47159
47160 1999-08-29  Jim Meyering  <meyering@ascend.com>
47161
47162         * m4/jm-macros.m4: Require jm_BISON.
47163         * m4/bison.m4: New file.
47164
47165 1999-08-17  Paul Eggert  <eggert@twinsun.com>
47166
47167         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
47168         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
47169
47170 1999-08-05  Jim Meyering  <meyering@ascend.com>
47171
47172         * m4/getline.m4: Rename test file from conftestdata to conftest.data
47173         to avoid conflicts with `conftest' on 8+3 filesystems.
47174         Suggestion from Eli Zaretskii.
47175
47176 1999-08-04  Jim Meyering  <meyering@ascend.com>
47177
47178         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
47179         fileutils and sh-utils (textutils's getline test was inadequate).
47180         (AM_FUNC_GETLINE): Run this test.
47181         (AC_CHECK_FUNCS): Check for getdelim.
47182         Reported by Bob Proulx.
47183
47184 1999-08-02  Jim Meyering  <meyering@ascend.com>
47185
47186         * m4/jm-macros.m4: Add a comment.
47187
47188 1999-08-01  Paul Eggert  <eggert@twinsun.com>
47189
47190         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
47191         <inttypes.h> defines strtoumax as a macro (and not as a
47192         function).
47193
47194 1999-08-01  Paul Eggert  <eggert@twinsun.com>
47195
47196         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
47197         that we can shift, multiply and divide unsigned long long
47198         values; Ultrix cc can't do it.
47199
47200 1999-08-01  Paul Eggert  <eggert@twinsun.com>
47201
47202         * m4/mktime.m4: New file, which is a preview of what should appear
47203         in the next public autoconf release.
47204
47205 1999-08-01  Paul Eggert  <eggert@twinsun.com>
47206
47207         * m4/lfs.m4: Remove this file.
47208         * m4/largefile.m4: New file.  It contains the old contents of
47209         lfs.m4, except that all names with prefix AC_LFS have been
47210         changed to use the prefix AC_SYS_LARGEFILE instead, to be
47211         compatible with future autoconf versions.  Also, some minor m4
47212         quoting problems have been fixed.
47213
47214 1999-08-01  Paul Eggert  <eggert@twinsun.com>
47215
47216         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
47217         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
47218         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
47219         and simplify the shell code.
47220
47221 1999-08-01  Jim Meyering  <meyering@ascend.com>
47222
47223         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
47224         m4.
47225
47226 1999-07-20  Jim Meyering  <meyering@ascend.com>
47227
47228         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
47229
47230 1999-07-15  Jim Meyering  <meyering@ascend.com>
47231
47232         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
47233
47234 1999-05-22  Jim Meyering  <meyering@ascend.com>
47235
47236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
47237
47238 1999-05-20  Jim Meyering  <meyering@ascend.com>
47239
47240         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
47241         Add a colon after each `then' in case $4 is empty.
47242
47243 1999-05-16  Jim Meyering  <meyering@ascend.com>
47244
47245         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
47246
47247 1999-05-10  Jim Meyering  <meyering@ascend.com>
47248
47249         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
47250
47251         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
47252         AC_FUNC_MKTIME.
47253
47254 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
47255
47256         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
47257
47258 1999-05-04  Paul Eggert  <eggert@twinsun.com>
47259
47260         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
47261         not CPPFLAGS, so that linking works correctly in IRIX.
47262
47263 1999-04-30  Paul Eggert  <eggert@twinsun.com>
47264
47265         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
47266
47267 1999-04-20  Paul Eggert  <eggert@twinsun.com>
47268
47269         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
47270         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
47271         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
47272         jm_AC_TYPE_UNSIGNED_LONG_LONG.
47273         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
47274
47275         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
47276
47277 1999-04-20  Jim Meyering  <meyering@ascend.com>
47278
47279         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
47280         AC_REPLACE xstroull if necessary.  From Paul Eggert.
47281         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
47282
47283 1999-04-18  Jim Meyering  <meyering@ascend.com>
47284
47285         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
47286         * m4/jm-macros.m4: Use it.
47287
47288 1999-04-06  Jim Meyering  <meyering@ascend.com>
47289
47290         * m4/strftime.m4: Remove test for %f.
47291
47292 1999-03-29  Jim Meyering  <meyering@ascend.com>
47293
47294         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
47295         superset of the AC_TYPE_* checks in the textutils, fileutils,
47296         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
47297         AC_TYPE_PID_T.
47298
47299 1999-03-28  Jim Meyering  <meyering@ascend.com>
47300
47301         * m4/jm-macros.m4: Define GNU_PACKAGE here.
47302         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
47303         replaced e.g., in the *.sh files of the sh-utils.
47304
47305 1999-03-20  Jim Meyering  <meyering@ascend.com>
47306
47307         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
47308         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
47309         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
47310
47311 1999-03-19  Jim Meyering  <meyering@ascend.com>
47312
47313         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
47314
47315 1999-03-12  Jim Meyering  <meyering@ascend.com>
47316
47317         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
47318
47319 1999-03-07  Jim Meyering  <meyering@ascend.com>
47320
47321         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
47322         declared.
47323
47324 1999-02-17  Jim Meyering  <meyering@ascend.com>
47325
47326         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
47327         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
47328
47329 1999-02-07  Jim Meyering  <meyering@ascend.com>
47330
47331         * m4/group-member.m4: New file -- extracted from sh-utils'
47332         configure.in.
47333
47334         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
47335         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
47336
47337 1999-02-06  Jim Meyering  <meyering@ascend.com>
47338
47339         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
47340         * m4/fnmatch.m4: Likewise.
47341         * m4/getgroups.m4: Likewise.
47342         * m4/lstat.m4: Likewise.
47343         * m4/malloc.m4: Likewise.
47344         * m4/putenv.m4: Likewise.
47345         * m4/realloc.m4: Likewise.
47346         * m4/regex.m4: Likewise.
47347         * m4/stat.m4: Likewise.
47348         * m4/strftime.m4: Likewise.
47349         Suggestion from Alain Magloire.
47350
47351         * m4/chown.m4: Use `.$ac_objext', not `.o'.
47352         * m4/fnmatch.m4: Likewise.
47353         * m4/getgroups.m4: Likewise.
47354         * m4/getline.m4: Likewise.
47355         * m4/lstat.m4: Likewise.
47356         * m4/malloc.m4: Likewise.
47357         * m4/memcmp.m4: Likewise.
47358         * m4/putenv.m4: Likewise.
47359         * m4/realloc.m4: Likewise.
47360         * m4/regex.m4: Likewise.
47361         * m4/stat.m4: Likewise.
47362         * m4/strftime.m4: Likewise.
47363         Suggestion from Alain Magloire.
47364
47365         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
47366         an argument.
47367
47368         * m4/regex.m4: Add a run-time Test for proper operation of
47369         re_compile_pattern.
47370
47371 1999-01-31  Jim Meyering  <meyering@ascend.com>
47372
47373         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
47374
47375 1999-01-30  Jim Meyering  <meyering@ascend.com>
47376
47377         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
47378
47379         * m4/jm-mktime.m4: Make this a wrapper around the official
47380         AM_FUNC_MKTIME rather than my private copy, now that the official one
47381         is up to date.
47382         * m4/mktime.m4: Remove file.
47383
47384         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
47385         * m4/uptime.m4: Likewise.
47386         * m4/uintmax_t.m4: Likewise.
47387
47388 1999-01-28  Jim Meyering  <meyering@ascend.com>
47389
47390         * m4/jm-macros.m4: Use jm_AFS.
47391         * m4/afs.m4: New file (from fileutils' configure.in).
47392
47393         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
47394         * m4/chown.m4: Likewise.
47395         * m4/d-ino.m4: Likewise.
47396         * m4/d-type.m4: Likewise.
47397         * m4/fnmatch.m4: Likewise.
47398         * m4/getgroups.m4: Likewise.
47399         * m4/gettext.m4: Likewise.
47400         * m4/jm-mktime.m4: Likewise.
47401         * m4/jm-winsz2.m4: Likewise.
47402         * m4/lcmessage.m4: Likewise.
47403         * m4/ls-mntd-fs.m4: Likewise.
47404         * m4/malloc.m4: Likewise.
47405         * m4/memcmp.m4: Likewise.
47406         * m4/putenv.m4: Likewise.
47407         * m4/realloc.m4: Likewise.
47408         * m4/st_mtim.m4: Likewise.
47409         * m4/strftime.m4: Likewise.
47410
47411 1999-01-16  Jim Meyering  <meyering@ascend.com>
47412
47413         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
47414         (ARGMATCH_DIE_DECL): Define.
47415
47416 1999-01-12  Jim Meyering  <meyering@ascend.com>
47417
47418         * m4/Makefile.am.in: Rewrite to avoid using fmt.
47419         Reported by Lars Hecking.
47420
47421 1999-01-10  Jim Meyering  <meyering@ascend.com>
47422
47423         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
47424         gross kludge.
47425         * m4/inttypes_h.m4: Likewise.
47426         * m4/lstat.m4: Likewise.
47427         * m4/malloc.m4: Likewise.
47428         * m4/readdir.m4: Likewise.
47429         * m4/realloc.m4: Likewise.
47430         * m4/st_dm_mode.m4: Likewise.
47431         * m4/stat.m4: Likewise.
47432         * m4/utimbuf.m4: Likewise.
47433         * m4/utimes.m4: Likewise.
47434
47435         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
47436         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
47437         comments in config.h.in are meaningful.
47438
47439         * m4/jm-macros.m4: Require autoconf-2.13 here.
47440
47441         * m4/regex.m4: By default, don't use the included regex.c on systems
47442         with glibc 2.  Suggestion from Uli Drepper.
47443
47444 1999-01-02  Jim Meyering  <meyering@ascend.com>
47445
47446         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
47447
47448 1998-12-18  Jim Meyering  <meyering@ascend.com>
47449
47450         * m4/Makefile.am.in (Makefile.am): Simplify rule.
47451         Based on a suggestion from Lars Hecking.
47452
47453 1998-11-16  Paul Eggert  <eggert@twinsun.com>
47454
47455         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
47456
47457 1998-11-16  Jim Meyering  <meyering@ascend.com>
47458
47459         * m4/lfs.m4: Double-quote the `uname...` expression.
47460
47461 1998-11-14  Jim Meyering  <meyering@ascend.com>
47462
47463         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
47464         * m4/stat.m4: Likewise.
47465
47466 1998-11-03  Jim Meyering  <meyering@ascend.com>
47467
47468         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
47469         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
47470
47471 1998-10-18  Jim Meyering  <meyering@ascend.com>
47472
47473         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
47474
47475 1998-10-17  Jim Meyering  <meyering@ascend.com>
47476
47477         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
47478         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
47479         calls for those previously hard-coded headers.  Instead, take a new
47480         parameter.
47481         (jm_CHECK_DECLARATIONS): Reflect interface change.
47482         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
47483         (jm_CHECK_DECL_LOCALTIME_R): New macro.
47484
47485         * m4/mktime.m4: Test for spring-forward gap before long-running test.
47486
47487 1998-10-14  Jim Meyering  <meyering@ascend.com>
47488
47489         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
47490         instead of "TZ=America/Vancouver".  From Paul Eggert.
47491
47492 1998-10-11  Jim Meyering  <meyering@ascend.com>
47493
47494         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
47495         This adds a test for a recently added compatibility fix for mktime.c.
47496         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
47497
47498 1998-09-27  Jim Meyering  <meyering@ascend.com>
47499
47500         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
47501
47502         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
47503         ../configure.in, including a change from Gordon Matzigkeit to allow
47504         cross-compiling for the Hurd.
47505
47506         * m4/glibc.m4: New file/macro to test for the GNU C Library
47507         versions 1 and 2.  From Gordon Matzigkeit.
47508         Indent.
47509
47510 1998-09-21  Jim Meyering  <meyering@ascend.com>
47511
47512         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
47513
47514 1998-08-18  Paul Eggert  <eggert@twinsun.com>
47515
47516         Port nanosecond-resolution times to UnixWare 2.1.2 and
47517         pedantic Solaris 2.6.
47518
47519         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
47520         AC_STRUCT_ST_MTIM.
47521         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
47522         Generate name of ns member, instead of just 1 or undef.
47523         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
47524
47525 1998-08-15  Jim Meyering  <meyering@ascend.com>
47526
47527         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
47528         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
47529         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
47530         instead of jm_TYPE_SSIZE_T.
47531
47532 1998-08-12  Jim Meyering  <meyering@ascend.com>
47533
47534         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
47535
47536 1998-08-02  Jim Meyering  <meyering@ascend.com>
47537
47538         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
47539         in acconfig.h manually.
47540
47541 1998-07-31  Paul Eggert  <eggert@twinsun.com>
47542
47543         * m4/st_mtim.m4: New file.
47544
47545 1998-07-28  Jim Meyering  <meyering@ascend.com>
47546
47547         * m4/utimes.m4: Undef stat.
47548
47549 1998-07-25  Jim Meyering  <meyering@ascend.com>
47550
47551         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
47552         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
47553
47554 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
47555
47556         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
47557         uid and gid actually remain unchanged.
47558
47559 1998-07-07  Jim Meyering  <meyering@ascend.com>
47560
47561         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
47562
47563 1998-07-04  Jim Meyering  <meyering@ascend.com>
47564
47565         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
47566         to prove that this macro can be used in packages without regex.c.
47567
47568 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
47569
47570         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
47571         is to be used.
47572
47573 1998-07-03  Jim Meyering  <meyering@ascend.com>
47574
47575         * m4/gettext.m4: Add -lintl if it's found to be necessary.
47576
47577         * m4/gettext.m4: New file -- from gettext-0.10.35.
47578         * m4/lcmessage.m4: Likewise.
47579         * m4/progtest.m4: Likewise.
47580
47581         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
47582         * m4/jm-macros.m4: Require the new macro.
47583
47584 1998-06-29  Jim Meyering  <meyering@ascend.com>
47585
47586         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
47587         for the definition of NGROUPS (used in a system header included
47588         by sys/mount.h).
47589
47590 1998-06-28  Jim Meyering  <meyering@ascend.com>
47591
47592         * m4/ls-mntd-fs.m4: New file.
47593         * m4/fstypename.m4: New file.
47594
47595         * m4/jm-macros.m4: Require the new macro.
47596         * m4/jm-glibc-io.m4: New file.
47597
47598 1998-05-19  Jim Meyering  <meyering@ascend.com>
47599
47600         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
47601         * m4/lchown.m4: New file.
47602
47603         * m4/Makefile.am.in: New file.
47604         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
47605
47606 1998-05-14  Jim Meyering  <meyering@ascend.com>
47607
47608         * m4/Makefile.am (EXTRA_DIST): Add them.
47609         * m4/jm-macros.m4: New file.
47610         * m4/utimbuf.m4: New file.
47611
47612 1998-05-12  Jim Meyering  <meyering@ascend.com>
47613
47614         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
47615
47616 1998-05-11  Jim Meyering  <meyering@ascend.com>
47617
47618         * m4/isc-posix.m4: New file.
47619
47620 1998-05-10  Jim Meyering  <meyering@ascend.com>
47621
47622         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
47623
47624 1998-05-09  Jim Meyering  <meyering@ascend.com>
47625
47626         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
47627         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
47628         with automake.
47629
47630         * m4/ssize_t.m4: New file.
47631         * m4/mktime.m4: Remove file -- the new automake has this now.
47632
47633 1998-04-26  Jim Meyering  <meyering@ascend.com>
47634
47635         * m4/assert.m4: New file.
47636         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
47637
47638 1998-04-05  Jim Meyering  <meyering@ascend.com>
47639
47640         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
47641         (jm_PREREQ): Use it here.
47642
47643 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
47644
47645         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
47646         in acconfig.h.
47647
47648 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
47649
47650         * m4/prereq.m4: New file.
47651         * m4/error.m4: New file.
47652         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
47653
47654 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
47655
47656         * m4/getline.m4: Don't set am_cv_func_working_getline before the
47657         cache-check for the same variable -- that defeated the purpose of
47658         the test; the test program was never run.  This was a problem only
47659         on systems with losing getline functions -- HP-UX 10.20 is one.
47660         Reported by Bjorn Helgaas.
47661
47662 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
47663
47664         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
47665
47666 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
47667
47668         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
47669
47670         * m4/const.m4: New file.  Use an initializer in this declaration
47671         typedef int charset[2]; const charset x;
47672         Reported by Bob Glickstein.
47673
47674 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
47675
47676         * m4/chown.m4: Fix reversed types on -1 args to chown.
47677         From Kaveh Ghazi.
47678
47679 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
47680
47681         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
47682         Add lseek and memchr.
47683
47684         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
47685         T.E.Dickey <dickey@clark.net> said that some older preprocessors
47686         have a 20-character limit on names.
47687
47688 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
47689
47690         * m4/inttypes_h.m4: New file.
47691         * m4/uintmax_t.m4: New file.
47692         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
47693
47694
47695         -----
47696
47697         Local Variables:
47698         coding: utf-8
47699         End:
47700
47701         Copyright (C) 1997-2009 Free Software Foundation, Inc.
47702
47703         Copying and distribution of this file, with or without
47704         modification, are permitted provided the copyright notice
47705         and this notice are preserved.